/* =========================================================
   TOBWENE HOME — STREAMING SECTIONS
   Add this file AFTER app.css and phase2-additions.css
   ========================================================= */

/* ---------- General ---------- */

.tv-section {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 28px 4vw 34px;
}

.tv-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.tv-section-head h2 {
    margin: 4px 0 0;
    color: #ffffff;
    font-size: clamp(1.55rem, 2.5vw, 2.25rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.tv-section-head > a {
    flex: 0 0 auto;
    color: #b5b8c0;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.tv-section-head > a:hover {
    color: #ffffff;
}

.tv-kicker {
    color: #ff5b53;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}


/* =========================================================
   HERO
   ========================================================= */

.tv-hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #08090c;
}

.tv-hero-media {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 72% 32%,
            rgba(255, 58, 48, 0.22),
            transparent 26%
        ),
        linear-gradient(
            135deg,
            #17191f,
            #090a0d 70%
        );
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.tv-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.96) 0%,
            rgba(0, 0, 0, 0.78) 28%,
            rgba(0, 0, 0, 0.26) 64%,
            rgba(0, 0, 0, 0.08) 100%
        ),
        linear-gradient(
            0deg,
            #07080b 0%,
            rgba(7, 8, 11, 0.26) 42%,
            transparent 66%
        );
}

.tv-hero-content {
    position: relative;
    z-index: 3;
    width: min(680px, 58%);
    padding: 145px 0 82px 6vw;
}

.tv-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tv-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 750;
    backdrop-filter: blur(12px);
}

.tv-badge-hot {
    background: #ff342d;
}

.tv-hero h1 {
    max-width: 700px;
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(2.8rem, 5vw, 5.8rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.tv-hero p {
    max-width: 630px;
    margin: 0;
    color: #dedfe3;
    font-size: 1rem;
    line-height: 1.55;
}

.tv-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.tv-play-btn,
.tv-info-btn {
    min-height: 50px;
    padding: 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.tv-play-btn {
    background: #ffffff;
    color: #090a0d;
}

.tv-info-btn {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    backdrop-filter: blur(12px);
}

.tv-play-btn:hover,
.tv-info-btn:hover {
    transform: translateY(-2px);
}

.tv-hero-mini {
    position: absolute;
    z-index: 4;
    right: 4vw;
    bottom: 56px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.tv-hero-mini a {
    width: 84px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: #15171d;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.tv-hero-mini a:hover {
    transform: translateY(-7px);
    border-color: rgba(255, 255, 255, 0.8);
}

.tv-hero-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   HORIZONTAL STORY RAILS
   ========================================================= */

.tv-rail {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 2px 14px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.tv-rail::-webkit-scrollbar {
    display: none;
}

.tv-story-card {
    flex: 0 0 210px;
    min-width: 0;
    scroll-snap-align: start;
    color: inherit;
}

.tv-rail-large .tv-story-card {
    flex-basis: 235px;
}

.tv-story-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 15px;
    background: #14161c;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.tv-story-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.tv-story-card:hover .tv-story-poster img {
    transform: scale(1.045);
}

.tv-story-card:hover .tv-card-copy strong {
    color: #ff625a;
}

.tv-floating-badge {
    position: absolute;
    z-index: 2;
    top: 9px;
    left: 9px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #ff342d;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
}

.tv-floating-new {
    background: #ff342d;
}

.tv-view-count {
    position: absolute;
    z-index: 2;
    right: 9px;
    bottom: 9px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.64);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.tv-card-copy {
    padding-top: 10px;
}

.tv-card-copy strong {
    display: block;
    color: #f2f2f4;
    font-size: 0.95rem;
    line-height: 1.28;
    transition: color 0.2s ease;
}

.tv-card-copy small {
    display: block;
    margin-top: 6px;
    color: #7e8189;
    font-size: 0.76rem;
    line-height: 1.4;
}


/* =========================================================
   CONTINUE WATCHING
   ========================================================= */

.tv-continue-card {
    flex: 0 0 310px;
    color: inherit;
}

.tv-continue-poster {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 15px;
    background: #14161c;
}

.tv-continue-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tv-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #111318;
    transform: translate(-50%, -50%);
}

.tv-progress-track {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.16);
}

.tv-progress-track span {
    display: block;
    height: 100%;
    background: #ff342d;
}


/* =========================================================
   TOP RANKING
   ========================================================= */

.tv-top-section {
    overflow: hidden;
}

.tv-ranking-rail {
    padding-left: 4px;
}

.tv-ranked-card {
    position: relative;
    flex: 0 0 265px;
    min-height: 405px;
    padding-left: 56px;
    color: inherit;
}

.tv-rank-number {
    position: absolute;
    z-index: 0;
    left: 0;
    bottom: 56px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 8.5rem;
    font-weight: 900;
    line-height: 0.68;
    letter-spacing: -0.1em;
    text-shadow:
        -2px -2px 0 rgba(0, 0, 0, 0.7),
        2px 2px 0 rgba(0, 0, 0, 0.7);
}

.tv-ranked-poster {
    position: relative;
    z-index: 2;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 15px;
    background: #14161c;
}

.tv-ranked-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.tv-ranked-card:hover .tv-ranked-poster img {
    transform: scale(1.04);
}


/* =========================================================
   COLLECTIONS
   ========================================================= */

.tv-collection-rail {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
}

.tv-collection-rail::-webkit-scrollbar {
    display: none;
}

.tv-collection-card {
    position: relative;
    flex: 0 0 430px;
    min-height: 250px;
    overflow: hidden;
    border-radius: 20px;
    background: #14161c;
    color: #ffffff;
}

.tv-collection-card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tv-collection-card:hover > img {
    transform: scale(1.05);
}

.tv-collection-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.92) 0%,
            rgba(0, 0, 0, 0.14) 74%
        );
}

