﻿/*
 * Beast Sheds video library
 * Scope: .videos-page
 */

.videos-page {
    --videos-ink: #181a18;
    --videos-charcoal: #2d302d;
    --videos-accent: #dcec96;
    --videos-accent-deep: #839333;
    --videos-paper: #fff;
    --videos-soft: #f3f4ef;
    --videos-line: rgba(24, 26, 24, .11);
    --videos-muted: #696e68;
    padding-bottom: 0 !important;
    color: var(--videos-charcoal);
    background: var(--videos-paper);
}

.videos-page *,
.videos-page *::before,
.videos-page *::after {
    box-sizing: border-box;
}

.videos-page p {
    line-height: 1.7;
}

.videos-kicker {
    margin: 0 0 .75rem;
    color: var(--videos-accent-deep);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.videos-hero {
    padding: clamp(10rem, 15vw, 13rem) 0 clamp(4.5rem, 9vw, 7.5rem);
    color: #fff;
    background:
        radial-gradient(circle at 83% 18%, rgba(220, 236, 150, .18), transparent 30%),
        radial-gradient(circle at 12% 90%, rgba(255, 255, 255, .06), transparent 34%),
        linear-gradient(135deg, #121412 0%, #2f342f 60%, #151715 100%);
}

.videos-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
    gap: clamp(2.5rem, 7vw, 6rem);
    align-items: center;
}

.videos-hero .videos-kicker,
.videos-library-section .videos-kicker {
    color: var(--videos-accent);
}

.videos-hero h1 {
    max-width: 980px;
    margin: 0 0 1.25rem;
    color: #fff;
    font-size: clamp(3rem, 6.5vw, 6.4rem);
    font-weight: 700;
    line-height: .96;
    letter-spacing: -.045em;
}

.videos-hero-lead {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: clamp(1.08rem, 1.8vw, 1.4rem);
}

.videos-hero-actions,
.videos-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.6rem;
}

.videos-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    padding: .8rem 1.15rem;
    color: #111;
    border: 2px solid transparent;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition:
        transform .2s ease,
        background-color .2s ease,
        border-color .2s ease;
}

.videos-button:hover {
    color: #111;
    text-decoration: none;
    transform: translate(2px, 2px);
}

.videos-button-primary {
    background: var(--videos-accent);
    border-color: var(--videos-accent);
}

.videos-button-primary:hover {
    background: #fff;
    border-color: #fff;
}

.videos-button-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, .68);
}

.videos-button-secondary:hover {
    color: #111;
    background: #fff;
    border-color: #fff;
}

.videos-button-dark {
    color: #fff;
    background: var(--videos-charcoal);
    border-color: var(--videos-charcoal);
}

.videos-button-dark:hover {
    color: #111;
    background: var(--videos-accent);
    border-color: var(--videos-accent);
}

.videos-hero-topics {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem 1.2rem;
    margin-top: 1.8rem;
    color: rgba(255, 255, 255, .72);
    font-size: .86rem;
    font-weight: 700;
}

.videos-hero-topics span {
    display: inline-flex;
    gap: .45rem;
    align-items: center;
}

.videos-hero-topics i {
    color: var(--videos-accent);
}

.videos-hero-panel {
    padding: clamp(1.35rem, 3vw, 2.15rem);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 24px 68px rgba(0, 0, 0, .27);
}

