/* videos.html — cinematic Video Library page, ILM theme */

.videos-page {
    overflow-x: clip;
}

/* ---------- Hero ---------- */
.videos-hero {
    position: relative;
    min-height: clamp(22rem, 52vh, 36rem);
    display: flex;
    align-items: flex-end;
    padding: 5rem 0 2.5rem;
    color: #fff;
}

.videos-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.videos-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.videos-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.82) 55%, rgba(15, 23, 42, 0.94) 100%),
        radial-gradient(ellipse 120% 80% at 50% 0%, rgba(245, 158, 11, 0.12), transparent 50%);
}

.videos-hero__grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.35;
    mix-blend-mode: overlay;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.videos-hero__shine {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        transparent 40%,
        rgba(255, 255, 255, 0.06) 48%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.06) 52%,
        transparent 60%
    );
}

.videos-hero__inner {
    position: relative;
    z-index: 3;
    width: 100%;
}

.videos-hero__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #fbbf24;
    margin: 0 0 0.75rem;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.videos-hero__title {
    margin: 0 0 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.05;
    font-size: clamp(2.5rem, 7vw, 4.25rem);
    letter-spacing: -0.02em;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
}

.videos-hero__title-main {
    color: #fff;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.45);
}

.videos-hero__title-accent {
    color: #fcd34d;
    font-style: italic;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
}

.videos-hero__lede {
    margin: 0 0 1.75rem;
    max-width: 38rem;
    font-size: clamp(1.02rem, 1.9vw, 1.15rem);
    font-weight: 500;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.videos-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 0;
    margin: 0;
    padding: 0;
    max-width: 42rem;
}

.videos-hero__stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.65rem 1.35rem 0.65rem;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    min-width: 0;
}

.videos-hero__stat:last-child {
    border-right: 0;
    padding-right: 0;
}

.videos-hero__stat-val {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fef3c7;
}

.videos-hero__stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
}

/* Breadcrumb — default (light sections) */
.videos-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: 0 0 1.5rem;
    font-size: 0.88rem;
    color: var(--clr-text-muted);
}

.videos-breadcrumb a {
    color: var(--clr-navy);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.videos-breadcrumb a:hover {
    color: var(--clr-gold-hover);
}

.videos-breadcrumb span[aria-current="page"] {
    color: var(--clr-text-muted);
    font-weight: 500;
}

.videos-breadcrumb .sep {
    color: rgba(15, 23, 42, 0.25);
    user-select: none;
}

/* Breadcrumb on dark hero */
.videos-breadcrumb--hero {
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.videos-breadcrumb--hero a {
    color: rgba(255, 255, 255, 0.85);
}

.videos-breadcrumb--hero a:hover {
    color: #fcd34d;
}

.videos-breadcrumb--hero span[aria-current="page"] {
    color: rgba(255, 255, 255, 0.55);
}

.videos-breadcrumb--hero .sep {
    color: rgba(255, 255, 255, 0.35);
}

/* ---------- Theater (featured embed) ---------- */
.videos-theater {
    position: relative;
    padding: 2.75rem 0 2.5rem;
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 40%, #111c2f 100%);
    color: rgba(255, 255, 255, 0.92);
    border-top: 1px solid rgba(245, 158, 11, 0.12);
}

.videos-theater__ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(245, 158, 11, 0.14), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(59, 130, 246, 0.06), transparent 50%);
}

.videos-theater .container {
    position: relative;
    z-index: 1;
}

.videos-theater__head {
    text-align: center;
    max-width: 38rem;
    margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
}

.videos-theater__label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fbbf24;
    margin-bottom: 0.6rem;
}

.videos-theater__title {
    font-family: var(--font-heading);
    font-size: clamp(1.65rem, 3.2vw, 2.1rem);
    color: #fff;
    margin: 0 0 0.65rem;
    line-height: 1.2;
}

.videos-theater__subtitle {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.6;
    color: rgba(226, 232, 240, 0.78);
}

