/* ============================================================
   05 · AVICIENA LAW FIRM YOUTUBE (MODERN MINIMALIST CINEMA)
   ============================================================ */

.yt-section {
    padding: 72px 0 88px;
    background: var(--paper);
    border-top: 1px solid var(--border);
}

.yt-section .section-bar {
    margin-bottom: 28px;
}

.yt-channel-cta {
    color: var(--ink);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.yt-channel-cta:hover {
    color: var(--maroon);
    transform: translateX(2px);
}

.yt-netflix-shell {
    scroll-margin-top: 86px;
}

/* ---------- CLEAN MINIMALIST BILLBOARD PLAYER ---------- */
.yt-billboard {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 28px;
    align-items: center;
    background: #ffffff;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
    margin-bottom: 28px;
    scroll-margin-top: 96px;
}

.yt-stage-screen {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #09090b;
    border-radius: 12px;
    overflow: hidden;
}

.yt-stage-poster {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.yt-stage-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s var(--ease);
}

.yt-stage-poster:hover img {
    transform: scale(1.025);
}

.yt-stage-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 45%, rgba(0, 0, 0, 0.36) 100%);
    pointer-events: none;
}

.yt-stage-play-trigger {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(15, 16, 20, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s var(--spring), background 0.2s ease;
}

.yt-stage-poster:hover .yt-stage-play-trigger {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--maroon);
}

.yt-stage-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000000;
}

.yt-billboard-info {
    padding: 8px 14px 8px 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.yt-series-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--maroon);
}

.yt-billboard-info h2 {
    font-size: clamp(19px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0;
}

.yt-active-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
}

.yt-meta-cat {
    font-weight: 600;
    color: var(--ink);
}

.yt-active-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--muted);
    margin: 2px 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-billboard-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.yt-btn-ext {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid rgba(15, 23, 42, 0.09);
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.yt-btn-ext:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #ffffff;
}

/* ---------- CATEGORY FILTER BAR ---------- */
.yt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.yt-row-heading {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.yt-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.yt-pill {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: var(--muted);
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.yt-pill:hover {
    color: var(--ink);
    border-color: rgba(15, 23, 42, 0.24);
}

.yt-pill.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #ffffff;
}

/* ---------- HORIZONTAL CAROUSEL STRIP ---------- */
.yt-rail-wrap {
    position: relative;
}

.yt-cards-grid {
    display: flex;
    flex-direction: row;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding: 4px 2px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.2) transparent;
}

.yt-cards-grid.is-auto-gliding {
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
}

.yt-cards-grid::-webkit-scrollbar {
    height: 6px;
}

.yt-cards-grid::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.05);
    border-radius: 999px;
}

.yt-cards-grid::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.22);
    border-radius: 999px;
}

.yt-cards-grid::-webkit-scrollbar-thumb:hover {
    background: var(--maroon);
}

.yt-slide-btn {
    position: absolute;
    top: 84px;
    transform: translateY(-50%);
    z-index: 6;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--ink);
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s var(--spring), opacity 0.18s ease;
}

.yt-slide-btn:hover:not(:disabled) {
    background: var(--ink);
    border-color: var(--ink);
    color: #ffffff;
    transform: translateY(-50%) scale(1.06);
}

.yt-slide-btn:disabled {
    opacity: 0;
    pointer-events: none;
}

.yt-slide-btn.prev {
    left: -14px;
}

.yt-slide-btn.next {
    right: -14px;
}

.yt-card {
    flex: 0 0 262px;
    scroll-snap-align: start;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 13px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.22s var(--spring), border-color 0.2s ease, box-shadow 0.22s ease;
}

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

.yt-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 23, 42, 0.2);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.yt-card.is-playing {
    border-color: var(--maroon);
    box-shadow: 0 10px 24px rgba(143, 0, 8, 0.12);
}

.yt-thumb-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #e5e7eb;
    overflow: hidden;
}

.yt-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--ease);
}

.yt-card:hover .yt-thumb-box img {
    transform: scale(1.04);
}

.yt-card-hover-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 16, 20, 0.78);
    color: #ffffff;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 2px;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s var(--spring), background 0.18s ease;
}

.yt-card:hover .yt-card-hover-play,
.yt-card.is-playing .yt-card-hover-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.yt-card.is-playing .yt-card-hover-play {
    background: var(--maroon);
}

.yt-active-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--maroon);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.yt-card.is-playing .yt-active-bar {
    opacity: 1;
}

.yt-card-body {
    padding: 12px 14px 13px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 5px;
}

.yt-card-cat {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}

.yt-card-body h3 {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-card-foot {
    margin-top: auto;
    padding-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--muted);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 940px) {
    .yt-billboard {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 14px;
    }

    .yt-billboard-info {
        padding: 2px 6px 6px;
    }

    .yt-slide-btn.prev {
        left: 6px;
    }

    .yt-slide-btn.next {
        right: 6px;
    }
}

@media (max-width: 720px) {
    .yt-section {
        padding: 56px 0 68px;
    }

    .yt-cards-grid {
        gap: 12px;
    }

    .yt-card {
        flex: 0 0 236px;
    }
}