.tv-collection-copy {
    position: absolute;
    z-index: 2;
    right: 22px;
    bottom: 20px;
    left: 22px;
}

.tv-collection-copy small {
    color: #ff635b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.tv-collection-copy h3 {
    margin: 6px 0;
    font-size: 1.6rem;
    letter-spacing: -0.035em;
}

.tv-collection-copy p {
    max-width: 370px;
    margin: 0;
    color: #c5c7cd;
    font-size: 0.85rem;
    line-height: 1.45;
}


/* =========================================================
   FINAL CTA
   ========================================================= */

.tv-final-cta {
    width: calc(100% - 8vw);
    max-width: 1480px;
    margin: 40px auto 70px;
    padding: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    background:
        radial-gradient(
            circle at 78% 14%,
            rgba(255, 58, 48, 0.20),
            transparent 30%
        ),
        #101218;
}

.tv-final-cta h2 {
    max-width: 760px;
    margin: 8px 0;
    color: #ffffff;
    font-size: clamp(2rem, 3.6vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.tv-final-cta p {
    margin: 0;
    color: #a5a7af;
}


/* =========================================================
   FOOTER REFINEMENT
   ========================================================= */

.footer {
    background: #0c0d10;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .tv-hero {
        min-height: 620px;
    }

    .tv-hero-content {
        width: 70%;
    }

    .tv-hero-mini {
        right: 3vw;
    }

    .tv-hero-mini a:nth-child(n + 4) {
        display: none;
    }
}


@media (max-width: 760px) {

    .tv-hero {
        min-height: 660px;
        align-items: flex-end;
    }

    .tv-hero-media {
        background-position: 65% center;
    }

    .tv-hero-shade {
        background:
            linear-gradient(
                0deg,
                #07080b 0%,
                rgba(7, 8, 11, 0.74) 45%,
                rgba(7, 8, 11, 0.14) 100%
            );
    }

    .tv-hero-content {
        width: 100%;
        padding:
            135px 18px 62px;
    }

    .tv-hero h1 {
        font-size: clamp(2.65rem, 13vw, 4.4rem);
    }

    .tv-hero p {
        max-width: 100%;
        font-size: 0.94rem;
    }

    .tv-hero-mini {
        display: none;
    }

    .tv-section {
        padding:
            23px 18px 28px;
    }

    .tv-section-head {
        align-items: center;
        margin-bottom: 13px;
    }

    .tv-section-head h2 {
        font-size: 1.55rem;
    }

    .tv-section-head > a {
        font-size: 0.78rem;
    }

    .tv-story-card {
        flex-basis: 44vw;
    }

    .tv-rail-large .tv-story-card {
        flex-basis: 48vw;
    }

    .tv-continue-card {
        flex-basis: 72vw;
    }

    .tv-ranked-card {
        flex-basis: 58vw;
        padding-left: 48px;
    }

    .tv-rank-number {
        font-size: 7rem;
    }

    .tv-collection-card {
        flex-basis: 82vw;
        min-height: 220px;
    }

    .tv-final-cta {
        width: calc(100% - 36px);
        margin: 25px 18px 100px;
        padding: 27px;
        flex-direction: column;
        align-items: flex-start;
    }
}


@media (max-width: 430px) {

    .tv-story-card {
        flex-basis: 48vw;
    }

    .tv-rail-large .tv-story-card {
        flex-basis: 54vw;
    }

    .tv-ranked-card {
        flex-basis: 64vw;
    }

    .tv-story-poster {
        border-radius: 12px;
    }

    .tv-card-copy strong {
        font-size: 0.88rem;
    }
}
