:root {
    --video-bg: #f6f5f2;
    --video-surface: #ffffff;
    --video-text: #181716;
    --video-muted: #68635d;
    --video-line: #e5e0d9;
    --video-accent: #c44424;
    --video-accent-dark: #963019;
    --video-soft: #f7e8df;
    --video-radius: 18px;
    --video-shadow: 0 16px 42px rgba(39, 29, 20, .08);
}

.video-page,
.video-page * {
    box-sizing: border-box;
}

.video-page {
    min-height: 65vh;
    padding: 28px 0 64px;
    background: var(--video-bg);
    color: var(--video-text);
}

.video-container {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
}

.video-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    margin-bottom: 24px;
    color: var(--video-muted);
    font-size: 13px;
}

.video-breadcrumb a {
    color: var(--video-accent-dark);
    text-decoration: none;
}

.video-breadcrumb strong {
    min-width: 0;
    overflow: hidden;
    color: var(--video-text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-hero {
    max-width: 760px;
    padding: 24px 0 18px;
}

.video-eyebrow,
.video-kicker {
    color: var(--video-accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.video-hero h1,
.video-detail-header h1 {
    margin: 10px 0 14px;
    color: var(--video-text);
    font-size: clamp(38px, 7vw, 68px);
    line-height: .98;
    letter-spacing: -.045em;
}

.video-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--video-muted);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.65;
}

.video-section {
    margin-top: 38px;
}

.video-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.video-section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -.03em;
}

.video-section-heading > span {
    color: var(--video-muted);
    font-size: 13px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.video-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--video-line);
    border-radius: var(--video-radius);
    background: var(--video-surface);
    box-shadow: var(--video-shadow);
}

.video-card-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr);
}

.video-card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #211f1d;
}

.video-card-featured .video-card-thumb {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 360px;
}

.video-card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.video-card-thumb:hover img,
.video-card-thumb:focus-visible img {
    transform: scale(1.025);
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .88);
    border-radius: 50%;
    background: rgba(196, 68, 36, .94);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
    transform: translate(-50%, -50%);
}

.video-duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .78);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.video-card-body {
    display: flex;
    min-width: 0;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
}

.video-card-featured .video-card-body {
    justify-content: center;
    padding: clamp(26px, 4vw, 48px);
}

.video-card h2,
.video-card h3 {
    margin: 9px 0 10px;
    font-size: 21px;
    line-height: 1.22;
    letter-spacing: -.02em;
}

.video-card-featured h2 {
    font-size: clamp(28px, 3.3vw, 42px);
}

.video-card h2 a,
.video-card h3 a {
    color: var(--video-text);
    text-decoration: none;
}

.video-card h2 a:hover,
.video-card h3 a:hover {
    color: var(--video-accent-dark);
}

.video-card p {
    margin: 0 0 16px;
    color: var(--video-muted);
    font-size: 15px;
    line-height: 1.65;
}

.video-meta,
.video-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 18px;
    color: var(--video-muted);
    font-size: 13px;
}

.video-watch {
    display: inline-flex;
    min-height: 44px;
    margin-top: 18px;
    padding: 0 17px;
    border-radius: 999px;
    background: var(--video-accent);
    color: #fff !important;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.video-watch:hover,
.video-watch:focus-visible {
    background: var(--video-accent-dark);
}

.video-pagination {
    display: flex;
    margin-top: 34px;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--video-muted);
    font-size: 13px;
}

.video-pagination a {
    display: inline-flex;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--video-line);
    border-radius: 999px;
    background: #fff;
    color: var(--video-text);
    font-weight: 800;
    text-decoration: none;
    align-items: center;
}

.video-state {
    margin-top: 30px;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid var(--video-line);
    border-radius: var(--video-radius);
    background: var(--video-surface);
    text-align: center;
    box-shadow: var(--video-shadow);
}

.video-state h1,
.video-state h2 {
    margin: 0 0 10px;
}

.video-state p {
    margin: 0;
    color: var(--video-muted);
    line-height: 1.65;
}

.video-state .video-watch {
    margin-top: 20px;
}

.video-error-code {
    color: var(--video-accent) !important;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: .15em;
}

.video-detail {
    overflow: hidden;
    border: 1px solid var(--video-line);
    border-radius: 24px;
    background: var(--video-surface);
    box-shadow: var(--video-shadow);
}

