 /* ═══════════════════════════════════════════
        Font: Roboto | Colors: #0d0d0d bg, #ff0000 accent
    ═══════════════════════════════════════════ */

    :root {
      --bg:        #0d0d0d;
      --bg2:       #161616;
      --bg3:       #1e1e1e;
      --border:    #2a2a2a;
      --border2:   #333;
      --text:      #f0f0f0;
      --text2:     #b0b0b0;
      --text3:     #6e6e6e;
      --accent:    #ff0000;
      --accent2:   #cc0000;
      --radius-card: 6px;
      --radius-pill: 20px;
    }

    * { box-sizing: border-box; }

    body {
      font-family: 'Roboto', sans-serif;
      background: var(--bg);
      color: var(--text);
      font-size: 14px;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }

    /* ── NAV ── */
    nav {
      background: #000 !important;
      border-bottom: 1px solid var(--border) !important;
    }

    /* ── GRID ── */
    #video-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px 15px;
    }
    @media(min-width:600px)  { #video-grid { grid-template-columns: repeat(2,1fr); } }
    @media(min-width:900px)  { #video-grid { grid-template-columns: repeat(3,1fr); } }
    @media(min-width:1200px) { #video-grid { grid-template-columns: repeat(4,1fr); } }
    @media(min-width:1600px) { #video-grid { grid-template-columns: repeat(5,1fr); } }

    /* ── VIDEO CARD ── */
    .vcard { cursor: pointer; }

    .vcard-thumb {
      text-decoration: none;
      display: block;
      position: relative;
      border-radius: var(--radius-card);
      overflow: hidden;
      background: #111;
      aspect-ratio: 16/9;
    }
    .vcard-thumb::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 50%);
      pointer-events: none;
      opacity: 0;
      transition: opacity .25s;
    }
    .vcard:hover .vcard-thumb::after { opacity: 1; }

    .vcard-thumb img,
    .vcard-trailer {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      object-fit: cover;
      transition: opacity .3s, transform .4s;
    }
    .vcard:hover .vcard-thumb img { transform: scale(1.03); }
    .vcard-trailer { opacity: 0; }
    .vcard:hover .vcard-trailer.playing { opacity: 1; }

    .vcard-duration {
      position: absolute;
      bottom: 7px; right: 8px;
      background: rgba(0,0,0,.75);
      color: #fff;
      font-size: 11px; font-weight: 500;
      padding: 1px 5px;
      border-radius: 3px;
      letter-spacing: .3px;
      pointer-events: none;
    }
    .vcard-plus {
      position: absolute; bottom: 8px; right: 10px;
      color: rgba(255,255,255,.7);
      font-size: 20px; font-weight: 300; line-height: 1;
      pointer-events: none;
    }

    /* Card info row */
    .vcard-info { display: flex; gap: 9px; margin-top: 7px; padding: 0 2px; }

    .vcard-avatar {
      text-decoration: none;
      width: 34px; height: 34px;
      border-radius: 50%; flex-shrink: 0;
      background: var(--bg3);
      overflow: hidden;
      display: flex; align-items: center; justify-content: center;
      font-size: 11px; font-weight: 700; color: #888;
      cursor: pointer;
      transition: outline .1s;
    }
    .vcard-avatar:hover { outline: 2px solid var(--accent); }
    .vcard-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

    .vcard-meta { flex: 1; min-width: 0; }

    .vcard-name {
      text-decoration: none;
      font-size: 12px; font-weight: 500;
      color: var(--text2);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      display: inline-block; max-width: 100%;
    }
    .vcard-name:hover { color: var(--accent); text-decoration: none; }

    .vcard-title {
      font-size: 13px; font-weight: 400;
      color: var(--text);
      line-height: 1.35;
      margin-top: 2px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .vcard-stats {
      font-size: 11px; color: var(--text3);
      margin-top: 4px;
      display: flex; align-items: center; gap: 8px;
    }
    .vcard-stats .like { display: flex; align-items: center; gap: 3px; color: var(--text3); }
    .vcard-stats .like i { color: var(--accent); font-size: 10px; }
    .vcard-date { color: var(--text3); font-size: 11px; margin-left: auto; }

    /* ── INLINE PLAYER ── */
    #inline-player { grid-column:1/-1; background:#000; overflow:hidden; animation:slideDown .25s ease; }
    @keyframes slideDown { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }

    #pw { position:relative; background:#000; width:100%; user-select:none; cursor:pointer; }
    #pw video { display:block; width:100%; max-height:72vh; }
    #pw-ctrl { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:space-between; opacity:0; transition:opacity .2s; pointer-events:none; }
    #pw:hover #pw-ctrl, #pw.show-ctrl #pw-ctrl { opacity:1; pointer-events:all; }
    #pw-top { display:flex; justify-content:space-between; align-items:center; padding:12px 16px; background:linear-gradient(to bottom,rgba(0,0,0,.65),transparent); }
    .cb { background:none; border:none; color:#fff; cursor:pointer; font-size:18px; padding:4px 8px; opacity:.85; transition:opacity .15s; }
    .cb:hover { opacity:1; }
    #pw-time { text-align:center; color:#fff; font-size:clamp(15px,3vw,22px); font-weight:300; letter-spacing:2px; text-shadow:0 1px 6px rgba(0,0,0,.9); pointer-events:none; }
    #pw-seek-wrap { padding-bottom:2px; background:linear-gradient(to top,rgba(0,0,0,.65),transparent); }
    #pw-seekbar { position:relative; height:3px; background:rgba(255,255,255,.2); cursor:pointer; }
    #pw-seekbar:hover { height: 5px; }
    #pw-fill    { position:absolute; left:0; top:0; height:100%; background: var(--accent); pointer-events:none; }
    #pw-thumb   { position:absolute; top:50%; transform:translate(-50%,-50%); width:13px; height:13px; border-radius:50%; background:#fff; pointer-events:none; }
    #vol-panel  { position:absolute; left:0; bottom:40px; background:rgba(0,0,0,.85); border-radius:8px; padding:10px 8px; display:none; flex-direction:column; align-items:center; }
    #vol-panel.open { display:flex; }
    #vol-slider { -webkit-appearance:none; appearance:none; writing-mode:vertical-lr; direction:rtl; transform:rotate(180deg); width:4px; height:72px; background:rgba(255,255,255,.3); border-radius:2px; outline:none; cursor:pointer; }
    #vol-slider::-webkit-slider-thumb { -webkit-appearance:none; width:12px; height:12px; border-radius:50%; background:#fff; }
    #pw-info { background: var(--bg2); padding:14px 16px; border-top:1px solid var(--border); }
    #pw-info h2 { font-size:15px; font-weight:500; margin-bottom:4px; color: var(--text); }
    .pw-stat { font-size:12px; color:var(--text3); display:inline-flex; align-items:center; gap:4px; }
    #pw-center { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; pointer-events:none; }
    .pw-center-btn { background:rgba(0,0,0,.5); border:none; color:#fff; width:60px; height:60px; border-radius:50%; font-size:24px; cursor:pointer; pointer-events:all; display:flex; align-items:center; justify-content:center; transition:transform .1s, background .15s; }
    .pw-center-btn:hover { background:rgba(0,0,0,.75); transform:scale(1.08); }
    .pw-close-btn { position:absolute; top:10px; right:10px; z-index:10; background:rgba(0,0,0,.6); border:none; color:#fff; width:30px; height:30px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:14px; }
    .pw-close-btn:hover { background:rgba(255,255,255,.15); }

    .act-btn { display:flex; flex-direction:column; align-items:center; gap:2px; cursor:pointer; }
    .act-btn i { font-size:18px; color:var(--text3); transition:color .15s; }
    .act-btn:hover i { color:#fff; }
    .act-btn span { font-size:10px; color:var(--text3); }

    /* ── PERFORMER HERO ── */
    .perf-chip { display:flex; flex-direction:column; align-items:center; gap:4px; cursor:pointer; }
    .perf-chip-av { width:48px; height:48px; border-radius:50%; background:var(--bg3); overflow:hidden; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; color:#888; }
    #perf-hero { display:none; background:linear-gradient(to bottom,var(--bg2),var(--bg)); border-bottom:1px solid var(--border); padding:32px 24px 24px; }
    #perf-av-lg { width:120px; height:120px; border-radius:50%; flex-shrink:0; background:var(--bg3); overflow:hidden; display:flex; align-items:center; justify-content:center; font-size:36px; font-weight:700; color:#888; border:3px solid var(--border2); }
    #perf-av-lg img { width:100%; height:100%; object-fit:cover; }
    .ph-stat { text-align:center; }
    .ph-stat-v { font-size:20px; font-weight:700; color:#fff; }
    .ph-stat-l { font-size:11px; color:var(--text3); margin-top:2px; }

    /* ── SEARCH AUTOCOMPLETE ── */
    .suggestions { position:absolute; top:calc(100% + 6px); left:0; right:0; background:var(--bg2); border:1px solid var(--border); max-height:520px; overflow-y:auto; z-index:50; border-radius:12px; box-shadow:0 16px 48px rgba(0,0,0,.9); scrollbar-width:thin; scrollbar-color:var(--border2) transparent; }
    .suggestions::-webkit-scrollbar { width:3px; }
    .suggestions::-webkit-scrollbar-thumb { background:var(--border2); border-radius:4px; }
    .sg-tabs { display:flex; gap:6px; padding:10px 14px 8px; border-bottom:1px solid var(--border); position:sticky; top:0; background:var(--bg2); z-index:1; }
    .sg-tab { padding:3px 14px; border-radius: var(--radius-pill); font-size:12px; font-weight:500; cursor:pointer; border:1px solid var(--border); color:var(--text2); transition:all .15s; background:transparent; }
    .sg-tab:hover { border-color:var(--border2); color:var(--text); }
    .sg-tab.active { background:var(--accent); color:#fff; border-color:var(--accent); }
    .suggestion-item { display:flex; align-items:center; gap:14px; padding:10px 16px; cursor:pointer; transition:background .1s; border-bottom:1px solid var(--border); }
    .suggestion-item:last-child { border-bottom:none; }
    .suggestion-item:hover, .suggestion-item.active { background:var(--bg3); }
    .tag-avatar-wrap { width:52px; height:52px; border-radius:50%; overflow:hidden; flex-shrink:0; background:var(--bg3); display:flex; align-items:center; justify-content:center; }
    .tag-avatar-wrap img { width:100%; height:100%; object-fit:cover; }
    .name-dim  { color:var(--text3); font-weight:400; }
    .name-bold { color:#fff; font-weight:600; }
    .stat-followers { color:#fff; font-size:15px; font-weight:700; line-height:1.2; text-align:right; }
    .stat-videos    { color:var(--text3); font-size:12px; margin-top:2px; display:flex; align-items:center; justify-content:flex-end; gap:4px; }

    /* ── WS DOT ── */
    .ws-dot { width:7px; height:7px; border-radius:50%; display:inline-block; flex-shrink:0; }
    .ws-dot.connected    { background:#22c55e; }
    .ws-dot.connecting   { background:#f59e0b; animation:blink 1s infinite; }
    .ws-dot.disconnected { background:#ef4444; }
    @keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

    /* ── RECOMMENDATION BAR ── */
    #rec-bar { background:#000; border-bottom:1px solid var(--border); overflow:hidden; }
    .rec-section { position:relative; padding:8px 0 6px; border-bottom:1px solid #111; }
    .rec-section:last-child { border-bottom:none; }
    .rec-scroll { display:flex; gap:0; overflow-x:auto; scroll-behavior:smooth; padding:0 16px; scrollbar-width:none; -ms-overflow-style:none; align-items:center; }
    .rec-scroll::-webkit-scrollbar { display:none; }
    .rec-arr { position:absolute; top:50%; transform:translateY(-50%); z-index:5; background:linear-gradient(to right,rgba(0,0,0,.95),transparent); border:none; color:#fff; width:36px; height:100%; cursor:pointer; display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity .2s; font-size:13px; }
    .rec-arr.left  { left:0; background:linear-gradient(to right,rgba(0,0,0,.95),transparent); }
    .rec-arr.right { right:0; background:linear-gradient(to left,rgba(0,0,0,.95),transparent); }
    .rec-section:hover .rec-arr { opacity:1; }

    /* Person chip */
    .rec-person { display:flex; flex-direction:column; align-items:center; gap:5px; cursor:pointer; padding:4px 10px; flex-shrink:0; min-width:72px; }
    .rec-person-av { width:60px; height:60px; border-radius:50%; overflow:hidden; background:var(--bg3); display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; color:#888; border:2px solid transparent; transition:border-color .2s; }
    .rec-person-av img { width:100%; height:100%; object-fit:cover; }
    .rec-person:hover .rec-person-av { border-color: var(--accent); }
    .rec-person-name { font-size:11px; color:var(--text2); text-align:center; width:68px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .rec-person:hover .rec-person-name { color:#fff; }

    /* Brand chip */
    .rec-brand { display:flex; align-items:center; gap:7px; cursor:pointer; flex-shrink:0; padding:5px 12px; border-radius: var(--radius-pill); background:var(--bg2); border:1px solid var(--border); margin:4px 4px; transition:border-color .15s,background .15s; }
    .rec-brand:hover { border-color:var(--accent); background:var(--bg3); }
    .rec-brand-logo { width:22px; height:22px; border-radius:50%; overflow:hidden; background:var(--bg3); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
    .rec-brand-logo img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
    .rec-brand-name { font-size:12px; font-weight:500; color:var(--text); white-space:nowrap; }

    /* Tag chip */
    .rec-tag { display:flex; align-items:center; gap:5px; cursor:pointer; flex-shrink:0; padding:5px 14px; border-radius: var(--radius-pill); background:var(--bg2); border:1px solid var(--border); margin:4px 4px; transition:border-color .15s,background .15s; }
    .rec-tag:hover { border-color:var(--accent); background:var(--bg3); }
    .rec-tag-flag { width:18px; height:18px; border-radius:50%; overflow:hidden; flex-shrink:0; }
    .rec-tag-flag img { width:100%; height:100%; object-fit:cover; }
    .rec-tag-name { font-size:12px; font-weight:500; color:var(--text); white-space:nowrap; }


/* Quality menu scrollable if many entries */
#qual-menu { max-height: 320px; overflow-y: auto;display:none;position:absolute;top:calc(100% + 8px);right:0;background:#141414;border:1px solid #2a2a2a;border-radius:10px;min-width:130px;padding:6px 0;z-index:99;box-shadow:0 8px 32px rgba(0,0,0,.8) }
#qual-menu::-webkit-scrollbar { width: 4px; }
#qual-menu::-webkit-scrollbar-track { background: transparent; }
#qual-menu::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

/* Active quality button highlight */
#pw-btn-qual { color: #e2e2e2;font-size:11px;font-weight:700;min-width:36px;padding:0 4px; }
#pw-btn-qual:hover { color: #fff; background: rgba(255,255,255,.1); border-radius: 4px; }