.videos-page {
    --videos-ink: #06142a;
    --videos-deep: #050f20;
    --videos-gold: #f5c542;
    --videos-blue: #2a8bff;
    --videos-line: rgba(255, 255, 255, 0.1);
    --videos-surface: rgba(255, 255, 255, 0.04);
    background: var(--videos-deep);
    color: #fff;
}

.videos-shell {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    padding: clamp(6.5rem, 11vw, 9.5rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 6vw, 5rem);
    background:
        radial-gradient(circle at 50% -10%, rgba(42, 139, 255, 0.16), transparent 55%),
        linear-gradient(180deg, #071224 0%, #0a1730 55%, #06101f 100%);
}

.videos-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 78%);
    pointer-events: none;
}

.videos-atmosphere {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.videos-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.videos-glow--gold {
    top: 6%;
    right: 4%;
    width: 26rem;
    height: 26rem;
    background: rgba(245, 197, 66, 0.13);
}

.videos-glow--blue {
    bottom: 8%;
    left: -6%;
    width: 30rem;
    height: 30rem;
    background: rgba(42, 139, 255, 0.14);
}

.videos-hero,
.videos-library,
.videos-channel {
    max-width: 1220px;
    margin: 0 auto;
}

/* ---------- Hero ---------- */

.videos-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(22rem, 0.88fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 3.5rem);
}

.videos-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    color: var(--videos-gold);
    font: 700 0.75rem/1.2 "Space Grotesk", sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.videos-kicker::before {
    content: "";
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(245, 197, 66, 0.15);
}

.videos-hero h1 {
    max-width: 18ch;
    margin: 0;
    font: 800 clamp(2.4rem, 4.2vw, 3.8rem)/1.02 "Sora", sans-serif;
    letter-spacing: -0.045em;
    text-shadow: 0 4px 26px rgba(0, 0, 0, 0.3);
}

.videos-hero h1 span {
    color: var(--videos-gold);
}

.videos-hero > .videos-hero__copy > p {
    max-width: 34rem;
    margin: 1.35rem 0 0;
    color: rgba(255, 255, 255, 0.68);
    font: 400 clamp(1rem, 1.15vw, 1.1rem)/1.6 "Space Grotesk", sans-serif;
}

.videos-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.9rem;
}

.videos-cta {
    display: inline-flex;
    gap: 0.6rem;
    align-items: center;
    padding: 0.9rem 1.4rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font: 700 0.9rem/1 "Space Grotesk", sans-serif;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.videos-cta svg {
    width: 1.15rem;
    height: 1.15rem;
}

.videos-cta--primary {
    background: var(--videos-gold);
    color: var(--videos-ink);
}

.videos-cta--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(245, 197, 66, 0.28);
}

.videos-cta--ghost {
    border-color: var(--videos-line);
    background: var(--videos-surface);
    color: rgba(255, 255, 255, 0.85);
}

.videos-cta--ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 197, 66, 0.55);
    color: #fff;
}

.videos-host {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    max-width: 26rem;
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.videos-host__portrait {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    border: 1px solid rgba(245, 197, 66, 0.45);
    object-fit: cover;
}

.videos-host__copy {
    display: grid;
    gap: 0.15rem;
}

.videos-host__name {
    color: #fff;
    font: 700 0.92rem/1.2 "Sora", sans-serif;
}

.videos-host__role {
    color: rgba(255, 255, 255, 0.55);
    font: 500 0.76rem/1.2 "Space Grotesk", sans-serif;
}

.videos-stage-frame {
    position: relative;
    padding: 0.75rem;
    border: 1px solid var(--videos-line);
    border-radius: 1.4rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
}

.videos-stage-meta {
    padding: 1.1rem 0.85rem 0.55rem;
}

.videos-stage-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--videos-gold);
    font: 700 0.68rem/1 "Space Grotesk", sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.videos-stage-badge::before {
    content: "";
    width: 1.35rem;
    height: 1px;
    background: currentColor;
}

.videos-stage-meta h2 {
    margin: 0.75rem 0 0.4rem;
    color: #fff;
    font: 700 clamp(1.15rem, 1.6vw, 1.5rem)/1.25 "Sora", sans-serif;
    letter-spacing: -0.02em;
}

.videos-stage-meta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font: 400 0.92rem/1.55 "Space Grotesk", sans-serif;
}

/* ---------- Player ---------- */

.video-player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 0.9rem;
    background: #04101f;
}

.video-player--featured {
    border-radius: 1rem;
}

.video-player__trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.video-player__thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms cubic-bezier(0.2, 0.7, 0.3, 1), filter 300ms ease;
}

.video-player__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 16, 31, 0.05) 0%, rgba(4, 16, 31, 0.55) 100%);
    transition: opacity 300ms ease;
}

.video-player__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 50%;
    background: var(--videos-gold);
    color: var(--videos-ink);
    transform: translate(-50%, -50%);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
    transition: transform 260ms cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 260ms ease;
}

.video-player__play svg {
    width: 1.6rem;
    height: 1.6rem;
    margin-left: 0.15rem;
}