.videos-panel-label {
    margin: 0 0 .8rem;
    color: var(--videos-accent);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.videos-panel-row {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1.1rem 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.videos-panel-row:first-of-type {
    border-top: 0;
}

.videos-panel-icon {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    color: #111;
    background: var(--videos-accent);
    border-radius: 50%;
}

.videos-panel-row strong {
    display: block;
    margin-bottom: .3rem;
    color: #fff;
}

.videos-panel-row p {
    margin: 0;
    color: rgba(255, 255, 255, .64);
    font-size: .88rem;
}

.videos-feature-section,
.videos-library-section,
.videos-topics-section,
.videos-final-section {
    padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.videos-feature-grid {
    display: grid;
    grid-template-columns: minmax(260px, .38fr) minmax(0, .62fr);
    gap: clamp(2.25rem, 6vw, 5rem);
    align-items: center;
}

.videos-feature-copy h2,
.videos-section-heading h2,
.videos-final-card h2 {
    margin: 0 0 1rem;
    font-size: clamp(2.2rem, 4.5vw, 4.1rem);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.videos-feature-copy > p:not(.videos-kicker),
.videos-section-heading > p:last-child,
.videos-final-card p {
    color: var(--videos-muted);
    font-size: 1.02rem;
}

.videos-feature-list {
    display: grid;
    gap: .6rem;
    margin: 1.35rem 0 0;
    padding: 0;
    list-style: none;
}

.videos-feature-list li {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    color: var(--videos-charcoal);
    font-size: .9rem;
    font-weight: 700;
}

.videos-feature-list i {
    margin-top: .25rem;
    color: var(--videos-accent-deep);
}

.videos-feature-player {
    overflow: hidden;
    background: #000;
    box-shadow: 0 24px 66px rgba(0, 0, 0, .2);
}

.videos-feature-player video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.videos-library-section {
    color: #fff;
    background: var(--videos-ink);
}

.videos-section-heading {
    max-width: 850px;
    margin: 0 auto clamp(2.25rem, 5vw, 4rem);
    text-align: center;
}

.videos-section-heading-light h2 {
    color: #fff;
}

.videos-section-heading-light > p:last-child {
    color: rgba(255, 255, 255, .66);
}

.videos-library-card {
    overflow: hidden;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .3);
}

.videos-library-toolbar {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    background: rgba(255, 255, 255, .055);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.videos-library-toolbar > div {
    display: inline-flex;
    gap: .6rem;
    align-items: center;
}

.videos-live-dot {
    display: inline-block;
    width: .7rem;
    height: .7rem;
    background: var(--videos-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(220, 236, 150, .12);
}

.videos-library-toolbar strong {
    color: #fff;
    font-size: .9rem;
}

.videos-library-toolbar a {
    display: inline-flex;
    gap: .45rem;
    align-items: center;
    color: var(--videos-accent);
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
}

.videos-channel-player {
    position: relative;
    min-height: 360px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.videos-channel-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.videos-library-help {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.videos-library-help > div {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    padding: 1rem;
    border-right: 1px solid rgba(255, 255, 255, .12);
}

.videos-library-help > div:last-child {
    border-right: 0;
}

.videos-library-help i {
    margin-top: .2rem;
    color: var(--videos-accent);
}

.videos-library-help span {
    color: rgba(255, 255, 255, .62);
    font-size: .8rem;
    line-height: 1.5;
}

.videos-topics-section {
    background: var(--videos-soft);
}

.videos-topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .8rem;
}

.videos-topic-card {
    position: relative;
    min-height: 285px;
    padding: 1.45rem;
    background: #fff;
    border: 1px solid var(--videos-line);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .055);
}

.videos-topic-card > span {
    display: block;
    margin-bottom: 1.25rem;
    color: var(--videos-accent-deep);
    font-size: .75rem;
    font-weight: 900;
}

.videos-topic-card > i {
    display: inline-flex;
    width: 3.1rem;
    height: 3.1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #111;
    background: var(--videos-accent);
    border-radius: 50%;
}

.videos-topic-card h3 {
    margin: 0 0 .55rem;
    font-size: 1.25rem;
}

.videos-topic-card p {
    color: var(--videos-muted);
    font-size: .88rem;
}

.videos-final-section {
    background: #fff;
}

.videos-final-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    background: #fff;
    border: 1px solid var(--videos-line);
    box-shadow: 0 20px 54px rgba(0, 0, 0, .085);
}

.videos-final-actions {
    max-width: 420px;
    justify-content: flex-end;
}

@media (max-width: 991px) {
    .videos-hero {
        padding-top: 9rem;
    }

    .videos-hero-grid,
    .videos-feature-grid,
    .videos-final-card {
        grid-template-columns: 1fr;
    }

    .videos-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .videos-final-actions {
        max-width: none;
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .videos-library-help {
        grid-template-columns: 1fr;
    }

    .videos-library-help > div {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .videos-library-help > div:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 540px) {
    .videos-hero {
        padding-top: 8rem;
    }

    .videos-hero h1 {
        font-size: clamp(2.6rem, 13vw, 4.15rem);
    }

    .videos-hero-actions,
    .videos-final-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .videos-button {
        width: 100%;
    }

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

    .videos-library-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .videos-channel-player {
        min-height: 230px;
    }

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

    .videos-topic-card {
        min-height: 0;
    }

    .videos-final-card {
        padding: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .videos-page *,
    .videos-page *::before,
    .videos-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* Featured YouTube player */
.videos-feature-player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    box-shadow: 0 24px 66px rgba(0, 0, 0, .2);
}

.videos-feature-player iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}


/* Curated essential videos */
.videos-essential-section {
    padding: clamp(4.5rem, 9vw, 8rem) 0;
    background: var(--videos-soft);
}

.videos-essential-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.videos-essential-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--videos-line);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .07);
}

.videos-essential-player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.videos-essential-player iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.videos-essential-copy {
    padding: 1.2rem;
}

.videos-essential-copy > span {
    display: block;
    margin-bottom: .45rem;
    color: var(--videos-accent-deep);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.videos-essential-copy h3 {
    margin: 0 0 .55rem;
    color: var(--videos-charcoal);
    font-size: 1.22rem;
    line-height: 1.2;
}

.videos-essential-copy p {
    margin: 0;
    color: var(--videos-muted);
    font-size: .87rem;
    line-height: 1.62;
}

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

@media (max-width: 600px) {
    .videos-essential-grid {
        grid-template-columns: 1fr;
    }
}
