/* =========================================================
   MODERN TV PLAYER
   ========================================================= */

.tv-player-body {
    background:
        radial-gradient(circle at 50% -16%, rgba(227,38,46,.05), transparent 30%),
        #080b0f;
}

.tv-player-top {
    padding: 24px 0 28px;
}

.tv-player-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #66717b;
    font-size: 13px;
}

.tv-player-breadcrumb a {
    color: #818b94;
    text-decoration: none;
}

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

.tv-player-breadcrumb strong {
    max-width: 55%;
    overflow: hidden;
    color: #aeb6bd;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tv-player-ad {
    margin-bottom: 18px;
}


/* ---------------------------------------------------------
   Player
--------------------------------------------------------- */

.tv-player-box {
    overflow: hidden;
    border: 1px solid #20272f;
    border-radius: 9px;
    background: #0b0f13;
    box-shadow: 0 18px 55px rgba(0,0,0,.22);
}

.tv-player-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #030507;
}

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

.tv-player-loader {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    background: #05080b;
    color: #818b94;
    font-size: 12px;
    transition: opacity .18s ease, visibility .18s ease;
}

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

.tv-player-spinner {
    width: 30px;
    height: 30px;
    border: 2px solid #242c34;
    border-top-color: #e3262e;
    border-radius: 50%;
    animation: tv-player-spin .75s linear infinite;
}

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

.tv-player-unavailable {
    height: 100%;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    padding: 30px;
    box-sizing: border-box;
    text-align: center;
}

.tv-player-unavailable strong {
    color: #d7dce0;
    font-size: 16px;
}

.tv-player-unavailable span {
    color: #78838c;
    font-size: 13px;
}

.tv-player-toolbar {
    min-height: 52px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 9px 11px;
    border-top: 1px solid #1d242b;
    background: #0f1419;
}

.tv-report-toggle,
.tv-server-tab {
    height: 33px;
    padding: 0 12px;
    border: 1px solid #2b343d;
    border-radius: 5px;
    background: #151b21;
    color: #9aa3ab;
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.tv-report-toggle:hover,
.tv-server-tab:hover {
    border-color: #414c56;
    color: #fff;
}

.tv-server-tabs {
    display: flex;
    gap: 6px;
}

.tv-server-tab.active {
    border-color: #e3262e;
    background: #e3262e;
    color: #fff;
}


/* ---------------------------------------------------------
   Broken report
--------------------------------------------------------- */

.tv-report-panel {
    display: none;
    padding: 15px;
    border-top: 1px solid #1d242b;
    background: #0e1318;
}

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

.tv-report-current {
    margin-bottom: 12px;
    color: #909aa3;
    font-size: 12px;
}

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

.tv-report-field label {
    display: block;
    margin-bottom: 6px;
    color: #aab3bb;
    font-size: 11px;
    font-weight: 800;
}

.tv-report-field label small {
    color: #68727b;
    font-size: 10px;
    font-weight: 600;
}

.tv-report-field select,
.tv-report-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    border: 1px solid #29323a;
    border-radius: 5px;
    outline: none;
    background: #0a0f14;
    color: #d9dee2;
    font-family: inherit;
    font-size: 12px;
}

.tv-report-field select {
    height: 39px;
}

.tv-report-field textarea {
    min-height: 76px;
    resize: vertical;
}

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

.tv-report-submit {
    height: 35px;
    padding: 0 13px;
    border: 0;
    border-radius: 5px;
    background: #e3262e;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.tv-report-submit:disabled {
    opacity: .55;
    cursor: default;
}

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

.tv-report-message.success {
    color: #75c98c;
}

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


/* ---------------------------------------------------------
   Season + episodes
--------------------------------------------------------- */

.tv-season-nav,
.tv-episodes-panel {
    margin-top: 13px;
    padding: 14px;
    border: 1px solid #20272f;
    border-radius: 8px;
    background: #0f1419;
}

.tv-nav-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.tv-nav-heading span {
    color: #d8dde1;
    font-size: 14px;
    font-weight: 900;
}

.tv-nav-heading strong {
    color: #e3262e;
    font-size: 11px;
}

.tv-season-links,
.tv-episode-group {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tv-season-link,
.tv-episode-btn {
    min-width: 48px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 11px;
    border: 1px solid #29323a;
    border-radius: 5px;
    background: #151b21;
    color: #a4adb5;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.tv-season-link:hover,
.tv-episode-btn:hover {
    border-color: #3c4751;
    color: #fff;
}

.tv-season-link.active,
.tv-episode-btn.active {
    border-color: #e3262e;
    background: #e3262e;
    color: #fff;
}

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

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

.tv-prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #1e262d;
}

.tv-prev-next-btn {
    min-height: 38px;
    border: 1px solid #29323a;
    border-radius: 5px;
    background: #12181e;
    color: #a4adb5;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.tv-prev-next-btn:hover:not(:disabled) {
    border-color: #3d4953;
    color: #fff;
}

.tv-prev-next-btn:disabled {
    opacity: .35;
    cursor: default;
}


/* ---------------------------------------------------------
   Details
--------------------------------------------------------- */

.tv-details-section {
    padding: 0 0 28px;
}

.tv-details-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.tv-poster-column {
    width: 240px;
}

.tv-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid #20272f;
    border-radius: 9px;
    background: #0b1015;
}

