/* =========================================================
   NEWMOVIES.ONLINE — TV DETAIL / PLAYER V1
   Full-width player + canonical series details.
   ========================================================= */

:root {
    --nmtv-bg: #05080b;
    --nmtv-panel: #0a0f14;
    --nmtv-panel-2: #0d1319;
    --nmtv-line: rgba(255,255,255,.075);
    --nmtv-line-strong: rgba(255,255,255,.11);
    --nmtv-text: #f3f6f8;
    --nmtv-muted: #7f8b95;
    --nmtv-soft: #a7b0b8;
    --nmtv-red: #ef3340;
}

.nm-tv-detail-body {
    background:
        radial-gradient(circle at 90% 8%, rgba(110,10,25,.065), transparent 27%),
        var(--nmtv-bg);
}

.nm-tv-detail-page {
    min-height: 100vh;
}

.nm-tv-player-section {
    padding: 18px 0 28px;
}

.nm-tv-breadcrumb {
    min-height: 28px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
    color: #66727d;
    font-size: 9px;
    font-weight: 760;
}

.nm-tv-breadcrumb a {
    color: #87929c;
    text-decoration: none;
}

.nm-tv-breadcrumb a:hover {
    color: #fff;
}

.nm-tv-breadcrumb strong {
    color: #c8cfd5;
}

.nm-tv-breadcrumb em {
    color: #8d98a1;
    font-style: normal;
}

.nm-tv-top-ad {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
}

.nm-tv-player-box {
    overflow: hidden;
    border: 1px solid var(--nmtv-line);
    border-radius: 10px;
    background: #030507;
    box-shadow: 0 24px 60px rgba(0,0,0,.22);
}

.tv-player-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8.3;
    min-height: 420px;
    overflow: hidden;
    background: #000;
}

.tv-player-stage iframe,
.tv-player-stage > noscript iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #000;
}

.tv-player-loader {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 11px;
    background: #020304;
    color: #cdd4da;
    transition: opacity .2s ease, visibility .2s ease;
}

.tv-player-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tv-player-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,.10);
    border-top-color: var(--nmtv-red);
    border-radius: 50%;
    animation: nmtv-spin .8s linear infinite;
}

@keyframes nmtv-spin {
    to { transform: rotate(360deg); }
}

.tv-player-loader strong {
    font-size: 10px;
    letter-spacing: .04em;
}

.tv-player-unavailable {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
    color: #7d8992;
}

.tv-player-unavailable strong {
    color: #e5eaee;
    font-size: 19px;
}

.tv-player-toolbar {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 12px;
    border-top: 1px solid var(--nmtv-line);
    background: #080d12;
}

.tv-player-toolbar-actions,
.tv-server-tabs {
    display: flex;
    align-items: center;
    gap: 7px;
}

.tv-inline-episode-nav,
.tv-report-toggle,
.tv-server-tab,
.tv-episode-btn,
.tv-season-link {
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 7px;
    background: #10171e;
    color: #aeb7bf;
    font-family: inherit;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition:
        border-color .18s ease,
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}

.tv-inline-episode-nav,
.tv-report-toggle {
    min-height: 34px;
    padding: 0 12px;
}

.tv-inline-episode-nav:disabled {
    opacity: .35;
    cursor: default;
}

.tv-server-tab {
    min-width: 66px;
    min-height: 34px;
    padding: 0 11px;
}

.tv-server-tab.active,
.tv-episode-btn.active,
.tv-season-link.active {
    border-color: rgba(239,51,64,.62);
    background: var(--nmtv-red);
    color: #fff;
    box-shadow: 0 7px 20px rgba(239,51,64,.12);
}

@media (hover:hover) and (pointer:fine) {
    .tv-inline-episode-nav:not(:disabled):hover,
    .tv-report-toggle:hover,
    .tv-server-tab:hover,
    .tv-episode-btn:hover,
    .tv-season-link:hover {
        border-color: rgba(239,51,64,.30);
        color: #fff;
        transform: translateY(-1px);
    }
}

