    /* أنماط الهيدر والقائمة المدمجة */
    header {
        height: 70px;
        background: linear-gradient(-75deg, #040a1d, #151833);
        position: sticky;
        top: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        transition: .4s all ease;
        padding-right: 30px;
        padding-left: 14px;
    }

    header>.container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        max-width: 1200px;
        margin: auto;
        padding: 0;
    }

    header>.container>a>.Logo {
        text-shadow: 0 0 5px #040a1d2e;
        float: right;
        line-height: 68px;
        margin: 0px 0 0px 18px;
        font-family: Changa;
        overflow: hidden;
        position: relative;
        font-size: 60px;
        font-weight: bold;
        color: #ffca00f2;
        text-transform: uppercase;
        transition: .2s all ease;
    }

    header>.container>a>.Logo .LogoAR {
        position: absolute;
        transition: .2s all ease;
        top: -2px;
        right: 0;
        font-size: 50px;
        width: 100%;
        line-height: 68px;
        text-align: center;
        color: white;
        transform: translate(0px, -80px);
        opacity: 0;
    }

    header>.container>a>.Logo>span {
        display: block;
        float: left;
        transition: .2s all ease;
    }

    header>.container>a>.Logo:hover .LogoAR {
        transform: translate(0);
        opacity: 1;
        transition: .2s .4s all ease;
    }

    header>.container>a>.Logo:hover>span {
        transform: translate(0px, 60px);
        opacity: 0;
    }

    header>.container>a>.Logo:hover>span:nth-child(2) {
        transition: .2s all ease;
    }

    header>.container>a>.Logo:hover>span:nth-child(3) {
        transition: .2s .1s all ease;
    }

    header>.container>a>.Logo:hover>span:nth-child(4) {
        transition: .2s .15s all ease;
    }

    header>.container>a>.Logo:hover>span:nth-child(5) {
        transition: .2s .2s all ease;
    }

    header>.container>a>.Logo:hover>span:nth-child(6) {
        transition: .2s .25s all ease;
    }

    header>.container>a>.Logo:hover>span:nth-child(7) {
        transition: .2s .3s all ease;
    }

    .MainMenu {
        float: right;
        margin-top: 0;
    }

    .MainMenu ul {
        text-align: right;
    }

    .MainMenu>ul>li {
        float: right;
        font-family: Changa;
        position: relative;
        line-height: 100%;
        padding: 0;
    }

    .MainMenu>ul>li>a {
        display: block;
        line-height: 140%;
        font-size: 16px;
        color: white;
        padding: 27px 22px;
        transition: .2s all ease;
    }

    .MainMenu>ul>li>a i.fa.fa-sort-down {
        margin-right: 11px;
    }

    .MainMenu>ul>li>ul {
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        background: white;
        transition: .2s all ease;
        visibility: hidden;
        opacity: 0;
        border-radius: 0 0 6px 6px;
        overflow: hidden;
        box-shadow: 0px 1px 5px #0000002b;
    }

    .MainMenu>ul>li:hover>ul {
        visibility: visible;
        opacity: 1;
    }

    .MainMenu>ul>li>ul>li>a {
        display: block;
        color: #000000;
        font-size: 15px;
        padding: 11px 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    .MainMenu>ul>li>ul>li:hover {
        background: linear-gradient(45deg, #414c6b, #18232d);
    }

    .MainMenu>ul>li>ul>li:hover>a {
        color: #fff !important;
    }

    .MainMenu>ul>li>ul>li:last-child>a {
        border-bottom: 0;
    }

    form.HeaderSearch {
        float: left;
        margin-top: 12px;
        transition: .3s all ease;
        position: relative;
        transform-origin: left center;
    }

    form.HeaderSearch>input {
        float: right;
        border: 0;
        height: 45px;
        width: 260px;
        padding: 0px 20px 0px 50px;
        font-family: Changa;
        transition: .2s all ease;
        opacity: .8;
        border-radius: 6px;
    }

    form.HeaderSearch>button {
        position: absolute;
        color: #151833;
        top: 0;
        cursor: pointer;
        left: 0;
        height: 100%;
        width: 50px;
        border: 0;
        background: transparent;
        font-size: 25px;
        padding-top: 2px;
    }

    .toggleMenu {
        color: #fff;
        padding: 10px;
        font-size: 25px;
        float: left;
        margin-right: 20px;
        margin-top: 12px;
        display: none;
        cursor: pointer;
    }

    .dropdowns {
        font: normal normal 14px 'Changa', Arial, sans-serif;
        background: #040a1d;
        overflow: auto;
        position: fixed;
        z-index: 99999;
        bottom: 0;
        width: 300px;
        right: -400px;
        transition: all .4s ease;
        top: 0;
        border-top: 1px solid #ddd;
        line-height: 48px;
        box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    }

    .dropdowns.shows {
        right: 0;
    }

    .dropdowns .profilemenu {
        padding: 10px;
        background: #151833;
        border-bottom: 1px solid #e8e8e808;
        box-shadow: 0 1px 8px 1px #00000094;
        line-height: 2;
        text-align: center;
    }

    .profilemenu h2 {
        color: #fff;
        font-family: 'Changa', sans-serif;
        font-size: 1.2rem;
        font-weight: 400;
    }

    .nav-menu2 {
        list-style: none;
        margin: 0;
        float: right;
        width: 100%;
        padding: 20px;
        text-align: inherit;
    }

    .nav-menu2 h2 {
        font-size: 14px;
        font-weight: normal !important;
        padding: 0 20px;
        margin: 0;
        overflow: hidden;
        color: #f1bb3f;
        font-family: 'Changa', sans-serif;
        text-align: right;
        margin-bottom: 10px;
    }

    .nav-menu2>li {
        float: right;
        width: 100%;
        background: #151833;
        border-bottom: 1px solid #232323;
        padding: 0;
        margin-bottom: 5px;
    }

    .nav-menu2>li>a {
        display: block;
        height: 48px;
        line-height: 48px;
        color: #fff;
        font-family: 'El Messiri', sans-serif;
        transition: .2s all ease;
        padding: 0 15px;
    }

    .darkshadow {
        visibility: hidden;
        opacity: 0;
        position: fixed;
        top: 0;
        background: rgba(0, 0, 0, 0.59);
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        z-index: 9999;
        transition: all .4s ease-in-out;
    }

    .darkshadow.shows {
        visibility: visible;
        opacity: 1;
    }

    @media only screen and (max-width: 1200px) {

        form.HeaderSearch,
        .MainMenu {
            display: none !important;
        }
    }

    @media only screen and (max-width: 980px) {
        .toggleMenu {
            display: block;
        }
    }

    @media only screen and (max-width: 480px) {
        header>.container>a>.Logo {
            font-size: 40px;
        }
    }

    /* أنماط الصفحة الرئيسية الأصلية */
    :root {
        --bg-dark: #0d101b;
        --bg-panel: #151833;
        --bg-panel-secondary: #222548;
        --bg-soft: #1a1d3c;
        --border-color: #2a2e58;
        --text-primary: #ffffff;
        --text-secondary: #a2a3b1;
        --accent-yellow: #ffc107;
        --accent-blue: #0099e6;
        --font-family: 'Tajawal', sans-serif;
        --radius-md: 12px;
        --radius-lg: 18px;
    }

    * {
        box-sizing: border-box;
    }

    body {
        background-color: var(--bg-dark);
        color: var(--text-primary);
        font-family: var(--font-family);
        margin: 0;
        line-height: 1.7;
    }

    .container {
        max-width: 1280px;
        margin: 0 auto;
        padding: 24px 16px;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    .breadcrumbs {
        display: flex;
        gap: 8px;
        align-items: center;
        color: var(--text-secondary);
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .breadcrumbs .separator {
        font-size: 0.7rem;
    }

    /* Hero Section with Blurred Background */
    .hero-section {
        position: relative;
        border-radius: var(--radius-lg);
        overflow: hidden;
        margin-bottom: 24px;
        height: 320px;
    }

    .hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('<?= e($poster) ?>');
        background-size: cover;
        background-position: center;
        filter: blur(15px) brightness(0.5);
        z-index: 1;
    }

    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom,
                rgba(13, 16, 27, 0.8) 0%,
                rgba(13, 16, 27, 0.95) 100%);
        z-index: 2;
    }

    .hero-content {
        position: relative;
        z-index: 3;
        display: flex;
        align-items: center;
        padding: 30px;
        height: 100%;
        gap: 30px;
    }

    .hero-poster {
        flex: 0 0 200px;
        height: 260px;
        border-radius: var(--radius-md);
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border: 2px solid rgba(255, 255, 255, 0.1);
    }

    .hero-poster img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-info {
        flex: 1;
        color: white;
    }

    .hero-info h1 {
        font-size: 2.2rem;
        margin: 0 0 8px 0;
        font-weight: 800;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    .hero-subtitle {
        font-size: 1.1rem;
        color: var(--text-secondary);
        margin-bottom: 15px;
    }

    .hero-desc {
        color: var(--text-secondary);
        margin-bottom: 20px;
        max-width: 80ch;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-meta {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
    }

    .meta-badge {
        background: rgba(255, 255, 255, 0.1);
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .meta-badge i {
        color: var(--accent-yellow);
    }

    .show-page-grid {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 24px;
    }

    .show-page-aside .poster-container {
        display: none;
    }

    .info-block {
        background-color: var(--bg-panel);
        border-radius: var(--radius-md);
        padding: 16px;
        margin-top: 20px;
    }

    .info-block ul {
        list-style: none;
        padding: 0;
        margin: 0;
        font-size: 0.9rem;
    }

    .info-block li {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .info-block li:last-child {
        border-bottom: none;
    }

    .info-block .key {
        color: var(--text-secondary);
    }

    .info-block .value.highlight {
        background-color: var(--accent-blue);
        padding: 2px 8px;
        border-radius: 6px;
        font-weight: 700;
    }

    .rating-bar-container {
        margin-top: 16px;
    }

    .rating-bar-label {
        display: flex;
        justify-content: space-between;
        font-size: 0.8rem;
        margin-bottom: 6px;
        color: var(--text-secondary);
    }

    .rating-bar-bg {
        background-color: var(--bg-panel-secondary);
        border-radius: 99px;
        height: 8px;
        overflow: hidden;
    }

    .rating-bar-fill {
        height: 100%;
        width: 87%;
        background-color: var(--accent-yellow);
        border-radius: 99px;
    }

    .show-page-main {
        background-color: var(--bg-panel);
        border-radius: var(--radius-lg);
        padding: 24px;
    }

    .show-page-main h1 {
        display: none;
    }

    .show-page-main .subtitle {
        display: none;
    }

    .story-desc {
        display: none;
    }

    /* Tabs */
    .tabs {
        display: flex;
        gap: 8px;
        border-bottom: 2px solid var(--border-color);
        margin-bottom: 24px;
        flex-wrap: wrap;
        padding-bottom: 15px;
    }

    .tab-btn {
        background: var(--accent-yellow);
        /* 🟨 خلي الخلفية صفراء */
        border: none;
        color: #000;
        /* خلي النص أسود عشان يبان كويس */
        font-family: inherit;
        font-size: 1rem;
        font-weight: 700;
        padding: 10px 20px;
        cursor: pointer;
        border-radius: var(--radius-md);
        /* خليها مدورة شوية */
        transition: 0.2s ease;
    }

    .tab-btn.active {
        background: #000;
        /* التاب المفتوح يكون أسود */
        color: var(--accent-yellow);
        /* والنص أصفر */
        border-bottom-color: var(--accent-blue);
    }

    .panel {
        display: none;
    }

    .panel.active {
        display: block;
    }

    #playerWrap {
        aspect-ratio: 16/9;
        background: #000;
        border-radius: var(--radius-md);
        overflow: hidden;
        margin-bottom: 16px;
        position: relative;
        transition: all 0.3s ease-in-out;
    }

    #playerPlaceholder {
        display: grid;
        place-content: center;
        height: 100%;
        color: var(--text-secondary);
        text-align: center;
        padding: 20px;
    }

    .player-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        margin-bottom: 30px;
    }

    #currentEpisodeTitle {
        font-size: 1.2rem;
        margin: 0;
        text-align: right;
        flex-grow: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .player-nav-btns {
        display: flex;
        gap: 8px;
    }

    .player-nav-btns button {
        background: var(--bg-soft);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        font-family: inherit;
        font-size: 1rem;
        padding: 8px 16px;
        border-radius: var(--radius-md);
        cursor: pointer;
    }

    .player-nav-btns button:hover:not(:disabled) {
        border-color: var(--accent-blue);
    }

    .player-nav-btns button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .btn-pip {
        padding: 8px 12px;
    }

    /* --- ✨ Picture-in-Picture (PiP) Styles + Drag Handle ✨ --- */
    #playerWrap.pip-mode {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 384px;
        /* 16:9 ratio */
        height: 216px;
        z-index: 10000;
        border: 2px solid var(--accent-blue);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        cursor: default;
        margin-bottom: 0;
    }

    #playerWrap .pip-handle {
        position: absolute;
        inset: 0;
        display: none;
        pointer-events: none;
    }

    #playerWrap.pip-mode .pip-handle {
        display: block;
        pointer-events: auto;
        cursor: grab;
    }

    #playerWrap.pip-mode .pip-handle:active {
        cursor: grabbing;
    }

    .server-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 24px;
    }

    .server-btn {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: var(--radius-md);
        background: var(--bg-soft);
        border: 1px solid var(--border-color);
        cursor: pointer;
        transition: 0.15s ease;
    }

    .server-btn:hover,
    .server-btn.active {
        transform: translateY(-2px);
        border-color: var(--accent-blue);
        background-color: var(--bg-panel-secondary);
    }

    .server-logo {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: var(--bg-dark);
        overflow: hidden;
        display: grid;
        place-items: center;
    }

    .server-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .server-meta {
        display: flex;
        flex-direction: column;
        line-height: 1.2;
        text-align: right;
    }

    .server-title {
        font-weight: 700;
    }

    .server-quality {
        font-size: 0.8rem;
        color: var(--text-secondary);
    }

    .episodes-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .ep-row {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px;
        border: 1px solid var(--border-color);
        background: var(--bg-soft);
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: 0.15s;
    }

    .ep-row:hover {
        transform: translateY(-2px);
        border-color: var(--accent-blue);
    }

    .ep-thumb {
        width: 100px;
        height: 60px;
        border-radius: 8px;
        overflow: hidden;
        background: var(--bg-dark);
        border: 1px solid var(--border-color);
        flex-shrink: 0;
    }

    .ep-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .ep-info {
        flex-grow: 1;
        min-width: 0;
    }

    .ep-title {
        font-weight: 700;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ep-meta {
        font-size: 0.82rem;
        color: var(--text-secondary);
    }

    .episodes-list.scrollable {
        max-height: 500px;
        overflow-y: auto;
        padding-inline-end: 8px;
    }

    .episodes-list.scrollable::-webkit-scrollbar {
        width: 8px;
    }

    .episodes-list.scrollable::-webkit-scrollbar-track {
        background: var(--bg-dark);
        border-radius: 8px;
    }

    .episodes-list.scrollable::-webkit-scrollbar-thumb {
        background: var(--bg-panel-secondary);
        border-radius: 8px;
    }

    .arc-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .arc-card {
        background: var(--bg-soft);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        overflow: hidden;
        padding: 12px;
    }

    .arc-head {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
    }

    .arc-img {
        width: 160px;
        height: 240px;
        flex: 0 0 160px;
        object-fit: cover;
        border-radius: 10px;
        border: 1px solid var(--border-color);
        background: #0b1020;
    }

    .arc-info {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .arc-title {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 800;
    }

    .arc-meta {
        font-size: 0.9rem;
        color: var(--text-secondary);
    }

    .arc-chips {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .arc-chip {
        display: inline-block;
        background: var(--accent-yellow);
        color: #0b5ed7;
        font-weight: 800;
        padding: 4px 10px;
        border-radius: 8px;
    }

    .arc-pills {
        margin-top: 4px;
        line-height: 1.9;
    }

    .pill {
        display: inline-block;
        margin: 3px;
        padding: 4px 10px;
        border-radius: 999px;
        background: var(--bg-panel-secondary);
        border: 1px solid var(--border-color);
        font-size: 0.82rem;
        cursor: pointer;
        width: 60px;
        text-align: center;
        font-weight: bolder;
    }

    .pill:hover {
        background: var(--border-color);
    }

    @media (max-width: 700px) {
        .arc-head {
            flex-direction: column;
        }

        .arc-img {
            width: 100%;
            height: 260px;
        }
    }

    .toolbar {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: 16px;
    }

    .btn {
        border: 1px solid var(--border-color);
        background: var(--bg-soft);
        color: var(--text-primary);
        padding: 10px 14px;
        border-radius: var(--radius-md);
        cursor: pointer;
        font-weight: 700;
        transition: 0.15s;
    }

    .btn:hover,
    .btn.active {
        border-color: var(--accent-blue);
        background: var(--bg-panel-secondary);
    }

    .parts-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }

    .card {
        background: var(--bg-soft);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        overflow: hidden;
        transition: 0.15s;
    }

    .card:hover {
        transform: translateY(-4px);
        border-color: var(--accent-blue);
    }

    .card-thumb {
        aspect-ratio: 3/4;
        background: var(--bg-dark);
        position: relative;
    }

    .card-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .badge {
        position: absolute;
        top: 10px;
        left: 10px;
        background: var(--accent-blue);
        color: white;
        border-radius: 999px;
        font-weight: 700;
        padding: 4px 10px;
        font-size: 0.78rem;
    }

    .card-body {
        padding: 10px 12px;
    }

    .card-title {
        margin: 0;
        font-weight: 700;
        font-size: 0.98rem;
    }

    .meta {
        font-size: 0.8rem;
        color: var(--text-secondary);
    }

    .status-text {
        color: var(--text-secondary);
        padding: 16px;
        text-align: center;
    }

    @media (max-width: 900px) {
        .show-page-grid {
            grid-template-columns: 1fr;
        }

        .hero-content {
            flex-direction: column;
            text-align: center;
            padding: 20px;
        }

        .hero-poster {
            flex: 0 0 auto;
            width: 160px;
            height: 220px;
        }

        .hero-info h1 {
            font-size: 1.8rem;
        }

        .hero-meta {
            justify-content: center;
        }

        .show-page-aside {
            display: grid;
            grid-template-columns: 200px 1fr;
            gap: 20px;
            align-items: flex-start;
        }

        #playerWrap.pip-mode {
            width: 320px;
            height: 180px;
        }
    }

    @media (max-width: 600px) {
        .hero-section {
            height: auto;
            min-height: 320px;
        }

        .hero-content {
            padding: 15px;
        }

        .hero-poster {
            width: 140px;
            height: 200px;
        }

        .hero-info h1 {
            font-size: 1.5rem;
        }

        .hero-subtitle {
            font-size: 1rem;
        }

        .show-page-aside {
            grid-template-columns: 1fr;
        }

        .parts-grid {
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        }

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

        #currentEpisodeTitle {
            text-align: center;
            margin-bottom: 8px;
        }
    }

    .ep-badge {
        display: inline-block;
        padding: 3px 8px;
        border-radius: 999px;
        font-size: 0.78rem;
        font-weight: 800;
        margin-inline-start: 8px;
        vertical-align: middle;
        border: 1px solid var(--border-color);
    }

    /* فلر */
    .ep-badge.filler {
        background: #3b1f1f;
        color: #ff8a8a;
        border-color: rgba(255, 138, 138, 0.25);
    }

    /* لحالات أخرى لو حبيت تستخدمها لاحقًا (مثال) */
    .ep-badge.info {
        background: #1f2d3b;
        color: #8bd1ff;
        border-color: rgba(139, 209, 255, 0.25);
    }

    #playerWrap iframe {
        overflow: hidden;
        /* محاولة إضافية */
        -ms-overflow-style: none;
        /* IE/Edge قديم */
        scrollbar-width: none;
        /* Firefox */
    }

    #playerWrap iframe::-webkit-scrollbar {
        display: none;
        /* WebKit */
    }

    .trailer-overlay {
        position: fixed;
        inset: 0;
        background: rgba(5, 8, 20, 0.8);
        backdrop-filter: blur(4px);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1000000;
    }

    .trailer-overlay.active {
        display: flex;
    }

    .trailer-modal {
        width: min(920px, 92vw);
        aspect-ratio: 16/9;
        background: #0c1022;
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 14px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
        position: relative;
        overflow: hidden;
        animation: pop .18s ease-out;
    }

    @keyframes pop {
        from {
            transform: scale(.98);
            opacity: 0;
        }

        to {
            transform: scale(1);
            opacity: 1;
        }
    }

    .trailer-close {
        position: absolute;
        top: 8px;
        left: 8px;
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        border-radius: 10px;
        background: rgba(0, 0, 0, .55);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, .15);
        cursor: pointer;
        font-size: 16px;
        z-index: 2;
    }

    .trailer-frame {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
        background: #000;
    }

    /* زر مشاهدة التريلر */
    .btn-trailer {
        background: #e91e63;
        border: 1px solid rgba(255, 255, 255, .12);
        color: #fff;
        font-family: inherit;
        font-weight: 800;
        padding: 8px 14px;
        border-radius: 10px;
        cursor: pointer;
        transition: .15s ease;
    }

    .btn-trailer:hover {
        transform: translateY(-1px);
    }

    .btn-trailer:disabled {
        opacity: .5;
        cursor: not-allowed;
        transform: none;
    }

    .action-btn {
        background-color: #e50914;
        color: white;
        border: none;
        padding: 5px 12px;
        cursor: pointer;
        font-family: 'Tajawal', sans-serif;
        font-size: 14px;
        border-radius: 15px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: background-color 0.2s ease;
        vertical-align: middle;
        /* Align with other badges */
    }

    .action-btn:hover {
        background-color: #f40612;
    }

    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.85);
        align-items: center;
        justify-content: center;
    }

    .modal.show {
        display: flex;
    }

    .modal-content {
        position: relative;
        background-color: #000;
        margin: auto;
        padding: 0;
        width: 80%;
        max-width: 900px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        animation: zoomIn 0.3s;
    }

    @keyframes zoomIn {
        from {
            transform: scale(0.8);
            opacity: 0;
        }

        to {
            transform: scale(1);
            opacity: 1;
        }
    }

    #trailerVideoContainer {
        position: relative;
        padding-bottom: 56.25%;
        /* 16:9 Aspect Ratio */
        height: 0;
        overflow: hidden;
        background: #000;
    }

    #trailerVideoContainer iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .modal-close {
        position: fixed;
        /* ثابت على الشاشة مش جوّه الصندوق */
        top: 20px;
        right: 20px;
        /* لو عايزه شمال: استبدل بـ left:20px; right:auto; */
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.75);
        color: #fff;
        border: 2px solid #fff;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
        z-index: 1001;
        /* أعلى من الصندوق (الصندوق نفسه z-index:1000) */
        cursor: pointer;

        /* توسيط الــ X بالظبط */
        display: inline-flex;
        align-items: center;
        justify-content: center;

        /* شكل الــ X */
        font-size: 26px;
        line-height: 1;
        font-weight: 700;

        transition: transform 0.15s ease, background-color 0.15s ease, opacity 0.2s ease;
        opacity: 0;
        /* يظهر بس وقت فتح المودال */
        visibility: hidden;
    }

    .modal.show .modal-close {
        opacity: 1;
        visibility: visible;
    }

    .modal-close:hover {
        background-color: rgba(255, 0, 0, 0.85);
        transform: scale(1.07);
    }

    .link-btn {
        background: none;
        border: 0;
        color: var(--accent-blue);
        cursor: pointer;
        font: inherit;
        padding: 0 6px;
    }

    .link-btn:hover {
        text-decoration: underline;
    }

    .info-block>ul:nth-child(1)>li:nth-child(7)>span:nth-child(1) {
        margin-left: 10px;
    }

    .show-page-aside .warning-image {
        margin-top: 16px;
        /* مسافة صغيرة فوق */
        width: 100%;
    }

    .show-page-aside .warning-image img {
        display: block;
        width: 100%;
        /* ياخد عرض العمود كله */
        height: auto;
        /* يحافظ على التناسب */
        border-radius: 8px;
        /* اختيارية: زوايا مدورة زي باقي التصميم */
    }
    .card-thumb {
    position: relative; /* ضروري لتموضع الليبل بشكل صحيح */
}

