/* Embedded SVG icons styling */
    svg.icon-sub, svg.icon-dub {
        width: 14px;
        height: 10px;
        fill: currentColor;
        vertical-align: middle;
    }

    /* Cinema Focus Mode Backdrop */
    #cinema-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(4, 6, 11, 0.95);
        z-index: 890;
        backdrop-filter: blur(8px);
        transition: opacity 0.3s ease;
    }
    body.cinema-mode #cinema-backdrop {
        display: block;
    }
    body.cinema-mode .player-wrap {
        z-index: 895 !important;
        position: relative !important;
        box-shadow: 0 0 60px rgba(0,0,0,0.95), 0 0 40px var(--accent-glow) !important;
    }

    /* Breadcrumbs */
    .watch-breadcrumb {
        font-size: 13px;
        margin-bottom: 16px;
    }
    .watch-breadcrumb .breadcrumb {
        margin: 0;
        padding: 0;
        background: transparent;
    }
    .watch-breadcrumb .breadcrumb-item a {
        color: var(--muted);
        text-decoration: none;
        transition: color 0.15s;
    }
    .watch-breadcrumb .breadcrumb-item a:hover {
        color: var(--accent);
    }
    .watch-breadcrumb .breadcrumb-item.active {
        color: #fff;
        font-weight: 500;
    }
    .watch-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
        color: rgba(255,255,255,0.25);
    }

    /* Watch Section Wrap (AnimeKai Flex Layout) */
    .watch-section-wrap {
        display: flex;
        align-items: stretch;
        gap: 20px;
        margin-bottom: 24px;
        transition: all 0.3s ease;
    }

    .watch-section-wrap .player-section {
        flex: 1 1 0;
        min-width: 0;
        background: var(--surface);
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid var(--line);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        display: flex;
        flex-direction: column;
    }

    .watch-section-wrap .episode-section {
        width: 380px;
        flex-shrink: 0;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 16px;
        display: flex;
        flex-direction: column;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    /* Expanded (Theater) Mode */
    .watch-section-wrap.is-expanded {
        flex-direction: column;
    }
    .watch-section-wrap.is-expanded .player-section {
        width: 100%;
        flex: 0 0 100%;
    }
    .watch-section-wrap.is-expanded .episode-section {
        width: 100%;
        flex: 0 0 100%;
        height: 480px;
    }

    /* Player Main & Iframe */
    .player-wrap {
        position: relative;
        width: 100%;
        background: #000;
    }
    .player-main {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
        background: #000;
        overflow: hidden;
    }
    .player-main #player {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    .player-main #player iframe {
        width: 100%;
        height: 100%;
        border: none;
        display: block;
        background: #000;
    }

    /* Player Control Bar (AnimeKai #player-control) */
    #player-control {
        background: rgba(18, 23, 34, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        padding: 12px 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: wrap;
    }
    #player-control .ctrl {
        display: inline-flex;
        align-items: center;
    }
    #player-control .ctrl .btn,
    #player-control .ctrl a.btn {
        background: transparent;
        border: none;
        color: var(--muted);
        opacity: 0.8;
        padding: 6px 12px;
        font-size: 13px;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border-radius: 8px;
        transition: all 0.2s ease;
        text-decoration: none;
        cursor: pointer;
    }
    #player-control .ctrl .btn:hover,
    #player-control .ctrl a.btn:hover {
        opacity: 1;
        color: #fff;
        background: rgba(255,255,255,0.06);
    }
    #player-control .ctrl .btn.active {
        opacity: 1;
        color: var(--accent);
    }
    #player-control .ctrl .btn.disabled,
    #player-control .ctrl .btn:disabled {
        opacity: 0.25;
        cursor: not-allowed;
        pointer-events: none;
    }
    #player-control .ctrl.download a.btn {
        background: rgba(38, 163, 214, 0.12);
        color: var(--accent);
        opacity: 1;
        border: 1px solid rgba(38, 163, 214, 0.25);
    }
    #player-control .ctrl.download a.btn:hover {
        background: var(--accent);
        color: #000;
    }

    /* Report Button in Player Control */
    #player-control .ctrl.report button.btn {
        background: rgba(239, 68, 68, 0.12);
        color: #ef4444;
        opacity: 1;
        border: 1px solid rgba(239, 68, 68, 0.25);
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 12px;
        border-radius: 6px;
        font-weight: 600;
        font-size: 13px;
        transition: all 0.2s ease;
    }
    #player-control .ctrl.report button.btn:hover {
        background: #ef4444;
        color: #fff;
    }
    @media (max-width: 768px) {
        #player-control .ctrl.report .btn span {
            display: inline;
            font-size: 11px;
        }
    }

    /* Re:ANIME / AnimeKai Style Report Modal */
    .report-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: 99999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        animation: fadeInReport 0.2s ease;
    }
    @keyframes fadeInReport {
        from { opacity: 0; transform: scale(0.98); }
        to { opacity: 1; transform: scale(1); }
    }
    .report-modal-dialog {
        background: #121520;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        width: 100%;
        max-width: 480px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
        padding: 24px;
        color: #e2e8f0;
        position: relative;
        max-height: 90vh;
        overflow-y: auto;
    }
    .report-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
    }
    .report-icon-badge {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: rgba(239, 68, 68, 0.15);
        color: #ef4444;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 17px;
    }
    .report-modal-title {
        font-size: 17px;
        font-weight: 700;
        color: #fff;
        line-height: 1.2;
    }
    .report-modal-subtitle {
        font-size: 12px;
        color: var(--muted, #94a3b8);
    }
    .report-modal-close {
        background: transparent;
        border: none;
        color: var(--muted, #94a3b8);
        font-size: 18px;
        cursor: pointer;
        padding: 4px;
        line-height: 1;
        border-radius: 6px;
        transition: color 0.15s ease;
    }
    .report-modal-close:hover {
        color: #fff;
    }
    .report-modal-target {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 8px;
        padding: 10px 14px;
        margin-bottom: 18px;
    }
    .report-modal-target .target-title {
        font-size: 13px;
        font-weight: 600;
        color: #fff;
    }
    .report-modal-target .badge-ep {
        background: rgba(38, 163, 214, 0.15);
        color: var(--accent, #26a3d6);
        border: 1px solid rgba(38, 163, 214, 0.3);
        font-size: 11px;
        font-weight: 700;
        padding: 3px 8px;
        border-radius: 6px;
        white-space: nowrap;
    }
    .report-group-label {
        display: block;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--muted, #94a3b8);
        margin-bottom: 10px;
    }
    .report-issues-grid {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .report-issue-card {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.06);
        cursor: pointer;
        transition: all 0.15s ease;
        margin-bottom: 0;
        user-select: none;
    }
    .report-issue-card:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.12);
    }
    .report-issue-card.selected {
        background: rgba(239, 68, 68, 0.08);
        border-color: rgba(239, 68, 68, 0.4);
    }
    .report-checkbox {
        display: none;
    }
    .issue-indicator {
        width: 18px;
        height: 18px;
        border-radius: 5px;
        border: 1.5px solid rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: transparent;
        flex-shrink: 0;
        transition: all 0.15s ease;
    }
    .report-issue-card.selected .issue-indicator {
        background: #ef4444;
        border-color: #ef4444;
        color: #fff;
    }
    .issue-info {
        display: flex;
        flex-direction: column;
        line-height: 1.25;
    }
    .issue-name {
        font-size: 13px;
        font-weight: 600;
        color: #fff;
    }
    .issue-desc {
        font-size: 11px;
        color: var(--muted, #94a3b8);
        margin-top: 2px;
    }
    .report-textarea {
        width: 100%;
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 8px;
        color: #fff;
        padding: 10px 12px;
        font-size: 13px;
        resize: vertical;
        outline: none;
        transition: border-color 0.15s ease;
    }
    .report-textarea:focus {
        border-color: rgba(239, 68, 68, 0.5);
    }
    .report-modal-footer {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
    }
    .report-modal-footer .btn-cancel {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #cbd5e1;
        padding: 8px 16px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.15s ease;
    }
    .report-modal-footer .btn-cancel:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    .report-modal-footer .btn-submit {
        background: #ef4444;
        border: none;
        color: #fff;
        padding: 8px 18px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: background 0.15s ease;
    }
    .report-modal-footer .btn-submit:hover {
        background: #dc2626;
    }
    .report-modal-footer .btn-submit:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }


    /* Server Selection Area (.player-bottom / #player-server) */
    .player-bottom {
        background: var(--surface);
    }
    #player-server {
        padding: 16px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 16px;
    }
    #player-server .server-note {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }
    #player-server .server-note p {
        margin: 0;
        font-size: 13px;
        font-weight: 600;
        color: #fff;
    }
    #player-server .server-note span {
        font-size: 12px;
        color: var(--muted);
    }

    .server-wrap {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    /* Server Type Tabs (Soft Sub / Dub) */
    .server-type {
        display: inline-flex;
        background: var(--surface-card);
        border: 1px solid var(--line);
        border-radius: 10px;
        padding: 4px;
        gap: 4px;
    }
    .server-type .tab {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 14px;
        border-radius: 7px;
        font-size: 12px;
        font-weight: 700;
        color: var(--muted);
        text-decoration: none;
        transition: all 0.2s ease;
        cursor: pointer;
    }
    .server-type .tab:hover {
        color: #fff;
        background: rgba(255,255,255,0.05);
    }
    .server-type .tab.active {
        color: #000;
        background: var(--accent);
        box-shadow: 0 0 12px var(--accent-glow);
    }
    .server-type .tab.active#tab-dub {
        background: #10b981;
        color: #fff;
    }

    /* Server Items */
    .server-items {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    .server-items .server {
        background: var(--surface-card);
        border: 1px solid var(--line);
        color: #f1f5f9;
        font-size: 12px;
        font-weight: 600;
        padding: 7px 14px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
    }
    .server-items .server:hover {
        border-color: rgba(38, 163, 214, 0.4);
        color: var(--accent);
    }
    .server-items .server.active {
        background: rgba(38, 163, 214, 0.15);
        border-color: var(--accent);
        color: var(--accent);
        font-weight: 700;
    }

    /* Episode Section (AnimeKai style) */
    .episode-section .head-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
        gap: 8px;
    }
    .episode-section .head-top .title {
        font-size: 15px;
        font-weight: 700;
        color: #fff;
        white-space: nowrap;
    }
    .episode-section .head-tools {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    /* Search input with # prefix */
    .ep-search-wrap {
        position: relative;
        margin-bottom: 0;
    }
    .ep-search-wrap::before {
        content: "#";
        position: absolute;
        left: 9px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
        pointer-events: none;
    }
    .ep-search-wrap input#ep-find {
        background: var(--surface-card);
        border: 1px solid var(--line);
        border-radius: 8px;
        height: 32px;
        width: 85px;
        padding-left: 22px;
        padding-right: 6px;
        font-size: 12px;
        color: #fff;
        transition: all 0.2s;
    }
    .ep-search-wrap input#ep-find:focus {
        width: 110px;
        border-color: var(--accent);
        outline: none;
        box-shadow: 0 0 8px var(--accent-glow);
    }

    /* Sub/Dub Filter Switcher in Header (.subdub-sw) */
    .subdub-sw {
        display: none;
        background: var(--surface-card);
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 2px;
        height: 32px;
        align-items: center;
        gap: 2px;
    }
    .episode-section.is-list-view .subdub-sw {
        display: inline-flex;
    }
    .subdub-sw span {
        padding: 3px 7px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
        opacity: 0.5;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 3px;
        user-select: none;
    }
    .subdub-sw span .filter-lbl {
        font-family: var(--mono);
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    .subdub-sw span:hover {
        opacity: 0.85;
    }
    .subdub-sw span.active {
        opacity: 1;
    }
    .subdub-sw span#pill-filter-sub.active {
        color: #60a5fa;
        background: rgba(59, 130, 246, 0.28);
        border: 1px solid rgba(59, 130, 246, 0.4);
    }
    .subdub-sw span#pill-filter-dub.active {
        color: #34d399;
        background: rgba(16, 185, 129, 0.28);
        border: 1px solid rgba(16, 185, 129, 0.4);
    }

    /* Toggle View Button */
    .list-sw {
        background: var(--surface-card);
        border: 1px solid var(--line);
        color: var(--muted);
        height: 32px;
        width: 32px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s;
    }
    .list-sw:hover {
        color: #fff;
        border-color: rgba(255,255,255,0.2);
    }
    .list-sw.active {
        color: var(--accent);
        border-color: var(--accent);
    }

    /* Head Bot (Range Selector Bar) */
    .head-bot {
        background: var(--surface-card);
        border: 1px solid var(--line);
        border-radius: 8px;
        height: 36px;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 8px;
        position: relative;
        flex-shrink: 0;
    }
    .head-bot .range-nav {
        background: transparent;
        border: none;
        color: var(--muted);
        padding: 4px 8px;
        font-size: 13px;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.15s;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .head-bot .range-nav:hover {
        color: #fff;
    }
    .head-bot .range-nav.disabled,
    .head-bot .range-nav:disabled {
        opacity: 0.2;
        cursor: not-allowed;
    }
    .range-dropdown {
        position: relative;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .range-dropdown .range-label {
        background: transparent;
        border: none;
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        font-family: var(--mono);
        padding: 4px 12px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        user-select: none;
    }
    .range-dropdown .range-label:hover {
        color: var(--accent);
    }
    .range-dropdown .range-label::after {
        display: inline-block;
        margin-left: 4px;
        vertical-align: 0.15em;
        content: "";
        border-top: 0.35em solid;
        border-right: 0.3em solid transparent;
        border-bottom: 0;
        border-left: 0.3em solid transparent;
    }
    .range-options {
        display: none !important;
        position: absolute;
        top: calc(100% + 6px);
        left: 50%;
        transform: translateX(-50%);
        min-width: 140px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 8px;
        max-height: 220px;
        overflow-y: auto;
        padding: 6px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.85);
        z-index: 1050;
        list-style: none;
        margin: 0;
    }
    .range-options.show {
        display: flex !important;
        flex-direction: column;
        gap: 4px;
    }
    .range-options .dropdown-item {
        color: var(--muted);
        font-size: 12px;
        font-family: var(--mono);
        font-weight: 600;
        border-radius: 6px;
        padding: 6px 12px;
        text-align: center;
        text-decoration: none;
        transition: all 0.15s;
        cursor: pointer;
        display: block;
    }
    .range-options .dropdown-item:hover,
    .range-options .dropdown-item.active {
        color: #000;
        background: var(--accent);
        font-weight: 700;
    }

    /* Episode List Scrollable Box (.eplist) */
    .eplist {
        flex: 1 1 0;
        min-height: 380px;
        position: relative;
        overflow: hidden;
    }
    .eplist ul#episodes-ul {
        list-style: none;
        margin: 0;
        padding: 2px;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--accent) transparent;
    }
    .eplist ul#episodes-ul::-webkit-scrollbar {
        width: 4px;
    }
    .eplist ul#episodes-ul::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 4px;
    }
    .eplist ul#episodes-ul::-webkit-scrollbar-track {
        background: transparent;
    }

    /* Grid Mode (Default): compact number tiles like AnimeKai */
    .eplist:not(.titles) ul#episodes-ul {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
        gap: 6px;
        align-content: flex-start;
    }
    .eplist:not(.titles) .ep-item {
        width: 100%;
    }
    .eplist:not(.titles) .ep-link {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 42px;
        background: var(--surface-card);
        border: 1px solid var(--line);
        border-radius: 8px;
        color: #fff;
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
        font-family: var(--mono);
        transition: all 0.15s ease;
    }
    .eplist:not(.titles) .ep-link .ep-title-text,
    .eplist:not(.titles) .ep-link .ep-badges-tag {
        display: none;
    }
    .eplist:not(.titles) .ep-link:hover {
        background: var(--surface-hover);
        border-color: rgba(38, 163, 214, 0.4);
        color: var(--accent);
    }
    .eplist:not(.titles) .ep-link.active {
        background: var(--accent) !important;
        border-color: var(--accent) !important;
        color: #000 !important;
        font-weight: 800;
        box-shadow: 0 0 14px var(--accent-glow);
    }

    /* List Mode (.eplist.titles): full width rows with title and badges */
    .eplist.titles ul#episodes-ul {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .eplist.titles .ep-item {
        width: 100%;
    }
    .eplist.titles .ep-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 9px 12px;
        background: var(--surface-card);
        border: 1px solid var(--line);
        border-radius: 8px;
        color: #fff;
        text-decoration: none;
        font-size: 13px;
        transition: all 0.15s ease;
    }
    .eplist.titles .ep-link .ep-tile-num {
        font-family: var(--mono);
        font-weight: 700;
        font-size: 11px;
        background: rgba(255,255,255,0.07);
        color: var(--muted);
        padding: 2px 7px;
        border-radius: 5px;
        margin-right: 10px;
        flex-shrink: 0;
    }
    .eplist.titles .ep-link .ep-title-text {
        display: block;
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 500;
        color: #e2e8f0;
    }
    .eplist.titles .ep-link .ep-badges-tag {
        display: flex;
        align-items: center;
        gap: 4px;
        margin-left: 10px;
        flex-shrink: 0;
    }
    .eplist.titles .ep-link:hover {
        background: var(--surface-hover);
        border-color: rgba(38, 163, 214, 0.3);
    }
    .eplist.titles .ep-link:hover .ep-title-text {
        color: var(--accent);
    }
    .eplist.titles .ep-link.active {
        background: rgba(38, 163, 214, 0.12) !important;
        border-color: var(--accent) !important;
    }
    .eplist.titles .ep-link.active .ep-tile-num {
        background: var(--accent);
        color: #000;
        font-weight: 800;
    }
    .eplist.titles .ep-link.active .ep-title-text {
        color: var(--accent);
        font-weight: 700;
    }

    /* Small sub/dub tags */
    .badge-sub-micro {
        font-size: 9px;
        font-weight: 700;
        padding: 2px 5px;
        border-radius: 4px;
        background: rgba(59, 130, 246, 0.2);
        color: #60a5fa;
        border: 1px solid rgba(59, 130, 246, 0.3);
    }
    .badge-dub-micro {
        font-size: 9px;
        font-weight: 700;
        padding: 2px 5px;
        border-radius: 4px;
        background: rgba(16, 185, 129, 0.2);
        color: #34d399;
        border: 1px solid rgba(16, 185, 129, 0.3);
    }

    /* Entity / Anime Info Card (Below Player) */
    .entity-section {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 24px;
        display: flex;
        gap: 24px;
    }
    .entity-poster {
        width: 140px;
        flex-shrink: 0;
        border-radius: 12px;
        overflow: hidden;
        aspect-ratio: 2/3;
        border: 1px solid var(--line);
        box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    }
    .entity-poster img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .entity-content {
        flex: 1;
        min-width: 0;
    }
    .entity-title {
        font-size: 22px;
        font-weight: 800;
        color: #fff;
        margin: 0 0 4px 0;
        line-height: 1.3;
    }
    .entity-japanese-title {
        font-size: 13px;
        color: var(--muted);
        margin-bottom: 12px;
    }
    .entity-meta-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 14px;
        align-items: center;
    }
    .meta-tag {
        font-size: 11.5px;
        font-weight: 600;
        padding: 4px 10px;
        border-radius: 6px;
        background: var(--surface-card);
        border: 1px solid var(--line);
        color: #cbd5e1;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        line-height: 1.2;
        white-space: nowrap;
    }
    .meta-tag i {
        font-size: 12px;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
        flex-shrink: 0;
    }
    .meta-tag.rating {
        background: rgba(239, 68, 68, 0.15);
        color: #f87171;
        border-color: rgba(239, 68, 68, 0.3);
    }
    .meta-tag.type {
        background: rgba(38, 163, 214, 0.12);
        color: var(--accent);
        border-color: rgba(38, 163, 214, 0.25);
    }
    .meta-tag.score {
        background: rgba(234, 179, 8, 0.14);
        color: #eab308;
        border-color: rgba(234, 179, 8, 0.3);
    }
    .entity-details-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 36px;
        margin-top: 18px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 13.5px;
    }
    .detail-item {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        line-height: 1.5;
        flex-wrap: wrap;
    }
    .detail-label {
        font-size: 13px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.55);
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 72px;
        text-transform: none;
        letter-spacing: normal;
    }
    .detail-val {
        font-size: 13.5px;
        font-weight: 500;
        color: #f1f5f9;
        min-width: 0;
        display: inline-flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
    }
    .detail-link {
        color: #cbd5e1;
        text-decoration: none;
        transition: color 0.15s ease;
    }
    .detail-link:hover {
        color: var(--accent);
        text-decoration: underline;
    }
    .detail-link.full-info-link {
        color: var(--accent);
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    .detail-link.full-info-link i {
        display: inline-flex;
        align-items: center;
        font-size: 12px;
        margin: 0 !important;
        transition: transform 0.15s ease;
    }
    .detail-link.full-info-link:hover {
        color: #5ef1dc;
        text-decoration: underline;
    }
    .detail-link.full-info-link:hover i {
        transform: translateX(3px);
    }
    .detail-sep {
        color: rgba(255, 255, 255, 0.35);
        margin: 0 4px;
        font-size: 11px;
    }
    .entity-genres {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 14px;
    }
    .genre-pill {
        font-size: 11px;
        font-weight: 600;
        padding: 3px 10px;
        border-radius: 20px;
        background: rgba(255,255,255,0.06);
        border: 1px solid var(--line);
        color: var(--muted);
        text-decoration: none;
        transition: all 0.15s;
    }
    .genre-pill:hover {
        color: #fff;
        background: rgba(255,255,255,0.12);
        border-color: rgba(255,255,255,0.25);
    }
    .entity-synopsis {
        position: relative;
    }
    .synopsis-text {
        font-size: 13px;
        color: #cbd5e1;
        line-height: 1.6;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transition: all 0.2s ease;
    }
    .synopsis-text.expanded {
        -webkit-line-clamp: unset;
        display: block;
    }
    .btn-more-synopsis {
        background: transparent;
        border: none;
        color: var(--accent);
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
        padding: 4px 0 0 0;
    }

    /* Related Seasons & Series */
    .re-relations-section {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
    .re-relations-section .re-card-heading {
        font-size: 15px;
        font-weight: 700;
        color: #fff;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .re-relations-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: 12px;
    }
    .re-relation-card {
        position: relative;
        height: 80px;
        width: 100%;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.25s ease;
        background: #000;
    }
    .re-relation-card:hover {
        transform: scale(1.02);
        border-color: rgba(38, 163, 214, 0.4);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    }
    .re-relation-card.is-active {
        border: 2px solid var(--accent) !important;
        box-shadow: 0 0 16px var(--accent-glow) !important;
        cursor: default;
        background: rgba(38, 163, 214, 0.03);
    }
    .re-relation-card.is-active .re-relation-img {
        filter: blur(2px) brightness(0.45);
    }
    .re-relation-card.is-active .re-relation-badge {
        color: var(--accent);
        background: rgba(38, 163, 214, 0.14);
        border: 1px solid rgba(38, 163, 214, 0.3);
        padding: 1px 8px;
        border-radius: 4px;
        font-weight: 800;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    }
    .re-relation-card.is-active .re-relation-title {
        color: #fff;
        font-weight: 800;
    }
    .re-relation-bg {
        position: absolute;
        inset: 0;
        z-index: 0;
    }
    .re-relation-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: blur(2px) brightness(0.45);
        transition: filter 0.25s ease;
    }
    .re-relation-card:hover .re-relation-img {
        filter: blur(2px) brightness(0.55);
    }
    .re-relation-dots {
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        opacity: 0.4;
        background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16) 1.2px, transparent 1.2px);
        background-size: 6px 6px;
    }
    .re-relation-info {
        position: relative;
        z-index: 2;
        width: 100%;
        padding: 0 12px;
        text-align: center;
    }
    .re-relation-badge {
        display: inline-block;
        font-size: 9.5px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--accent);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .re-relation-title {
        margin: 2px 0;
        font-size: 12.5px;
        font-weight: 700;
        color: #f1f5f9;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .re-relation-card:hover .re-relation-title {
        color: #fff;
    }
    .re-relation-meta {
        font-size: 10px;
        color: #94a3b8;
        font-weight: 500;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    }

    /* Comments Section (Modern Spaced Cards Style) */
    .comments-card {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: clamp(18px, 2.5vw, 28px);
        margin-top: 32px;
        margin-bottom: 48px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    .comments-header-bar {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .comments-heading {
        font-size: clamp(16px, 1.8vw, 20px);
        font-weight: 800;
        color: #fff;
        letter-spacing: -0.01em;
    }
    .comments-total-pill {
        background: rgba(38, 163, 214, 0.14);
        color: var(--accent);
        border: 1px solid rgba(38, 163, 214, 0.3);
        font-size: 12px;
        font-weight: 800;
        padding: 3px 9px;
        border-radius: 20px;
    }
    .comments-rules-hint {
        color: #94a3b8;
        font-size: 12.5px;
    }
    .comment-input-card {
        background: rgba(18, 23, 34, 0.9);
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 16px 20px;
    }
    .comment-author-avatar {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: rgba(38, 163, 214, 0.15);
        border: 1px solid rgba(38, 163, 214, 0.35);
        color: var(--accent);
        font-size: 14px;
        font-weight: 800;
    }
    .comment-textarea {
        width: 100%;
        background: var(--surface-card);
        border: 1px solid var(--line);
        border-radius: 10px;
        padding: 12px 16px;
        color: #fff;
        font-family: inherit;
        font-size: 13.5px;
        resize: vertical;
        min-height: 80px;
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s;
        line-height: 1.5;
    }
    .comment-textarea:focus {
        border-color: var(--accent);
        box-shadow: 0 0 10px var(--accent-glow);
    }
    .comment-hint-text {
        font-size: 12px;
        color: #94a3b8;
    }
    .btn-post-comment {
        background: var(--accent);
        color: #04201c;
        border: none;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 800;
        padding: 8px 20px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    }
    .btn-post-comment:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 14px var(--accent-glow);
        filter: brightness(1.05);
    }

    /* Individual Comment Cards - Spaced and Structured */
    .comments-cards-flow {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
    .comment-card-box {
        background: rgba(255, 255, 255, 0.025);
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 12px;
        padding: 16px 20px;
        transition: background 0.2s, border-color 0.2s;
    }
    .comment-card-box:hover {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(38, 163, 214, 0.25);
    }
    .comment-user-avatar {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(38, 163, 214, 0.14);
        border: 1px solid rgba(38, 163, 214, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: 800;
        color: var(--accent);
        flex-shrink: 0;
    }
    .comment-user-name {
        font-weight: 700;
        font-size: 13.5px;
        color: #fff;
    }
    .badge-comment-admin {
        font-size: 10px;
        font-weight: 800;
        padding: 2px 7px;
        border-radius: 4px;
        background: rgba(239, 68, 68, 0.16);
        color: #ff6b81;
        border: 1px solid rgba(239, 68, 68, 0.3);
        letter-spacing: 0.04em;
    }
    .comment-time-ago {
        font-size: 11.5px;
        color: #94a3b8;
    }
    .comment-content-text {
        font-size: 13.5px;
        color: #cbd5e1;
        line-height: 1.6;
        margin-top: 4px;
        margin-bottom: 12px;
        word-break: break-word;
    }
    .btn-comment-like {
        background: transparent;
        border: none;
        color: #94a3b8;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 12.5px;
        font-weight: 600;
        padding: 4px 10px;
        border-radius: 6px;
        transition: all 0.15s ease;
    }
    .btn-comment-like:hover {
        background: rgba(239, 68, 68, 0.12);
        color: #ef4444;
    }
    .btn-comment-like.liked {
        color: #ef4444;
        background: rgba(239, 68, 68, 0.12);
    }
    .comment-replies-pill {
        color: #94a3b8;
        font-size: 12px;
    }

    /* Responsive Adjustments */
    @media (max-width: 1199.98px) {
        .watch-section-wrap {
            flex-direction: column;
        }
        .watch-section-wrap .player-section,
        .watch-section-wrap .episode-section {
            width: 100%;
            flex: 0 0 100%;
        }
        .watch-section-wrap .episode-section {
            height: 480px;
        }
    }

    @media (max-width: 768px) {
        #player-control {
            padding: 10px 12px;
            gap: 6px;
        }
        #player-control .ctrl .btn span {
            display: none;
        }
        #player-control .ctrl .btn {
            padding: 6px 8px;
            font-size: 14px;
        }
        #player-control .ctrl.download .btn span {
            display: inline;
            font-size: 11px;
        }
        #player-server {
            flex-direction: column;
            align-items: stretch;
            gap: 14px;
            padding: 14px;
        }
        .server-wrap {
            justify-content: space-between;
            width: 100%;
        }
        .entity-section {
            flex-direction: column;
            gap: 16px;
            padding: 16px;
        }
        .entity-poster {
            width: 110px;
            margin: 0 auto;
        }
        .entity-content {
            text-align: center;
        }
        .entity-meta-tags,
        .entity-genres {
            justify-content: center;
        }
        .entity-details-grid {
            grid-template-columns: 1fr;
            gap: 10px;
            text-align: left;
        }
        .detail-item {
            justify-content: flex-start;
        }
    }

    @media (max-width: 480px) {
        .server-wrap {
            flex-direction: column;
            align-items: stretch;
        }
        .server-type {
            width: 100%;
            justify-content: center;
        }
        .server-items {
            width: 100%;
            justify-content: center;
        }
        .ep-search-wrap input#ep-find {
            width: 70px;
        }
        .ep-search-wrap input#ep-find:focus {
            width: 95px;
        }
    }