.video-page-shell {
    --video-ink: #14231d;
    --video-muted: #64746c;
    --video-surface: #ffffff;
    --video-line: #e1e9e5;
    background: #f6f9f7;
    color: var(--video-ink);
}

.video-page-shell svg {
    width: 1em;
    height: 1em;
    stroke-width: 2;
}

.video-index-hero {
    padding: 2.1rem 0 1.7rem;
    border-bottom: 1px solid #d8ddd9;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .04);
}

.video-index-hero .container {
    display: block;
}

.video-index-heading {
    max-width: 760px;
}

.video-index-heading h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.9rem, 3.2vw, 2.55rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.video-result-count {
    margin: .55rem 0 0;
    color: var(--text-secondary);
    font-size: 1.02rem;
}

.video-result-count strong {
    color: var(--text);
    font-weight: 900;
}

.video-index-content {
    padding: 3rem 0 2.5rem;
    border-top: 1px solid #e1e1de;
    background: #f4f4f2;
}

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

.video-list-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d8ddd9;
    border-radius: 18px;
    background: var(--video-surface);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.video-list-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, .26);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .075);
}

.video-list-card > a {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.video-card-image {
    position: relative;
    overflow: hidden;
    background: #12201a;
    aspect-ratio: 16 / 9;
}

.video-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 16, 12, .45), transparent 55%);
    pointer-events: none;
}

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

.video-list-card:hover .video-card-image img {
    transform: scale(1.045);
}

.video-card-play {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: rgba(16, 185, 129, .94);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
    color: #fff;
    transition: transform .25s ease, background .25s ease;
}

.video-card-play svg {
    width: 1.3rem;
    height: 1.3rem;
    margin-left: .16rem;
    fill: currentColor;
}

.video-list-card:hover .video-card-play {
    transform: translate(-50%, -50%) scale(1.08);
    background: #059669;
}

.video-card-duration {
    position: absolute;
    z-index: 2;
    right: .75rem;
    bottom: .7rem;
    padding: .25rem .48rem;
    border-radius: 7px;
    background: rgba(10, 18, 14, .82);
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    line-height: 1;
}

.video-card-copy {
    display: flex;
    min-height: 178px;
    padding: 1.3rem 1.4rem;
    flex: 1;
    flex-direction: column;
}

.video-card-company {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 .65rem;
    color: var(--primary-800);
    font-size: .82rem;
    font-weight: 700;
}

.video-card-company svg {
    flex: 0 0 auto;
}

.video-card-copy h2 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--video-ink);
    font-size: 1.14rem;
    line-height: 1.42;
    letter-spacing: -.012em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.video-card-cta {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    margin-top: auto;
    padding-top: 1rem;
    width: max-content;
    min-height: 40px;
    margin-top: auto;
    padding: .65rem 1rem;
    border: 1px solid var(--primary);
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: .88rem;
    font-weight: 800;
}

.video-card-cta svg {
    transition: transform .2s ease;
}

.video-list-card:hover .video-card-cta svg {
    transform: translate(2px, -2px);
}

.video-detail-page {
    padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3.5rem, 6vw, 5.5rem);
}

.video-back-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1.1rem;
    color: var(--video-muted);
    font-size: .92rem;
    font-weight: 700;
}

.video-back-link:hover {
    color: var(--primary-800);
}

.video-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 1.5rem;
    align-items: start;
}

.video-watch-card,
.video-company-card {
    border: 1px solid var(--video-line);
    border-radius: 22px;
    background: var(--video-surface);
    box-shadow: 0 12px 34px rgba(20, 35, 29, .06);
}

.video-watch-card {
    min-width: 0;
    padding: clamp(1rem, 2.7vw, 1.75rem);
}

.video-title-group {
    padding: .15rem .1rem 1.35rem;
}

.video-title-group > p {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .55rem;
    color: var(--primary-800);
    font-size: .9rem;
    font-weight: 800;
}

.video-title-group h1 {
    margin: 0;
    color: var(--video-ink);
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.youtube-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #0d1713;
    box-shadow: 0 12px 32px rgba(10, 20, 15, .18);
    aspect-ratio: 16 / 9;
}

.youtube-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-description {
    margin-top: 1.5rem;
    padding: .3rem .15rem .15rem;
}

