@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;600&display=swap');

    /* ── Tokens ── */
    :root {
      --bg: #0a0710;
      --surface: rgba(255,255,255,0.04);
      --surface-hover: rgba(255,255,255,0.08);
      --border: rgba(255,255,255,0.08);
      --purple: #7c3aed;
      --purple-mid: #a855f7;
      --pink: #d946ef;
      --text: #f0eaf8;
      --muted: #9d8db5;
      --radius: 12px;
      --header-h: 64px;
      --max-w: 1200px;
    }

    *, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
    html { scroll-behavior: smooth; }

    body {
      background-color: var(--bg);
      color: var(--text);
      font-family: 'DM Sans', sans-serif;
      font-size: 15px;
      line-height: 1.6;
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* ── Star canvas ── */
    #star-canvas {
      position: fixed;
      top:0; left:0;
      width:100%; height:100%;
      z-index:0;
      pointer-events:none;
    }

    header, main, footer, .modal-overlay { position: relative; z-index: 1; }

    /* ── Header ── */
    header {
      position: fixed;
      top:0; left:0; right:0;
      height: var(--header-h);
      z-index: 100;
      display: flex;
      align-items: center;
      padding: 0 28px;
      background: rgba(10,7,16,0.85);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid var(--border);
      gap: 16px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      flex-shrink: 0;
    }
    .brand img { height: 30px; width: auto; object-fit: contain; }
    .brand-name {
      font-family: 'Bebas Neue', cursive;
      font-size: 1.4rem;
      letter-spacing: .08em;
      color: var(--text);
    }
    .brand-sub {
      font-size: .7rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: .1em;
      color: var(--purple-mid);
      border: 1px solid rgba(168,85,247,.3);
      border-radius: 4px;
      padding: 1px 7px;
    }

    .header-back {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 6px;
      color: var(--muted);
      font-size: .82rem;
      font-weight: 500;
      text-decoration: none;
      padding: 6px 12px;
      border-radius: 6px;
      border: 1px solid var(--border);
      transition: color .18s, border-color .18s, background .18s;
    }
    .header-back:hover { color: var(--text); border-color: rgba(168,85,247,.4); background: var(--surface-hover); }

    /* ── Header nav ── */
    .header-nav {
      display: flex;
      align-items: center;
      gap: 4px;
      margin-left: 8px;
    }
    .header-nav-link {
      display: flex;
      align-items: center;
      gap: 6px;
      color: var(--muted);
      font-size: .84rem;
      font-weight: 600;
      text-decoration: none;
      padding: 7px 13px;
      border-radius: 7px;
      transition: color .18s, background .18s;
    }
    .header-nav-link:hover { color: var(--text); background: var(--surface-hover); }
    .header-nav-link.active { color: var(--text); background: rgba(168,85,247,.14); }

    .header-right {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    /* ── News notification bell ── */
    .header-bell-btn {
      position: relative;
      width: 38px; height: 38px;
      border-radius: 50%;
      border: 1px solid var(--border);
      background: var(--surface);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: border-color .18s, background .18s;
      flex-shrink: 0;
      padding: 0;
    }
    .header-bell-btn:hover { border-color: rgba(168,85,247,.4); background: var(--surface-hover); }
    .header-bell-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 2; }
    .header-bell-dot {
      position: absolute; top: 6px; right: 7px;
      width: 8px; height: 8px; border-radius: 50%;
      background: #fbbf24; box-shadow: 0 0 6px rgba(251,191,36,.7);
      display: none;
    }
    .header-bell-dot.show { display: block; }

    .notification-dropdown {
      position: absolute; top: calc(100% + 8px); right: 0;
      width: 320px; max-width: 88vw;
      background: #100d1a; border: 1px solid var(--border); border-radius: 12px;
      padding: 8px; display: none; z-index: 200;
      box-shadow: 0 12px 28px rgba(0,0,0,.4);
    }
    .notification-dropdown.open { display: block; }
    .notification-item {
      display: flex; align-items: center; gap: 10px;
      padding: 9px; border-radius: 8px; cursor: pointer;
      text-decoration: none; color: inherit;
    }
    .notification-item:hover { background: var(--surface-hover); }
    .notification-thumb {
      width: 56px; height: 34px; border-radius: 6px; overflow: hidden; flex-shrink: 0;
      background: linear-gradient(150deg, #1c1428, #0d0b15);
    }
    .notification-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .notification-text { min-width: 0; }
    .notification-title {
      font-size: .82rem; font-weight: 700; color: var(--text);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .notification-desc {
      font-size: .72rem; color: var(--muted);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .notification-empty { padding: 16px; text-align: center; font-size: .8rem; color: var(--muted); }

    @media (max-width: 640px) {
      :root { --header-h: 104px; }
      header {
        flex-wrap: wrap;
        height: auto;
        min-height: var(--header-h);
        padding: 10px 14px;
        row-gap: 8px;
        column-gap: 10px;
      }
      .header-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-left: 0;
        gap: 2px;
      }
      .header-nav-link { padding: 6px 10px; font-size: .78rem; }
      .header-right { order: 2; }
      .brand-sub { display: none; }
    }

    /* ── API key banner ── */
    .api-banner {
      background: rgba(251,191,36,.08);
      border-bottom: 1px solid rgba(251,191,36,.2);
      color: #fbbf24;
      font-size: .78rem;
      font-weight: 500;
      text-align: center;
      padding: 8px 16px;
      position: relative;
      z-index: 99;
      margin-top: var(--header-h);
    }
    .api-banner a { color: #fbbf24; }
    .api-banner.hidden { display: none; }

    /* ── Main content ── */
    main {
      max-width: var(--max-w);
      margin: 0 auto;
      padding: calc(var(--header-h) + 32px) 24px 64px;
    }
    @media (max-width: 640px) {
      main { padding: calc(var(--header-h) + 20px) 16px 48px; }
    }

    /* ── Tab bar ── */
    .tab-bar {
      display: flex;
      gap: 6px;
      margin-bottom: 36px;
      flex-wrap: wrap;
    }

    .tab-btn {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 8px 18px;
      border-radius: 20px;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--muted);
      font-family: inherit;
      font-size: .84rem;
      font-weight: 600;
      cursor: pointer;
      transition: color .18s, border-color .18s, background .18s;
    }
    .tab-btn:hover { color: var(--text); background: var(--surface-hover); }
    .tab-btn.active {
      color: var(--text);
      border-color: var(--purple-mid);
      background: rgba(168,85,247,.12);
    }

    /* ── Section ── */
    .stream-section { margin-bottom: 52px; }

    .section-header {
      display: flex;
      align-items: baseline;
      gap: 12px;
      margin-bottom: 16px;
      border-bottom: 1px solid var(--border);
      padding-bottom: 10px;
    }

    .section-title {
      font-family: 'Bebas Neue', cursive;
      font-size: 1.5rem;
      letter-spacing: .06em;
      background: linear-gradient(90deg, var(--purple-mid), var(--pink));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .section-handle {
      font-size: .74rem;
      color: var(--muted);
      font-weight: 500;
    }

    .section-link {
      margin-left: auto;
      font-size: .78rem;
      color: var(--purple-mid);
      text-decoration: none;
      font-weight: 600;
    }
    .section-link:hover { color: var(--text); }

    /* ── Video grid ── */
    .video-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 14px;
    }

    .video-card {
      cursor: pointer;
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--surface);
      border: 1px solid var(--border);
      transition: border-color .2s, transform .2s, background .2s;
    }
    .video-card:hover {
      border-color: rgba(168,85,247,.4);
      background: var(--surface-hover);
      transform: translateY(-2px);
    }

    .video-thumb-wrap {
      position: relative;
      width: 100%;
      aspect-ratio: 16/9;
      background: #0d0b15;
      overflow: hidden;
    }
    .video-thumb-wrap img {
      width: 100%; height: 100%;
      object-fit: cover; display: block;
      transition: transform .3s;
    }
    .video-card:hover .video-thumb-wrap img { transform: scale(1.04); }

    .play-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0,0,0,.35);
      opacity: 0;
      transition: opacity .2s;
    }
    .video-card:hover .play-overlay { opacity: 1; }
    .play-overlay svg { width: 40px; height: 40px; fill: #fff; }

    .video-meta {
      padding: 10px 12px;
      display: flex;
      flex-direction: column;
      gap: 3px;
    }
    .video-title-text {
      font-size: .8rem;
      font-weight: 500;
      color: var(--text);
      line-height: 1.35;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .video-date {
      font-size: .7rem;
      color: var(--muted);
    }

    /* ── Loading / error states ── */
    .section-loading {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--muted);
      font-size: .84rem;
      padding: 20px 0;
    }
    .spinner {
      width: 18px; height: 18px;
      border: 2px solid var(--border);
      border-top-color: var(--purple-mid);
      border-radius: 50%;
      animation: spin .7s linear infinite;
      flex-shrink: 0;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    .section-error {
      color: var(--muted);
      font-size: .82rem;
      padding: 16px 0;
    }

    /* ── Modal ── */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 500;
      background: rgba(0,0,0,.82);
      backdrop-filter: blur(10px);
      align-items: center;
      justify-content: center;
      padding: 16px;
    }
    .modal-overlay.open { display: flex; }

    .modal-box {
      width: 100%;
      max-width: 900px;
      background: #100d1a;
      border: 1px solid var(--border);
      border-radius: 14px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      max-height: 90vh;
    }

    .modal-header {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 18px;
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }
    .modal-title {
      font-family: 'Bebas Neue', cursive;
      font-size: 1.15rem;
      letter-spacing: .04em;
      color: var(--text);
      flex: 1;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .modal-close {
      background: none;
      border: 1px solid var(--border);
      color: var(--muted);
      font-size: 1.1rem;
      line-height: 1;
      width: 30px; height: 30px;
      border-radius: 6px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: color .15s, border-color .15s;
    }
    .modal-close:hover { color: var(--text); border-color: rgba(168,85,247,.4); }

    .modal-player {
      position: relative;
      width: 100%;
      aspect-ratio: 16/9;
      background: #000;
      flex-shrink: 0;
    }
    .modal-player iframe {
      position: absolute;
      inset: 0;
      width: 100%; height: 100%;
      border: none;
    }

    .modal-yt-link {
      padding: 10px 18px;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      border-top: 1px solid var(--border);
      flex-shrink: 0;
    }
    .modal-yt-link a {
      font-size: .78rem;
      color: var(--muted);
      text-decoration: none;
      font-weight: 500;
      transition: color .15s;
    }
    .modal-yt-link a:hover { color: var(--text); }

    /* ── Modal episode queue nav (Show pages only) ── */
    .modal-queue-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 12px 18px;
      border-top: 1px solid var(--border);
      flex-shrink: 0;
    }
    .modal-queue-nav.hidden { display: none; }
    .modal-queue-nav .settings-btn { padding: 8px 14px; font-size: .78rem; }
    .modal-queue-nav .settings-btn:disabled { opacity: .35; cursor: default; }
    #modal-queue-position { font-size: .74rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
    @media (max-width: 460px) {
      .modal-queue-nav { flex-wrap: wrap; justify-content: center; padding: 10px 14px; }
      .modal-queue-nav .settings-btn { padding: 7px 11px; font-size: .72rem; }
    }

    /* ── Footer ── */
    .stream-footer {
      border-top: 1px solid var(--border);
      background: rgba(10,7,16,.7);
      backdrop-filter: blur(16px);
      text-align: center;
      padding: 20px 24px;
      color: var(--muted);
      font-size: .76rem;
      position: relative;
      z-index: 1;
    }
    .stream-footer a { color: var(--muted); text-decoration: none; }
    .stream-footer a:hover { color: var(--purple-mid); }

    /* ── Responsive ── */
    @media (max-width: 1024px) { .video-grid { grid-template-columns: repeat(4,1fr); } }
    @media (max-width: 780px)  { .video-grid { grid-template-columns: repeat(3,1fr); } }
    @media (max-width: 540px)  { .video-grid { grid-template-columns: repeat(2,1fr); } }
    @media (max-width: 360px)  { .video-grid { grid-template-columns: 1fr; } }

    /* ── Auth area (header) ── */
    .auth-area { display:flex; align-items:center; gap:8px; margin-left:12px; flex-shrink:0; position:relative; }
    .auth-btn {
      font-family:inherit; font-size:.8rem; font-weight:600; cursor:pointer;
      padding:7px 14px; border-radius:8px; border:1px solid var(--border);
      background: var(--surface); color: var(--text);
      transition: border-color .18s, background .18s;
    }
    .auth-btn:hover { border-color: rgba(168,85,247,.4); background: var(--surface-hover); }
    .auth-btn.primary { background: linear-gradient(90deg, var(--purple), var(--purple-mid)); border-color: transparent; }
    .user-menu-btn {
      display:flex; align-items:center; gap:6px; cursor:pointer;
      padding:6px 10px 6px 6px; border-radius:20px; border:1px solid var(--border);
      background: var(--surface); font-size:.8rem; font-weight:600; color: var(--text);
    }
    .user-menu-btn:hover { border-color: rgba(168,85,247,.4); }
    .user-avatar {
      width:24px; height:24px; border-radius:50%; flex-shrink:0;
      background: linear-gradient(135deg, var(--purple-mid), var(--pink));
      display:flex; align-items:center; justify-content:center;
      font-size:.72rem; font-weight:700; color:#fff; text-transform:uppercase;
    }
    .user-dropdown {
      position:absolute; top: calc(100% + 8px); right:0;
      background:#100d1a; border:1px solid var(--border); border-radius:10px;
      min-width:180px; padding:6px; display:none; z-index:200;
      box-shadow: 0 12px 28px rgba(0,0,0,.4);
    }
    .user-dropdown.open { display:block; }
    .user-dropdown button {
      width:100%; text-align:left; background:none; border:none; color: var(--text);
      font-family:inherit; font-size:.82rem; font-weight:500; padding:9px 10px;
      border-radius:6px; cursor:pointer; transition: background .15s;
    }
    .user-dropdown button:hover { background: var(--surface-hover); }
    .user-dropdown button.danger { color:#f87171; }

    /* ── Video card overlay actions ── */
    .video-card { position:relative; }
    .card-actions { position:absolute; top:7px; right:7px; display:flex; gap:6px; z-index:2; }
    .card-action-btn {
      width:28px; height:28px; border-radius:50%; border:1px solid rgba(255,255,255,.15);
      background: rgba(10,7,16,.72); backdrop-filter: blur(4px);
      display:flex; align-items:center; justify-content:center; cursor:pointer;
      transition: background .15s, transform .15s, border-color .15s;
    }
    .card-action-btn:hover { background: rgba(10,7,16,.92); transform: scale(1.08); border-color: rgba(168,85,247,.5); }
    .card-action-btn svg { width:15px; height:15px; fill:none; stroke:#f0eaf8; stroke-width:2; }
    .card-action-btn.bookmarked svg { fill: var(--pink); stroke: var(--pink); }
    .resume-badge {
      font-size:.68rem; font-weight:600; color: var(--purple-mid);
      display:flex; align-items:center; gap:4px; margin-top:1px;
    }
    .resume-track { position:absolute; left:0; right:0; bottom:0; height:3px; background:rgba(255,255,255,.15); }
    .resume-fill { height:100%; background: linear-gradient(90deg, var(--purple-mid), var(--pink)); }

    /* ── Pagination ── */
    .pagination-bar {
      display:flex; align-items:center; justify-content:center; gap:14px;
      margin-top:16px;
    }
    .page-btn {
      font-family:inherit; font-size:.8rem; font-weight:600; cursor:pointer;
      padding:7px 16px; border-radius:8px; border:1px solid var(--border);
      background: var(--surface); color: var(--text);
      transition: border-color .18s, background .18s, opacity .18s;
    }
    .page-btn:hover:not(:disabled) { border-color: rgba(168,85,247,.4); background: var(--surface-hover); }
    .page-btn:disabled { opacity:.35; cursor:default; }
    .page-indicator { font-size:.78rem; color: var(--muted); font-weight:600; min-width:56px; text-align:center; }

    /* ── Empty state ── */
    .empty-state { color: var(--muted); font-size:.86rem; padding:24px 0; text-align:center; }
    .empty-state a { color: var(--purple-mid); text-decoration:none; font-weight:600; }
    .empty-state a:hover { color: var(--text); }

    /* ── Auth modal ── */
    .auth-box { max-width: 380px; }
    .auth-tabs { display:flex; gap:6px; padding:12px 18px 0; }
    .auth-tab {
      flex:1; text-align:center; padding:9px; border-radius:8px 8px 0 0; cursor:pointer;
      font-size:.82rem; font-weight:600; color: var(--muted); border:1px solid transparent;
    }
    .auth-tab.active { color: var(--text); background: var(--surface); border-color: var(--border); border-bottom-color: transparent; }
    .auth-form { padding:18px; display:flex; flex-direction:column; gap:12px; }
    .auth-form.hidden { display:none; }
    .auth-field { display:flex; flex-direction:column; gap:5px; }
    .auth-field label { font-size:.74rem; font-weight:600; color: var(--muted); text-transform:uppercase; letter-spacing:.04em; }
    .auth-field input {
      font-family:inherit; font-size:.88rem; color: var(--text);
      background: var(--surface); border:1px solid var(--border); border-radius:8px;
      padding:9px 12px; outline:none;
    }
    .auth-field input:focus { border-color: rgba(168,85,247,.5); }
    .auth-submit {
      font-family:inherit; font-size:.86rem; font-weight:700; cursor:pointer;
      padding:10px; border-radius:8px; border:none; color:#fff;
      background: linear-gradient(90deg, var(--purple), var(--purple-mid));
      margin-top:4px;
    }
    .auth-submit:hover { filter:brightness(1.08); }
    .auth-error { font-size:.76rem; color:#f87171; min-height:1em; }
    .auth-note { font-size:.7rem; color: var(--muted); line-height:1.5; padding-top:2px; }

    /* ── Playlist picker modal ── */
    .playlist-box { max-width: 360px; }
    .playlist-list { padding: 6px 18px 10px; display:flex; flex-direction:column; gap:2px; max-height:260px; overflow-y:auto; }
    .playlist-row { display:flex; align-items:center; gap:10px; padding:9px 6px; border-radius:8px; cursor:pointer; }
    .playlist-row:hover { background: var(--surface-hover); }
    .playlist-row input[type="checkbox"] { width:16px; height:16px; accent-color: var(--purple-mid); flex-shrink:0; }
    .playlist-row span { font-size:.85rem; font-weight:500; }
    .playlist-new { display:flex; gap:8px; padding:12px 18px 18px; border-top:1px solid var(--border); }
    .playlist-new input {
      flex:1; font-family:inherit; font-size:.84rem; color: var(--text);
      background: var(--surface); border:1px solid var(--border); border-radius:8px; padding:8px 10px; outline:none;
    }
    .playlist-new input:focus { border-color: rgba(168,85,247,.5); }
    .playlist-new button {
      font-family:inherit; font-size:.82rem; font-weight:700; cursor:pointer;
      padding:8px 14px; border-radius:8px; border:none; color:#fff;
      background: linear-gradient(90deg, var(--purple), var(--purple-mid)); white-space:nowrap;
    }
    .section-delete-btn {
      margin-left:auto; font-size:.75rem; font-weight:600; color:#f87171; background:none;
      border:1px solid rgba(248,113,113,.3); border-radius:6px; padding:5px 10px; cursor:pointer;
      font-family:inherit;
    }
    .section-delete-btn:hover { background: rgba(248,113,113,.1); }

    /* ══════════════════════════════════════════════════════════
       POSTER CARD (used inside Netflix-style rows — see below)
    ══════════════════════════════════════════════════════════ */
    .poster-card {
      position: relative;
      display: block;
      cursor: pointer;
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--surface);
      border: 1px solid var(--border);
      text-decoration: none;
      color: inherit;
      transition: border-color .2s, transform .2s, background .2s;
    }
    .poster-card:hover {
      border-color: rgba(168,85,247,.4);
      transform: translateY(-3px);
    }
    .poster-art-wrap {
      position: relative;
      width: 100%;
      aspect-ratio: 2/3;
      background: linear-gradient(150deg, #1c1428, #0d0b15);
      overflow: hidden;
    }
    .poster-art-wrap img {
      width: 100%; height: 100%;
      object-fit: cover; display: block;
      transition: transform .3s;
    }
    .poster-card:hover .poster-art-wrap img { transform: scale(1.05); }
    .poster-art-wrap.fallback img {
      object-fit: contain;
      padding: 22%;
      opacity: .9;
    }
    .poster-fade {
      position: absolute; left:0; right:0; bottom:0;
      height: 55%;
      background: linear-gradient(to top, rgba(10,7,16,.95), transparent);
      pointer-events: none;
    }
    .poster-label {
      position: absolute; left:0; right:0; bottom:0;
      padding: 12px 12px 10px;
    }
    .poster-name {
      font-family: 'Bebas Neue', cursive;
      font-size: 1.1rem;
      letter-spacing: .04em;
      color: var(--text);
      line-height: 1.2;
    }
    .poster-handle {
      font-size: .7rem;
      color: var(--muted);
      font-weight: 500;
      margin-top: 2px;
    }
    .poster-bookmark-btn {
      position: absolute; top:8px; right:8px; z-index:2;
      width:30px; height:30px; border-radius:50%; border:1px solid rgba(255,255,255,.15);
      background: rgba(10,7,16,.72); backdrop-filter: blur(4px);
      display:flex; align-items:center; justify-content:center; cursor:pointer;
      transition: background .15s, transform .15s, border-color .15s;
    }
    .poster-bookmark-btn:hover { background: rgba(10,7,16,.92); transform: scale(1.08); border-color: rgba(168,85,247,.5); }
    .poster-bookmark-btn svg { width:16px; height:16px; fill:none; stroke:#f0eaf8; stroke-width:2; }
    .poster-bookmark-btn.bookmarked svg { fill: var(--pink); stroke: var(--pink); }

    /* ══════════════════════════════════════════════════════════
       SHOW / CHANNEL DETAIL PAGE (Show/index.html)
    ══════════════════════════════════════════════════════════ */
    .show-hero {
      display: flex;
      align-items: center;
      gap: 24px;
      padding-bottom: 28px;
      margin-bottom: 36px;
      border-bottom: 1px solid var(--border);
      flex-wrap: wrap;
    }
    .show-hero-logo-wrap {
      width: 120px; height: 120px;
      border-radius: 18px;
      background: var(--surface);
      border: 1px solid var(--border);
      display: flex; align-items:center; justify-content:center;
      overflow: hidden;
      flex-shrink: 0;
    }
    .show-hero-logo-wrap img { width: 78%; height: 78%; object-fit: contain; }
    .show-hero-info { flex: 1; min-width: 240px; }
    .show-hero-title {
      font-family: 'Bebas Neue', cursive;
      font-size: 2.4rem;
      letter-spacing: .05em;
      background: linear-gradient(90deg, var(--purple-mid), var(--pink));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      line-height: 1.1;
    }
    .show-hero-handle {
      font-size: .82rem;
      color: var(--muted);
      font-weight: 500;
      margin-top: 4px;
    }
    .show-hero-desc {
      font-size: .88rem;
      color: var(--text);
      opacity: .85;
      margin-top: 12px;
      max-width: 640px;
      line-height: 1.6;
    }
    .show-hero-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 16px;
      flex-wrap: wrap;
    }
    .show-bookmark-btn {
      display: flex;
      align-items: center;
      gap: 7px;
      font-family: inherit;
      font-size: .82rem;
      font-weight: 700;
      cursor: pointer;
      padding: 9px 16px;
      border-radius: 9px;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--text);
      transition: border-color .18s, background .18s;
    }
    .show-bookmark-btn:hover { border-color: rgba(168,85,247,.4); background: var(--surface-hover); }
    .show-bookmark-btn svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; }
    .show-bookmark-btn.bookmarked { border-color: var(--pink); color: var(--pink); }
    .show-bookmark-btn.bookmarked svg { fill: var(--pink); stroke: var(--pink); }

    .show-page-not-found {
      padding: 60px 0;
      text-align: center;
      color: var(--muted);
    }
    .show-page-not-found a { color: var(--purple-mid); font-weight: 600; text-decoration: none; }

    /* ══════════════════════════════════════════════════════════
       NETFLIX-STYLE ROWS (Browse page — Shows / Channels)
    ══════════════════════════════════════════════════════════ */
    .netflix-row { margin-bottom: 44px; position: relative; }
    .netflix-row-title {
      font-family: 'Bebas Neue', cursive;
      font-size: 1.5rem;
      letter-spacing: .06em;
      background: linear-gradient(90deg, var(--purple-mid), var(--pink));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 14px;
    }
    .netflix-row-outer { position: relative; }
    .netflix-scroll {
      display: flex;
      gap: 14px;
      overflow-x: auto;
      scroll-behavior: smooth;
      scroll-snap-type: x proximity;
      padding: 4px 2px 12px;
      -ms-overflow-style: none;
      scrollbar-width: thin;
      scrollbar-color: rgba(168,85,247,.4) transparent;
    }
    .netflix-scroll::-webkit-scrollbar { height: 7px; }
    .netflix-scroll::-webkit-scrollbar-track { background: transparent; }
    .netflix-scroll::-webkit-scrollbar-thumb { background: rgba(168,85,247,.35); border-radius: 10px; }

    .netflix-scroll .poster-card {
      flex: 0 0 auto;
      width: 168px;
      scroll-snap-align: start;
    }
    .netflix-scroll-btn {
      position: absolute;
      top: 0; bottom: 12px;
      width: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(90deg, var(--bg), transparent);
      border: none;
      cursor: pointer;
      color: var(--text);
      z-index: 3;
      opacity: 0;
      transition: opacity .18s;
    }
    .netflix-row-outer:hover .netflix-scroll-btn { opacity: 1; }
    .netflix-scroll-btn.next { right: 0; left: auto; background: linear-gradient(270deg, var(--bg), transparent); }
    .netflix-scroll-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; }
    .netflix-scroll-btn:hover svg { stroke: var(--purple-mid); }

    @media (max-width: 640px) {
      .netflix-scroll .poster-card { width: 128px; }
      .netflix-scroll-btn { display: none; }
    }

    /* ── Centered poster row (Recommended Today — small fixed sets) ── */
    .centered-poster-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 16px;
      padding: 4px 2px 12px;
    }
    .centered-poster-row .poster-card { width: 168px; flex: 0 0 auto; }
    @media (max-width: 640px) {
      .centered-poster-row .poster-card { width: 128px; }
      .centered-poster-row { gap: 10px; }
    }

    /* ── Home CTA card (link to Browse page) ── */
    .home-cta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      flex-wrap: wrap;
      background: linear-gradient(120deg, rgba(124,58,237,.14), rgba(217,70,239,.08));
      border: 1px solid rgba(168,85,247,.25);
      border-radius: var(--radius);
      padding: 26px 28px;
      margin-bottom: 48px;
      text-decoration: none;
      color: inherit;
      transition: border-color .2s, transform .2s;
    }
    .home-cta:hover { border-color: rgba(168,85,247,.55); transform: translateY(-2px); }
    .home-cta-title {
      font-family: 'Bebas Neue', cursive;
      font-size: 1.7rem;
      letter-spacing: .05em;
      color: var(--text);
    }
    .home-cta-sub { font-size: .84rem; color: var(--muted); margin-top: 4px; }
    .home-cta-arrow {
      width: 42px; height: 42px; border-radius: 50%;
      background: linear-gradient(90deg, var(--purple), var(--purple-mid));
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .home-cta-arrow svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.4; }

    /* ══════════════════════════════════════════════════════════
       NEWS HERO BANNER (homepage)
    ══════════════════════════════════════════════════════════ */
    .news-hero {
      position: relative;
      width: 100%;
      aspect-ratio: 21/8;
      min-height: 220px;
      border-radius: var(--radius);
      overflow: hidden;
      margin-bottom: 48px;
      background: linear-gradient(150deg, #1c1428, #0d0b15);
      border: 1px solid var(--border);
    }
    .news-hero-slide {
      position: absolute; inset: 0;
      opacity: 0;
      pointer-events: none;
      transition: opacity .5s ease;
    }
    .news-hero-slide.active { opacity: 1; pointer-events: auto; }
    .news-hero-slide img {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      object-fit: cover;
      display: block;
    }
    .news-hero-fade {
      position: absolute; inset: 0;
      background: linear-gradient(90deg, rgba(10,7,16,.92) 0%, rgba(10,7,16,.55) 45%, rgba(10,7,16,.1) 80%);
    }
    .news-hero-content {
      position: absolute; left: 0; bottom: 0; top: 0;
      display: flex; flex-direction: column; justify-content: center;
      padding: 28px 5% ;
      max-width: 560px;
    }
    .news-hero-eyebrow {
      font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
      color: #fbbf24; margin-bottom: 8px;
    }
    .news-hero-title {
      font-family: 'Bebas Neue', cursive;
      font-size: clamp(1.6rem, 4vw, 2.6rem);
      letter-spacing: .04em;
      color: var(--text);
      line-height: 1.1;
      margin-bottom: 10px;
    }
    .news-hero-desc {
      font-size: .88rem;
      color: var(--text);
      opacity: .85;
      line-height: 1.55;
      margin-bottom: 18px;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .news-hero-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      width: fit-content;
      font-family: inherit;
      font-size: .84rem;
      font-weight: 700;
      cursor: pointer;
      padding: 10px 20px;
      border-radius: 8px;
      border: none;
      color: #fff;
      background: linear-gradient(90deg, var(--purple), var(--purple-mid));
      text-decoration: none;
      transition: filter .15s;
    }
    .news-hero-btn:hover { filter: brightness(1.1); }

    .news-hero-dots {
      position: absolute; right: 20px; bottom: 18px;
      display: flex; gap: 8px; z-index: 4;
    }
    .news-hero-dot {
      width: 9px; height: 9px; border-radius: 50%;
      background: rgba(255,255,255,.3);
      border: none; cursor: pointer; padding: 0;
      transition: background .18s, transform .18s;
    }
    .news-hero-dot.active { background: var(--purple-mid); transform: scale(1.25); }

    .news-hero-empty {
      display: flex; align-items: center; justify-content: center;
      height: 100%; color: var(--muted); font-size: .84rem; text-align: center; padding: 20px;
    }
    .news-hero-empty a { color: var(--purple-mid); text-decoration: none; font-weight: 600; }

    @media (max-width: 640px) {
      .news-hero { aspect-ratio: 4/5; min-height: 320px; }
      .news-hero-content { max-width: 100%; padding: 24px 20px; }
      .news-hero-fade { background: linear-gradient(0deg, rgba(10,7,16,.95) 30%, rgba(10,7,16,.2) 75%); }
    }

    /* ══════════════════════════════════════════════════════════
       SETTINGS PAGE
    ══════════════════════════════════════════════════════════ */
    .settings-title {
      font-family: 'Bebas Neue', cursive;
      font-size: 2rem;
      letter-spacing: .05em;
      background: linear-gradient(90deg, var(--purple-mid), var(--pink));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 28px;
    }
    .settings-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 22px 24px;
      margin-bottom: 22px;
      max-width: 560px;
    }
    .settings-card-title {
      font-size: 1.02rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 6px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .settings-card-desc {
      font-size: .82rem;
      color: var(--muted);
      line-height: 1.6;
      margin-bottom: 16px;
    }
    .settings-btn {
      font-family: inherit;
      font-size: .84rem;
      font-weight: 700;
      cursor: pointer;
      padding: 10px 18px;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--text);
      transition: border-color .18s, background .18s;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .settings-btn:hover { border-color: rgba(168,85,247,.4); background: var(--surface-hover); }
    .settings-btn.primary {
      background: linear-gradient(90deg, var(--purple), var(--purple-mid));
      border-color: transparent; color: #fff;
    }
    .settings-btn.primary:hover { filter: brightness(1.08); }
    .settings-btn input[type="file"] { display: none; }
    .settings-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
    .settings-status { font-size: .78rem; margin-top: 10px; min-height: 1.2em; }
    .settings-status.ok { color: #4ade80; }
    .settings-status.err { color: #f87171; }
    .settings-warning {
      font-size: .76rem; color: #fbbf24; background: rgba(251,191,36,.08);
      border: 1px solid rgba(251,191,36,.2); border-radius: 8px; padding: 10px 12px;
      line-height: 1.5; margin-top: 14px;
    }
    .settings-account-info { font-size: .84rem; color: var(--text); margin-bottom: 16px; }
    .settings-account-info b { color: var(--purple-mid); }

    /* ══════════════════════════════════════════════════════════
       DEVELOPER MODE (Dev/index.html)
    ══════════════════════════════════════════════════════════ */
    .dev-gate {
      max-width: 380px;
      margin: 80px auto 0;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 28px 26px;
      text-align: center;
    }
    .dev-gate-title {
      font-family: 'Bebas Neue', cursive;
      font-size: 1.6rem;
      letter-spacing: .05em;
      margin-bottom: 6px;
    }
    .dev-gate-sub { font-size: .8rem; color: var(--muted); margin-bottom: 18px; line-height: 1.5; }
    .dev-gate input {
      width: 100%;
      font-family: inherit; font-size: .9rem; color: var(--text);
      background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
      padding: 10px 12px; outline: none; margin-bottom: 10px; text-align: center;
    }
    .dev-gate input:focus { border-color: rgba(168,85,247,.5); }
    .dev-gate-error { font-size: .78rem; color: #f87171; min-height: 1.1em; margin-bottom: 6px; }

    .dev-banner {
      display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
      background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.25);
      border-radius: 10px; padding: 12px 16px; margin-bottom: 32px; font-size: .82rem; color: #4ade80;
    }

    .dev-news-card {
      background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
      padding: 22px 24px; margin-bottom: 28px; max-width: 720px;
    }
    .dev-news-card-title {
      font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 14px;
      display: flex; align-items: center; gap: 8px;
    }
    .dev-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
    .dev-field label { font-size: .74rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
    .dev-field input, .dev-field textarea {
      font-family: inherit; font-size: .86rem; color: var(--text);
      background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
      padding: 9px 12px; outline: none; resize: vertical;
    }
    .dev-field input:focus, .dev-field textarea:focus { border-color: rgba(168,85,247,.5); }
    .dev-image-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
    .dev-image-thumb {
      width: 120px; height: 46px; border-radius: 8px; overflow: hidden;
      background: linear-gradient(150deg, #1c1428, #0d0b15); border: 1px solid var(--border);
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    }
    .dev-image-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .dev-image-thumb.empty { font-size: .68rem; color: var(--muted); text-align: center; padding: 4px; }
    .dev-btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

    .dev-preview-label { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 18px 0 8px; }
    .dev-preview {
      position: relative; width: 100%; aspect-ratio: 21/8; min-height: 140px;
      border-radius: 10px; overflow: hidden; background: linear-gradient(150deg, #1c1428, #0d0b15);
      border: 1px solid var(--border);
    }
    .dev-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .dev-preview .news-hero-fade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,7,16,.92) 0%, rgba(10,7,16,.55) 45%, rgba(10,7,16,.1) 80%); }
    .dev-preview .news-hero-content { position: absolute; left: 0; bottom: 0; top: 0; display: flex; flex-direction: column; justify-content: center; padding: 16px 5%; max-width: 70%; }
    .dev-preview .news-hero-title { font-family: 'Bebas Neue', cursive; font-size: clamp(1.1rem, 3vw, 1.6rem); letter-spacing: .04em; color: var(--text); line-height: 1.15; margin-bottom: 5px; }
    .dev-preview .news-hero-desc { font-size: .74rem; color: var(--text); opacity: .85; line-height: 1.4; }
    .dev-preview-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: .78rem; }

    /* ══════════════════════════════════════════════════════════
       NEWS ARTICLE PAGE (news/1/, news/2/, news/3/)
    ══════════════════════════════════════════════════════════ */
    .article-hero {
      width: 100%;
      aspect-ratio: 21/8;
      min-height: 200px;
      border-radius: var(--radius);
      overflow: hidden;
      margin-bottom: 28px;
      border: 1px solid var(--border);
      background: linear-gradient(150deg, #1c1428, #0d0b15);
    }
    .article-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .article-eyebrow {
      font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
      color: #fbbf24; margin-bottom: 8px;
    }
    .article-title {
      font-family: 'Bebas Neue', cursive;
      font-size: clamp(1.8rem, 4vw, 2.6rem);
      letter-spacing: .04em;
      background: linear-gradient(90deg, var(--purple-mid), var(--pink));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 20px;
      line-height: 1.15;
    }
    .article-body {
      font-size: .92rem;
      line-height: 1.8;
      color: var(--text);
      opacity: .88;
      max-width: 720px;
      margin-bottom: 30px;
    }
    .article-body p { margin: 0 0 16px; }
    .article-actions { margin-bottom: 48px; }

    /* ══════════════════════════════════════════════════════════
       DEV MODE — Shows & Channels manager
    ══════════════════════════════════════════════════════════ */
    .dev-category-list {
      display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px;
    }
    .dev-category-chip {
      display: flex; align-items: center; justify-content: space-between;
      padding: 8px 12px; background: var(--bg); border: 1px solid var(--border);
      border-radius: 8px; font-size: .82rem; font-weight: 600;
    }
    .dev-category-chip .dev-category-key { color: var(--muted); font-size: .72rem; font-weight: 500; }

    .dev-type-toggle { display: flex; gap: 8px; margin-bottom: 16px; }
    .dev-type-toggle button {
      flex: 1; padding: 10px; border-radius: 8px; border: 1px solid var(--border);
      background: var(--surface); color: var(--text); font-family: inherit;
      font-weight: 700; font-size: .84rem; cursor: pointer; transition: background .15s, border-color .15s;
    }
    .dev-type-toggle button:hover { background: var(--surface-hover); }
    .dev-type-toggle button.active {
      background: linear-gradient(90deg, var(--purple), var(--purple-mid));
      border-color: transparent; color: #fff;
    }

    .dev-pending-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
    .dev-pending-item {
      display: flex; align-items: center; gap: 12px;
      padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
    }
    .dev-pending-thumb {
      width: 40px; height: 40px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
      background: linear-gradient(150deg, #1c1428, #0d0b15);
      display: flex; align-items: center; justify-content: center;
    }
    .dev-pending-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .dev-pending-info { flex: 1; min-width: 0; }
    .dev-pending-name { font-weight: 700; font-size: .85rem; color: var(--text); }
    .dev-pending-meta { font-size: .72rem; color: var(--muted); margin-top: 2px; }
    .dev-pending-remove {
      background: none; border: 1px solid rgba(248,113,113,.3); color: #f87171;
      border-radius: 6px; padding: 6px 12px; font-size: .74rem; cursor: pointer;
      font-family: inherit; font-weight: 600; flex-shrink: 0;
    }
    .dev-pending-remove:hover { background: rgba(248,113,113,.1); }

    /* ══════════════════════════════════════════════════════════
       MOBILE POLISH — cards, dev tools, CTAs
    ══════════════════════════════════════════════════════════ */
    .dev-categories-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

    @media (max-width: 640px) {
      .settings-card, .dev-news-card { padding: 16px 16px; }
      .home-cta { padding: 20px; }
      .home-cta-title { font-size: 1.4rem; }
      .dev-categories-grid { grid-template-columns: 1fr; gap: 16px; }
      .show-hero-logo-wrap { width: 84px; height: 84px; border-radius: 14px; }
      .article-actions { margin-bottom: 32px; }
    }
    @media (max-width: 400px) {
      .brand-name { font-size: 1.2rem; }
      .stream-footer { font-size: .74rem; padding: 16px; }
    }
