/* =========================================================
   MOVIE PLAYER PAGE
   ========================================================= */

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

.player-page {
    min-height: 70vh;
}


/* ---------------------------------------------------------
   Top / breadcrumb
--------------------------------------------------------- */

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

.player-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    color: #58636d;
    font-size: 13px;
}

.player-breadcrumb a {
    color: #7a858f;
    text-decoration: none;
}

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

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

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


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

.player-shell {
    display: block;
}

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

.player-video-head {
    min-height: 58px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 11px 15px;
    border-bottom: 1px solid #1d242b;
    background: #10151a;
}

.player-now-playing {
    display: block;
    margin-bottom: 3px;
    color: #e3262e;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.1px;
}

.player-video-head h1 {
    max-width: 650px;
    overflow: hidden;
    margin: 0;
    color: #e8ecef;
    font-size: 20px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-video-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-video-meta span {
    padding: 4px 6px;
    border: 1px solid #28313a;
    border-radius: 4px;
    color: #7d8790;
    font-size: 12px;
    font-weight: 800;
}

.player-video-meta .quality {
    border-color: rgba(227,38,46,.28);
    color: #dc7c81;
}

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

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

.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: #767f87;
    font-size: 13px;
    transition: opacity .18s ease, visibility .18s ease;
}

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

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

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

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

.player-unavailable strong {
    color: #cfd5da;
    font-size: 15px;
}

.player-unavailable span {
    color: #66717a;
    font-size: 13px;
}

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


.player-server-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.player-server {
    height: 31px;
    padding: 0 11px;
    border: 1px solid #2b343d;
    border-radius: 5px;
    background: #151b21;
    color: #939ca4;
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.player-server:hover {
    border-color: #414c56;
    color: #fff;
}

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


/* ---------------------------------------------------------
   Poster side
--------------------------------------------------------- */

.player-side {
    overflow: hidden;
    border: 1px solid #20272f;
    border-radius: 9px;
    background: #0f1419;
}

.player-poster-card {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #11171c;
}

.player-poster-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.player-side-info {
    padding: 11px;
}

.player-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 11px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1f272e;
}

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

.player-rating strong {
    color: #eceff1;
    font-size: 18px;
}

.player-side-facts {
    display: grid;
    gap: 8px;
}

.player-side-facts > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 7px;
}

.player-side-facts span {
    color: #5d6871;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.player-side-facts strong {
    color: #c3c9ce;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}

.player-side-facts a {
    color: inherit;
    text-decoration: none;
}

.player-side-facts a:hover {
    color: #fff;
}


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

.broken-report-toggle {
    height: 31px;
    padding: 0 10px;
    border: 1px solid #252e36;
    border-radius: 5px;
    background: #11171c;
    color: #77818a;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.broken-report-toggle:hover {
    border-color: #3b4650;
    color: #fff;
}

.broken-report-panel {
    display: none;
    margin: 0;
    padding: 14px;
    border: 0;
    border-top: 1px solid #1d242b;
    border-radius: 0;
    background: #0e1318;
    text-align: left;
}

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

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

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

.broken-report-field label small {
    color: #5d6871;
    font-size: 11px;
    font-weight: 600;
}

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

.broken-report-field select {
    height: 38px;
}

.broken-report-field textarea {
    min-height: 74px;
    resize: vertical;
}

.broken-report-field select:focus,
.broken-report-field textarea:focus {
    border-color: rgba(227,38,46,.6);
}

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

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

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

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

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

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


/* ---------------------------------------------------------
   Movie details
--------------------------------------------------------- */

.movie-detail-section {
    padding: 4px 0 34px;
}

.movie-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: start;
}

.movie-detail-main {
    padding: 26px 28px;
    border: 1px solid #1e262d;
    border-radius: 8px;
    background: #0e1318;
}

.movie-detail-kicker {
    margin-bottom: 5px;
    color: #e3262e;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.movie-detail-heading h2 {
    margin: 0;
    color: #e6eaed;
    font-size: 26px;
    line-height: 1.25;
}


.movie-description {
    margin-top: 14px;
    color: #c4cbd1;
    font-size: 16px;
    line-height: 1.75;
}

.movie-facts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    margin-top: 20px;
    border-top: 1px solid #1e262d;
}

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

