    :root {
      --bg: #07090e;
      --bg-elevated: rgba(18, 22, 34, 0.58);
      --glass: rgba(22, 26, 40, 0.52);
      --glass-strong: rgba(16, 19, 30, 0.72);
      --glass-border: rgba(255, 255, 255, 0.13);
      --glass-border-soft: rgba(255, 255, 255, 0.08);
      --glass-shine: inset 0 1px 0 rgba(255, 255, 255, 0.14);
      --glass-shadow: 0 10px 34px rgba(0, 0, 0, 0.42);
      --glass-blur: blur(18px) saturate(1.35);
      --gold: #f59e0b;
      --gold-soft: rgba(245, 158, 11, 0.16);
      --text: #ffffff;
      --muted: #9aa3b2;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, -apple-system, sans-serif; -webkit-tap-highlight-color: transparent; }
    body {
      color: var(--text);
      padding-bottom: 50px;
      overflow-x: hidden;
      background:
        radial-gradient(900px 420px at 85% -8%, rgba(245, 158, 11, 0.16), transparent 55%),
        radial-gradient(760px 380px at -10% 30%, rgba(56, 189, 248, 0.07), transparent 50%),
        radial-gradient(700px 360px at 110% 85%, rgba(245, 158, 11, 0.08), transparent 45%),
        var(--bg);
      background-attachment: fixed;
    }
    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
      :root { --glass: rgba(18, 22, 34, 0.92); --glass-strong: rgba(14, 17, 27, 0.95); --bg-elevated: rgba(18, 22, 34, 0.94); }
    }

    /* Top Bar & Profile */
    .top-bar {
      display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; position: sticky; top: 0; z-index: 50;
      background: rgba(7, 9, 14, 0.55); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
      border-bottom: 1px solid var(--glass-border-soft); box-shadow: var(--glass-shine);
    }
    .brand { display: flex; align-items: center; gap: 9px; }
    .brand-mark { width: 38px; height: 38px; flex: 0 0 auto; filter: drop-shadow(0 4px 12px rgba(245,158,11,0.35)); }
    .boot-mark { width: 72px; height: 72px; filter: drop-shadow(0 10px 28px rgba(245,158,11,0.35)); }
    .brand-text { display: flex; flex-direction: column; line-height: 1.15; direction: ltr; text-align: left; }
    .brand-name { font-size: 1.02rem; font-weight: 800; color: #fff; letter-spacing: 0.2px; }
    .brand-name span { background: linear-gradient(135deg, #fde68a, #f59e0b 55%, #d97706); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .brand-sub { font-size: 0.62rem; color: #8b93a3; direction: rtl; text-align: left; }

    .profile-box { display: flex; align-items: center; gap: 8px; background: var(--glass); padding: 4px 10px 4px 6px; border-radius: 30px; border: 1px solid var(--glass-border); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shine); }
    .profile-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1.5px solid #f59e0b; background: #1f2833; }
    .profile-info { display: flex; flex-direction: column; }
    .profile-name { font-size: 11px; font-weight: bold; color: #fff; max-width: 90px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .vip-badge { background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; font-weight: 800; font-size: 9px; padding: 1px 6px; border-radius: 10px; width: fit-content; }

    /* Search Bar */
    .search-box { margin: 12px 16px 0; position: relative; }
    .search-box input {
      width: 100%; padding: 11px 40px 11px 40px; color: #fff; font-size: 16px; outline: none;
      background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px;
      backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
      box-shadow: var(--glass-shine), var(--glass-shadow); transition: border-color 0.15s, box-shadow 0.15s;
    }
    .search-box input::placeholder { color: #6b7280; font-size: 0.85rem; }
    .search-box input:focus { border-color: rgba(245,158,11,0.55); box-shadow: 0 0 0 3px rgba(245,158,11,0.12); }
    .search-ico { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: #6b7280; pointer-events: none; }
    .search-clear { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: none; background: rgba(255,255,255,0.08); color: #cbd5e1; font-size: 13px; cursor: pointer; display: none; }
    .search-clear.active { display: block; }

    /* Category chips */
    .cat-tabs { display: flex; gap: 8px; padding: 12px 16px 2px; overflow-x: auto; scrollbar-width: none; }
    .cat-tabs::-webkit-scrollbar { display: none; }
    .cat-tab {
      flex: 0 0 auto; color: #cbd5e1; font-size: 0.82rem; font-weight: 700; padding: 8px 18px; border-radius: 22px; cursor: pointer; transition: all 0.15s;
      background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--glass-shine);
    }
    .cat-tab.active { background: linear-gradient(135deg, #fbbf24, #d97706); border-color: transparent; color: #0b0c10; box-shadow: 0 4px 14px rgba(245,158,11,0.28); }
    .cat-tab:active { transform: scale(0.95); }

    /* Notice Banner */
    .notice {
      margin: 12px 16px 0; padding: 9px 12px; border-radius: 14px; font-size: 0.72rem; color: #e5c07b; line-height: 1.6; display: flex; align-items: flex-start; gap: 8px;
      background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.28);
      backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--glass-shine);
    }
    .notice.hidden { display: none; }
    .notice-text { flex: 1; color: #d1d5db; }
    .notice-text b { color: #fbbf24; font-weight: 800; }
    .notice-mark { flex: 0 0 auto; width: 26px; height: 26px; margin-top: 2px; }
    .notice-close { flex: 0 0 auto; background: none; border: none; color: #9ca3af; font-size: 13px; cursor: pointer; padding: 0 2px; line-height: 1.6; }

    /* Section Titles */
    .sec-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 16px 12px; }
    .sec-title { font-size: 1.02rem; font-weight: 800; color: #f3f4f6; display: flex; align-items: center; gap: 8px; }
    .sec-title::before { content: ""; display: inline-block; width: 4px; height: 17px; background: linear-gradient(180deg, #fbbf24, #d97706); border-radius: 3px; }
    .sec-more { background: none; border: none; color: #f59e0b; font-size: 0.78rem; font-weight: 700; cursor: pointer; padding: 4px 0; }
    .home-section.hidden, .home-panel.hidden { display: none; }

    /* Swiper Styling */
    .swiper { width: 100%; padding: 0 16px; }

    /* Featured hero */
    .featuredSwiper { padding: 2px 16px 26px; }
    .featuredSwiper .swiper-slide {
      height: 214px; border-radius: 22px; overflow: hidden; position: relative; cursor: pointer;
      background: var(--glass-strong); border: 1px solid var(--glass-border);
      box-shadow: var(--glass-shine), var(--glass-shadow);
    }
    .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(16px) brightness(0.5) saturate(1.2); transform: scale(1.3); }
    .hero-shade { position: absolute; inset: 0; background: linear-gradient(270deg, rgba(11,12,16,0.15) 0%, rgba(11,12,16,0.7) 55%, rgba(11,12,16,0.92) 100%); }
    .hero-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; gap: 14px; padding: 16px; }
    .hero-poster { flex: 0 0 auto; width: 120px; height: 178px; border-radius: 14px; object-fit: cover; box-shadow: 0 10px 24px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.12); background: #1f2833; }
    .hero-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; text-align: right; }
    .hero-kicker { font-size: 0.64rem; font-weight: 800; color: #fbbf24; background: rgba(245,158,11,0.14); border: 1px solid rgba(245,158,11,0.3); padding: 2px 9px; border-radius: 10px; }
    .hero-title { width: 100%; text-align: right; font-size: 1.05rem; font-weight: 800; color: #fff; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
    .hero-meta { font-size: 0.72rem; color: #cbd5e1; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
    .hero-play { margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #fbbf24, #d97706); color: #0b0c10; font-weight: 800; font-size: 0.8rem; padding: 8px 16px; border-radius: 12px; box-shadow: 0 4px 14px rgba(245,158,11,0.35); }
    .hero-play svg { width: 12px; height: 12px; fill: currentColor; }
    .featuredSwiper .swiper-wrapper, .featuredSwiper .swiper-slide { transition-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }
    .featuredSwiper .swiper-pagination { bottom: 6px !important; }
    .featuredSwiper .swiper-pagination-bullet { background: #4b5563; opacity: 1; width: 6px; height: 6px; transition: all 0.6s ease; }
    .featuredSwiper .swiper-pagination-bullet-active { background: #f59e0b; width: 18px; border-radius: 4px; }

    /* Cards */
    .rowSwiper .swiper-slide { width: 128px; cursor: pointer; }
    .card-thumb {
      width: 128px; height: 188px; border-radius: 16px; overflow: hidden; position: relative; transition: transform 0.15s, box-shadow 0.15s;
      background: var(--glass-strong); border: 1px solid var(--glass-border-soft); box-shadow: var(--glass-shine), 0 8px 22px rgba(0,0,0,0.35);
    }
    .card:active .card-thumb, .swiper-slide:active .card-thumb { transform: scale(0.96); }
    .card-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .card-thumb::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, rgba(0,0,0,0.55), transparent); pointer-events: none; }
    .badge-qual { position: absolute; top: 7px; left: 7px; z-index: 2; background: rgba(11,12,16,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 0.6rem; padding: 2px 6px; border-radius: 6px; font-weight: 800; color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); direction: ltr; }
    .card-title { text-align: right; margin-top: 8px; font-size: 0.78rem; font-weight: 700; color: #e5e7eb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .card-alt { margin-top: 1px; font-size: 0.66rem; color: #a1a8b5; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .hero-alt { width: 100%; text-align: right; font-size: 0.72rem; color: #cbd5e1; opacity: 0.85; margin-top: -4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .detail-alt { margin-top: 4px; font-size: 0.85rem; color: #9ca3af; font-weight: 600; }
    .detail-alt:empty { display: none; }
    .card-sub { margin-top: 2px; font-size: 0.66rem; color: #8b93a3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* Grid (category / search) */
    .grid-head { margin: 18px 16px 10px; font-size: 0.8rem; color: #9ca3af; }
    .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; padding: 0 16px; }
    .card-grid .card { min-width: 0; cursor: pointer; }
    .card-grid .card-thumb { width: 100%; height: auto; aspect-ratio: 2 / 3; }
    .grid-empty { grid-column: 1 / -1; text-align: center; color: #6b7280; font-size: 0.85rem; padding: 40px 0; }

    /* Modern Cinema Movie View */
    #movieView { position: fixed; inset: 0; background: #07090e; z-index: 100; overflow-y: auto; display: none; padding-bottom: 40px; }
    #movieView.active { display: block; animation: fadeInView 0.25s ease-out forwards; }
    @keyframes fadeInView { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }
    
    .detail-hero { position: relative; width: 100%; height: min(132vw, 620px); overflow: hidden; background: #07090e; }
    .detail-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(22px) brightness(0.5); transform: scale(1.2); }
    .detail-hero-img { position: relative; display: block; width: 100%; max-width: 480px; height: 100%; margin: 0 auto; object-fit: cover; object-position: center top; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); animation: heroZoom 9s ease-out forwards; }
    @keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
    .detail-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(7,9,14,0.35) 0%, rgba(7,9,14,0) 18%, rgba(7,9,14,0) 45%, rgba(7,9,14,0.75) 78%, #07090e 100%); pointer-events: none; }
    .detail-body { position: relative; z-index: 10; margin-top: -170px; padding: 0 18px; max-width: 520px; margin-left: auto; margin-right: auto; }
    .detail-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; font-weight: 800; color: #000; background: linear-gradient(135deg, #fcd34d, #f59e0b); padding: 3px 10px; border-radius: 20px; letter-spacing: 0.2px; }
    .detail-kind svg { width: 13px; height: 13px; fill: none; stroke: #000; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .detail-body .detail-title { margin-top: 10px; font-size: 1.55rem; line-height: 1.35; text-align: right; }
    .detail-body .detail-alt { text-align: right; font-size: 0.9rem; color: #cbd5e1; margin-top: 2px; direction: ltr; text-align: right; }
    .detail-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 12px; font-size: 0.8rem; color: #d1d5db; font-weight: 600; }
    .detail-facts .fact { display: inline-flex; align-items: center; gap: 4px; }
    .detail-facts .fact + .fact::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: #6b7280; margin-left: 8px; }
    .detail-facts .imdb { color: #fbbf24; font-weight: 800; }
    .detail-facts .imdb small { color: #9ca3af; font-weight: 600; font-size: 0.68rem; }
    .detail-facts .qual { border: 1px solid rgba(255,255,255,0.35); border-radius: 5px; padding: 0 5px; font-size: 0.68rem; font-weight: 800; direction: ltr; }
    .detail-genres { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
    .detail-genres span {
      font-size: 0.7rem; color: #e5e7eb; padding: 4px 10px; border-radius: 20px;
      background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    }
    .detail-body .play-btn { max-width: none; margin-top: 18px; padding: 16px; font-size: 1.05rem; border-radius: 14px; }
    .detail-features { display: flex; gap: 8px; margin-top: 12px; }
    .detail-features div {
      flex: 1; text-align: center; border-radius: 14px; padding: 9px 4px; font-size: 0.66rem; color: #9ca3af; line-height: 1.5;
      background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--glass-shine);
    }
    .feat-ico { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin: 0 auto 6px; border-radius: 11px; background: linear-gradient(145deg, rgba(252, 211, 77, 0.22), rgba(217, 119, 6, 0.12)); border: 1px solid rgba(245, 158, 11, 0.35); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 12px rgba(245, 158, 11, 0.12); }
    .feat-ico svg { width: 19px; height: 19px; fill: none; stroke: #fbbf24; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
    .feat-ico svg .fill { fill: #fbbf24; stroke: none; }
    .detail-features div { color: #cbd5e1; font-weight: 600; }
    .detail-section { margin-top: 22px; }
    .detail-section-title { font-size: 0.92rem; font-weight: 800; color: #f3f4f6; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
    .detail-section-title::before { content: ''; width: 4px; height: 16px; background: #f59e0b; border-radius: 2px; }
    .detail-desc { font-size: 0.82rem; color: #cbd5e1; line-height: 1.95; text-align: justify; }
    .detail-credits {
      background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px; padding: 4px 14px;
      backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shine);
    }
    .credit-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.78rem; line-height: 1.8; }
    .credit-row:last-child { border-bottom: none; }
    .credit-row span { flex: 0 0 64px; color: #9ca3af; }
    .credit-row b { flex: 1; color: #f3f4f6; font-weight: 600; }
    .similar-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin: 0 -18px; padding-left: 18px; padding-right: 18px; scrollbar-width: none; }
    .similar-row::-webkit-scrollbar { display: none; }
    .similar-row .card { flex: 0 0 112px; min-width: 0; cursor: pointer; }
    .similar-row .card-thumb { width: 112px; height: 166px; }
    #movieView .episodes-box { max-width: none; }
    .detail-back-btn {
      position: absolute; top: 16px; right: 16px; color: #fff; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; z-index: 20; transition: transform 0.15s;
      background: var(--glass-strong); border: 1px solid var(--glass-border); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shine);
    }
    .detail-back-btn:active { transform: scale(0.9); }
    
    .detail-title { margin-top: 16px; font-size: 1.25rem; font-weight: 800; color: #ffffff; letter-spacing: -0.3px; line-height: 1.4; text-shadow: 0 2px 10px rgba(0,0,0,0.7); }
    
    .play-btn { margin-top: 22px; width: 100%; max-width: 320px; background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: #000; font-weight: 800; padding: 15px; border-radius: 14px; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1rem; box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35); transition: transform 0.15s, box-shadow 0.15s; }
    .play-btn:active { transform: scale(0.97); }

    /* Boot / connection state */
    #bootView { position: fixed; inset: 0; z-index: 9998; background: #0b0c10; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 30px; text-align: center; }
    #bootView.active { display: flex; }
    .boot-logo { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, #fcd34d, #f59e0b 55%, #b45309); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(245,158,11,0.3); }
    .boot-logo svg { width: 28px; height: 28px; fill: #0b0c10; margin-left: 3px; }
    .boot-spin { width: 30px; height: 30px; border: 3px solid rgba(255,255,255,0.15); border-top-color: #f59e0b; border-radius: 50%; animation: player-spin 0.9s linear infinite; }
    .boot-msg { font-size: 0.85rem; color: #a1a8b5; line-height: 1.9; max-width: 300px; }
    #bootView .boot-retry { display: none; min-width: 180px; }
    #bootView.error .boot-spin { display: none; }
    #bootView.error .boot-retry { display: flex; }
    #bootView.error .boot-msg { color: #e5e7eb; }

    /* Lock Screen View */
    #lockScreenView { position: fixed; inset: 0; background: #0b0c10; z-index: 9999; display: none; flex-direction: column; align-items: center; justify-content: center; padding: 24px 22px; text-align: center; overflow-y: auto; }
    #lockScreenView.active { display: flex; }
    .lock-collage { position: absolute; inset: -40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; transform: rotate(-8deg); opacity: 0; transition: opacity 0.8s; pointer-events: none; }
    .lock-collage.ready { opacity: 0.32; }
    .lock-collage img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; }
    .lock-veil { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 38%, rgba(11,12,16,0.55) 0%, rgba(11,12,16,0.92) 55%, #0b0c10 85%); pointer-events: none; }
    .lock-card {
      position: relative; z-index: 2; width: 100%; max-width: 340px; display: flex; flex-direction: column; align-items: center; margin: auto 0;
      padding: 22px 18px; border-radius: 24px;
      background: rgba(14, 17, 27, 0.45); border: 1px solid var(--glass-border);
      backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
      box-shadow: var(--glass-shine), var(--glass-shadow);
    }

    .lock-glow-wrap { position: relative; width: 92px; height: 92px; margin-bottom: 18px; display: flex; align-items: center; justify-content: center; }
    .lock-glow-wrap::before { content: ""; position: absolute; inset: -18px; background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, rgba(245, 158, 11, 0) 70%); border-radius: 50%; animation: pulseGlow 2.8s infinite ease-in-out; }
    @keyframes pulseGlow {
      0%, 100% { transform: scale(1); opacity: 0.6; }
      50% { transform: scale(1.12); opacity: 1; }
    }
    .lock-circle { position: relative; width: 80px; height: 80px; border-radius: 24px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #fcd34d, #f59e0b 55%, #b45309); box-shadow: 0 10px 30px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255,255,255,0.4); transform: rotate(-6deg); }
    .lock-svg { width: 42px; height: 42px; fill: #0b0c10; transform: rotate(6deg); }

    .lock-kicker { font-size: 0.68rem; font-weight: 800; letter-spacing: 1.5px; color: #fbbf24; direction: ltr; margin-bottom: 6px; }
    .lock-h { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; color: #fff; line-height: 1.5; }
    .lock-p { font-size: 0.82rem; color: #a1a8b5; line-height: 1.8; margin-bottom: 18px; }
    .lock-perks { width: 100%; list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; text-align: right; }
    .lock-perks li {
      display: flex; align-items: center; gap: 10px; border-radius: 16px; padding: 10px 12px; font-size: 0.8rem; font-weight: 600; color: #e5e7eb;
      background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shine);
    }
    .lock-perks i { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; background: rgba(245,158,11,0.14); color: #fbbf24; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 0.8rem; font-weight: 900; }

    .lock-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
    .btn-buy { background: linear-gradient(135deg, #fcd34d, #f59e0b 50%, #d97706); color: #0b0c10; font-weight: 800; border: none; padding: 14px 20px; border-radius: 14px; font-size: 0.95rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35); transition: transform 0.2s; text-decoration: none; }
    .btn-buy:active { transform: scale(0.97); }
    .btn-close-app {
      color: #cbd5e1; font-weight: 600; padding: 12px 20px; border-radius: 14px; font-size: 0.85rem; cursor: pointer; transition: all 0.2s;
      background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    }
    .btn-close-app:active { transform: scale(0.97); background: rgba(255, 255, 255, 0.12); }
    .lock-id-box { margin-top: 16px; font-size: 0.7rem; color: #6b7280; direction: ltr; }

    /* Profile Modal */
    .profile-box { cursor: pointer; transition: transform 0.2s; }
    .profile-box:active { transform: scale(0.96); }
    #userModal { position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(8px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
    #userModal.active { display: flex; }
    .user-modal-card {
      width: 100%; max-width: 320px; padding: 24px 20px; text-align: center; position: relative; border-radius: 22px;
      background: var(--glass-strong); border: 1px solid var(--glass-border);
      backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
      box-shadow: var(--glass-shine), var(--glass-shadow);
    }
    .user-modal-close { position: absolute; top: 14px; left: 14px; color: #9ca3af; font-size: 18px; cursor: pointer; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.06); }
    .modal-avatar { width: 70px; height: 70px; border-radius: 50%; border: 2.5px solid #f59e0b; margin-bottom: 12px; object-fit: cover; }
    .modal-name { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 4px; }
    .modal-badge { display: inline-block; background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 12px; margin-bottom: 16px; }
    .modal-row {
      display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; margin-bottom: 8px; font-size: 12px; border-radius: 12px;
      background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border-soft);
    }
    .modal-row span:first-child { color: #9ca3af; }
    .modal-row span:last-child { color: #fff; font-weight: 600; direction: ltr; }

  
    .profile-capsule {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--glass-strong);
      border: 1px solid rgba(245, 158, 11, 0.45);
      border-radius: 30px;
      padding: 3px 4px 3px 8px;
      backdrop-filter: var(--glass-blur);
      -webkit-backdrop-filter: var(--glass-blur);
      box-shadow: var(--glass-shine), 0 2px 10px rgba(0, 0, 0, 0.45), 0 0 12px rgba(245, 158, 11, 0.12);
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .profile-capsule:active {
      transform: scale(0.95);
      box-shadow: 0 0 6px rgba(245, 158, 11, 0.3);
    }
    .capsule-badge {
      background: linear-gradient(135deg, #ffd700 0%, #f59e0b 50%, #b45309 100%);
      color: #0b0c10;
      font-weight: 800;
      font-size: 10px;
      padding: 3px 8px;
      border-radius: 20px;
      display: flex;
      align-items: center;
      gap: 4px;
      letter-spacing: 0.3px;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
      text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    .capsule-avatar {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      object-fit: cover;
      border: 1.5px solid #f59e0b;
      box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
      background: #141721;
      display: block;
    }

  
    /* Player Overlay & Back Button */
    #videoPlayerModal {
      position: fixed;
      inset: 0;
      background: #000;
      z-index: 99999;
      display: none;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }
    #videoPlayerModal.active { display: flex; }
    #videoPlayerModal:fullscreen { width: 100%; height: 100%; background: #000; }
    #videoPlayerModal:-webkit-full-screen { width: 100%; height: 100%; background: #000; }
    #videoPlayerModal:fullscreen #mainVideoEl { max-height: none; }
    #videoPlayerModal:-webkit-full-screen #mainVideoEl { max-height: none; }
    #videoPlayerModal.pseudo-fs #mainVideoEl { max-height: none; }
    #videoPlayerModal.fs-rotated { inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(90deg); transform-origin: center center; }
    #videoPlayerModal.fs-rotated .player-topbar { padding-top: 12px; }
    .player-topbar {
      position: absolute;
      top: 0; left: 0; right: 0;
      z-index: 2147483647;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) + 12px) 14px 26px;
      background: linear-gradient(to bottom, rgba(0,0,0,0.78), rgba(0,0,0,0));
      pointer-events: none;
    }
    .player-topbar > * { pointer-events: auto; }
    .player-back-bar { flex: 0 0 auto; }
    .player-tb-title { flex: 1; min-width: 0; text-align: right; pointer-events: none; }
    .player-tb-name { text-align: right; font-size: 0.86rem; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px rgba(0,0,0,0.8); }
    .player-ep-label { font-size: 0.7rem; font-weight: 600; color: #cbd5e1; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px rgba(0,0,0,0.8); }
    .player-ep-label:empty { display: none; }
    .btn-return-app, .btn-custom-fullscreen {
      flex: 0 0 auto;
      height: 40px;
      background: rgba(20, 24, 38, 0.72);
      border: 1px solid rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      color: #ffffff;
      border-radius: 20px;
      font-size: 0.82rem;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      box-shadow: 0 4px 14px rgba(0,0,0,0.45);
    }
    .btn-return-app { padding: 0 14px 0 16px; }
    .btn-custom-fullscreen { width: 40px; padding: 0; }
    .btn-custom-fullscreen span { display: none; }
    .btn-return-app svg, .btn-custom-fullscreen svg { width: 18px; height: 18px; fill: currentColor; }
    .btn-return-app:active, .btn-custom-fullscreen:active {
      transform: scale(0.94);
      background: #f59e0b;
      color: #000;
      border-color: #f59e0b;
    }
    #mainVideoEl {
      width: 100%;
      height: 100%;
      max-height: 100vh;
      object-fit: contain;
      background: #000;
    }

    /* Series: episode picker */
    .badge-series { position: absolute; bottom: 6px; right: 6px; background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; font-size: 0.62rem; font-weight: 800; padding: 2px 7px; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.5); }
    .episodes-box { display: none; margin-top: 22px; width: 100%; max-width: 360px; text-align: right; }
    .episodes-box.active { display: block; }
    .ep-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
    .ep-head-title { font-size: 0.95rem; font-weight: 800; color: #f3f4f6; display: flex; align-items: center; gap: 8px; }
    .ep-head-title::before { content: ""; width: 4px; height: 16px; background: #f59e0b; border-radius: 2px; }
    .ep-head-count { font-size: 0.72rem; color: #9ca3af; }
    .season-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: none; }
    .season-tabs::-webkit-scrollbar { display: none; }
    .season-tab {
      flex: 0 0 auto; color: #d1d5db; font-size: 0.8rem; font-weight: 700; padding: 8px 16px; border-radius: 22px; cursor: pointer; transition: all 0.15s;
      background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    }
    .season-tab.active { background: linear-gradient(135deg, #f59e0b, #d97706); border-color: #f59e0b; color: #000; box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3); }
    .episode-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
    .episode-btn {
      position: relative; aspect-ratio: 1 / 1; border-radius: 14px; color: #f3f4f6; font-size: 0.95rem; font-weight: 800; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: transform 0.12s, border-color 0.15s;
      background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--glass-shine);
    }
    .episode-btn small { font-size: 0.55rem; font-weight: 600; color: #9ca3af; }
    .episode-btn:active { transform: scale(0.93); }
    .episode-btn.watched { border-color: rgba(16, 185, 129, 0.45); }
    .episode-btn.watched::after { content: "✓"; position: absolute; top: 3px; left: 5px; font-size: 0.6rem; color: #10b981; }
    .episode-btn.current { border-color: #f59e0b; box-shadow: 0 0 0 1px #f59e0b, 0 4px 14px rgba(245, 158, 11, 0.25); color: #fbbf24; }
    .episodes-loading { text-align: center; color: #9ca3af; font-size: 0.8rem; padding: 14px 0; }
    .btn-next-ep {
      position: absolute; bottom: 90px; left: 18px; z-index: 2147483647; display: none;
      background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; border: none;
      padding: 10px 18px; border-radius: 26px; font-size: 0.9rem; font-weight: 800; cursor: pointer;
      box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    }
    .btn-next-ep.active { display: block; }
    .btn-next-ep:active { transform: scale(0.94); }
    /* Admin panel */
    .admin-entry { display: none; background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.45); color: #fbbf24; border-radius: 50%; width: 34px; height: 34px; font-size: 16px; cursor: pointer; margin-left: 8px; }
    .admin-entry.active { display: inline-flex; align-items: center; justify-content: center; }
    .modal-admin-btn { display: none; width: 100%; margin-top: 10px; background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; border: none; font-weight: 800; padding: 11px; border-radius: 12px; cursor: pointer; }
    .modal-admin-btn.active { display: block; }
    .modal-renew-btn { display: none; width: 100%; margin-top: 6px; background: linear-gradient(135deg, #10b981, #059669); color: #fff; border: none; font-weight: 800; font-size: 14px; padding: 12px; border-radius: 12px; cursor: pointer; }
    .modal-renew-btn.active { display: block; }
    .modal-renew-btn.urgent { background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; animation: renewPulse 1.8s ease-in-out infinite; }
    .modal-renew-hint { display: none; margin-top: 6px; font-size: 10.5px; color: #9ca3af; text-align: center; line-height: 1.6; }
    .modal-renew-hint.active { display: block; }
    @keyframes renewPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45); } 50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); } }
    #payModal { position: fixed; inset: 0; background: rgba(0,0,0,0.78); backdrop-filter: blur(8px); z-index: 210; display: none; align-items: center; justify-content: center; padding: 16px; }
    #payModal.active { display: flex; }
    .pay-card {
      width: 100%; max-width: 360px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px 18px 18px; position: relative; text-align: right; border-radius: 22px;
      background: var(--glass-strong); border: 1px solid var(--glass-border);
      backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
      box-shadow: var(--glass-shine), var(--glass-shadow);
    }
    .pay-title { font-size: 16px; font-weight: 800; color: #fff; text-align: center; margin-bottom: 4px; }
    .pay-sub { font-size: 11.5px; color: #9ca3af; text-align: center; line-height: 1.7; margin-bottom: 14px; }
    .pay-step { display: none; }
    .pay-step.active { display: block; }
    .pay-plan {
      width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #fff; border-radius: 14px; padding: 13px 14px; margin-bottom: 9px; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 700; text-align: right;
      background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    }
    .pay-plan:active { transform: scale(0.98); }
    .pay-plan.best { border-color: rgba(245, 158, 11, 0.6); background: rgba(245, 158, 11, 0.08); }
    .pay-plan.first { border-color: rgba(16, 185, 129, 0.6); background: rgba(16, 185, 129, 0.08); }
    .pay-plan-price { color: #fbbf24; font-weight: 800; white-space: nowrap; }
    .pay-plan-tag { display: inline-block; margin-right: 6px; font-size: 9.5px; font-weight: 800; padding: 2px 7px; border-radius: 8px; background: #f59e0b; color: #000; vertical-align: middle; }
    .pay-plan.first .pay-plan-tag { background: #10b981; color: #fff; }
    .pay-box {
      border-radius: 14px; padding: 12px; margin-bottom: 10px;
      background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border-soft);
    }
    .pay-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #9ca3af; margin-bottom: 6px; }
    .pay-row b { color: #fff; }
    .pay-amount { color: #fbbf24 !important; font-size: 15px; }
    .pay-cardnum { direction: ltr; text-align: center; font-size: 19px; font-weight: 800; letter-spacing: 1.5px; color: #fff; margin: 8px 0 4px; font-family: ui-monospace, monospace; }
    .pay-cardname { text-align: center; font-size: 12px; color: #d1d5db; margin-bottom: 10px; }
    .pay-btn { width: 100%; border: none; border-radius: 12px; padding: 12px; font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
    .pay-btn.gold { background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; }
    .pay-btn.green { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
    .pay-btn.ghost {
      background: var(--glass); color: #e5e7eb; font-size: 12.5px; font-weight: 700; padding: 10px;
      border: 1px solid var(--glass-border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    }
    .pay-btn:disabled { opacity: 0.55; cursor: default; }
    .pay-steps { font-size: 11.5px; color: #d1d5db; line-height: 1.9; margin: 4px 0 10px; padding-right: 2px; }
    .pay-preview { display: none; width: 100%; max-height: 180px; object-fit: contain; border-radius: 10px; margin: 8px 0; background: #0b0d13; }
    .pay-preview.active { display: block; }
    .pay-msg { font-size: 12px; text-align: center; line-height: 1.7; margin: 8px 0 0; min-height: 0; }
    .pay-msg.err { color: #f87171; }
    .pay-msg.ok { color: #34d399; }
    .pay-links { display: flex; gap: 8px; margin-top: 10px; }
    .cast-btn {
      width: 100%; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #fde68a; border-radius: 14px; padding: 12px; font-family: inherit; font-size: 0.88rem; font-weight: 800; cursor: pointer;
      background: var(--glass); border: 1px solid rgba(245, 158, 11, 0.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--glass-shine);
    }
    .cast-btn:active { transform: scale(0.98); }
    .cast-btn svg, .cast-hero svg { fill: none; stroke: #fbbf24; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
    .cast-btn svg { width: 20px; height: 20px; }
    .cast-btn svg .fill, .cast-hero svg .fill { fill: #fbbf24; stroke: none; }
    .cast-btn.hidden { display: none; }
    #castModal { position: fixed; inset: 0; background: rgba(0,0,0,0.78); backdrop-filter: blur(8px); z-index: 210; display: none; align-items: center; justify-content: center; padding: 16px; }
    #castModal.active { display: flex; }
    .cast-hero { width: 58px; height: 58px; margin: 0 auto 10px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, rgba(252, 211, 77, 0.22), rgba(217, 119, 6, 0.12)); border: 1px solid rgba(245, 158, 11, 0.4); }
    .cast-hero svg { width: 32px; height: 32px; }
    .cast-linked { display: none; flex-direction: column; gap: 8px; margin-bottom: 12px; }
    .cast-linked.active { display: flex; }
    .cast-site { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin: 6px 0 4px; background: #0b0d13; border: 1px dashed rgba(245, 158, 11, 0.5); color: #fff; border-radius: 10px; padding: 9px 12px; font-family: ui-monospace, monospace; font-size: 13.5px; font-weight: 700; cursor: pointer; }
    .cast-site small { font-family: system-ui, sans-serif; font-size: 11px; color: #fbbf24; }
    .cast-code-row { display: flex; gap: 8px; margin-top: 10px; }
    .cast-code-row input { flex: 1; min-width: 0; background: #0b0d13; border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; color: #fff; text-align: center; direction: ltr; font-size: 17px; font-weight: 800; letter-spacing: 3px; padding: 10px; outline: none; font-family: ui-monospace, monospace; }
    .cast-code-row input:focus { border-color: #f59e0b; }
    .cast-code-row input::placeholder { letter-spacing: 0; font-size: 13px; font-weight: 600; font-family: system-ui, sans-serif; color: #6b7280; }
    .cast-code-row .pay-btn { width: auto; padding: 0 20px; }
    ol.pay-steps { padding-right: 18px; }
    .tv-notice {
      margin: 12px 16px 0; padding: 11px 12px; display: flex; align-items: center; gap: 10px; border-radius: 16px;
      background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(22, 26, 40, 0.45));
      border: 1px solid rgba(245, 158, 11, 0.4);
      backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
      box-shadow: var(--glass-shine), 0 6px 18px rgba(245, 158, 11, 0.08);
    }
    .tv-notice.hidden { display: none; }
    .tv-notice-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.25); border: 1px solid rgba(245, 158, 11, 0.4); }
    .tv-notice-ico svg { width: 23px; height: 23px; fill: none; stroke: #fbbf24; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
    .tv-notice-ico svg .fill { fill: #fbbf24; stroke: none; }
    .tv-notice-text { flex: 1; min-width: 0; font-size: 0.72rem; color: #d1d5db; line-height: 1.65; }
    .tv-notice-text b { display: block; color: #fff; font-size: 0.8rem; font-weight: 800; }
    .tv-notice-tag { display: inline-block; margin-left: 5px; font-size: 0.6rem; font-weight: 800; padding: 1px 7px; border-radius: 7px; background: #f59e0b; color: #000; vertical-align: 1px; }
    .tv-notice-btn { flex: none; background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; border: none; border-radius: 10px; padding: 8px 12px; font-family: inherit; font-size: 0.72rem; font-weight: 800; cursor: pointer; }
    #tvGuideModal { position: fixed; inset: 0; background: rgba(0,0,0,0.78); backdrop-filter: blur(8px); z-index: 210; display: none; align-items: center; justify-content: center; padding: 16px; }
    #tvGuideModal.active { display: flex; }
    .cast-note { font-size: 10.5px; color: #6b7280; text-align: center; margin-top: 12px; line-height: 1.7; }
    .pay-done-icon { font-size: 46px; text-align: center; margin: 6px 0 8px; }
    .renew-banner { display: none; margin: 12px 16px 0; padding: 10px 12px; background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(245, 158, 11, 0.12)); border: 1px solid rgba(245, 158, 11, 0.35); border-radius: 12px; font-size: 0.76rem; color: #fde68a; line-height: 1.6; align-items: center; gap: 8px; }
    .renew-banner.active { display: flex; }
    .renew-banner-text { flex: 1; }
    .renew-banner-btn { flex: 0 0 auto; background: #f59e0b; color: #000; border: none; font-weight: 800; font-size: 0.74rem; padding: 6px 12px; border-radius: 9px; cursor: pointer; }
    #adminView { position: fixed; inset: 0; background: #07090e; z-index: 150; display: none; overflow-y: auto; padding-bottom: 60px; }
    #adminView.active { display: block; }
    .adm-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; background: rgba(7,9,14,0.96); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.07); }
    .adm-title { font-weight: 800; font-size: 1rem; color: #fbbf24; }
    .adm-icon-btn { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); color: #fff; border-radius: 12px; padding: 8px 12px; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
    .adm-icon-btn.gold { background: linear-gradient(135deg, #f59e0b, #d97706); border-color: #f59e0b; color: #000; }
    .adm-search { padding: 12px 14px 4px; }
    .adm-search input, .adm-input, .adm-select { width: 100%; padding: 10px 12px; background: #141721; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; color: #fff; font-size: 0.85rem; outline: none; }
    .adm-input.ltr { direction: ltr; text-align: left; font-family: ui-monospace, monospace; font-size: 0.75rem; }
    .adm-hint { font-size: 0.72rem; color: #6b7280; padding: 4px 16px 8px; }
    .adm-list { padding: 4px 14px; display: flex; flex-direction: column; gap: 10px; }
    .adm-card {
      background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px; overflow: hidden;
      backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--glass-shine);
    }
    .adm-row { display: flex; gap: 12px; padding: 10px; align-items: center; cursor: pointer; }
    .adm-thumb { width: 52px; height: 74px; border-radius: 8px; object-fit: cover; background: #1f2833; flex-shrink: 0; }
    .adm-info { flex: 1; min-width: 0; text-align: right; }
    .adm-name { font-weight: 800; font-size: 0.88rem; color: #f3f4f6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .adm-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
    .adm-chip { font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: rgba(255,255,255,0.07); color: #d1d5db; }
    .adm-chip.ok { background: rgba(16,185,129,0.12); color: #34d399; }
    .adm-chip.bad { background: rgba(239,68,68,0.14); color: #f87171; }
    .adm-chip.gold { background: rgba(245,158,11,0.15); color: #fbbf24; }
    .adm-detail { display: none; padding: 4px 12px 14px; border-top: 1px solid rgba(255,255,255,0.06); }
    .adm-detail.open { display: block; }
    .adm-section-title { font-size: 0.78rem; font-weight: 800; color: #9ca3af; margin: 12px 0 6px; }
    .adm-url { direction: ltr; text-align: left; font-family: ui-monospace, monospace; font-size: 0.68rem; color: #cbd5e1; background: #0d1018; border-radius: 10px; padding: 8px; word-break: break-all; max-height: 74px; overflow: auto; }
    .adm-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
    .adm-btn { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 8px 12px; border-radius: 10px; cursor: pointer; }
    .adm-btn.gold { background: linear-gradient(135deg, #f59e0b, #d97706); border-color: #f59e0b; color: #000; }
    .adm-btn.danger { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.35); color: #f87171; }
    .adm-btn:disabled { opacity: 0.5; }
    .adm-ep { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .adm-ep:last-child { border-bottom: none; }
    .adm-ep-name { font-size: 0.8rem; font-weight: 700; color: #e5e7eb; }
    .adm-ep-edit { display: none; padding: 6px 0 10px; }
    .adm-ep-edit.open { display: block; }
    .adm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .adm-form { padding: 12px; display: none; margin: 8px 14px; }
    .adm-form.open { display: block; }
    .adm-form label { display: block; font-size: 0.72rem; color: #9ca3af; margin: 8px 0 4px; }
    .adm-empty { text-align: center; color: #6b7280; font-size: 0.82rem; padding: 30px 0; }
    .adm-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #141721; border: 1px solid rgba(255,255,255,0.15); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 0.82rem; font-weight: 700; z-index: 2147483647; opacity: 0; pointer-events: none; transition: all 0.2s; max-width: 90%; text-align: center; }
    .adm-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
    .adm-toast.err { border-color: rgba(239,68,68,0.5); color: #fca5a5; }

    /* Admin panel v2 */
    .adm-head-mid { text-align: center; line-height: 1.3; }
    .adm-subtitle { font-size: 0.62rem; color: #6b7280; direction: ltr; letter-spacing: 0.5px; }
    .adm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 14px 4px; }
    .adm-stat {
      border-radius: 14px; padding: 10px 8px; text-align: center; display: flex; flex-direction: column; gap: 2px;
      background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--glass-shine);
    }
    .adm-stat[data-filter] { cursor: pointer; }
    .adm-stat[data-filter]:active { transform: scale(0.96); }
    .adm-stat b { font-size: 1.2rem; font-weight: 800; color: #f3f4f6; }
    .adm-stat span { font-size: 0.64rem; color: #8b93a3; font-weight: 600; }
    .adm-stat.gold b { color: #fbbf24; }
    .adm-stat.bad b { color: #f87171; }
    .adm-stat.bad.hot { border-color: rgba(239,68,68,0.45); background: linear-gradient(160deg, rgba(60,20,24,0.8), rgba(25,14,18,0.9)); }
    .adm-stat.warn b { color: #fb923c; }
    .adm-stat.warn.hot { border-color: rgba(251,146,60,0.4); }
    .adm-toolbar { position: sticky; top: 57px; z-index: 4; background: rgba(7,9,14,0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-bottom: 8px; }
    .adm-search input { font-size: 16px; }
    .adm-filters { display: flex; gap: 6px; overflow-x: auto; padding: 8px 14px 0; scrollbar-width: none; }
    .adm-filters::-webkit-scrollbar { display: none; }
    .adm-filter { flex: 0 0 auto; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #cbd5e1; font-size: 0.74rem; font-weight: 700; padding: 6px 13px; border-radius: 18px; cursor: pointer; }
    .adm-filter.active { background: #f3f4f6; color: #0b0c10; border-color: #f3f4f6; }
    .adm-filter.bad.active { background: #ef4444; border-color: #ef4444; color: #fff; }
    .adm-filter.warn.active { background: #fb923c; border-color: #fb923c; color: #0b0c10; }
    .adm-filter.gold.active { background: #f59e0b; border-color: #f59e0b; color: #0b0c10; }
    .adm-card { position: relative; }
    .adm-card::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 3px; background: #374151; }
    .adm-card.st-ok::before { background: #10b981; }
    .adm-card.st-warn::before { background: #fb923c; }
    .adm-card.st-bad::before { background: #ef4444; }
    .adm-row { padding: 10px 14px 10px 10px; }
    .adm-chev { color: #6b7280; font-size: 0.9rem; transition: transform 0.2s; flex-shrink: 0; }
    .adm-card.open .adm-chev { transform: rotate(-90deg); }
    .adm-chip.warn { background: rgba(251,146,60,0.14); color: #fdba74; }
    .adm-tabs { display: flex; gap: 4px; background: rgba(255,255,255,0.04); border-radius: 12px; padding: 4px; margin: 10px 0 4px; }
    .adm-tab { flex: 1; background: none; border: none; color: #9ca3af; font-size: 0.76rem; font-weight: 700; padding: 8px 4px; border-radius: 9px; cursor: pointer; }
    .adm-tab.active { background: rgba(245,158,11,0.16); color: #fbbf24; }
    .adm-cover-row { display: flex; gap: 12px; align-items: center; }
    .adm-cover-prev { width: 70px; height: 100px; border-radius: 10px; object-fit: cover; background: #1f2833; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.1); }
    .adm-cover-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
    .adm-cover-note { font-size: 0.66rem; color: #6b7280; }
    .adm-textarea { width: 100%; min-height: 76px; padding: 10px 12px; background: #141721; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; color: #fff; font-size: 0.8rem; line-height: 1.7; outline: none; resize: vertical; font-family: inherit; }
    .adm-switch { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: rgba(255,255,255,0.04); border-radius: 12px; padding: 10px 12px; margin-top: 10px; font-size: 0.78rem; color: #d1d5db; cursor: pointer; }
    .adm-switch input { width: 18px; height: 18px; accent-color: #f59e0b; }
    .adm-danger { margin-top: 16px; padding-top: 12px; border-top: 1px dashed rgba(239,68,68,0.25); }
    .adm-ep { padding: 9px 0; }
    .adm-ep-name { min-width: 58px; }
    .adm-btn.sm { padding: 6px 10px; font-size: 0.7rem; }
    .adm-btn.block { width: 100%; }

    .player-fallback {
      position: absolute; left: 16px; right: 16px; bottom: 150px; z-index: 2147483647; display: none;
      background: rgba(14, 17, 27, 0.96); border: 1px solid rgba(245, 158, 11, 0.4); border-radius: 18px;
      padding: 16px; text-align: right; box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    }
    .player-fallback.active { display: block; }
    .player-fallback.soft { bottom: 150px; border-color: rgba(255,255,255,0.18); }
    .fb-title { font-size: 0.92rem; font-weight: 800; color: #fbbf24; margin-bottom: 6px; padding-left: 24px; }
    .fb-msg { font-size: 0.78rem; color: #cbd5e1; line-height: 1.7; margin-bottom: 12px; }
    .fb-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .fb-btn { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); color: #fff; font-size: 0.8rem; font-weight: 700; padding: 10px 8px; border-radius: 12px; cursor: pointer; }
    .fb-btn.primary { background: linear-gradient(135deg, #f59e0b, #d97706); border-color: #f59e0b; color: #000; grid-column: 1 / -1; }
    .fb-btn:active { transform: scale(0.96); }
    .fb-close { position: absolute; top: 10px; left: 12px; color: #9ca3af; font-size: 15px; cursor: pointer; background: none; border: none; }
    #copySheet { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 2147483647; display: none; align-items: flex-end; justify-content: center; padding: 16px; }
    #copySheet.active { display: flex; }
    .copy-sheet-box {
      width: 100%; max-width: 480px; border-radius: 18px; padding: 16px;
      background: var(--glass-strong); border: 1px solid var(--glass-border);
      backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shine), var(--glass-shadow);
    }
    .copy-sheet-title { font-size: 0.9rem; font-weight: 800; color: #fbbf24; margin-bottom: 6px; }
    .copy-sheet-msg { font-size: 0.78rem; color: #cbd5e1; line-height: 1.7; margin-bottom: 10px; }
    #copySheetText { width: 100%; height: 96px; direction: ltr; text-align: left; font-size: 16px; background: #0b0d14; color: #e5e7eb; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 8px; resize: none; -webkit-user-select: text; user-select: text; }
    .player-loading { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2147483645; display: none; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; color: #e5e7eb; font-size: 0.8rem; font-weight: 700; text-shadow: 0 2px 6px rgba(0,0,0,0.9); }
    .player-loading.active { display: flex; }
    .resume-chip { position: absolute; right: 12px; bottom: 72px; z-index: 2147483646; display: none; align-items: center; gap: 10px; background: rgba(20,23,33,0.92); border: 1px solid rgba(245,158,11,0.45); border-radius: 12px; padding: 8px 10px 8px 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.6); }
    .resume-chip.active { display: flex; }
    .resume-chip span { font-size: 0.78rem; font-weight: 700; color: #fde68a; }
    .resume-chip button { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); color: #fff; font-family: inherit; font-size: 0.74rem; font-weight: 700; padding: 6px 12px; border-radius: 9px; cursor: pointer; }
    .player-loading .spin { width: 44px; height: 44px; border: 4px solid rgba(255,255,255,0.25); border-top-color: #f59e0b; border-radius: 50%; animation: player-spin 0.9s linear infinite; }
    @keyframes player-spin { to { transform: rotate(360deg); } }

