/* =============================================
   TV Show Slider — Frontend Styles
   Cinematic dark-mode banner with thumbnail strip
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,600;1,300&display=swap');

.tvs-slider-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0a0a0f;
    font-family: 'Barlow', sans-serif;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,.7);
    user-select: none;
}

/* ─── TRACK & SLIDES ─── */
.tvs-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.tvs-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .9s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}

.tvs-slide--active {
    opacity: 1;
    pointer-events: all;
}

/* ─── BACKGROUND IMAGE ─── */
.tvs-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    transform: scale(1.05);
    transition: transform 6s ease;
    filter: brightness(.75) saturate(1.1);
}

.tvs-slide--active .tvs-bg {
    transform: scale(1);
}

/* ─── CINEMATIC GRADIENT OVERLAYS ─── */
.tvs-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.4) 55%, transparent 100%),
        linear-gradient(0deg, rgba(0,0,0,.7) 0%, transparent 50%);
}

/* ─── CONTENT PANEL ─── */
.tvs-content {
    position: absolute;
    bottom: 110px;
    left: 48px;
    max-width: 520px;
    transform: translateY(20px);
    opacity: 0;
    transition: opacity .6s ease .3s, transform .6s ease .3s;
}

.tvs-slide--active .tvs-content {
    opacity: 1;
    transform: translateY(0);
}

/* ─── BADGE ─── */
.tvs-badge {
    display: inline-block;
    background: #e50914;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}

/* ─── GENRE ─── */
.tvs-genre {
    display: block;
    color: rgba(255,255,255,.6);
    font-size: 12px;
    font-weight: 300;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* ─── TITLE ─── */
.tvs-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    line-height: 1;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: .03em;
    text-shadow: 0 4px 24px rgba(0,0,0,.6);
}

/* ─── RATING ─── */
.tvs-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,200,0,.15);
    border: 1px solid rgba(255,200,0,.4);
    color: #ffd700;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    backdrop-filter: blur(4px);
}

/* ─── DESCRIPTION ─── */
.tvs-desc {
    color: rgba(255,255,255,.75);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    margin: 0 0 22px;
    max-width: 420px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── CTA BUTTON ─── */
.tvs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e50914;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .05em;
    padding: 12px 28px;
    border-radius: 4px;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(229,9,20,.4);
}

.tvs-btn:hover,
.tvs-btn:focus {
    background: #f40612;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(229,9,20,.6);
    color: #fff;
    text-decoration: none;
}

/* ─── ARROWS ─── */
.tvs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font-size: 22px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
    backdrop-filter: blur(6px);
    z-index: 10;
    margin-top: -30px;
}

.tvs-arrow:hover { background: rgba(229,9,20,.7); transform: translateY(-50%) scale(1.1); }
.tvs-arrow--prev { left: 16px; }
.tvs-arrow--next { right: 16px; }

/* ─── DOT INDICATORS ─── */
.tvs-dots {
    position: absolute;
    bottom: 75px;
    right: 24px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.tvs-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.35);
    cursor: pointer;
    transition: background .3s, transform .3s;
    padding: 0;
}

.tvs-dot--active {
    background: #e50914;
    transform: scale(1.4);
}

/* ─── THUMBNAIL STRIP ─── */
.tvs-thumbs {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 3px;
    height: 65px;
    overflow-x: auto;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(10px);
    scrollbar-width: none;
    z-index: 10;
}

.tvs-thumbs::-webkit-scrollbar { display: none; }

.tvs-thumb {
    flex: 0 0 120px;
    height: 65px;
    background-size: cover;
    background-position: center;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: flex .3s;
    padding: 0;
}

.tvs-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
    transition: background .3s;
}

.tvs-thumb--active::before,
.tvs-thumb:hover::before {
    background: rgba(229,9,20,.3);
}

.tvs-thumb--active {
    flex: 0 0 160px;
    box-shadow: inset 0 0 0 2px #e50914;
}

.tvs-thumb span {
    position: absolute;
    bottom: 6px;
    left: 8px;
    right: 8px;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0,0,0,.9);
}

/* ─── PROGRESS BAR ─── */
.tvs-progress {
    position: absolute;
    bottom: 65px;
    left: 0;
    height: 3px;
    background: #e50914;
    z-index: 11;
    transition: width linear;
}

/* ─── EMPTY STATE ─── */
.tvs-empty {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .tvs-content {
        left: 20px;
        right: 20px;
        bottom: 100px;
        max-width: none;
    }
    .tvs-arrow { width: 38px; height: 38px; font-size: 16px; }
    .tvs-thumb { flex: 0 0 90px; }
    .tvs-thumb--active { flex: 0 0 120px; }
    .tvs-desc { display: none; }
}
