.video-desk-page {
    background: #050a11;
}

.video-library {
    width: min(1540px, calc(100% - 40px));
    max-width: none;
    margin: 0 auto;
    padding: clamp(38px, 6vw, 82px) 0 clamp(80px, 10vw, 140px);
}

.video-library__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 30px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(184, 205, 239, 0.18);
}

.video-library__heading {
    max-width: 820px;
}

.video-library__eyebrow {
    margin: 0 0 10px;
    color: #ff6262;
    font: 700 0.72rem/1 'IBM Plex Mono', monospace;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.video-library__heading h1 {
    margin: 0;
    color: #f3f7ff;
    font: 400 clamp(3rem, 6vw, 6.4rem)/0.86 'Bebas Neue', sans-serif;
    letter-spacing: 0.015em;
}

.video-library__heading > p:last-child {
    max-width: 650px;
    margin: 18px 0 0;
    color: #a9b8cc;
    font: 400 clamp(1rem, 1.35vw, 1.18rem)/1.6 'IBM Plex Mono', monospace;
}

.video-library__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.video-library__status,
.video-library__action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid rgba(184, 205, 239, 0.18);
    border-radius: 999px;
    color: #bdcbe0;
    font: 700 0.68rem/1 'IBM Plex Mono', monospace;
    letter-spacing: 0.09em;
    text-decoration: none;
    text-transform: uppercase;
}

.video-library__status {
    color: #e3bd72;
}

.video-library__action {
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.video-library__action:hover,
.video-library__action:focus-visible {
    border-color: rgba(255, 98, 98, 0.65);
    color: #fff;
}

.video-library__action--primary {
    border-color: #d92f36;
    background: #d92f36;
    color: #fff;
}

.video-library__action--primary:hover,
.video-library__action--primary:focus-visible {
    border-color: #f0474e;
    background: #f0474e;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 28px);
}

.video-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(184, 205, 239, 0.15);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(14, 24, 39, 0.96), rgba(7, 13, 22, 0.98));
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.22);
    animation: video-card-enter 0.45s both;
    animation-delay: calc(var(--video-card-index, 0) * 45ms);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.video-card:hover {
    border-color: rgba(255, 98, 98, 0.45);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.32);
    transform: translateY(-3px);
}

.video-card:focus-within {
    border-color: rgba(255, 98, 98, 0.72);
    outline: 2px solid rgba(255, 98, 98, 0.22);
    outline-offset: 3px;
}

.video-card__embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #020408;
}

.video-card__embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-card__body {
    display: grid;
    align-content: start;
    gap: 13px;
    flex: 1;
    padding: 19px 20px 21px;
}

.video-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.video-card__date,
.video-card__external {
    color: #e3bd72;
    font: 700 0.66rem/1 'IBM Plex Mono', monospace;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.video-card__external {
    color: #ff7878;
    text-decoration: none;
}

.video-card__external:hover,
.video-card__external:focus-visible {
    color: #fff;
}

.video-card .video-card__title {
    margin: 0;
    color: #f2f6fc;
    font: 700 clamp(1.08rem, 1.35vw, 1.34rem)/1.25 'IBM Plex Mono', monospace;
    letter-spacing: -0.025em;
}

.video-card__description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #94a6bd;
    font: 400 0.88rem/1.6 'IBM Plex Mono', monospace;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.video-card--loading {
    pointer-events: none;
}

.video-card--loading .video-card__embed,
.video-card__loading-line {
    background: linear-gradient(100deg, rgba(120, 146, 180, 0.08) 25%, rgba(160, 188, 224, 0.16) 42%, rgba(120, 146, 180, 0.08) 60%);
    background-size: 240% 100%;
    animation: video-card-shimmer 1.5s linear infinite;
}

.video-card__loading-line {
    display: block;
    width: 100%;
    height: 13px;
    border-radius: 999px;
}

.video-card__loading-line--short {
    width: 32%;
    height: 9px;
}

.video-card__loading-line--medium {
    width: 68%;
}

.video-library__empty {
    grid-column: 1 / -1;
    padding: clamp(30px, 5vw, 60px);
    border: 1px solid rgba(184, 205, 239, 0.15);
    border-radius: 16px;
    background: rgba(10, 17, 28, 0.86);
    text-align: center;
}

.video-library__empty h2 {
    margin: 0 0 10px;
    color: #f3f7ff;
    font: 400 2rem/1 'Bebas Neue', sans-serif;
    letter-spacing: 0.04em;
}

.video-library__empty p {
    margin: 0;
    color: #9aabc0;
}

@keyframes video-card-enter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes video-card-shimmer {
    to {
        background-position: -240% 0;
    }
}

@media (max-width: 1080px) {
    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .video-library__header {
        align-items: start;
        flex-direction: column;
    }

    .video-library__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .video-library {
        width: min(100% - 22px, 1540px);
        padding-top: 28px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-library__heading h1 {
        font-size: clamp(2.8rem, 16vw, 4.8rem);
    }

    .video-library__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .video-library__status {
        grid-column: 1 / -1;
    }

    .video-library__action {
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .video-card,
    .video-card--loading .video-card__embed,
    .video-card__loading-line {
        animation: none;
        transition: none;
    }
}