.movie-fact > span {
    display: block;
    margin-bottom: 4px;
    color: #58636d;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .65px;
}

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

.movie-fact a {
    color: #aab3bb;
    text-decoration: none;
}

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

.movie-detail-ad {
    width: 270px;
    min-width: 0;
}


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

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

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

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

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

.related-section-head > a {
    color: #707b84;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

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

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


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

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

.related-grid .poster-card-rating {
    font-size: 11px;
}

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


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

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

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-top: 14px;
    border-top: 1px solid #171e24;
}

.movie-tags strong {
    margin-right: 3px;
    color: #5d6871;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.movie-tags a {
    padding: 5px 7px;
    border: 1px solid #202830;
    border-radius: 4px;
    background: #0e1318;
    color: #67717a;
    font-size: 11px;
    text-decoration: none;
}

.movie-tags a:hover {
    border-color: #37424c;
    color: #b7bec4;
}


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

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

@media (max-width: 900px) {
    .player-shell {
        grid-template-columns: minmax(0, 1fr) 160px;
    }

    .movie-detail-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .player-shell {
        grid-template-columns: 1fr;
    }

    .player-side {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .player-poster-card {
        aspect-ratio: 2 / 3;
    }

    .player-side-info {
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

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

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

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

    .player-video-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .player-video-head h1 {
        width: 100%;
        max-width: none;
    }

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

    .player-server-list {
        width: 100%;
    }

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

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

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

@media (max-width: 430px) {
    .player-side {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .player-server {
        flex: 1;
    }

    .broken-report-panel {
        padding: 11px;
    }

    .movie-detail-main {
        padding: 16px;
    }
}


/* =========================================================
   READABILITY OVERRIDE V5
   Keep these last so legacy/global CSS cannot shrink details.
   ========================================================= */

.movie-detail-main .movie-detail-heading h2 {
    font-size: 26px !important;
}

.movie-detail-main .movie-description {
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: #c4cbd1 !important;
}

.movie-detail-main .movie-fact > span {
    font-size: 12px !important;
}

.movie-detail-main .movie-fact > div,
.movie-detail-main .movie-fact > div a {
    font-size: 15px !important;
    line-height: 1.55 !important;
    color: #e0e4e7 !important;
}

.related-section-head span {
    font-size: 11px !important;
}

.related-section-head h2 {
    font-size: 24px !important;
}

.related-section-head > a {
    font-size: 12px !important;
}

@media (max-width: 620px) {
    .movie-detail-main .movie-detail-heading h2 {
        font-size: 23px !important;
    }

    .movie-detail-main .movie-description {
        font-size: 15px !important;
    }

    .movie-detail-main .movie-fact > div,
    .movie-detail-main .movie-fact > div a {
        font-size: 14px !important;
    }
}


/* =========================================================
   PLAYER LAYOUT V7
   Full-width player + uncropped poster in details
   ========================================================= */

.player-shell {
    display: block !important;
}

.player-video-wrap {
    width: 100%;
}

.player-video-head,
.player-side {
    display: none !important;
}

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

.movie-detail-poster {
    width: 240px;
    aspect-ratio: 2 / 3;
    display: block;
    align-self: start;
    overflow: hidden;
    border: 1px solid #20272f;
    border-radius: 9px;
    background: #0b1015;
}

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

.movie-detail-main {
    min-width: 0;
}

.movie-detail-headrow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

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

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

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

@media (max-width: 760px) {
    .movie-detail-grid {
        grid-template-columns: 1fr !important;
    }

    .movie-detail-poster {
        width: 190px;
        justify-self: center;
    }
}

@media (max-width: 520px) {
    .movie-detail-poster {
        width: 160px;
    }

    .movie-detail-headrow {
        flex-direction: column;
    }
}


/* =========================================================
   PLAY POSTER BUTTONS V8
   Fake Stream / Download buttons below poster
   ========================================================= */

.movie-detail-poster-column {
    width: 240px;
    align-self: start;
}

.movie-detail-poster-column .movie-detail-poster {
    width: 100%;
}

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

.movie-detail-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;
}

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

@media (max-width: 760px) {
    .movie-detail-poster-column {
        width: 190px;
        justify-self: center;
    }
}

@media (max-width: 520px) {
    .movie-detail-poster-column {
        width: 160px;
    }

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