.nm-tv-season-panel,
.tv-episodes-panel {
    margin-top: 10px;
    padding: 14px 14px 13px;
    border: 1px solid var(--nmtv-line);
    border-radius: 10px;
    background: rgba(11,16,21,.84);
}

.nm-tv-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 11px;
}

.nm-tv-panel-heading h2 {
    margin: 0;
    color: #e9edf0;
    font-size: 13px;
    letter-spacing: -.015em;
}

.nm-tv-episode-heading > strong {
    color: var(--nmtv-red);
    font-size: 8px;
    font-weight: 900;
}

.tv-season-links {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.tv-season-link {
    flex: 0 0 auto;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
}

.tv-episode-group {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.tv-episode-group.active {
    display: flex;
}

.tv-episode-btn {
    min-width: 48px;
    min-height: 31px;
    padding: 0 10px;
}

.tv-report-panel {
    display: none;
    padding: 15px;
    border-top: 1px solid var(--nmtv-line);
    background: #0a0f14;
}

.tv-report-panel.open {
    display: block;
}

.tv-report-current {
    margin-bottom: 11px;
    color: #9da7af;
    font-size: 9px;
    font-weight: 800;
}

.tv-report-grid {
    display: grid;
    grid-template-columns: 220px minmax(0,1fr);
    gap: 12px;
}

.tv-report-field label {
    display: block;
    margin-bottom: 6px;
    color: #77828c;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.tv-report-field select,
.tv-report-field textarea {
    width: 100%;
    border: 1px solid var(--nmtv-line);
    border-radius: 7px;
    outline: 0;
    background: #080c10;
    color: #dce1e5;
    font: inherit;
    font-size: 9px;
}

.tv-report-field select {
    height: 38px;
    padding: 0 9px;
}

.tv-report-field textarea {
    min-height: 70px;
    padding: 9px;
    resize: vertical;
}

.tv-report-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.tv-report-submit {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(239,51,64,.40);
    border-radius: 7px;
    background: rgba(239,51,64,.12);
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    cursor: pointer;
}

.tv-report-message {
    font-size: 9px;
}

.tv-report-message.success {
    color: #8fd7ad;
}

.tv-report-message.error {
    color: #ed7d87;
}


/* Up next */
.tv-up-next {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 20;
    width: min(330px, calc(100% - 36px));
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    background: rgba(8,12,16,.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 48px rgba(0,0,0,.38);
}

.tv-up-next.is-open {
    display: flex;
}

.tv-up-next-copy span,
.tv-up-next-copy strong,
.tv-up-next-copy small {
    display: block;
}

.tv-up-next-copy span {
    color: var(--nmtv-red);
    font-size: 7px;
    font-weight: 950;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.tv-up-next-copy strong {
    margin-top: 3px;
    font-size: 12px;
}

.tv-up-next-copy small {
    margin-top: 4px;
    color: #7f8a94;
    font-size: 8px;
}

.tv-up-next-actions {
    display: flex;
    gap: 5px;
}

.tv-up-next-actions button {
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid var(--nmtv-line);
    border-radius: 6px;
    background: #111820;
    color: #dce1e5;
    font-size: 7px;
    font-weight: 900;
    cursor: pointer;
}

.tv-up-next-play {
    border-color: rgba(239,51,64,.36) !important;
    background: rgba(239,51,64,.13) !important;
}


/* Series details */
.nm-tv-series-section {
    padding: 14px 0 24px;
}

.nm-tv-series-grid {
    display: grid;
    grid-template-columns: 215px minmax(0,1fr);
    gap: 28px;
    padding: 22px 0 25px;
    border-top: 1px solid var(--nmtv-line);
    border-bottom: 1px solid var(--nmtv-line);
}

.nm-tv-series-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 1px solid var(--nmtv-line);
    border-radius: 9px;
    background: #0b1015;
}

.nm-tv-series-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nm-tv-watch-again {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    border-radius: 7px;
    background: var(--nmtv-red);
    color: #fff;
    text-decoration: none;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: .035em;
}

.nm-tv-series-main {
    min-width: 0;
}

.nm-tv-series-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.nm-tv-series-title-wrap {
    min-width: 0;
}

.nm-tv-series-logo-wrap {
    width: min(330px, 66%);
    min-height: 36px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 8px;
}

.nm-tv-series-logo {
    width: auto;
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    object-position: left bottom;
    filter: drop-shadow(0 7px 16px rgba(0,0,0,.30));
}

.nm-tv-series-title-wrap h1 {
    margin: 0;
    color: #f5f7f9;
    font-size: clamp(27px,3vw,42px);
    line-height: 1;
    letter-spacing: -.045em;
}

.nm-tv-meta-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.nm-tv-meta-pills span {
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 6px;
    background: #10161c;
    color: #b5bec5;
    font-size: 8px;
    font-weight: 780;
}

.nm-tv-rating-block {
    flex: 0 0 auto;
    min-width: 88px;
    padding-top: 3px;
    text-align: right;
}

.nm-tv-rating-block span,
.nm-tv-rating-block small {
    display: block;
    color: #707c86;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.nm-tv-rating-block strong {
    display: block;
    margin: 4px 0 3px;
    color: #ffd35a;
    font-size: 17px;
}

.nm-tv-series-overview {
    max-width: 970px;
    margin: 18px 0 0;
    color: #abb4bc;
    font-size: 10.5px;
    line-height: 1.72;
}

.nm-tv-facts-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0 34px;
    margin-top: 20px;
}

.nm-tv-fact {
    min-width: 0;
    display: grid;
    grid-template-columns: 112px minmax(0,1fr);
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid rgba(255,255,255,.045);
}

.nm-tv-fact > span {
    color: #68747e;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.nm-tv-fact strong,
.nm-tv-fact > div {
    color: #d6dde2;
    font-size: 9px;
    font-weight: 730;
    line-height: 1.45;
}

.nm-tv-fact-wide {
    align-items: start;
}

.nm-tv-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.nm-tv-link-list a {
    color: #bec6cc;
    text-decoration: none;
    font-size: 9px;
}

.nm-tv-link-list a:hover {
    color: #fff;
}


/* Section heads */
.nm-tv-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-top: 26px;
    margin-bottom: 13px;
}

.nm-tv-section-head h2 {
    margin: 0;
    color: #eef2f4;
    font-size: 21px;
    letter-spacing: -.03em;
}

.nm-tv-section-head a {
    margin-bottom: 2px;
    color: var(--nmtv-red);
    text-decoration: none;
    font-size: 8px;
    font-weight: 900;
}


/* Cast */
.nm-tv-cast-grid {
    display: grid;
    grid-template-columns: repeat(8,minmax(0,1fr));
    gap: 10px;
}

.nm-tv-cast-card {
    min-width: 0;
    color: #fff;
    text-decoration: none;
}

.nm-tv-cast-photo {
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--nmtv-line);
    border-radius: 8px;
    background: #0d1318;
    transition: border-color .2s ease, transform .2s ease;
}

.nm-tv-cast-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
}

.nm-tv-cast-photo > span {
    color: #737e87;
    font-size: 28px;
    font-weight: 900;
}

.nm-tv-cast-card > strong {
    display: block;
    margin-top: 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #e9edf0;
    font-size: 9px;
}

.nm-tv-cast-card > small {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #75818a;
    font-size: 7.5px;
}

@media (hover:hover) and (pointer:fine) {
    .nm-tv-cast-card:hover .nm-tv-cast-photo {
        transform: translateY(-2px);
        border-color: rgba(239,51,64,.28);
    }
}


/* Ads */
.nm-tv-native-ad-section {
    padding: 5px 0 2px;
}

.nm-tv-native-ad-slot {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nm-tv-native-ad-slot iframe,
.nm-tv-native-ad-slot img,
.nm-tv-native-ad-slot > div {
    max-width: 100%;
}


/* Related */
.nm-tv-related-section {
    padding: 10px 0 58px;
}

.nm-tv-related-track {
    display: grid;
    grid-template-columns: repeat(8,minmax(0,1fr));
    gap: 10px;
}

.nm-tv-related-card {
    min-width: 0;
    color: #fff;
    text-decoration: none;
}

.nm-tv-related-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 1px solid var(--nmtv-line);
    border-radius: 8px;
    background: #0a0f14;
    transition: border-color .2s ease, transform .2s ease;
}

.nm-tv-related-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nm-tv-related-poster > span {
    position: absolute;
    right: 7px;
    top: 7px;
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    padding: 0 7px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
    background: rgba(5,8,12,.72);
    color: #ffd35a;
    font-size: 7px;
    font-weight: 950;
}

.nm-tv-related-card > strong {
    display: -webkit-box;
    min-height: 28px;
    margin-top: 7px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    color: #e7ebee;
    font-size: 9px;
    line-height: 1.28;
}

.nm-tv-related-card > small {
    display: block;
    margin-top: 3px;
    color: #6f7a83;
    font-size: 7.5px;
}

@media (hover:hover) and (pointer:fine) {
    .nm-tv-related-card:hover .nm-tv-related-poster {
        transform: translateY(-2px);
        border-color: rgba(239,51,64,.28);
    }
}


/* Responsive */
@media (max-width:1100px) {
    .nm-tv-cast-grid,
    .nm-tv-related-track {
        grid-template-columns: repeat(6,minmax(0,1fr));
    }
}

@media (max-width:850px) {
    .tv-player-stage {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .tv-player-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .tv-player-toolbar-actions,
    .tv-server-tabs {
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .tv-player-toolbar-actions::-webkit-scrollbar,
    .tv-server-tabs::-webkit-scrollbar {
        display: none;
    }

    .tv-inline-episode-nav,
    .tv-report-toggle,
    .tv-server-tab {
        flex: 0 0 auto;
    }

    .nm-tv-series-grid {
        grid-template-columns: 170px minmax(0,1fr);
        gap: 20px;
    }

    .nm-tv-cast-grid,
    .nm-tv-related-track {
        grid-template-columns: repeat(4,minmax(0,1fr));
    }
}

@media (max-width:620px) {
    .nm-tv-player-section {
        padding-top: 10px;
    }

    .nm-tv-breadcrumb {
        white-space: nowrap;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .nm-tv-breadcrumb::-webkit-scrollbar {
        display: none;
    }

    .nm-tv-player-box,
    .nm-tv-season-panel,
    .tv-episodes-panel {
        border-radius: 8px;
    }

    .tv-player-toolbar {
        padding: 8px;
    }

    .tv-player-toolbar-actions {
        order: 2;
    }

    .tv-server-tabs {
        order: 1;
    }

    .tv-server-tab {
        min-width: 74px;
    }

    .nm-tv-season-panel,
    .tv-episodes-panel {
        padding: 12px 10px 11px;
    }

    .tv-episode-group {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .tv-episode-group::-webkit-scrollbar {
        display: none;
    }

    .tv-episode-btn {
        flex: 0 0 auto;
    }

    .tv-report-grid {
        grid-template-columns: 1fr;
    }

    .nm-tv-series-grid {
        grid-template-columns: 112px minmax(0,1fr);
        gap: 14px;
        padding-top: 18px;
    }

    .nm-tv-watch-again {
        min-height: 34px;
        font-size: 7px;
    }

    .nm-tv-series-head {
        display: block;
    }

    .nm-tv-series-logo-wrap {
        width: min(240px,86%);
    }

    .nm-tv-series-logo {
        max-height: 50px;
    }

    .nm-tv-series-title-wrap h1 {
        font-size: 25px;
    }

    .nm-tv-rating-block {
        margin-top: 12px;
        text-align: left;
    }

    .nm-tv-series-overview {
        font-size: 9.5px;
    }

    .nm-tv-facts-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .nm-tv-fact {
        grid-template-columns: 92px minmax(0,1fr);
    }

    .nm-tv-cast-grid,
    .nm-tv-related-track {
        display: flex;
        overflow-x: auto;
        gap: 9px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .nm-tv-cast-grid::-webkit-scrollbar,
    .nm-tv-related-track::-webkit-scrollbar {
        display: none;
    }

    .nm-tv-cast-card {
        flex: 0 0 100px;
    }

    .nm-tv-related-card {
        flex: 0 0 112px;
    }

    .nm-tv-section-head {
        margin-top: 22px;
    }
}

@media (max-width:390px) {
    .nm-tv-series-grid {
        grid-template-columns: 92px minmax(0,1fr);
        gap: 11px;
    }

    .nm-tv-meta-pills span {
        min-height: 24px;
        padding: 0 8px;
        font-size: 7px;
    }

    .nm-tv-fact {
        grid-template-columns: 80px minmax(0,1fr);
    }
}

@media (prefers-reduced-motion:reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}


/* =========================================================
   V2 — MOVIE-DETAIL TYPOGRAPHY + COMPACT SEASONS
   Match the established NewMovies movie-detail readability.
   ========================================================= */

/* Season / episode controls: readable but still compact. */
.tv-season-link {
    min-width: 48px;
    min-height: 34px;
    padding: 0 13px;
    font-size: 11px;
}

.tv-episode-btn {
    min-width: 52px;
    min-height: 34px;
    padding: 0 11px;
    font-size: 11px;
}

.nm-tv-panel-heading h2 {
    font-size: 17px;
}

.nm-tv-episode-heading > strong {
    font-size: 11px;
}


/* Title / pills: same visual family as movie.php. */
.nm-tv-series-title-wrap h1 {
    font-size: clamp(34px, 3.8vw, 50px);
    line-height: 1;
    letter-spacing: -.035em;
}

.nm-tv-series-logo-wrap {
    width: min(390px, 68%);
    min-height: 44px;
    margin-bottom: 10px;
}

.nm-tv-series-logo {
    max-height: 84px;
}

.nm-tv-meta-pills {
    gap: 8px;
    margin-top: 14px;
}

.nm-tv-meta-pills span {
    min-height: 32px;
    padding: 0 13px;
    border-radius: 999px;
    color: #f0f2f4;
    font-size: 13px;
    font-weight: 800;
}


/* Overview: same scale as movie-detail readability pass. */
.nm-tv-series-overview {
    max-width: 900px;
    margin-top: 20px;
    color: #bcc3c9;
    font-size: 17px;
    line-height: 1.72;
}


/* Facts: match movie page label/value sizing. */
.nm-tv-facts-grid {
    gap: 0 56px;
    max-width: 980px;
    margin-top: 23px;
}

.nm-tv-fact {
    grid-template-columns: 125px minmax(0,1fr);
    column-gap: 14px;
    min-height: 42px;
    align-items: center;
    padding: 6px 0;
}

.nm-tv-fact > span {
    color: #aeb6bd;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.nm-tv-fact strong,
.nm-tv-fact > div {
    color: #eef1f3;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.nm-tv-link-list {
    gap: 4px 7px;
}

.nm-tv-link-list a {
    color: #eef1f3;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(239,51,64,.55);
    text-underline-offset: 3px;
}


/* Rating block: bring it into the same readable scale. */
.nm-tv-rating-block {
    min-width: 105px;
}

.nm-tv-rating-block span,
.nm-tv-rating-block small {
    font-size: 10px;
}

.nm-tv-rating-block strong {
    margin: 5px 0 4px;
    font-size: 20px;
}


/* Cast / related: same comfortable scale as movie page. */
.nm-tv-section-head h2 {
    font-size: 26px;
}

.nm-tv-section-head a {
    font-size: 11px;
}

.nm-tv-cast-card > strong {
    margin-top: 9px;
    font-size: 13px;
    line-height: 1.3;
}

.nm-tv-cast-card > small {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.35;
}

.nm-tv-related-card > strong {
    min-height: 35px;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.3;
}

.nm-tv-related-card > small {
    margin-top: 4px;
    font-size: 11px;
}

.nm-tv-related-poster > span {
    min-height: 23px;
    padding: 0 8px;
    font-size: 10px;
}


/* Watch button should not look tiny beside the larger page typography. */
.nm-tv-watch-again {
    min-height: 42px;
    font-size: 11px;
}


/* Desktop toolbar readability. */
.tv-inline-episode-nav,
.tv-report-toggle,
.tv-server-tab {
    font-size: 10px;
}

.tv-inline-episode-nav,
.tv-report-toggle {
    min-height: 36px;
    padding: 0 13px;
}

.tv-server-tab {
    min-width: 70px;
    min-height: 36px;
}


/* Responsive typography */
@media (max-width: 960px) {
    .nm-tv-series-overview {
        font-size: 16px;
    }

    .nm-tv-facts-grid {
        gap: 0 34px;
    }

    .nm-tv-fact {
        grid-template-columns: 112px minmax(0,1fr);
    }

    .nm-tv-fact > span,
    .nm-tv-fact strong,
    .nm-tv-fact > div,
    .nm-tv-link-list a {
        font-size: 13.5px;
    }
}

@media (max-width: 620px) {
    .nm-tv-series-title-wrap h1 {
        font-size: 31px;
    }

    .nm-tv-series-logo-wrap {
        width: min(260px, 88%);
    }

    .nm-tv-series-logo {
        max-height: 58px;
    }

    .nm-tv-meta-pills span {
        min-height: 29px;
        padding: 0 11px;
        font-size: 12px;
    }

    .nm-tv-series-overview {
        font-size: 15px;
        line-height: 1.68;
    }

    .nm-tv-facts-grid {
        margin-top: 18px;
    }

    .nm-tv-fact {
        grid-template-columns: 100px minmax(0,1fr);
        min-height: 38px;
        column-gap: 10px;
    }

    .nm-tv-fact > span,
    .nm-tv-fact strong,
    .nm-tv-fact > div,
    .nm-tv-link-list a {
        font-size: 13px;
    }

    .nm-tv-cast-card > strong {
        font-size: 12.5px;
    }

    .nm-tv-cast-card > small {
        font-size: 11.5px;
    }

    .nm-tv-related-card > strong {
        font-size: 12px;
    }

    .nm-tv-related-card > small {
        font-size: 10.5px;
    }

    .tv-season-link {
        min-width: 44px;
        min-height: 32px;
        padding: 0 11px;
        font-size: 10px;
    }

    .tv-episode-btn {
        min-width: 48px;
        min-height: 32px;
        font-size: 10px;
    }
}

@media (max-width: 390px) {
    .nm-tv-series-title-wrap h1 {
        font-size: 28px;
    }

    .nm-tv-fact {
        grid-template-columns: 88px minmax(0,1fr);
    }

    .nm-tv-fact > span,
    .nm-tv-fact strong,
    .nm-tv-fact > div,
    .nm-tv-link-list a {
        font-size: 12.5px;
    }
}


/* =========================================================
   V3 — UNIFY TV DETAILS WITH MOVIE DETAIL PAGE
   The player/season/episode UI remains TV-specific.
   The information block now reuses the finished movie-detail system.
   ========================================================= */

/* Remove the old TV-logo / pill / standalone-rating visual system. */
.nm-tv-series-logo-wrap,
.nm-tv-series-logo,
.nm-tv-meta-pills,
.nm-tv-rating-block,
.nm-tv-facts-grid,
.nm-tv-fact {
    display: none !important;
}

/* Match the movie page's exact two-column content geometry. */
.nm-tv-series-grid {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.nm-tv-poster-column {
    position: relative;
}

/* Let movie-detail-poster itself own the poster border/radius/shadow. */
.nm-tv-series-poster {
    overflow: visible;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.nm-tv-series-poster > .movie-detail-poster {
    width: 100%;
}

/* Same spacing as movie.php's information column. */
.nm-tv-series-main.movie-info-column {
    padding-top: 12px;
}

.nm-tv-series-main.movie-info-column > h2 {
    margin-top: 0;
}

/* TV watch shortcut stays, but uses the same restrained red family. */
.nm-tv-watch-again {
    margin-top: 9px;
    min-height: 42px;
    border-radius: 7px;
    background: #ef3340;
    font-size: 11px;
}

/* Tiny supplemental line only; it does not compete with the movie-style facts. */
.nm-tv-series-period {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 3px;
    color: #8d98a1;
    font-size: 11px;
}

.nm-tv-series-period span {
    color: #6e7982;
}

.nm-tv-series-period strong {
    color: #b8c0c6;
    font-weight: 700;
}

/* Cast title uses the same movie-detail section-heading treatment. */
.nm-tv-series-section .nm-tv-section-head {
    margin-top: 32px;
}

@media (max-width: 960px) {
    .nm-tv-series-grid {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 22px;
    }
}

@media (max-width: 700px) {
    .nm-tv-series-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .nm-tv-poster-column {
        width: 145px;
    }

    .nm-tv-series-main.movie-info-column {
        padding-top: 0;
    }
}

@media (max-width: 430px) {
    .nm-tv-poster-column {
        width: 126px;
    }
}


/* =========================================================
   V4 — RELATED TV = MOVIE "MORE LIKE THIS"
   Reuse the exact Movie Detail card/heading system.
   ========================================================= */

.nm-tv-related-section,
.nm-tv-related-track,
.nm-tv-related-card,
.nm-tv-related-poster {
    all: unset;
}

/*
 * The actual V4 markup now uses:
 *   .movie-content-section.related-section
 *   .movie-section-heading
 *   .related-grid
 *   .nm-card.nm-card--portrait.nm-related-card
 *
 * Those are already defined by:
 *   /css/newmovies-movie.css
 *   /css/card.css
 *
 * Keep only tiny TV-specific safeguards here.
 */

.nm-tv-detail-page .related-section {
    padding-top: 38px;
    padding-bottom: 56px;
}

.nm-tv-detail-page .related-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.nm-tv-detail-page .nm-related-card {
    min-width: 0;
}

@media (max-width: 960px) {
    .nm-tv-detail-page .related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .nm-tv-detail-page .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   V5 — TV CAST = MOVIE "ACTORS"
   Use the exact Movie Detail cast system.
   ========================================================= */

.nm-tv-section-head,
.nm-tv-cast-grid,
.nm-tv-cast-card,
.nm-tv-cast-photo {
    all: unset;
}

/*
 * V5 markup now uses the same classes as movie.php:
 *   .movie-content-section.cast-section
 *   .movie-section-heading
 *   .cast-row
 *   .cast-card
 *   .cast-photo
 *
 * Those are defined by /css/newmovies-movie.css.
 */

.nm-tv-cast-section {
    padding-top: 28px;
    padding-bottom: 12px;
}

/* Desktop stays one 10-card row, exactly like movie detail. */
.nm-tv-detail-page .cast-row {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 12px;
}

/* Preserve the movie page's own responsive behavior. */
@media (max-width: 1180px) {
    .nm-tv-detail-page .cast-row {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .nm-tv-detail-page .cast-card:nth-child(n+9) {
        display: none;
    }
}

@media (max-width: 960px) {
    .nm-tv-detail-page .cast-row {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .nm-tv-detail-page .cast-card:nth-child(n) {
        display: block;
    }
}

@media (max-width: 700px) {
    .nm-tv-detail-page .cast-row {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 8px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .nm-tv-detail-page .cast-row::-webkit-scrollbar {
        display: none;
    }

    .nm-tv-detail-page .cast-card {
        flex: 0 0 112px;
        scroll-snap-align: start;
    }
}


/* =========================================================
   V6 — FINAL CAST COUNT + DETAIL CLEANUP
   ========================================================= */

.nm-tv-series-period {
    display: none !important;
}

/* Keep the Actors row identical to movie.php: maximum 10 items. */
.nm-tv-detail-page .cast-row .cast-card:nth-child(n+11) {
    display: none !important;
}

