.video-recordings {
    background: #fff;
    padding: 0;
}

.video-recordings .container {
    padding: 0 133px 0 0;
}

.video-recordings__title {
    margin-bottom: 38px;
}

.video-recordings__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

.video-card {
    min-width: 0;
}

.video-card__title {
    margin: 0 0 14px;
    color: #11142e;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.video-card__preview,
.video-card__player {
    position: relative;
    display: flex;
    width: 100%;
    aspect-ratio: 16 / 9;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: radial-gradient(circle at 72% 20%, rgba(248, 63, 42, .64), transparent 36%), linear-gradient(135deg, #051a49, #0f1a5c 58%, #1d2f81);
    box-shadow: 0 14px 32px rgba(4, 22, 63, .16);
}

.video-card__preview,
.video-card__player {
    max-width: 960px;
    margin-right: auto;
    margin-left: auto;
}

.video-card__preview {
    cursor: pointer;
}

.video-card__preview::before {
    position: absolute;
    inset: 0;
    background: repeating-radial-gradient(circle at 22% 75%, transparent 0 10px, rgba(95, 149, 255, .12) 11px 13px, transparent 14px 28px);
    content: '';
}

.video-card__play {
    position: relative;
    z-index: 1;
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    padding-left: 5px;
    border-radius: 50%;
    background: #ff3b25;
    color: #fff;
    font-size: 30px;
    transition: transform .2s ease, background .2s ease;
}

.video-card__preview:hover .video-card__play,
.video-card__preview:focus-visible .video-card__play {
    transform: scale(1.08);
    background: #e92d1b;
}

.video-card__player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-auth-popup {
    position: fixed;
    z-index: 100001;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.video-auth-popup-open {
    overflow: hidden;
}

.video-auth-popup[hidden] {
    display: none;
}

.video-auth-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
}

.video-auth-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 640px);
    padding: 48px;
    border-radius: 10px;
    background: #eef5ff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.video-auth-popup__dialog h2 {
    max-width: 510px;
    margin: 0 35px 18px 0;
    color: #505b72;
    font-family: 'Proxima Nova', Arial, sans-serif;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.05;
}

.video-auth-popup__dialog p {
    margin: 0;
    color: #505b72;
    font-size: 20px;
    line-height: 1.35;
}

.video-auth-popup__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.video-auth-popup__button {
    min-height: 52px;
    padding: 0 28px;
    border: 0;
    border-radius: 5px;
    background: #12a62d;
    color: #fff;
    cursor: pointer;
    font: 700 18px/1 'Proxima Nova', Arial, sans-serif;
}

.video-auth-popup__button:hover,
.video-auth-popup__button:focus-visible {
    background: #0d8e25;
}

.video-auth-popup__close {
    position: absolute;
    top: 12px;
    right: 18px;
    border: 0;
    background: transparent;
    color: #505b72;
    cursor: pointer;
    font-size: 38px;
    line-height: 1;
}

.video-debug-panel {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 100002;
    width: min(440px, calc(100vw - 32px));
    max-height: min(60vh, 580px);
    overflow: auto;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    background: #111827;
    box-shadow: 0 16px 45px rgba(0, 0, 0, .35);
    color: #e5e7eb;
    font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.video-debug-panel__title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 700;
}

.video-debug-panel__state {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 5px 12px;
    margin-bottom: 12px;
}

.video-debug-panel__state b { color: #93c5fd; }
.video-debug-panel__row { padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.video-debug-panel__row time { color: #86efac; }
.video-debug-panel__row pre { margin: 5px 0 0; overflow: auto; color: #d1d5db; white-space: pre-wrap; }

@media (max-width: 767px) {
    .video-recordings__grid { grid-template-columns: 1fr; gap: 34px; }
    .video-card__title { font-size: 31px; }
    .video-auth-popup__dialog { padding: 36px 26px 30px; }
    .video-auth-popup__dialog p { font-size: 18px; }
}

@media (max-width: 1700px) {
    .video-recordings { padding-right: 24px; padding-left: 24px; }
}

@media (max-width: 1200px) {
    .video-recordings .container { padding-right: 0; }
}

@media (max-width: 1024px) {
    .video-recordings .lg-container { padding: 48px 66px; }
}

@media (max-width: 767px) {
    .video-recordings .lg-container { padding: 30px; }
}