.ova-label {
    position: absolute;
    top: 50px;
    left: 10px; /* تم تغيير الموقع إلى اليسار مثل الصورة */
    
    /* التصميم الرئيسي الشبيه بالصورة */
    background-color: rgba(0, 0, 0, 0.75); /* خلفية سوداء شبه شفافة */
    color: #ffffff; /* لون النص أبيض */
    border-radius: 10px; /* زوايا دائرية */
    border: 1px solid rgba(255, 255, 255, 0.1); /* حد أبيض خفيف */
    
    /* الأبعاد والمحاذاة */
    min-width: 65px; /* أقل عرض لليبل */
    padding: 5px;
    text-align: center;
    line-height: 1.2;
    
    /* الخط والتأثيرات */
    font-family: 'Changa', sans-serif; /* استخدام خط مشابه للصورة */
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5); /* ظل للنص لجعله بارزًا */
    z-index: 3; /* لضمان ظهوره فوق كل العناصر الأخرى */
}

/* تنسيق السطر العلوي (كلمة "أوفا") */
.ova-label span {
    display: block; /* لجعلها تأخذ سطراً كاملاً */
    font-size: 14px; /* حجم خط أصغر */
    font-weight: normal; /* وزن خط عادي */
    color: #e0e0e0; /* لون رمادي فاتح قليلاً */
}