.video-detail-header {
    max-width: 900px;
    padding: clamp(26px, 5vw, 58px);
}

.video-detail-header h1 {
    max-width: 980px;
    font-size: clamp(34px, 6vw, 64px);
}

.video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

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

.video-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: clamp(28px, 5vw, 58px);
    padding: clamp(28px, 5vw, 58px);
}

.video-article {
    min-width: 0;
    color: #302d29;
    font-size: 17px;
    line-height: 1.82;
}

.video-article section + section,
.video-disclosure {
    margin-top: 32px;
}

.video-article h2 {
    margin: 0 0 15px;
    color: var(--video-text);
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.video-article h3,
.video-article h4 {
    margin: 28px 0 10px;
    color: var(--video-text);
}

.video-article p:first-of-type {
    margin-top: 0;
}

.video-article a {
    color: var(--video-accent-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.video-article .video-timestamp {
    display: inline-flex;
    min-height: 30px;
    margin: 2px 3px 2px 0;
    padding: 3px 8px;
    border: 1px solid #d7b5a7;
    border-radius: 7px;
    background: #fff8f4;
    color: var(--video-accent-dark);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .9em;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    vertical-align: baseline;
    align-items: center;
}

.video-article .video-timestamp:hover,
.video-article .video-timestamp:focus-visible,
.video-article .video-timestamp[aria-current="true"] {
    border-color: var(--video-accent);
    background: var(--video-accent);
    color: #fff;
    outline-offset: 3px;
}

.video-summary {
    padding: 24px;
    border-left: 4px solid var(--video-accent);
    border-radius: 0 14px 14px 0;
    background: var(--video-soft);
}

.video-disclosure {
    overflow: hidden;
    border: 1px solid var(--video-line);
    border-radius: 14px;
}

.video-disclosure summary {
    padding: 17px 20px;
    color: var(--video-text);
    cursor: pointer;
    font-weight: 900;
}

.video-disclosure > div {
    padding: 0 20px 20px;
}

.video-side {
    align-self: start;
    padding: 22px;
    border: 1px solid var(--video-line);
    border-radius: 16px;
    background: #fbfaf8;
}

.video-side h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.video-side dl,
.video-side dd {
    margin: 0;
}

.video-side dl > div {
    padding: 12px 0;
    border-top: 1px solid var(--video-line);
}

.video-side dt {
    margin-bottom: 4px;
    color: var(--video-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.video-side dd {
    overflow-wrap: anywhere;
    font-size: 14px;
    font-weight: 750;
}

.video-related {
    margin-top: 48px;
}

.video-footer {
    padding: 28px 0;
    background: #181716;
    color: #fff;
}

.video-footer .container {
    display: flex;
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.video-footer span {
    color: #c9c4bd;
    font-size: 13px;
}

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

    .video-card-featured,
    .video-detail-layout {
        grid-template-columns: 1fr;
    }

    .video-card-featured .video-card-thumb {
        min-height: 0;
    }

    .video-side {
        display: none;
    }
}

@media (max-width: 640px) {
    .video-page {
        padding: 18px 0 44px;
    }

    .video-container {
        width: calc(100% - 18px);
    }

    .video-breadcrumb {
        margin-bottom: 14px;
    }

    .video-hero {
        padding-top: 16px;
    }

    .video-hero h1 {
        font-size: 42px;
    }

    .video-section {
        margin-top: 30px;
    }

    .video-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

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

    .video-card-body,
    .video-card-featured .video-card-body {
        padding: 18px;
    }

    .video-card-featured h2 {
        font-size: 27px;
    }

    .video-play {
        width: 50px;
        height: 50px;
        font-size: 17px;
    }

    .video-pagination {
        justify-content: space-between;
        gap: 8px;
    }

    .video-pagination span {
        font-size: 11px;
        text-align: center;
    }

    .video-pagination a {
        padding: 0 12px;
        font-size: 12px;
    }

    .video-detail {
        border-radius: 16px;
    }

    .video-detail-header,
    .video-detail-layout {
        padding: 22px 17px;
    }

    .video-detail-header h1 {
        font-size: 35px;
        overflow-wrap: anywhere;
    }

    .video-article {
        font-size: 16px;
        line-height: 1.72;
    }

    .video-summary {
        padding: 18px;
    }

    .video-footer .container {
        width: calc(100% - 20px);
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .video-card-thumb img {
        transition: none;
    }
}