.video-description h2 {
    margin: 0 0 .55rem;
    color: var(--video-ink);
    font-size: 1.08rem;
}

.video-description p {
    margin: 0;
    color: var(--video-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.video-company-card {
    position: sticky;
    top: 102px;
    padding: 1.4rem;
}

.video-company-icon,
.video-empty-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-bottom: 1.1rem;
    border-radius: 15px;
    background: var(--primary-50);
    color: var(--primary-800);
}

.video-company-icon svg,
.video-empty-icon svg {
    width: 1.45rem;
    height: 1.45rem;
}

.video-company-label {
    color: var(--video-muted);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.video-company-card h2 {
    margin: .3rem 0 .6rem;
    color: var(--video-ink);
    font-size: 1.28rem;
    line-height: 1.25;
}

.video-company-card p {
    margin: 0;
    color: var(--video-muted);
    font-size: .94rem;
    line-height: 1.65;
}

.video-primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 46px;
    margin-top: 1.25rem;
    padding: .78rem 1rem;
    border-radius: 12px;
    background: var(--primary);
    box-shadow: 0 8px 18px rgba(16, 185, 129, .2);
    color: #fff;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.video-company-card .video-primary-link {
    width: 100%;
}

.video-primary-link:hover {
    transform: translateY(-1px);
    background: var(--primary-800);
    box-shadow: 0 10px 22px rgba(6, 95, 70, .22);
    color: #fff;
}

.video-empty {
    max-width: 680px;
    margin: 1rem auto;
    padding: clamp(2.25rem, 6vw, 4rem) 1.5rem;
    border: 1px dashed #bfd0c7;
    border-radius: 24px;
    background: var(--video-surface);
    color: var(--video-muted);
    text-align: center;
}

.video-empty-icon {
    margin-right: auto;
    margin-left: auto;
}

.video-empty h1,
.video-empty h2 {
    margin: 0 0 .5rem;
    color: var(--video-ink);
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.video-empty p {
    margin: 0 auto;
    line-height: 1.65;
}

.video-not-found-page {
    padding: clamp(3rem, 8vw, 7rem) 0;
}

.company-video-section {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
}

.company-video-section > h2 {
    margin: 0 0 1.25rem;
    color: var(--text);
    font-size: 1.25rem;
}

.company-video-list {
    display: grid;
    gap: 1.5rem;
}

.company-video-item h3 {
    margin: 1rem 0 .45rem;
    color: var(--text);
    font-size: 1.1rem;
}

.company-video-item p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.65;
}

.company-video-detail-link {
    display: inline-flex;
    margin-top: .8rem;
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.company-video-detail-link:hover {
    text-decoration: underline;
}

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

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

    .video-company-card {
        position: static;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 1rem;
        align-items: center;
    }

    .video-company-icon {
        margin: 0;
    }

    .video-company-card .video-primary-link {
        width: auto;
        margin: 0;
    }

    .firm-detail-main > .company-video-section {
        order: 2 !important;
        margin-top: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 680px) {
    .video-index-hero {
        padding: 1.45rem 0 1.05rem;
    }

    .video-result-count {
        font-size: 1.05rem;
    }

    .video-index-heading h1 {
        font-size: 1.9rem;
        line-height: 1.14;
    }

    .video-index-content {
        padding-top: 2.2rem;
    }

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

    .video-card-copy {
        min-height: 160px;
    }

    .video-detail-page {
        padding-top: 1rem;
    }

    .video-watch-card,
    .video-company-card {
        border-radius: 18px;
    }

    .video-watch-card {
        padding: .8rem;
    }

    .video-title-group {
        padding: .35rem .25rem 1rem;
    }

    .video-title-group h1 {
        font-size: 1.45rem;
    }

    .youtube-frame {
        border-radius: 12px;
    }

    .video-description {
        padding: 0 .25rem .25rem;
    }

    .video-company-card {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
    }

    .video-company-card .video-primary-link {
        width: 100%;
        margin-top: .25rem;
    }

    .company-video-section {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .video-list-card,
    .video-card-image img,
    .video-card-play,
    .video-card-cta svg,
    .video-primary-link {
        transition: none;
    }
}