/* تنسيق السطر السفلي (الرقم) */
.ova-label {
    font-size: 24px; /* حجم خط كبير للرقم */
    font-weight: 700; /* وزن خط عريض جدًا */
}
@media (max-width: 600px) {
  #playerWrap {
    width: 100vw;       /* بعرض الشاشة كله */
    height: auto;
    aspect-ratio: 16/9; /* يحافظ على النسبة */
    border-radius: 0;   /* يشيل الحواف الدائرية */
    margin: 0;          /* يشيل أي margin */
    border: none;       /* يشيل البوردر */
  }

  .show-page-main {
    padding: 0;         /* يشيل الحواف الداخلية */
    border: none;       /* يشيل البوردر */
    border-radius: 0;
    background: none;   /* يخلي الخلفية تبان */
  }

  #playerPlaceholder {
    padding: 0;
  }
}
/* --- تنسيقات قسم التعليقات --- */
.comments-section-container {
    grid-column: 1 / -1;
    margin-top: 30px;
    padding: 20px;
    background-color: #1a1a24;
    border-radius: 8px;
}
.comments-section-container h3 {
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid #e50914;
    padding-bottom: 10px;
}
.login-prompt { text-align: center; }
.login-prompt a { color: #e50914; font-weight: bold; }

.comment-form textarea {
    width: 100%; min-height: 80px; padding: 10px; border-radius: 5px;
    background-color: #1e1e28; color: #fff; border: 1px solid #444;
}
.comment-form button {
    padding: 8px 15px; background-color: #e50914; color: #fff;
    border: none; border-radius: 5px; cursor: pointer; margin-top: 10px;
}
.comment-form button.cancel-reply { background-color: #555; margin-right: 5px; }
.reply-form { margin-top: 15px; }

.comments-list { margin-top: 25px; }
.comment {
    background: #2a2a38; padding: 12px; border-radius: 5px;
    margin-bottom: 12px; border-right: 3px solid #444;
}
.comment-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9em; }
.comment-author { font-weight: bold; color: #fff; }
.comment-date { color: #aaa; }
.comment-content { color: #ddd; line-height: 1.6; word-wrap: break-word; }
.reply-btn { background: none; border: none; color: #e50914; cursor: pointer; padding: 5px 0; }

.replies { margin-top: 15px; margin-right: 25px; padding-right: 15px; border-right: 2px solid #555; }