.videos-theater__stage {
    max-width: 920px;
    margin: 0 auto;
}

.videos-theater__frame {
    position: relative;
    border-radius: calc(var(--radius-lg) + 2px);
    padding: 2px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.45), rgba(15, 23, 42, 0.9) 40%, rgba(245, 158, 11, 0.25));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 32px 64px -24px rgba(0, 0, 0, 0.55);
}

.videos-theater__corners {
    position: absolute;
    inset: 6px;
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: 2;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.videos-theater__corners::before,
.videos-theater__corners::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: rgba(251, 191, 36, 0.55);
    border-style: solid;
}

.videos-theater__corners::before {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
    border-radius: 4px 0 0 0;
}

.videos-theater__corners::after {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 4px 0;
}

.videos-theater__ratio {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050a12;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.videos-theater__ratio iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ---------- Channel strip ---------- */
.videos-strip {
    background: #fafafa;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding: 1rem 0;
}

.videos-strip__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.75rem;
}

.videos-strip__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
}

.videos-strip__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.videos-strip__list li {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clr-navy);
    position: relative;
}

.videos-strip__list li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -0.65rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--clr-gold);
    opacity: 0.65;
}

/* ---------- Catalog grid ---------- */
.videos-catalog {
    padding-top: var(--space-section-y);
    padding-bottom: var(--space-section-y);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.videos-catalog__head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto clamp(2rem, 4vw, 2.75rem);
}

.videos-catalog__title {
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 3.5vw, 2.35rem);
    color: var(--clr-navy);
    margin: 0 0 0.75rem;
    line-height: 1.15;
}

.videos-catalog__lede {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--clr-text-muted);
}

.videos-grid {
    --videos-grid-gap: clamp(1.35rem, 2.2vw, 1.85rem);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--videos-grid-gap);
    align-items: stretch;

    margin: 0 auto;
}

/* Full-width row (e.g. featured embed card on last row) */
@media (min-width: 641px) {
    .videos-grid > .videos-card--centered {
        grid-column: 1 / -1;
        justify-self: stretch;
        width: 100%;
        max-width: none;
    }
}

.videos-card {
    margin: 0;
}

.videos-card__shell {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    border-top: 3px solid var(--clr-gold);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}

.videos-card:hover .videos-card__shell {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(245, 158, 11, 0.28);
}

.videos-card__head {
    padding: 1.15rem 1.25rem 0.85rem;
    text-align: left;
}

.videos-card__network {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-gold-hover);
    margin-bottom: 0.35rem;
}

.videos-card__name {
    font-family: var(--font-heading);
    font-size: clamp(1.12rem, 1.9vw, 1.28rem);
    font-weight: 700;
    color: var(--clr-navy);
    margin: 0;
    line-height: 1.3;
}

.videos-card__screen {
    margin-top: auto;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: #0a0f18;
}

.videos-card__ratio {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.videos-card__ratio iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ---------- Outro CTA ---------- */
.videos-outro {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.videos-outro__card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.04) 0%, rgba(245, 158, 11, 0.08) 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-lg);
}

.videos-outro__icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    font-size: 1.5rem;
}

.videos-outro__copy {
    flex: 1 1 14rem;
    min-width: 0;
}

.videos-outro__title {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    color: var(--clr-navy);
    margin: 0 0 0.35rem;
    line-height: 1.25;
}

.videos-outro__text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    line-height: 1.5;
}

.videos-outro__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .videos-hero__stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.65rem 0;
        max-width: 100%;
    }

    .videos-hero__stat {
        border-right: 0;
        padding: 0.6rem 0.9rem;
        text-align: left;
        border-bottom: 0;
    }

    .videos-hero__stat:not(:last-child) {
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .videos-outro__card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .videos-outro__copy {
        flex: 0 1 auto;
        width: 100%;
    }

    .videos-outro__btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .videos-card:hover .videos-card__shell {
        transform: none;
    }
}