.tv-poster img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #0b1015;
}

.tv-poster-actions {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.tv-fake-btn {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid #2b343c;
    border-radius: 6px;
    background: #151b21;
    color: #eef1f3;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition:
        background .16s ease,
        border-color .16s ease,
        transform .16s ease;
}

.tv-fake-btn:hover,
.tv-fake-btn:focus {
    border-color: #3b4650;
    background: #1b2229;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.tv-details-main {
    min-width: 0;
    padding: 26px 28px;
    border: 1px solid #20272f;
    border-radius: 9px;
    background: #0f1419;
}

.tv-details-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.tv-details-kicker {
    display: block;
    margin-bottom: 6px;
    color: #e3262e;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tv-details-head h1 {
    margin: 0;
    color: #eef1f3;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -.5px;
}

.tv-rating {
    min-width: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid #252e36;
    border-radius: 6px;
    background: #0b1015;
}

.tv-rating span {
    padding: 3px 5px;
    border-radius: 3px;
    background: #f5c518;
    color: #151515;
    font-size: 10px;
    font-weight: 950;
}

.tv-rating strong {
    color: #f2f4f5;
    font-size: 18px;
}

.tv-description {
    max-width: 940px;
    margin-top: 16px;
    color: #c4cbd1;
    font-size: 16px;
    line-height: 1.75;
}

.tv-facts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 22px;
    margin-top: 22px;
    border-top: 1px solid #222a31;
}

.tv-fact {
    padding: 14px 0;
    border-bottom: 1px solid #1d252c;
}

.tv-fact > span {
    display: block;
    margin-bottom: 5px;
    color: #66717b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .65px;
}

.tv-fact > div {
    color: #e0e4e7;
    font-size: 15px;
    line-height: 1.55;
}

.tv-fact a {
    color: #e0e4e7;
    text-decoration: none;
}

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


/* ---------------------------------------------------------
   Tags
--------------------------------------------------------- */

.tv-tags-section {
    padding: 0 0 24px;
}

.tv-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    padding-top: 15px;
    border-top: 1px solid #1a2127;
}

.tv-tags strong {
    margin-right: 3px;
    color: #67727b;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.tv-tags a,
.tv-tags span {
    padding: 6px 8px;
    border: 1px solid #242d35;
    border-radius: 5px;
    background: #0e1318;
    color: #89939b;
    font-size: 11px;
    text-decoration: none;
}

.tv-tags a:hover {
    border-color: #3a4650;
    color: #cbd1d6;
}


/* ---------------------------------------------------------
   Related
--------------------------------------------------------- */

.tv-related-section {
    padding: 8px 0 40px;
}

.tv-related-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 15px;
}

.tv-related-head span {
    display: block;
    margin-bottom: 4px;
    color: #e3262e;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .9px;
}

.tv-related-head h2 {
    margin: 0;
    color: #e3e7ea;
    font-size: 24px;
}

.tv-related-head > a {
    color: #7b858e;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.tv-related-head > a:hover {
    color: #fff;
}

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

.tv-related-grid .poster-card h3 {
    font-size: 14px;
}

.tv-related-grid .poster-card-meta {
    font-size: 12px;
}

.tv-related-grid .poster-card-rating,
.tv-related-grid .poster-card-quality,
.tv-related-grid .poster-card-badge {
    font-size: 11px;
}


/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 1100px) {
    .tv-related-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .tv-details-grid {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .tv-poster-column {
        width: 210px;
    }

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

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

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

    .tv-poster-column {
        width: 180px;
        justify-self: center;
    }

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

    .tv-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .tv-player-top {
        padding-top: 18px;
    }

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

    .tv-server-tabs {
        width: 100%;
    }

    .tv-server-tab {
        flex: 1;
    }

    .tv-report-toggle {
        align-self: flex-start;
    }

    .tv-details-main {
        padding: 20px 18px;
    }

    .tv-details-head {
        flex-direction: column;
    }

    .tv-details-head h1 {
        font-size: 24px;
    }

    .tv-description {
        font-size: 15px;
    }

    .tv-fact > div {
        font-size: 14px;
    }

    .tv-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .tv-poster-column {
        width: 155px;
    }

    .tv-fake-btn {
        min-height: 40px;
        font-size: 12px;
    }

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