.video-player__trigger:hover .video-player__thumb,
.video-player__trigger:focus-visible .video-player__thumb {
    transform: scale(1.05);
}

.video-player__trigger:hover .video-player__play,
.video-player__trigger:focus-visible .video-player__play {
    transform: translate(-50%, -50%) scale(1.09);
    box-shadow: 0 16px 42px rgba(245, 197, 66, 0.4);
}

.video-player__trigger:focus-visible {
    outline: 2px solid var(--videos-gold);
    outline-offset: 3px;
}

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

/* ---------- Library ---------- */

.videos-library {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0 0;
}

.videos-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.videos-section-heading h2 {
    margin: 0;
    color: #fff;
    font: 700 clamp(1.9rem, 3.2vw, 3rem)/1.05 "Sora", sans-serif;
    letter-spacing: -0.04em;
}

.videos-count {
    color: rgba(255, 255, 255, 0.5);
    font: 600 0.8rem/1 "Space Grotesk", sans-serif;
    white-space: nowrap;
}

.videos-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.35rem 0 0;
}

.videos-filter {
    padding: 0.55rem 1.05rem;
    border: 1px solid var(--videos-line);
    border-radius: 999px;
    background: var(--videos-surface);
    color: rgba(255, 255, 255, 0.7);
    font: 650 0.82rem/1 "Space Grotesk", sans-serif;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.videos-filter:hover {
    border-color: rgba(245, 197, 66, 0.45);
    color: #fff;
}

.videos-filter.is-active {
    border-color: transparent;
    background: var(--videos-gold);
    color: var(--videos-ink);
}

.videos-filter:focus-visible {
    outline: 2px solid var(--videos-gold);
    outline-offset: 2px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: clamp(1.1rem, 2vw, 1.75rem);
    margin-top: 1.75rem;
}

.video-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--videos-line);
    border-radius: 1.1rem;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
    transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 197, 66, 0.4);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42);
}

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

.video-card .video-player {
    border-radius: 1.1rem 1.1rem 0 0;
}

.video-card__copy {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.2rem 1.35rem 1.35rem;
}

.video-card__category {
    color: var(--videos-gold);
    font: 700 0.68rem/1.2 "Space Grotesk", sans-serif;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.video-card h3 {
    margin: 0.6rem 0 0.5rem;
    color: #fff;
    font: 700 1.24rem/1.25 "Sora", sans-serif;
    letter-spacing: -0.02em;
}

.video-card p {
    margin: 0 0 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    font: 400 0.93rem/1.55 "Space Grotesk", sans-serif;
}

.video-card__link {
    margin-top: auto;
    color: rgba(255, 255, 255, 0.78);
    font: 700 0.82rem/1 "Space Grotesk", sans-serif;
    text-decoration: none;
    transition: color 180ms ease;
}

.video-card__link:hover {
    color: var(--videos-gold);
}

.videos-empty {
    margin: 2.5rem 0 0;
    color: rgba(255, 255, 255, 0.5);
    font: 500 0.95rem/1.5 "Space Grotesk", sans-serif;
    text-align: center;
}

/* ---------- Channel CTA ---------- */

.videos-channel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    margin-top: clamp(3.5rem, 6vw, 5rem);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border: 1px solid var(--videos-line);
    border-radius: 1.4rem;
    background:
        radial-gradient(circle at 12% 50%, rgba(245, 197, 66, 0.12), transparent 60%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
}

.videos-channel__logo {
    width: clamp(9rem, 14vw, 12.5rem);
    height: auto;
}

.videos-channel__copy h2 {
    margin: 0;
    color: #fff;
    font: 700 clamp(1.25rem, 2.2vw, 1.85rem)/1.2 "Sora", sans-serif;
    letter-spacing: -0.03em;
}

.videos-channel__copy p {
    margin: 0.5rem 0 0;
    color: rgba(255, 255, 255, 0.6);
    font: 400 0.95rem/1.55 "Space Grotesk", sans-serif;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .videos-hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .videos-hero h1 {
        max-width: 20ch;
    }

    .videos-channel {
        grid-template-columns: minmax(0, 1fr);
        justify-items: start;
        text-align: left;
    }
}

@media (max-width: 760px) {
    .videos-shell {
        padding-top: 7rem;
    }

    .videos-section-heading {
        align-items: start;
        flex-direction: column;
    }

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

    .video-player__play {
        width: 3.4rem;
        height: 3.4rem;
    }

    .video-player__play svg {
        width: 1.3rem;
        height: 1.3rem;
    }

    .videos-cta {
        flex: 1 1 auto;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .videos-cta,
    .video-card,
    .video-player__thumb,
    .video-player__play {
        transition: none;
    }

    .videos-cta:hover,
    .video-card:hover,
    .video-player__trigger:hover .video-player__thumb,
    .video-player__trigger:hover .video-player__play {
        transform: none;
    }

    .video-player__trigger:hover .video-player__play {
        transform: translate(-50%, -50%);
    }
}
