*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

    html, body { user-select: none; -webkit-user-select: none; scrollbar-width: none; }

    html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }

    :root {
      --bg: #edf3fc;
      --surface: #ffffff;
      --surface2: #fafaf9;
      --border: #e8e8e5;
      --border2: #d8d8d4;
      --text: #111110;
      --muted: #a0a09a;
      --muted2: #70706a;
      --accent: #5D91E4;
      --accent2: #4a7dd4;
      --accent-light: rgba(93,145,228,0.10);
      --accent-glow: rgba(93,145,228,0.25);
      --fp-hole-bg: #5D91E4;
      --tab-h: 60px;
      --tab-bar-h: 60px;
      --status-bar-height: 0px;
    }

    [data-accent="orange"] { --accent:#F97316; --accent2:#ea6a0a; --accent-light:rgba(249,115,22,0.12); --accent-glow:rgba(249,115,22,0.28); --fp-grad1:#3d1f0a; --fp-grad2:#7c2d0e; --fp-grad3:#431a06;  --fp-hole-bg: #F97316; }

    [data-accent="purple"] { --accent:#9B5CF6; --accent2:#8448e6; --accent-light:rgba(155,92,246,0.12); --accent-glow:rgba(155,92,246,0.28); --fp-grad1:#1e1040; --fp-grad2:#2d1760; --fp-grad3:#170c35;  --fp-hole-bg: #9B5CF6; }

    [data-accent="green"]  { --accent:#22C55E; --accent2:#16a34a; --accent-light:rgba(34,197,94,0.12);  --accent-glow:rgba(34,197,94,0.28);  --fp-grad1:#0a2e1a; --fp-grad2:#0f4a28; --fp-grad3:#072415;  --fp-hole-bg: #22C55E; }

    [data-accent="red"]    { --accent:#EF4444; --accent2:#dc2626; --accent-light:rgba(239,68,68,0.12);  --accent-glow:rgba(239,68,68,0.28);  --fp-grad1:#3d0a0a; --fp-grad2:#6b1010; --fp-grad3:#2e0606;  --fp-hole-bg: #EF4444; }

    [data-accent="pink"]   { --accent:#EC4899; --accent2:#db2777; --accent-light:rgba(236,72,153,0.12); --accent-glow:rgba(236,72,153,0.28); --fp-grad1:#3d0a22; --fp-grad2:#6b1040; --fp-grad3:#2e061a;  --fp-hole-bg: #EC4899; }

    /* ── MUSIC TAB LOADER ── */

    .mloader-bars {
      display: flex; align-items: flex-end; gap: 4px; height: 28px;
    }

    .mloader-bar {
      width: 4px; border-radius: 3px;
      background: var(--accent); opacity: 0.85;
      animation: barBounce 1s ease-in-out infinite;
    }

    .mloader-bar:nth-child(1) { height: 14px; animation-delay: 0s; }

    .mloader-bar:nth-child(2) { height: 22px; animation-delay: 0.15s; }

    .mloader-bar:nth-child(3) { height: 28px; animation-delay: 0.3s; }

    .mloader-bar:nth-child(4) { height: 18px; animation-delay: 0.45s; }

    .mloader-bar:nth-child(5) { height: 10px; animation-delay: 0.6s; }

    @keyframes barBounce {
      0%, 100% { transform: scaleY(0.4); opacity: 0.5; }

      50%       { transform: scaleY(1);   opacity: 1; }

    }

    /* ── SIDEBAR ── */

    #sidebarOverlay {
      position: fixed; top: 52px; left: 0; right: 0; bottom: 0; z-index: 9100;
      background: rgba(0,0,0,0); pointer-events: none;
      transition: background 0.3s;
    }

    #sidebarOverlay.open {
      background: transparent;
      pointer-events: all;
    }

    #sidebar {
      position: fixed; top: calc(72px + var(--status-bar-height)); left: 0; bottom: 0; z-index: 9200;
      width: 268px; max-width: 82vw;
      background: rgba(255,255,255,0.95);
      border-right: none;
      border-top: none;
      border-radius: 20px 20px 0 0;
      display: flex; flex-direction: column;
      transform: translateX(-100%);
      transition: none;
      overflow: hidden;
      box-shadow: 4px 0 20px rgba(0,0,0,0.08);
    }

    body.app-ready #sidebar {
      transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    }

    #sidebar.open { transform: translateX(0); }

    .sb-body {
      flex: 1; overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding-top: 8px;
      padding-bottom: 80px;
    }

    .sb-body::-webkit-scrollbar { display: none; }

    /* Section header */

    .sb-section-label {
      display: flex; align-items: center; gap: 10px;
      padding: 16px 16px 6px;
      -webkit-tap-highlight-color: transparent;
    }

    .sb-section-label::before {
      content: '';
      width: 3px; height: 16px;
      background: var(--accent);
      border-radius: 2px;
      flex-shrink: 0;
    }

    .sb-section-label span {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.82rem; font-weight: 600;
      color: var(--text);
      white-space: nowrap;
    }

    /* Item row */

    .sb-cat-item {
      display: flex; align-items: center; gap: 12px;
      padding: 9px 16px 9px 12px;
      cursor: pointer; position: relative;
      border-left: 3px solid transparent;
      transition: background 0.15s, border-color 0.15s;
    }

    .sb-cat-item:active {
      background: var(--accent-light);
      border-left-color: var(--accent);
    }

    .sb-cat-item:active .sb-cat-name { color: var(--accent); }

    .sb-cat-thumb {
      width: 40px; height: 40px; border-radius: 10px;
      border: 1.5px solid transparent;
      flex-shrink: 0; background: var(--surface2);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.1rem; overflow: hidden;
      position: relative;
    }

    .sb-cat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

    .sb-collage {
      width: 40px; height: 40px; border-radius: 10px;
      border: 1.5px solid transparent;
      display: grid; grid-template-columns: 1fr 1fr;
      grid-template-rows: 1fr 1fr;
      overflow: hidden; flex-shrink: 0;
      background: var(--surface2);
    }

    .sb-collage img {
      width: 100%; height: 100%; object-fit: cover; display: block;
    }

    .sb-collage.cols-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }

    .sb-collage.cols-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }

    .sb-collage.cols-3 img:first-child { grid-column: 1 / 2; grid-row: 1 / 3; }

    .sb-cat-info { flex: 1; min-width: 0; }

    .sb-cat-name {
      font-size: 0.85rem; font-weight: 600; color: var(--text);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      transition: color 0.15s;
    }

    .sb-cat-sub {
      font-size: 0.7rem; color: var(--muted); margin-top: 1px;
    }

    .sb-cat-arrow { color: var(--muted); flex-shrink: 0; }

    .sb-divider {
      height: 1px; background: var(--border);
      margin: 6px 16px;
    }

    .sb-empty {
      padding: 10px 16px;
      font-size: 0.8rem; color: var(--muted);
    }

    html {
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
      display: flex;
      justify-content: center;
      align-items: flex-start;
      min-height: 100vh;
      padding: 20px 0;
      overflow-x: hidden;
    }

    /* ── GRADIENT ANIMATION ── */

    @keyframes gradientShift {
      0%   { background-position: 100% 100%, 20% 30%, 80% 70%; }

      33%  { background-position: 100% 100%, 35% 20%, 65% 80%; }

      66%  { background-position: 100% 100%, 15% 40%, 85% 60%; }

      100% { background-position: 100% 100%, 20% 30%, 80% 70%; }

    }

    /* mobile default — full screen */

    body {
      font-family: 'Noto Sans Bengali', 'Plus Jakarta Sans', sans-serif;
      background: #edf3fc;
      color: var(--text);
      display: flex; flex-direction: column;
      padding-bottom: var(--tab-h);
      min-height: 100vh;
      position: relative;
      overflow-x: hidden;
      width: 100%;
    }

    /* desktop class added by JS */

    body.is-desktop {
      width: 390px;
      height: 844px;
      max-height: 844px;
      overflow: hidden;
      border-radius: 40px;
      box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 10px #2a2a2a, 0 0 0 11px #444;
      flex-shrink: 0;
      min-height: unset;
    }

    body.is-desktop::before { border-radius: 40px; }

    body.is-desktop header     { position: sticky; }

    body.is-desktop #tabBar    { position: absolute; bottom: 0; left: 0; right: 0; }

    body.is-desktop #miniPlayer{ position: absolute; left: 12px; right: 12px; bottom: calc(var(--tab-h) + 10px); }

    body.is-desktop #miniPlayer        { transform: translateY(200%); }

    body.is-desktop #miniPlayer.visible{ transform: translateY(0); }

    body.is-desktop #miniPlayer.open   { position: absolute; left: 0; right: 0; bottom: 0; transform: translateY(0); }

    body.is-desktop #fpOverlay  { position: absolute; }

    body.is-desktop .wrap       { overflow-y: auto; flex: 1; }

    /* mobile — html acts normal */

    body:not(.is-desktop) ~ * {}

    html:has(body:not(.is-desktop)) {
      display: block;
      background: var(--bg);
      padding: 0;
    }

    header {
      background: rgba(255,255,255,0.95);
      border: none;
      border-radius: 28px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.08);
      position: relative;
      top: unset; left: unset; right: unset; z-index: unset;
      width: auto;
      margin: calc(10px + var(--status-bar-height)) 12px 10px;
      box-sizing: border-box;
      overflow: hidden;
    }

    header.hide { transform: none; }

    /* header static, body padding সরানো */

    body { padding-top: 0; }

    .header-inner {
      max-width: 680px; margin: 0 auto; padding: 0 16px;
      display: flex; align-items: center; gap: 12px;
      height: 52px;
      overflow: hidden;
      width: 100%;
      box-sizing: border-box;
    }

    .header-icon-btn {
      background: none; border: none; cursor: pointer;
      width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
      border-radius: 50%; flex-shrink: 0; padding: 0;
      color: var(--accent); position: relative;
      -webkit-tap-highlight-color: transparent;
      transition: background 0.2s;
    }

    .header-icon-btn:active { background: var(--accent-light); }

    /* ── HEADER INLINE SEARCH ── */

    .header-inner { position: relative; }

    #headerSearchExpand {
      position: absolute; left: 0; right: 0; top: 0; bottom: 0;
      display: flex; align-items: center; gap: 8px; padding: 0 8px;
      background: transparent;
      opacity: 0; pointer-events: none;
      transition: opacity 0.2s;
    }

    #headerSearchExpand.open { opacity: 1; pointer-events: all; }

    #headerSearchOverlay {
      display: none;
      position: fixed; inset: 0;
      z-index: 9290;
      background: transparent;
    }

    #headerSearchOverlay.open { display: block; }

    /* ── SEARCH SUGGESTIONS ── */

    #searchSuggestions {
      position: fixed;
      top: 72px; z-index: 9299;
      background: var(--surface);
      border-radius: 0 0 20px 20px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.12);
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.25s cubic-bezier(0.4,0,0.2,1);
    }

    #searchSuggestions.open { max-height: 420px; overflow-y: auto; }

    .sg-item {
      display: flex; align-items: center; gap: 8px;
      padding: 10px 16px; cursor: pointer;
      border-bottom: 1px solid var(--border);
      transition: background 0.15s;
      -webkit-tap-highlight-color: transparent;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.88rem;
      font-weight: 500;
      color: var(--text);
    }

    .sg-item:last-child { border-bottom: none; }

    .sg-item:active { background: var(--surface2); }

    .sg-suggest-arrow { color: var(--muted); flex-shrink: 0; opacity: 0.6; display: flex; align-items: center; }

    /* history header row */

    .sg-history-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 8px 16px 4px;
    }

    .sg-history-label {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.72rem; font-weight: 600;
      color: var(--muted);
      text-transform: uppercase; letter-spacing: 0.05em;
    }

    .sg-history-clear {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.75rem; font-weight: 500;
      color: var(--accent); cursor: pointer;
      background: none; border: none; padding: 2px 0;
      -webkit-tap-highlight-color: transparent;
    }

    /* history item */

    .sg-history-item {
      display: flex; align-items: center; gap: 10px;
      padding: 9px 16px; cursor: pointer;
      border-bottom: 1px solid var(--border);
      transition: background 0.15s;
      -webkit-tap-highlight-color: transparent;
    }

    .sg-history-item:last-child { border-bottom: none; }

    .sg-history-item:active { background: var(--surface2); }

    .sg-history-icon { color: var(--muted); flex-shrink: 0; opacity: 0.7; }

    .sg-history-text {
      flex: 1; min-width: 0;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.88rem; font-weight: 500;
      color: var(--text);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }

    .sg-history-del {
      background: none; border: none; cursor: pointer;
      color: var(--muted); padding: 2px 0 2px 6px; flex-shrink: 0;
      opacity: 0.6; -webkit-tap-highlight-color: transparent;
      display: flex; align-items: center;
    }

    .sg-history-del:active { opacity: 1; }

    .header-inner.search-open #hamburgerBtn,

    .header-inner.search-open > div,

    .header-inner.search-open #headerSearchBtn { opacity: 0; pointer-events: none; transition: opacity 0.15s; }

    #headerInlineInput {
      flex: 1; border: none; outline: none; background: transparent;
      font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.92rem; font-weight: 500;
      color: var(--text); caret-color: var(--accent);
    }

    #headerInlineInput::placeholder { color: var(--muted); }

    #headerSearchClose {
      background: none; border: none; cursor: pointer; padding: 4px;
      color: var(--muted); display: flex; align-items: center;
      -webkit-tap-highlight-color: transparent;
    }

    #headerSearchGo {
      background: var(--accent); border: none; cursor: pointer;
      width: 32px; height: 32px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0; -webkit-tap-highlight-color: transparent;
    }

    .logo-title {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 1.15rem;
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--text);
      display: flex; align-items: center; gap: 0;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .logo-title span.fm { color: var(--accent); }

    .logo-live-dot {
      width: 6px; height: 6px; border-radius: 50%;
      background: #22c55e;
      margin-left: 5px; margin-bottom: 9px;
      box-shadow: 0 0 0 2px rgba(34,197,94,0.2);
      animation: logo-pulse 2s ease-in-out infinite;
      flex-shrink: 0;
    }

    @keyframes logo-pulse {
      0%,100% { box-shadow: 0 0 0 2px rgba(34,197,94,0.2); }

      50%      { box-shadow: 0 0 0 5px transparent; }

    }

    /* Divider between logo and search */

    .header-divider {
      width: 1px; height: 20px;
      background: var(--border2);
      flex-shrink: 0;
    }

          50%      { box-shadow: 0 0 0 4px rgba(239,68,68,0); }

    }

    /* Inline search bar */

    .header-search {
      flex: 1;
      min-width: 0;
      max-width: 100%;
      display: flex; align-items: center; gap: 8px;
      background: var(--bg);
      border: 1.5px solid var(--border);
      border-radius: 10px;
      border: 1.5px solid transparent;
      padding: 0 12px;
      height: 36px;
      overflow: hidden;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .header-search:focus-within {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px var(--accent-light);
      background: var(--surface);
    }

    .header-search svg {
      width: 15px; height: 15px;
      color: var(--muted); flex-shrink: 0;
      transition: color 0.2s;
    }

    .header-search:focus-within svg { color: var(--accent); }

    .header-search input { user-select: text; -webkit-user-select: text; flex: 1; background: none; border: none; outline: none;
      font-family: inherit; font-size: 0.85rem; color: var(--text);
      min-width: 0;
    }

    .header-search input::placeholder { color: var(--muted); }

    .search-clear {
      background: none; border: none; cursor: pointer;
      color: var(--muted); padding: 2px;
      display: none; align-items: center; justify-content: center;
      border-radius: 4px; transition: all 0.15s; flex-shrink: 0;
    }

    .search-clear svg { width: 14px; height: 14px; }

    .search-clear:hover { color: var(--text); }

    .search-clear.visible { display: flex; }

    /* ── SEARCH RESULTS ── */

    .search-section-label {
      font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
      color: var(--muted); text-transform: uppercase;
      padding: 14px 16px 6px; opacity: 0.8;
    }

    .search-pill-wrap {
      display: flex; flex-wrap: wrap; gap: 8px;
      padding: 4px 16px 12px;
    }

    .search-pill {
      display: flex; align-items: center; gap: 8px;
      background: var(--surface); border: 1.5px solid var(--border);
      border-radius: 12px; padding: 7px 12px 7px 8px;
      cursor: pointer; transition: all 0.18s; min-width: 0;
      max-width: calc(50% - 4px);
    }

    .search-pill { transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s; }

    .search-pill:hover { border-color: var(--accent); background: var(--surface2); transform: scale(1.012); box-shadow: 0 4px 16px rgba(0,0,0,0.07); }

    .search-pill:hover .search-pill-name { color: var(--accent); }

    .search-pill:active { transform: scale(0.985); box-shadow: none; }

    .search-pill.active { border-color: var(--accent); background: var(--accent-light); }

    .search-pill-thumb {
      width: 36px; height: 36px; border-radius: 8px;
      object-fit: cover; flex-shrink: 0;
      background: var(--surface2);
    }

    .search-pill-thumb-placeholder {
      width: 36px; height: 36px; border-radius: 8px;
      background: var(--surface2); flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      font-size: 1rem;
    }

    .search-pill-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

    .search-pill-name {
      font-size: 0.8rem; font-weight: 600; color: var(--text);
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }

    .search-pill-sub {
      font-size: 0.68rem; color: var(--muted);
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }

    /* ── WRAP ── */

    .wrap {
      flex: 1; max-width: 680px; margin: 0 auto;
      padding: 0 16px 0; width: 100%; position: relative; z-index: 1;
    }

    /* ── PAGE LOAD ANIMATION OVERLAY ── */

    /* ── SHARED MODAL GRADIENT (same as body & pageLoader) ── */

    .modal-gradient-bg {
      background: #edf3fc;
    }

    @keyframes loaderGradientShift {
      0%   { background-position: 100% 100%, 20% 30%, 80% 70%; }

      33%  { background-position: 100% 100%, 35% 20%, 65% 80%; }

      66%  { background-position: 100% 100%, 15% 40%, 85% 60%; }

      100% { background-position: 100% 100%, 20% 30%, 80% 70%; }

    }

    #pageLoader {
      position: fixed; inset: 0; z-index: 9999;
      background: #edf3fc;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: 14px;
      transition: opacity 0.4s ease;
      overflow: hidden;
    }

    #pageLoader.hide {
      opacity: 0;
      pointer-events: none;
    }

    /* header/tabBar hide while loader is active */

    body:has(#pageLoader:not(.hide):not([style*="display:none"])) header,

    body:has(#pageLoader:not(.hide):not([style*="display:none"])) #tabBar,

    body:has(#pageLoader:not(.hide):not([style*="display:none"])) #miniPlayer {
      display: none !important;
    }



    .pl-logo {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 1.6rem; font-weight: 800;
      color: var(--text); letter-spacing: -0.03em;
      position: relative; z-index: 1;
    }

    .pl-logo span:not(.pl-dot) { color: var(--accent); }

    .pl-dot {
      display: inline-block;
      width: 8px; height: 8px; border-radius: 50%;
      background: #22c55e;
      margin-left: 3px;
      vertical-align: super;
      font-size: 0;
      box-shadow: 0 0 0 2px rgba(34,197,94,0.25);
      animation: plDotPulse 2s ease-in-out infinite;
    }

    @keyframes plDotPulse {
      0%, 100% { box-shadow: 0 0 0 2px rgba(34,197,94,0.25); }

      50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0); }

    }

    .pl-tagline {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.78rem; color: var(--muted);
      letter-spacing: 0.04em;
      position: relative; z-index: 1;
      margin-top: -6px;
    }

    .pl-version {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.65rem; color: var(--muted);
      letter-spacing: 0.08em;
      position: absolute; bottom: 18px; right: 18px;
      opacity: 0.6;
      z-index: 1;
    }

    .pl-loader {
      display: flex;
      align-items: flex-end;
      gap: 5px;
      height: 28px;
      position: relative;
      z-index: 1;
    }

    .pl-wave {
      width: 4px;
      border-radius: 3px;
      background: var(--accent);
      animation: plWave 1.1s ease-in-out infinite;
      opacity: 0.85;
    }

    .pl-wave:nth-child(1) { animation-delay: 0s;     height: 8px; }

    .pl-wave:nth-child(2) { animation-delay: 0.15s;  height: 8px; }

    .pl-wave:nth-child(3) { animation-delay: 0.3s;   height: 8px; }

    .pl-wave:nth-child(4) { animation-delay: 0.45s;  height: 8px; }

    .pl-wave:nth-child(5) { animation-delay: 0.6s;   height: 8px; }

    @keyframes plWave {
      0%, 100% { height: 8px;  opacity: 0.5; }

      50%       { height: 26px; opacity: 1;   }

    }

    /* ── TAB OFFLINE PLACEHOLDER ── */

    .tab-placeholder {
      display: flex; flex-direction: column;
      align-items: center; justify-content: flex-start;
      gap: 16px;
      padding-top: 80px;
      pointer-events: none;
    }

    .tab-placeholder .pl-bars {
      display: flex; align-items: flex-end; gap: 5px; height: 32px;
    }

    .tab-placeholder .pl-bar {
      width: 5px; border-radius: 3px;
      background: var(--accent); opacity: 0.85;
      animation: plBounce 1s ease-in-out infinite;
    }

    .tab-placeholder .pl-bar:nth-child(1) { height: 12px; animation-delay: 0s; }

    .tab-placeholder .pl-bar:nth-child(2) { height: 20px; animation-delay: 0.12s; }

    .tab-placeholder .pl-bar:nth-child(3) { height: 28px; animation-delay: 0.24s; }

    .tab-placeholder .pl-bar:nth-child(4) { height: 20px; animation-delay: 0.36s; }

    .tab-placeholder .pl-bar:nth-child(5) { height: 12px; animation-delay: 0.48s; }

    @keyframes plBounce {
      0%, 100% { transform: scaleY(0.4); opacity: 0.5; }

      50%       { transform: scaleY(1);   opacity: 1; }

    }

    /* ── PODCAST CATEGORY HORIZ SCROLL ── */

    .pc-cat-horiz-section { margin-top: 4px; }

    .pc-cat-horiz {
      display: flex; flex-direction: row; gap: 8px;
      overflow-x: auto; overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding: 4px 8px 12px 0;
    }

    .pc-cat-horiz::-webkit-scrollbar { display: none; }

    .pc-cat-horiz .pep-ep-row {
      flex-shrink: 0;
      width: calc((100vw - 28px - 16px) / 3);
      scroll-snap-align: start; margin-bottom: 0;
    }

    .pc-cat-horiz .pep-ep-title {
      -webkit-line-clamp: 2; text-align: left;
    }

    .pc-cat-horiz .pep-ep-row:hover,

    .pc-cat-horiz .pep-ep-row:active { transform: none !important; }

    .pc-cat-horiz .pep-ep-row.active { outline: none; }

    /* ── LISTEN TAB — Latest Episodes horizontal scroll ── */

    .listen-horiz-scroll {
      display: flex; flex-direction: row; gap: 8px;
      overflow-x: auto; overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding: 4px 8px 14px 14px;
    }

    .listen-horiz-scroll::-webkit-scrollbar { display: none; }

    .listen-horiz-scroll .pep-ep-row {
      flex-shrink: 0;
      width: calc((100vw - 28px - 16px) / 3);
      margin-bottom: 0;
    }

    .listen-horiz-scroll .pep-ep-row:hover,

    .listen-horiz-scroll .pep-ep-row:active { transform: none !important; }

    /* ── LISTEN TAB — Category sections ── */

    /* podcastCatEpSections — horizontal scroll container */
    #podcastCatEpSections {
      display: flex; flex-direction: row;
      overflow-x: auto; overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      gap: 10px;
      padding: 0 8px 16px 8px;
      scroll-snap-type: x mandatory;
      scroll-padding-left: 8px;
    }

    #podcastCatEpSections::-webkit-scrollbar { display: none; }

    .listen-cat-section {
      position: relative;
      flex-shrink: 0;
      width: calc(100vw - 72px);
      overflow: hidden;
      background: #fff;
      border-radius: 12px;
      scroll-snap-align: start;
      scroll-snap-stop: always;
      opacity: 0;
      animation: fadeSlideIn 0.38s ease forwards;
    }

    .listen-cat-section.cat-tint-0,

    .listen-cat-section.cat-tint-1,

    .listen-cat-section.cat-tint-2,

    .listen-cat-section.cat-tint-3,

    .listen-cat-section.cat-tint-4,

    .listen-cat-section.cat-tint-5 { background: #ffffff; }

    .listen-cat-section .cat-section-content { position: relative; z-index: 1; }

    .listen-cat-horiz {
      display: flex; flex-direction: column;
      gap: 2px;
      overflow: visible;
      padding: 4px 6px 8px;
    }

    .listen-cat-horiz::-webkit-scrollbar { display: none; }

    .listen-cat-horiz .pep-ep-row {
      display: flex; flex-direction: row; align-items: center;
      width: auto; flex-shrink: unset;
      border-radius: 8px; border: none !important;
      background: transparent !important; box-shadow: none !important;
      padding: 9px 10px; gap: 12px;
      transition: background 0.15s;
      position: relative;
      -webkit-tap-highlight-color: transparent;
      animation: none !important;
      opacity: 1 !important;
    }

    .listen-cat-horiz .pep-ep-row::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 78px;
      right: 12px;
      height: 1px;
      background: var(--border);
    }

    .listen-cat-horiz .pep-ep-row:last-child::after {
      display: none;
    }

    .listen-cat-horiz .pep-ep-row,
    .listen-cat-horiz .pep-ep-row:hover,
    .listen-cat-horiz .pep-ep-row:active { transform: none !important; }
    .listen-cat-horiz .pep-ep-row:hover { background: transparent; }

    .listen-cat-horiz .pep-ep-row:active { transform: none !important; background: transparent !important; }

    .listen-cat-horiz .pep-ep-row:active .pep-ep-title { color: var(--accent); }

    .listen-cat-horiz .pep-ep-row.active { background: transparent !important; border: none; }

    .listen-cat-horiz .pep-ep-row.active .pep-ep-title { color: var(--accent); }

    .listen-cat-horiz .pep-ep-thumb {
      width: 56px; height: 56px; aspect-ratio: 1/1;
      flex-shrink: 0; border-radius: 6px;
      overflow: hidden; position: relative;
    }

    .listen-cat-horiz .pep-ep-bottom { flex: 1; min-width: 0; padding: 0; text-align: left; }

    .listen-cat-horiz .pep-ep-title {
      font-size: 0.87rem; font-weight: 600;
      -webkit-line-clamp: 1; min-height: unset; line-height: 1.3; text-align: left;
    }

    .listen-cat-horiz .pep-ep-meta { font-size: 0.74rem; margin-top: 3px; white-space: normal; text-align: left; }

    /* Equalizer for listen-cat-horiz active */
    .listen-cat-horiz .pep-ep-eq-overlay {
      display: flex; background: rgba(0,0,0,0) !important;
      opacity: 0; transition: opacity 0.2s;
    }
    .listen-cat-horiz .pep-ep-row.active:not(.paused) .pep-ep-eq-overlay {
      background: rgba(0,0,0,0.38) !important; opacity: 1;
    }
    .listen-cat-horiz .pep-ep-play-btn { display: none; }
    .listen-cat-horiz .pep-ep-row.active:not(.paused) .pep-vlist-eq { display: flex; }
    .listen-cat-horiz .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(1) { animation: bar 0.8s ease-in-out infinite alternate; }
    .listen-cat-horiz .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(2) { animation: bar 0.6s ease-in-out 0.1s infinite alternate; }
    .listen-cat-horiz .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(3) { animation: bar 0.9s ease-in-out 0.2s infinite alternate; }
    .listen-cat-horiz .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(4) { animation: bar 0.7s ease-in-out 0.15s infinite alternate; }

    /* ── PAGES ── */

    .page { display: none; }

    .page.active { display: block; }

    /* ── PODCAST FADE-IN ── */

    #pagePodcast.active .pc-row,

    #pagePodcast.active .pc-list-label,

    #pagePodcast.active .pc-recent-ep-scroll {
      opacity: 0;
      animation: fadeSlideIn 0.35s ease forwards;
    }

    /* stagger for podcast rows */

    #pagePodcast.active .pc-row:nth-child(1) { animation-delay: 0.00s; }

    #pagePodcast.active .pc-row:nth-child(2) { animation-delay: 0.05s; }

    #pagePodcast.active .pc-row:nth-child(3) { animation-delay: 0.10s; }

    #pagePodcast.active .pc-row:nth-child(4) { animation-delay: 0.15s; }

    #pagePodcast.active .pc-row:nth-child(5) { animation-delay: 0.20s; }

    #pagePodcast.active .pc-row:nth-child(6) { animation-delay: 0.25s; }

    #pagePodcast.active .pc-row:nth-child(7) { animation-delay: 0.28s; }

    #pagePodcast.active .pc-row:nth-child(8) { animation-delay: 0.30s; }

    /* ── LATEST EPISODES SCROLL ── */

    #pagePodcast { margin: 0 -16px; }

    .latest-ep-scroll {
      display: flex;
      gap: 10px;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding: 4px 0 8px;
      scroll-snap-type: x mandatory;
    }

    #stationsHorizScroll {
      padding: 4px 8px 14px 14px;
    }

    .latest-ep-scroll::-webkit-scrollbar { display: none; }

    .latest-ep-scroll .pep-ep-row {
      flex-shrink: 0; width: 120px;
      margin-bottom: 0; scroll-snap-align: start;
    }

    #stationsHorizScroll .tv-pill {
      scroll-snap-align: start;
    }

    /* ── RANKING SECTION BG ── */

    /* ── LATEST EPISODE VERTICAL LIST ── */

    .latest-ep-vlist {
      display: flex; flex-direction: column;
      padding: 4px 8px 10px;
      gap: 2px;
    }

    /* Override pep-ep-row inside vertical list to horizontal layout */
    .latest-ep-vlist .pep-ep-row {
      display: flex; flex-direction: row; align-items: center;
      border-radius: 8px; border: none;
      background: transparent; box-shadow: none;
      padding: 9px 10px; gap: 12px;
      transition: background 0.15s;
      position: relative;
    }

    .latest-ep-vlist .pep-ep-row::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 78px;
      right: 12px;
      height: 1px;
      background: var(--border);
    }

    .latest-ep-vlist .pep-ep-row:last-child::after {
      display: none;
    }

    .latest-ep-vlist .pep-ep-row:hover {
      transform: none; box-shadow: none;
      background: transparent;
    }

    .latest-ep-vlist .pep-ep-row:active {
      transform: scale(0.98); box-shadow: none;
      background: transparent;
    }

    .latest-ep-vlist .pep-ep-row:active .pep-ep-title {
      color: var(--accent);
    }

    .latest-ep-vlist .pep-ep-row.active {
      background: transparent;
    }

    .latest-ep-vlist .pep-ep-row.active .pep-ep-title {
      color: var(--accent);
    }

    /* Thumbnail: fixed square, left side */
    .latest-ep-vlist .pep-ep-thumb {
      width: 56px; height: 56px; aspect-ratio: 1/1;
      flex-shrink: 0; border-radius: 6px;
      overflow: hidden; position: relative;
    }

    /* Info: right side, takes remaining space */
    .latest-ep-vlist .pep-ep-bottom {
      flex: 1; min-width: 0; padding: 0; text-align: left;
    }

    .latest-ep-vlist .pep-ep-title {
      font-size: 0.87rem; font-weight: 600;
      -webkit-line-clamp: 1; min-height: unset;
      line-height: 1.3; text-align: left;
    }

    .latest-ep-vlist .pep-ep-meta {
      font-size: 0.74rem; margin-top: 3px;
      white-space: normal; text-align: left;
      overflow: visible; text-overflow: unset;
    }

    /* Rank badge for vertical list */
    .latest-ep-vlist .rankings-rank-badge {
      position: absolute; bottom: 2px; left: 3px;
      font-size: 1.4rem; font-weight: 900; line-height: 1;
      color: rgba(255,255,255,0.9);
      text-shadow: 0 1px 6px rgba(0,0,0,0.7);
      letter-spacing: -0.03em;
    }

    /* Equalizer overlay inside thumb for vertical list */
    .latest-ep-vlist .pep-ep-eq-overlay {
      display: flex;
      background: rgba(0,0,0,0) !important;
      opacity: 0;
      transition: opacity 0.2s;
    }
    .latest-ep-vlist .pep-ep-row.active:not(.paused) .pep-ep-eq-overlay {
      background: rgba(0,0,0,0.38) !important;
      opacity: 1;
    }
    /* Hide play/pause circle btn in vertical list */
    .latest-ep-vlist .pep-ep-play-btn { display: none; }

    /* Equalizer bars inside the overlay */
    .latest-ep-vlist .pep-ep-eq-overlay::after {
      content: '';
      display: none;
    }
    .pep-vlist-eq {
      display: none;
      align-items: flex-end; gap: 2px; height: 18px;
    }

    /* All episode cards — show eq on active playing */
    .pep-ep-row.active:not(.paused) .pep-vlist-eq {
      display: flex;
    }

    /* Grid eq bars — bigger */
    .pep-list .pep-ep-row.active:not(.paused) .pep-vlist-eq {
      height: 26px;
    }
    .pep-list .pep-ep-row.active:not(.paused) .pep-vlist-eq-b {
      width: 4px;
    }

    /* List eq bars — smaller (override grid) */
    #pepList .pep-ep-row.active:not(.paused) .pep-vlist-eq,
    #artistEpList .pep-ep-row.active:not(.paused) .pep-vlist-eq,
    #bookmarkedEpsModalBody .pep-ep-row.active:not(.paused) .pep-vlist-eq,
    .latest-ep-vlist .pep-ep-row.active:not(.paused) .pep-vlist-eq {
      height: 18px;
    }
    #pepList .pep-ep-row.active:not(.paused) .pep-vlist-eq-b,
    #artistEpList .pep-ep-row.active:not(.paused) .pep-vlist-eq-b,
    #bookmarkedEpsModalBody .pep-ep-row.active:not(.paused) .pep-vlist-eq-b,
    .latest-ep-vlist .pep-ep-row.active:not(.paused) .pep-vlist-eq-b {
      width: 3px;
    }
    .latest-ep-vlist .pep-ep-row.active:not(.paused) .pep-vlist-eq {
      display: flex;
    }
    .pep-vlist-eq-b {
      width: 3px; border-radius: 2px; background: white; height: 4px;
    }
    .latest-ep-vlist .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(1) { animation: bar 0.8s ease-in-out infinite alternate; }
    .latest-ep-vlist .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(2) { animation: bar 0.6s ease-in-out 0.1s infinite alternate; }
    .latest-ep-vlist .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(3) { animation: bar 0.9s ease-in-out 0.2s infinite alternate; }
    .latest-ep-vlist .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(4) { animation: bar 0.7s ease-in-out 0.15s infinite alternate; }

    /* All episode cards eq animation */
    .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(1) { animation: bar 0.8s ease-in-out infinite alternate; }
    .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(2) { animation: bar 0.6s ease-in-out 0.1s infinite alternate; }
    .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(3) { animation: bar 0.9s ease-in-out 0.2s infinite alternate; }
    .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(4) { animation: bar 0.7s ease-in-out 0.15s infinite alternate; }

    /* ── LATEST EP GRID (ranking section — horizontal scroll, For You card style) ── */

    .latest-ep-grid-scroll {
      display: flex;
      flex-direction: row;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      gap: 8px;
      padding: 10px 12px 14px;
    }

    .latest-ep-grid-scroll::-webkit-scrollbar { display: none; }

    .latest-ep-grid-scroll .rankings-rank-badge {
      position: absolute; bottom: -4px; left: 3px;
      font-size: 2.6rem; font-weight: 900; line-height: 1;
      color: rgba(255,255,255,0.88);
      font-family: 'Plus Jakarta Sans', sans-serif;
      letter-spacing: -0.04em;
      text-shadow: 0 2px 10px rgba(0,0,0,0.65);
      pointer-events: none;
      z-index: 2;
    }

    .latest-ep-grid-scroll .pep-ep-row {
      flex-shrink: 0;
      width: calc((100vw - 28px - 16px) / 3);
    }

    /* eq bars */
    .latest-ep-grid-scroll .pep-ep-row.active:not(.paused) .pep-vlist-eq { display: flex; height: 22px; }
    .latest-ep-grid-scroll .pep-ep-row.active:not(.paused) .pep-vlist-eq-b { width: 3px; }
    .latest-ep-grid-scroll .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(1) { animation: bar 0.8s ease-in-out infinite alternate; }
    .latest-ep-grid-scroll .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(2) { animation: bar 0.6s ease-in-out 0.1s infinite alternate; }
    .latest-ep-grid-scroll .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(3) { animation: bar 0.9s ease-in-out 0.2s infinite alternate; }
    .latest-ep-grid-scroll .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(4) { animation: bar 0.7s ease-in-out 0.15s infinite alternate; }

    /* ── PODCAST EP MODAL — tag bar + list white card ── */

    /* Podcast Ep Modal — cover banner (watch category modal এর মতো) */
    #pepCover {
      width: 100%;
      height: 140px;
      background-size: cover;
      background-position: center top;
      background-repeat: no-repeat;
      flex-shrink: 0;
      margin-top: calc(-52px - 10px - var(--status-bar-height) - 12px);
      position: relative;
      z-index: 0;
      overflow: hidden;
    }
    #pepCover.wcat-cover-has-video {
      height: 160px;
    }
    #pepCover::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.18) 0%,
        rgba(0,0,0,0.0) 60%
      );
    }
    #podcastEpModal .pep-topbar {
      position: relative;
      z-index: 2;
    }

    #pepTagBar {
      background: #fff;
      border-radius: 18px 18px 0 0;
      margin: -20px 0 0;
      padding: 10px 14px 4px;
      gap: 8px;
      position: relative;
      z-index: 1;
    }
    #pepTagBar:empty {
      display: none;
    }
    #pepTagBar:empty + #pepList {
      border-radius: 18px 18px 0 0;
      margin-top: -20px;
    }

    #pepTagBar .ltv-tag-chip:active { opacity: 0.7; }

    #pepList {
      background: #fff;
      border-radius: 0;
      margin: 0;
      position: relative;
      z-index: 1;
    }

    #artistEpList {
      background: #fff;
      border-radius: 0;
      margin: 0;
    }

    #bookmarkedEpsModalBody {
      background: #fff;
      border-radius: 0;
      margin: 0;
    }

    /* ── PODCAST EP MODAL — vertical list (same style as latest-ep-vlist) ── */

    #pepList,
    #artistEpList,
    #bookmarkedEpsModalBody {
      display: flex !important;
      flex-direction: column !important;
      grid-template-columns: unset !important;
      gap: 2px;
      padding: 4px 6px 20px;
    }

    #pepList .pep-ep-row,
    #artistEpList .pep-ep-row,
    #bookmarkedEpsModalBody .pep-ep-row {
      display: flex; flex-direction: row; align-items: center;
      border-radius: 8px; border: none;
      background: transparent; box-shadow: none;
      padding: 9px 10px; gap: 12px;
      transition: background 0.15s;
      width: auto;
      position: relative;
    }

    #pepList .pep-ep-row::after,
    #artistEpList .pep-ep-row::after,
    #bookmarkedEpsModalBody .pep-ep-row::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 78px;
      right: 12px;
      height: 1px;
      background: var(--border);
    }

    #pepList .pep-ep-row:last-child::after,
    #artistEpList .pep-ep-row:last-child::after,
    #bookmarkedEpsModalBody .pep-ep-row:last-child::after {
      display: none;
    }

    #pepList .pep-ep-row:hover,
    #artistEpList .pep-ep-row:hover,
    #bookmarkedEpsModalBody .pep-ep-row:hover {
      transform: none; box-shadow: none;
      background: transparent;
    }

    #pepList .pep-ep-row:active,
    #artistEpList .pep-ep-row:active,
    #bookmarkedEpsModalBody .pep-ep-row:active {
      transform: scale(0.98); box-shadow: none;
      background: transparent;
    }

    #pepList .pep-ep-row:active .pep-ep-title,
    #artistEpList .pep-ep-row:active .pep-ep-title,
    #bookmarkedEpsModalBody .pep-ep-row:active .pep-ep-title {
      color: var(--accent);
    }

    #pepList .pep-ep-row.active,
    #artistEpList .pep-ep-row.active,
    #bookmarkedEpsModalBody .pep-ep-row.active {
      background: transparent; border: none;
    }

    #pepList .pep-ep-row.active .pep-ep-title,
    #artistEpList .pep-ep-row.active .pep-ep-title,
    #bookmarkedEpsModalBody .pep-ep-row.active .pep-ep-title {
      color: var(--accent);
    }

    #pepList .pep-ep-thumb,
    #artistEpList .pep-ep-thumb,
    #bookmarkedEpsModalBody .pep-ep-thumb {
      width: 56px; height: 56px; aspect-ratio: 1/1;
      flex-shrink: 0; border-radius: 6px;
      overflow: hidden; position: relative;
    }

    #pepList .pep-ep-bottom,
    #artistEpList .pep-ep-bottom,
    #bookmarkedEpsModalBody .pep-ep-bottom {
      flex: 1; min-width: 0; padding: 0; text-align: left;
    }

    #pepList .pep-ep-title,
    #artistEpList .pep-ep-title,
    #bookmarkedEpsModalBody .pep-ep-title {
      font-size: 0.87rem; font-weight: 600;
      -webkit-line-clamp: 1; min-height: unset; line-height: 1.3; text-align: left;
    }

    #pepList .pep-ep-meta,
    #artistEpList .pep-ep-meta,
    #bookmarkedEpsModalBody .pep-ep-meta {
      font-size: 0.74rem; margin-top: 3px; white-space: normal; text-align: left;
      overflow: visible; text-overflow: unset;
    }

    #pepList .pep-ep-eq-overlay,
    #artistEpList .pep-ep-eq-overlay,
    #bookmarkedEpsModalBody .pep-ep-eq-overlay {
      display: flex; background: rgba(0,0,0,0) !important;
      opacity: 0; transition: opacity 0.2s;
    }

    #pepList .pep-ep-row.active:not(.paused) .pep-ep-eq-overlay,
    #artistEpList .pep-ep-row.active:not(.paused) .pep-ep-eq-overlay,
    #bookmarkedEpsModalBody .pep-ep-row.active:not(.paused) .pep-ep-eq-overlay {
      background: rgba(0,0,0,0.42) !important; opacity: 1;
    }

    #pepList .pep-ep-play-btn,
    #artistEpList .pep-ep-play-btn,
    #bookmarkedEpsModalBody .pep-ep-play-btn { display: none; }

    #pepList .pep-ep-row.active:not(.paused) .pep-vlist-eq,
    #artistEpList .pep-ep-row.active:not(.paused) .pep-vlist-eq,
    #bookmarkedEpsModalBody .pep-ep-row.active:not(.paused) .pep-vlist-eq { display: flex; }

    #pepList .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(1),
    #artistEpList .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(1),
    #bookmarkedEpsModalBody .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(1) { animation: bar 0.8s ease-in-out infinite alternate; }
    #pepList .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(2),
    #artistEpList .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(2),
    #bookmarkedEpsModalBody .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(2) { animation: bar 0.6s ease-in-out 0.1s infinite alternate; }
    #pepList .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(3),
    #artistEpList .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(3),
    #bookmarkedEpsModalBody .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(3) { animation: bar 0.9s ease-in-out 0.2s infinite alternate; }
    #pepList .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(4),
    #artistEpList .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(4),
    #bookmarkedEpsModalBody .pep-ep-row.active:not(.paused) .pep-vlist-eq-b:nth-child(4) { animation: bar 0.7s ease-in-out 0.15s infinite alternate; }

    /* ── RADIO LIST ── */

    .radio-card {
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: 14px; padding: 12px 14px;
      display: flex; align-items: center; justify-content: space-between;
      transition: background 0.2s, border-color 0.2s; gap: 12px;
      cursor: pointer; width: 100%;
    }

    /* ── STAGGERED FADE-IN ── */

    @keyframes fadeSlideIn {
      from { opacity: 0; transform: translateY(16px); }

      to   { opacity: 1; transform: translateY(0); }

    }

    .radio-card {
      opacity: 0;
      animation: fadeSlideIn 0.35s ease forwards;
    }

    .settings-animate {
      opacity: 0;
    }

    #pageSettings.active .settings-animate {
      animation: fadeSlideIn 0.35s ease forwards;
    }

    #pageSettings.active .settings-animate:nth-child(1) { animation-delay: 0.00s; }

    #pageSettings.active .settings-animate:nth-child(2) { animation-delay: 0.05s; }

    #pageSettings.active .settings-animate:nth-child(3) { animation-delay: 0.10s; }

    #pageSettings.active .settings-animate:nth-child(4) { animation-delay: 0.15s; }

    #pageSettings.active .settings-animate:nth-child(5) { animation-delay: 0.20s; }

    #pageSettings.active .settings-animate:nth-child(6) { animation-delay: 0.25s; }

    #pageSettings.active .settings-animate:nth-child(7) { animation-delay: 0.30s; }

    #pageSettings.active .settings-animate:nth-child(8) { animation-delay: 0.35s; }

    /* ── RADIO CARD ── */

    .radio-card {
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: 14px; padding: 12px 14px;
      display: flex; align-items: center; justify-content: space-between;
      transition: background 0.2s, border-color 0.2s; gap: 12px;
      cursor: pointer;
    }

    .radio-card { transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s; }

    .radio-card:hover { background: var(--surface2); border-color: var(--accent); transform: scale(1.012); box-shadow: 0 4px 18px rgba(0,0,0,0.08); }

    .radio-card:hover .station-name { color: var(--accent); }

    .radio-card:active { background: var(--surface2); border-color: var(--border2); transform: scale(0.985); box-shadow: none; }

    .radio-card.active { border-color: var(--accent); background: var(--accent-light); }

    .radio-card.active:active { border-color: var(--accent); background: var(--accent-light); }

    .radio-card.active .station-name, .radio-card.loading .station-name { color: var(--accent); }

    .station-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }

    .station-img-wrap { position: relative; flex-shrink: 0; }

    /* ── STATION EQ OVERLAY (active 시 원형 이미지 위에 표시) ── */

    .station-eq-overlay {
      position: absolute; inset: 0; border-radius: 50%;
      background: rgba(0,0,0,0.42);
      display: flex; align-items: center; justify-content: center;
      opacity: 0; transition: opacity 0.2s;
      pointer-events: none;
    }

    .radio-card.active .station-eq-overlay { opacity: 1; }

    .station-eq {
      display: flex; align-items: flex-end; gap: 2px; height: 20px;
    }

    .station-eq-b {
      width: 3px; border-radius: 2px; background: white;
    }

    .radio-card.active .station-eq-b:nth-child(1) { animation: bar 0.8s ease-in-out infinite alternate; }

    .radio-card.active .station-eq-b:nth-child(2) { animation: bar 0.6s ease-in-out 0.1s infinite alternate; }

    .radio-card.active .station-eq-b:nth-child(3) { animation: bar 0.9s ease-in-out 0.2s infinite alternate; }

    .station-img {
      width: 56px; height: 56px; border-radius: 50%;
      background: var(--border2); object-fit: cover;
      border: 2.5px solid var(--border); display: block;
      transition: border-color 0.2s;
    }

    .radio-card.active .station-img {
      border-color: var(--accent);
      animation: ring-pulse 1.5s ease-in-out infinite;
    }

    .radio-card.loading .station-img {
      border-color: var(--accent);
      animation: ring-spin 1s linear infinite;
    }

    @keyframes ring-pulse {
      0%,100% { box-shadow: 0 0 0 2px var(--accent-glow); }

      50%      { box-shadow: 0 0 0 5px var(--accent-light); }

    }

    @keyframes ring-spin {
      0%   { box-shadow: 2px 0 0 2px var(--accent), 0 0 0 2px var(--accent-light); }

      25%  { box-shadow: 0 2px 0 2px var(--accent), 0 0 0 2px var(--accent-light); }

      50%  { box-shadow: -2px 0 0 2px var(--accent), 0 0 0 2px var(--accent-light); }

      75%  { box-shadow: 0 -2px 0 2px var(--accent), 0 0 0 2px var(--accent-light); }

      100% { box-shadow: 2px 0 0 2px var(--accent), 0 0 0 2px var(--accent-light); }

    }

    /* hide overlay entirely */

    .img-play-overlay { display: none; }

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

    .station-name {
      font-size: 0.95rem; font-weight: 600; font-family: 'Plus Jakarta Sans', sans-serif;
      display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; color: var(--text);
      transition: color 0.2s;
    }

    .station-details { display: flex; align-items: center; margin-top: 3px; overflow: hidden; }

    .station-desc {
      font-size: 0.75rem; font-family: 'Plus Jakarta Sans', sans-serif; color: var(--muted2);
      margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
    }

    .badge-soon {
      font-size: 0.6rem; font-family: 'Plus Jakarta Sans', sans-serif;
      background: var(--accent-light); color: var(--accent);
      border: 1px solid var(--accent-glow); border-radius: 20px;
      padding: 1px 7px; white-space: nowrap; font-weight: 600; margin-left: 6px;
    }

    .station-right { display: flex; align-items: center; flex-shrink: 0; }

    .radio-card.unavailable { opacity: 0.55; cursor: not-allowed; }

    #stationsInlineList .radio-card, #searchResultsContainer .radio-card { margin-bottom: 8px; }

    /* ── BOOKMARK/FAV BTN on card ── */

    .fav-btn {
      background: none; border: none; color: var(--border2);
      cursor: pointer; padding: 8px;
      display: flex; align-items: center; justify-content: center;
      transition: all 0.2s; border-radius: 8px; flex-shrink: 0;
    }

    .fav-btn svg { width: 22px; height: 22px; }

    .fav-btn:hover { color: #f59e0b; }

    .fav-btn.faved { color: #f59e0b; }

    .fav-btn.faved svg { fill: #f59e0b; stroke: #f59e0b; }

    /* ── BOOKMARK PILL CARDS ── */

    .bm-pill-wrap {
      display: flex; flex-direction: column; gap: 12px;
      margin-bottom: 100px;
    }

    .bm-pill-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .bm-pill {
      display: flex; align-items: center; gap: 8px;
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: 50px;
      padding: 6px 12px 6px 6px;
      cursor: pointer;
      transition: background 0.18s, border-color 0.18s, transform 0.15s, box-shadow 0.18s;
      animation: fadeSlideIn 0.3s ease forwards;
      opacity: 0;
      min-width: 0;
      overflow: hidden;
      -webkit-tap-highlight-color: transparent;
    }

    .bm-pill:active { transform: scale(0.96); }

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

    .bm-pill.active {
      border-color: var(--accent);
      background: var(--accent-light);
      box-shadow: 0 0 0 3px var(--accent-glow);
    }

    .bm-pill-img {
      width: 32px; height: 32px; border-radius: 50%;
      object-fit: cover; flex-shrink: 0;
      border: 1.5px solid var(--border);
      background: var(--border2);
    }

    .bm-pill.active .bm-pill-img {
      border-color: var(--accent);
      animation: ring-pulse 1.5s ease-in-out infinite;
    }

    .bm-pill-emoji {
      width: 32px; height: 32px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 16px; flex-shrink: 0;
      background: var(--border);
    }

    .bm-pill-name {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.82rem; font-weight: 600;
      color: var(--text);
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
      max-width: 140px;
      transition: color 0.18s;
    }

    .bm-pill.active .bm-pill-name { color: var(--accent); }

    /* ── RADIO ADD PILL ── */

    /* ── EMPTY STATE ── */

    .empty-state {
      text-align: center; padding: 60px 20px;
      color: var(--muted); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.85rem;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
    }

    .empty-state svg { width: 40px; height: 40px; margin-bottom: 12px; opacity: 0.25; }

    .empty-state p { margin-top: 6px; font-size: 0.78rem; }

    /* ── UNIFIED PLAYER ── */

    /* ══════════════════════════════════════════════════
       UNIFIED PLAYER — Native Android style
       একটাই element, নিচ থেকে উপরে slide করে expand হয়
       Mini bar সবসময় top-এ, full content নিচে clipped
    ════════════════════════════════════════════════════ */

    /* Player এর পুরো height টা CSS variable দিয়ে control করা হয় */
    :root {
      --mini-bar-h: 66px;        /* mini bar এর exact height */
      --player-full-h: 60%;      /* full player height */
    }

    #miniPlayer {
      position: fixed;
      left: 12px; right: 12px;
      /* bottom থেকে শুরু, tab bar এর উপরে */
      bottom: calc(var(--tab-h) + 10px);
      z-index: 9900;
      background: color-mix(in srgb, rgba(255,255,255,0.95) 78%, var(--accent) 22%);
      border-radius: 18px;
      /* mini state: শুধু mini bar দেখা যায় */
      height: var(--mini-bar-h);
      /* hidden — screen এর নিচে */
      transform: translateY(calc(100% + var(--tab-h) + 10px));
      /* সব property একসাথে animate */
      transition: transform 0.46s cubic-bezier(0.32, 0.72, 0, 1),
                  height 0.46s cubic-bezier(0.32, 0.72, 0, 1),
                  left 0.46s cubic-bezier(0.32, 0.72, 0, 1),
                  right 0.46s cubic-bezier(0.32, 0.72, 0, 1),
                  bottom 0.46s cubic-bezier(0.32, 0.72, 0, 1),
                  border-radius 0.46s cubic-bezier(0.32, 0.72, 0, 1);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      overscroll-behavior: none;
      touch-action: pan-x pinch-zoom;
      will-change: transform, height;
    }

    /* ── MINI STATE: নিচে দেখাও ── */
    #miniPlayer.visible {
      transform: translateY(0);
    }

    /* ── FULL STATE: উপরে expand করো ── */
    #miniPlayer.open {
      left: 0; right: 0;
      bottom: 0;
      border-radius: 20px 20px 0 0;
      height: var(--player-full-h);
      transform: translateY(0);
    }

    #miniPlayer::before { display: none; }

    /* ── MINI BAR ──
       সবসময় top-এ, height fixed।
       Full state এ সে উপরে থাকে কিন্তু দেখা যায় না
       কারণ full content তার উপর দিয়ে render হয় না —
       বরং mini bar টা opacity দিয়ে fade out হয় */
    .up-mini-bar {
      height: var(--mini-bar-h);
      flex-shrink: 0;
      display: flex; align-items: center; gap: 12px;
      padding: 10px 16px 12px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      opacity: 1;
      transition: opacity 0.2s ease;
      /* position relative যাতে full content এর নিচে না যায় */
      position: relative;
      z-index: 1;
    }

    /* Full state এ mini bar fade out */
    #miniPlayer.open .up-mini-bar {
      opacity: 0;
      pointer-events: none;
      height: 0;
      padding: 0;
      overflow: hidden;
    }

    /* ── FULL CONTENT ──
       Mini state এ player height মাত্র mini-bar-h,
       তাই full content overflow: hidden এ clipped।
       Full state এ player বড় হলে full content দেখা যায়।
       opacity দিয়ে smooth fade-in */
    .up-full-content {
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease 0.1s; /* slight delay — height animate হওয়ার পর */
    }

    #miniPlayer.open .up-full-content {
      opacity: 1;
      pointer-events: all;
    }

    /* Compatibility: old .mini-inner alias */
    .mini-inner { display: flex; align-items: center; gap: 12px; }

    .visualizer { display: flex; align-items: flex-end; gap: 3px; height: 26px; flex-shrink: 0; position: relative; }

    .mini-thumb {
      position: absolute; inset: -4px;
      border-radius: 8px;
      background-size: cover; background-position: center;
      opacity: 0.8;
      z-index: 0;
    }

    .v-bar { position: relative; z-index: 1; }

    .v-bar { width: 3px; background: var(--border); border-radius: 2px; height: 4px; opacity: 0.5; }

    .playing .v-bar { opacity: 1; background: var(--accent); }

    .playing .v-bar:nth-child(2) { animation: bar 0.8s ease-in-out           infinite alternate; }

    .playing .v-bar:nth-child(3) { animation: bar 0.6s ease-in-out 0.10s     infinite alternate; }

    .playing .v-bar:nth-child(4) { animation: bar 0.9s ease-in-out 0.20s     infinite alternate; }

    .playing .v-bar:nth-child(5) { animation: bar 0.5s ease-in-out 0.15s     infinite alternate; }

    .playing .v-bar:nth-child(6) { animation: bar 0.7s ease-in-out 0.05s     infinite alternate; }

    @keyframes bar { from { height: 4px; } to { height: 22px; } }

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

    .mini-name {
      font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.78rem; font-weight: 400;
      display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; color: var(--text);
    }

    .mini-status {
      font-size: 0.65rem; color: var(--text2); margin-top: 1px;
      font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 500; letter-spacing: 0.04em;
    }

    .mini-status .live-dot {
      display: inline-block; width: 6px; height: 6px; border-radius: 50%;
      background: var(--accent); margin-right: 4px;
      animation: blink 1.5s ease-in-out infinite;
    }

    @keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

    .mini-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

    .mini-skip-btn {
      width: 32px; height: 32px; border-radius: 50%;
      background: var(--accent-light); border: 1.5px solid transparent;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; color: var(--accent); transition: all 0.2s;
    }

    .mini-skip-btn svg { width: 15px; height: 15px; }

    .mini-skip-btn:hover { background: var(--border2); border-color: transparent; }

    .mini-play-btn {
      width: 40px; height: 40px; border-radius: 50%;
      background: var(--accent); border: none;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; color: white; flex-shrink: 0; transition: all 0.2s;
      box-shadow: 0 2px 8px var(--accent-glow);
    }

    .mini-play-btn:hover { opacity: 0.88; transform: scale(1.06); }

    .mini-play-btn svg { width: 19px; height: 19px; }

    .mini-pause-icon { display: none; }

    #miniPlayer.playing-state .mini-play-icon  { display: none; }

    #miniPlayer.playing-state .mini-pause-icon { display: block; }

    /* ── BOTTOM TAB BAR ── */

    #tabBar {
      position: fixed; bottom: 0; left: 0; right: 0;
      height: var(--tab-bar-h); z-index: 9850;
      background: rgba(255,255,255,0.95);
      box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
      display: flex;
      transition: background 0.3s;
      overflow: hidden;
      align-items: center;
    }

    body.fp-open #tabBar { display: none; }

    body.watch-open header { display: none; }

    body.watch-open #tabBar { display: none; }

    body.watch-open #miniPlayer { bottom: 10px; }

    body.bookmarks-open header { display: none; }

    body.bookmarks-open #tabBar { display: none; }

    body.bookmarks-open #miniPlayer { bottom: 10px; }

    body.search-open header { display: none; }

    body.search-open #tabBar { display: none; }

    body.search-open #miniPlayer { bottom: 10px; }

    body.pepmodal-open header { display: none; }

    body.pepmodal-open #tabBar { display: none; }

    body.pepmodal-open #miniPlayer { bottom: 10px; }

    body.fp-open .tab-btn { color: var(--text2); }

    body.fp-open .tab-btn.active { color: var(--accent); }

    .tab-btn {
      flex: 1; display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: 3px; border: none; background: none;
      cursor: pointer; color: #555555;
      font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.62rem; font-weight: 700;
      letter-spacing: 0.01em; transition: color 0.2s, transform 0.15s;
      padding-bottom: env(safe-area-inset-bottom, 0px);
      -webkit-tap-highlight-color: transparent;
    }

    .tab-btn:active { transform: scale(0.88); }

    .tab-btn { position: relative; }

    .tab-btn:hover, .tab-btn:focus { outline: none; background: none; }

    .tab-btn svg { width: 24px; height: 24px; transition: all 0.2s; }

    .tab-btn i { font-size: 24px; transition: all 0.2s; line-height: 1; width: 24px; text-align: center; display: inline-block; }

    .tab-btn i, .tab-btn svg { color: var(--text); }

    .tab-btn span { color: var(--text); }

    .tab-btn.active i, .tab-btn.active svg { color: var(--accent); }

    .tab-btn.active span { color: var(--accent); }

    .tab-btn.active svg, .tab-btn.active i { transform: translateY(-1px) scale(1.1); }

    #fpOverlay {
      position: fixed; inset: 0; z-index: 9850;
      background: rgba(0,0,0,0); pointer-events: none;
      transition: background 0.4s;
    }

    #fpOverlay.open { background: transparent; pointer-events: all; }

    /* #fullPlayer is now an alias pointing to #miniPlayer — handled via JS */
    /* These rules apply to #miniPlayer when open (full state) */
    #miniPlayer > * { position: relative; z-index: 2; }

    /* pull-to-refresh বন্ধ full state এ */
    /* Already set on #miniPlayer above */

    .fp-handle {
      width: 40px; height: 4px; border-radius: 2px;
      background: rgba(255,255,255,0.6);
      margin: 12px auto 0; flex-shrink: 0; cursor: pointer;
      transition: background 0.2s;
    }

    .fp-handle:hover { background: rgba(255,255,255,0.9); }

    /* top bar */

    /* live badge inline */

    /* artwork */

    .fp-artwork-wrap {
      position: relative; z-index: 1;
      margin-top: 14px; margin-bottom: 14px; flex-shrink: 0;
    }

    .fp-artwork {
      width: 180px; height: 180px; border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.06);
    }

    .fp-artwork img {
      width: 100%; height: 100%; object-fit: cover; display: block;
    }

    /* old live badge on artwork - hide */

    .fp-live-badge { display: none; }

    /* ── MP3 PROGRESS BAR (full player) ── */

    #fpProgressWrap {
      padding: 0 36px; margin-top: 20px; width: 100%;
    }

    .fp-progress-bar {
      width: 100%; height: 3px; border-radius: 2px;
      background: var(--border2);
      cursor: pointer; position: relative;
    }

    .fp-progress-bar::after {
      content: '';
      position: absolute; top: 50%; right: calc(100% - var(--prog, 0%));
      transform: translate(50%, -50%);
      width: 11px; height: 11px; border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 1px 4px rgba(0,0,0,0.15);
      pointer-events: none;
    }

    .fp-progress-fill {
      height: 100%; border-radius: 2px;
      background: var(--accent); width: 0%;
      transition: width 0.5s linear;
      pointer-events: none;
    }

    .fp-time-row {
      display: flex; justify-content: space-between;
      margin-top: 8px;
      font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.68rem;
      color: var(--text2); font-weight: 500;
      padding: 0 2px;
    }

    .fp-live-dot { display: none; }

    /* info */

    .fp-info {
      position: relative; z-index: 1;
      text-align: center; width: 100%; padding: 0 20px; margin-bottom: 16px; flex-shrink: 0;
    }

    .fp-name {
      font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem; font-weight: 400;
      color: var(--text); margin-bottom: 3px;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }

    .fp-genre {
      font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.75rem;
      color: var(--text2);
    }

    /* controls */

    .fp-controls {
      position: relative; z-index: 1;
      display: flex; align-items: center; justify-content: center;
      gap: 10px; width: 100%; padding: 0 16px; flex-shrink: 0;
    }

    .fp-side-btn {
      width: 42px; height: 42px; border-radius: 50%;
      background: var(--accent-light); border: none;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; color: var(--accent); transition: all 0.2s; flex-shrink: 0;
      flex-direction: column; gap: 2px;
    }

    .fp-side-btn svg { width: 18px; height: 18px; }

    .fp-side-btn:hover { background: var(--border2); }

    .fp-side-btn.faved { color: var(--accent); background: var(--accent-light); }

    .fp-skip-btn {
      width: 48px; height: 48px; border-radius: 50%;
      background: var(--accent-light); border: none;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; color: var(--accent); transition: all 0.2s; flex-shrink: 0;
    }

    .fp-skip-btn svg { width: 22px; height: 22px; }

    .fp-skip-btn:hover { background: var(--border2); }

    .fp-play-btn {
      width: 64px; height: 64px; border-radius: 50%;
      background: var(--accent); border: none;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; color: white; flex-shrink: 0; transition: all 0.2s;
      box-shadow: 0 6px 20px var(--accent-glow);
    }

    .fp-play-btn:active { transform: scale(0.94); }

    .fp-play-btn svg { width: 28px; height: 28px; }

    .fp-pause-icon { display: none; }

    #miniPlayer.playing-state .fp-play-icon  { display: none; }

    #miniPlayer.playing-state .fp-pause-icon { display: block; }

    .sleep-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; }

    /* ── LONG PRESS DELETE SHEET ── */

    #lpDeleteSheet {
      position: fixed; inset: 0; z-index: 99999;
      display: flex; flex-direction: column; justify-content: flex-end;
      pointer-events: none; opacity: 0;
      transition: opacity 0.2s;
    }

    #lpDeleteSheet.open { pointer-events: all; opacity: 1; }

    #lpDeleteOverlay {
      position: absolute; inset: 0;
      background: rgba(0,0,0,0.3);
    }

    #lpDeleteCard {
      position: relative; z-index: 1;
      background: var(--surface);
      border-radius: 20px 20px 0 0;
      padding: 12px 16px 40px;
      transform: translateY(100%);
      transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    }

    #lpDeleteSheet.open #lpDeleteCard { transform: translateY(0); }

    .lp-handle {
      width: 36px; height: 4px; border-radius: 2px;
      background: var(--border2); margin: 0 auto 16px;
    }

    .lp-item-title {
      font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.82rem;
      color: var(--muted); margin-bottom: 12px;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }

    .lp-delete-btn {
      width: 100%; padding: 14px 16px;
      background: rgba(239,68,68,0.08); border: 1.5px solid rgba(239,68,68,0.2);
      border-radius: 14px; cursor: pointer;
      display: flex; align-items: center; gap: 12px;
      font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.9rem;
      font-weight: 600; color: #ef4444;
      -webkit-tap-highlight-color: transparent;
      transition: background 0.15s;
    }

    .lp-delete-btn:active { background: rgba(239,68,68,0.15); }

    /* ── FP REACTIONS ── */

    /* floating emoji animation */

    .fp-float-emoji {
      position: fixed; pointer-events: none; z-index: 999;
      font-size: 1.6rem; animation: fpFloatUp 1s ease-out forwards;
    }

    @keyframes fpFloatUp {
      0%   { opacity: 1; transform: translateY(0) scale(1); }

      100% { opacity: 0; transform: translateY(-120px) scale(1.4); }

    }

    @keyframes fpShake {
      0%,100% { transform: translateX(0); }

      25%      { transform: translateX(-6px); }

      75%      { transform: translateX(6px); }

    }

    /* fp visualizer */

    #fpVisualizer { display: none !important; }

    /* fpVisualizer hidden */

    /* progress visible */

    .fp-visualizer {
      position: relative; z-index: 1;
      display: flex; align-items: flex-end; gap: 4px; height: 24px;
      margin-top: 14px; flex-shrink: 0;
    }

    .fp-v-bar {
      width: 4px; background: rgba(255,255,255,0.4); border-radius: 2px; height: 5px;
    }

    #miniPlayer.playing-state .fp-v-bar { background: var(--accent); }

    #miniPlayer.playing-state .fp-v-bar:nth-child(1) { animation: bar 0.8s ease-in-out infinite alternate; }

    #miniPlayer.playing-state .fp-v-bar:nth-child(2) { animation: bar 0.6s ease-in-out 0.10s infinite alternate; }

    #miniPlayer.playing-state .fp-v-bar:nth-child(3) { animation: bar 0.9s ease-in-out 0.20s infinite alternate; }

    #miniPlayer.playing-state .fp-v-bar:nth-child(4) { animation: bar 0.5s ease-in-out 0.15s infinite alternate; }

    #miniPlayer.playing-state .fp-v-bar:nth-child(5) { animation: bar 0.7s ease-in-out 0.05s infinite alternate; }

    #miniPlayer.playing-state .fp-v-bar:nth-child(6) { animation: bar 1.0s ease-in-out 0.12s infinite alternate; }

    #miniPlayer.playing-state .fp-v-bar:nth-child(7) { animation: bar 0.65s ease-in-out 0.08s infinite alternate; }

    /* ── SETTINGS ── */

    .settings-list { padding: calc(8px + var(--status-bar-height)) 0 100px; display: flex; flex-direction: column; gap: 14px; }

    .settings-group {
      background: var(--surface); border: 1.5px solid var(--border);
      border-radius: 14px; overflow: hidden;
      box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    }

    /* each row */

    .s-row {
      display: flex; align-items: center; justify-content: space-between;
      padding: 14px 16px; gap: 10px; cursor: pointer; transition: background 0.15s;
      min-height: 52px;
    }

    .s-row.can-hover:hover, .s-row.can-hover:active { background: var(--surface2); }

    .s-row-label {
      font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.9rem;
      font-weight: 500; color: var(--text); flex: 1;
    }

    .s-row-right {
      display: flex; align-items: center; gap: 6px; flex-shrink: 0;
    }

    .s-divider { height: 1px; background: var(--border); margin: 0 16px; }

    .social-share-btn {
      flex: 1; display: flex; align-items: center; justify-content: center;
      gap: 6px; padding: 9px 0; border-radius: 10px;
      color: #fff; text-decoration: none;
      font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.78rem; font-weight: 600;
      letter-spacing: 0.01em; transition: opacity 0.15s;
      -webkit-tap-highlight-color: transparent;
    }
    .social-share-btn:active { opacity: 0.75; }
    .social-share-btn i { font-size: 0.88rem; }

    .settings-follow-us {
      text-align: center;
      padding: 28px 16px 16px;
    }
    .settings-follow-label {
      font-size: 0.78rem;
      color: var(--muted);
      font-family: 'Plus Jakarta Sans', sans-serif;
      margin-bottom: 16px;
    }
    .settings-footer-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 4px 8px;
    }
    .settings-footer-copy {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.72rem;
      color: var(--muted);
      line-height: 1.5;
    }
    .settings-footer-icons {
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .follow-icon-btn {
      width: 36px; height: 36px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.1rem;
      text-decoration: none;
      -webkit-tap-highlight-color: transparent;
      transition: transform 0.15s, opacity 0.15s;
    }
    .follow-icon-btn:active { transform: scale(0.88); opacity: 0.75; }
    .follow-icon-btn.fb { color: #1877F2; }
    .follow-icon-btn.tg { color: #229ED9; }
    .follow-icon-btn.em { color: #555555; }

    /* notification toggle switch */

    .notif-toggle-wrap { display: flex; align-items: center; gap: 8px; }

    .notif-toggle-label { font-size: 0.78rem; color: var(--text-muted); font-family: 'Plus Jakarta Sans', sans-serif; min-width: 24px; text-align: right; }

    .notif-switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }

    .notif-switch input { opacity: 0; width: 0; height: 0; }

    .notif-switch-slider {
      position: absolute; inset: 0; border-radius: 99px;
      background: var(--surface2); cursor: pointer;
      transition: background 0.2s;
    }

    .notif-switch-slider::before {
      content: ''; position: absolute;
      width: 20px; height: 20px; border-radius: 50%;
      left: 3px; top: 3px;
      background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25);
      transition: transform 0.2s;
    }

    .notif-switch input:checked + .notif-switch-slider { background: var(--accent); }

    .notif-switch input:checked + .notif-switch-slider::before { transform: translateX(20px); }

    /* theme toggle pills */

    .theme-pill-group {
      display: flex; gap: 4px; background: var(--bg);
      border: 1.5px solid var(--border); border-radius: 10px; padding: 3px;
    }

    .theme-pill {
      background: none; border: none; cursor: pointer;
      font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.75rem; font-weight: 500;
      color: var(--muted); padding: 5px 10px; border-radius: 7px;
      transition: all 0.18s; white-space: nowrap;
    }

    .theme-pill.active {
      background: var(--surface); color: var(--accent);
      font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    }

    /* collapse rows */

    /* about logo inside collapse */

    /* ── PROFILE CARD ── */

    #profileCard {
      background: var(--surface); border: 1.5px solid var(--border);
      border-radius: 14px; overflow: hidden;
    }

    .profile-login-card, .profile-user-card {
      display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    }

    .profile-login-icon {
      width: 42px; height: 42px; border-radius: 50%;
      background: var(--accent-light); color: var(--accent);
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    }

    .profile-login-icon svg { width: 22px; height: 22px; }

    .profile-login-info { flex: 1; }

    .profile-login-title {
      font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.88rem;
      font-weight: 600; color: var(--text);
    }

    .profile-login-sub {
      font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.72rem; color: var(--muted);
    }

    .google-login-btn {
      display: flex; align-items: center; gap: 6px;
      background: var(--bg); border: 1.5px solid var(--border);
      border-radius: 10px; padding: 7px 12px; cursor: pointer;
      font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.78rem; font-weight: 600;
      color: var(--text); flex-shrink: 0; transition: border-color 0.2s;
    }

    .google-login-btn:hover { border-color: var(--accent); }

    .profile-photo {
      width: 42px; height: 42px; border-radius: 50%;
      object-fit: cover; flex-shrink: 0;
      border: 2px solid var(--accent-light);
    }

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

    .profile-name-row { display: flex; align-items: baseline; gap: 0; min-width: 0; }

    .profile-name {
      font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.88rem;
      font-weight: 600; color: var(--text);
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }

    .profile-email {
      font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.7rem; color: var(--muted);
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }

    .profile-logout-btn {
      background: none; border: none; cursor: pointer; color: var(--muted);
      padding: 6px; border-radius: 8px; transition: color 0.2s; flex-shrink: 0;
    }

    .profile-logout-btn:hover { color: #e55; }

    /* ── ACCENT DOTS ── */

    .accent-dots { display: flex; gap: 8px; align-items: center; }

    .accent-dot {
      width: 22px; height: 22px; border-radius: 50%;
      border: 2.5px solid transparent; cursor: pointer;
      transition: transform 0.15s, border-color 0.15s;
      flex-shrink: 0; padding: 0;
    }

    .accent-dot:hover { transform: scale(1.15); }

    .accent-dot.active {
      border-color: var(--text);
      transform: scale(1.15);
    }

    /* ── VISITOR CARD ── */

    .visitor-row {
      display: flex; align-items: center; padding: 14px 16px; gap: 0;
    }

    .visitor-item { flex: 1; text-align: center; }

    .visitor-value {
      font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.1rem;
      font-weight: 700; color: var(--accent);
    }

    .visitor-label {
      font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.68rem;
      color: var(--muted); margin-top: 2px;
    }

    /* ── DEVELOPER CREDIT ── */

    .dev-credit {
      display: flex; align-items: center; justify-content: space-between;
      padding: 16px 4px 8px; gap: 12px;
    }

    .dev-left {
      font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.75rem;
      color: var(--muted); line-height: 1.4;
    }

    .dev-link {
      color: var(--accent); text-decoration: none; font-weight: 600;
    }

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

    .dev-social { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

    .social-icon {
      width: 30px; height: 30px; border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      color: var(--muted); text-decoration: none;
      transition: color 0.2s;
    }

    .social-icon svg { width: 15px; height: 15px; }

    .social-icon:hover { color: var(--accent); }

    /* ── PWA INSTALL BANNER ── */

    #pwaInstall {
      background: var(--accent-light);
      border: 1.5px solid var(--accent);
      border-radius: 14px; padding: 12px 14px;
      display: none; align-items: center; gap: 12px;
    }

    #pwaInstall.show { display: flex; }

    .pwa-icon {
      width: 40px; height: 40px; border-radius: 10px;
      border: 1.5px solid transparent;
      background: var(--accent); display: flex; align-items: center; justify-content: center;
      flex-shrink: 0; color: var(--text);
    }

    .pwa-icon svg { width: 20px; height: 20px; }

    .pwa-text { flex: 1; min-width: 0; }

    .pwa-text strong {
      font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.82rem; font-weight: 700;
      color: var(--text); display: block;
    }

    .pwa-text span {
      font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.7rem; color: var(--muted);
    }

    .pwa-install-btn {
      background: var(--accent); color: white; border: none;
      font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.75rem; font-weight: 600;
      padding: 7px 14px; border-radius: 10px; cursor: pointer;
      flex-shrink: 0; transition: opacity 0.2s;
    }

    .pwa-install-btn:hover { opacity: 0.85; }

    /* ── HOME SECTION LABELS ── */

    .home-section-label {
      display: flex; align-items: center; gap: 10px;
      padding: 6px 14px 4px;
    }

    .home-section-label::before {
      content: '';
      width: 3px; height: 16px;
      background: var(--accent);
      border-radius: 2px;
      flex-shrink: 0;
    }

    .home-section-label span {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.82rem; font-weight: 600;
      color: var(--text);
      white-space: nowrap;
      flex-shrink: 0;
    }

    .home-section-label a {
      margin-left: auto;
      font-size: 0.72rem; color: var(--accent);
      font-weight: 500; text-decoration: none;
      display: flex; align-items: center; gap: 3px;
    }

    /* ── WATCH VIDEO MODAL ── */

    #watchVideoModal {
      display: none; position: fixed; inset: 0;
      z-index: 9500; background: #000;
      flex-direction: column; overflow: hidden;
      touch-action: pan-x pan-y;
    }

    #watchVideoModal.open { display: flex; }

    .wvm-topbar { display: none; }

    .wvm-title-row {
      display: flex; align-items: center; gap: 4px;
      padding: 4px 0 6px;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
    }

    .wvm-title-row:active { background: none; }

    .wvm-back-btn {
      background: none; border: none; cursor: pointer;
      color: var(--muted); width: 36px; height: 36px;
      display: flex; align-items: center; justify-content: center;
      border-radius: 50%; flex-shrink: 0;
      -webkit-tap-highlight-color: transparent;
      margin-left: -6px;
    }

    .wvm-back-btn:active { background: var(--surface2); }

    .wvm-title-text {
      flex: 1; font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.95rem; font-weight: 600;
      color: var(--text); overflow: hidden;
      white-space: nowrap; text-overflow: ellipsis;
    }

    .wvm-title-text.expanded {
      white-space: normal;
      overflow: visible;
      text-overflow: unset;
    }

    .wvm-desc-toggle-btn {
      background: none; border: none; cursor: pointer;
      color: var(--muted); width: 32px; height: 32px;
      display: flex; align-items: center; justify-content: center;
      border-radius: 50%; flex-shrink: 0;
      -webkit-tap-highlight-color: transparent;
      transition: transform 0.2s;
    }

    .wvm-desc-toggle-btn.open { transform: rotate(180deg); }

    .wvm-desc-toggle-btn:active { background: var(--surface2); }

    .wvm-desc-box {
      padding: 0 4px 10px;
      animation: fadeSlideIn 0.2s ease forwards;
    }

    .wvm-seo-tags {
      display: flex; flex-wrap: wrap; gap: 4px 0;
      margin-bottom: 8px;
    }

    .wvm-seo-tag {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.75rem; font-weight: 600;
      color: var(--accent); line-height: 1.4;
      cursor: pointer; -webkit-tap-highlight-color: transparent;
      transition: opacity 0.15s;
    }

    .wvm-seo-tag:active { opacity: 0.5; }

    .wvm-seo-sep {
      color: var(--muted); font-size: 0.7rem;
      opacity: 0.5; user-select: none;
    }

    .wvm-desc-text {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.8rem; color: var(--muted);
      line-height: 1.5;
    }

    .watch-modal-player-wrap {
      position: relative; width: 100%;
      aspect-ratio: 16/9; background: #000; flex-shrink: 0;
    }

    .watch-modal-player-wrap iframe,

    .watch-modal-player-wrap video {
      width: 100%; height: 100%; display: block;
    }

    .wvm-body {
      flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
      padding: 6px 14px calc(var(--tab-bar-h) + env(safe-area-inset-bottom, 0px) + 16px);
      border-radius: 16px 16px 0 0;
      background: var(--bg);
      background-image:
        linear-gradient(to bottom, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, var(--accent) 18%) 55%, color-mix(in srgb, var(--bg) 62%, var(--accent) 38%) 100%),
        radial-gradient(ellipse 60% 40% at 20% 30%, color-mix(in srgb, var(--bg) 78%, var(--accent) 22%) 0%, transparent 70%),
        radial-gradient(ellipse 50% 35% at 80% 70%, color-mix(in srgb, var(--bg) 74%, var(--accent) 26%) 0%, transparent 70%);
      background-size: 100% 100%, 200% 200%, 200% 200%;
      background-blend-mode: normal, screen, screen;
    }

    .wvm-title {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 1rem; font-weight: 700;
      color: var(--text); margin-bottom: 6px; line-height: 1.4;
    }

    .wvm-desc {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.82rem; color: var(--muted);
      margin-bottom: 14px; line-height: 1.5;
    }

    @keyframes wvmMarquee {
      0%   { transform: translateX(100vw); }

      100% { transform: translateX(-100%); }

    }

    /* ── WVM Category Avatar ── */

    .wvm-cat-avatar-btn {
      flex-shrink: 0; background: none; border: none; padding: 0; cursor: pointer;
      -webkit-tap-highlight-color: transparent; display: flex; align-items: center;
    }

    .wvm-cat-avatar-thumb {
      width: 36px; height: 36px; border-radius: 50%;
      overflow: hidden; background: var(--surface2);
      border: 2.5px solid var(--accent);
      display: grid;
    }

    .wvm-cat-avatar-thumb img {
      width: 100%; height: 100%; object-fit: cover; display: block;
    }

    .wvm-cat-avatar-thumb.collage {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: 1fr 1fr;
      gap: 1px; background: var(--border);
    }

    .wvm-cat-avatar-thumb.collage.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }

    .wvm-cat-avatar-thumb.collage.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }

    .wvm-cat-avatar-thumb.collage.n3 img:first-child { grid-column: 1; grid-row: 1 / 3; }

    .wvm-actions {
      display: flex; gap: 10px; margin-bottom: 14px;
      margin-left: -14px; margin-right: -14px;
      padding-left: 8px; padding-right: 14px;
      overflow-x: auto; overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      flex-shrink: 0;
    }

    .wvm-actions::-webkit-scrollbar { display: none; }

    .wvm-action-btn {
      display: flex; align-items: center; gap: 6px;
      padding: 7px 14px; border-radius: 20px;
      border: 1.5px solid var(--border);
      background: var(--surface); color: var(--text);
      font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.82rem;
      font-weight: 600; cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: background 0.15s, color 0.15s, border-color 0.15s;
      flex-shrink: 0;
    }

    .wvm-action-btn:active { background: var(--surface2); }

    .wvm-action-btn.faved { color: var(--accent); border-color: var(--accent); }

    .wvm-action-btn.liked { color: var(--accent); border-color: var(--accent); }

    .wvm-related-label {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.82rem; font-weight: 700;
      color: var(--muted); text-transform: uppercase;
      letter-spacing: 0.05em; margin-bottom: 10px;
    }

    .wvm-body .home-section-label span { font-weight: 400; }

    .wvm-body .home-section-label { margin: 0 -14px; padding-left: 14px; }

    .wvm-body .watch-cat-section-label { margin: 0 -14px; }

    .wvm-related-list { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 0 -14px; padding: 0 14px 20px; }

    .wvm-related-list.tv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 -14px; padding: 0 14px 20px; }

    .wvm-related-list.tv-grid .tv-pill { width: 100%; flex-shrink: 1; }

    .wvm-related-list.sports-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px 20px; margin: 0 -14px; }

    /* For You inside wvm */

    .wvm-body .for-you-header { padding: 14px 0 4px; }

    .wvm-body .for-you-grid { padding: 8px 0 20px; }

    .wvm-info-btn {
      background: none; border: none; cursor: pointer;
      color: var(--text); width: 36px; height: 36px;
      display: flex; align-items: center; justify-content: center;
      border-radius: 50%; flex-shrink: 0;
      -webkit-tap-highlight-color: transparent;
    }

    .wvm-info-btn:active { background: var(--surface2); }

    /* Info bottom sheet */

    .wvm-info-sheet-backdrop {
      display: none; position: fixed; inset: 0;
      z-index: 9600; background: rgba(0,0,0,0.45);
    }

    .wvm-info-sheet-backdrop.open { display: block; }

    .wvm-info-sheet {
      position: fixed; left: 0; right: 0; bottom: 0;
      z-index: 9601; background: var(--surface);
      border-radius: 20px 20px 0 0;
      padding: 0 0 40px;
      transform: translateY(100%);
      transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
      max-height: 60vh; overflow-y: auto;
    }

    .wvm-info-sheet.open { transform: translateY(0); }

    .wvm-info-sheet-handle {
      width: 36px; height: 4px; border-radius: 2px;
      background: var(--border); margin: 12px auto 16px;
    }

    .wvm-info-sheet-title {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 1rem; font-weight: 700;
      color: var(--text); padding: 0 18px 8px; line-height: 1.4;
    }

    .wvm-info-sheet-desc {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.85rem; color: var(--muted);
      padding: 0 18px; line-height: 1.6;
    }

    /* ── WATCH CATEGORY ── */

    #pageSettings { padding-top: 20px; }

    #pageWatch { margin: 0 -16px; }

    #watchCategoryScroll { padding: 0 8px; margin-top: 12px; }

    #watchVideoList {
      display: flex !important;
      flex-direction: row !important;
      gap: 8px;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding: 4px 8px 14px 14px;
    }

    #watchVideoList::-webkit-scrollbar { display: none; }

    #watchVideoList .watch-video-card {
      flex-shrink: 0;
      width: calc((100vw - 28px - 16px) / 3);
    }

    #watchCategoryScroll {
      display: block;
      overflow-x: auto; overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }

    #watchCategoryScroll::-webkit-scrollbar { display: none; }

    #watchCatRow .pc-card {
      width: auto;
      height: 38px;
      border-radius: 20px;
      overflow: hidden;
      position: relative;
      background: var(--surface);
      border: 1.5px solid var(--border2);
      box-shadow: none;
      transition: background 0.18s, border-color 0.18s, transform 0.15s;
      display: flex; align-items: center; justify-content: center;
      padding: 0 18px;
      min-width: 0;
      white-space: nowrap;
      flex-shrink: 0;
    }

    #watchCatRow .pc-card:active { transform: scale(0.94); }

    #watchCatRow .pc-card.active-cat {
      border-color: var(--accent);
      color: var(--accent);
    }

    #watchCatRow .pc-card.active-cat .pc-card-title { color: var(--accent); }

    #watchCatRow .pc-card-thumb { display: none; }

    #watchCatRow .pc-card-badge { display: none; }

    #watchCatRow .pc-card-info { display: none; }

    #watchCatRow .pc-card-overlay { display: none; }

    #watchCatRow .pc-card-title {
      position: relative; z-index: 1;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text);
      white-space: nowrap;
      text-shadow: none;
      display: block;
    }

    #watchCatRow.pc-horiz-row {
      gap: 8px;
      padding: 10px 0 14px;
    }

    /* ── LIVE TV SECTION ── */

    #liveTvSection {
      padding: 0 0 4px;
      margin-top: 4px;
    }

    #liveTvLabel {
      padding-left: 14px;
    }

    #liveTvScroll { padding: 4px 8px 4px 14px; }

    .live-tv-scroll {
      display: flex; gap: 10px;
      overflow-x: auto; overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding-bottom: 4px;
    }

    .live-tv-scroll::-webkit-scrollbar { display: none; }

    /* ── TV PILL CARD ── */

    .tv-pill {
      flex-shrink: 0;
      width: 88px;
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: 14px;
      overflow: hidden;
      cursor: pointer;
      transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
      position: relative;
      -webkit-tap-highlight-color: transparent;
      opacity: 0;
      animation: fadeSlideIn 0.35s ease forwards;
    }

    .tv-pill:hover { border-color: var(--accent); transform: scale(1.03); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }

    #liveTvModalList .tv-pill { width: 100%; flex-shrink: 1; }

    .tv-grid-wrap .tv-pill { width: 100%; flex-shrink: 1; }

    .tv-pill:active { transform: scale(0.96); }

    .tv-pill.tv-active { border-color: var(--accent); background: var(--accent-light); }

    /* thumbnail — 16:9 */

    .tv-pill-thumb {
      width: 100%;
      aspect-ratio: 1/1;
      background: var(--border2);
      position: relative;
      overflow: hidden;
    }

    .tv-pill-thumb img {
      width: 100%; height: 100%;
      object-fit: cover; display: block;
    }

    /* channel name overlay — bottom of thumb */

    .tv-pill-name-overlay {
      position: absolute; bottom: 0; left: 0; right: 0;
      padding: 18px 6px 5px;
      background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 100%);
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.72rem; font-weight: 700;
      color: #fff;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      text-shadow: 0 1px 4px rgba(0,0,0,0.6);
      pointer-events: none;
    }

    /* LIVE badge — top right */

    .tv-pill-live-badge {
      position: absolute; bottom: 0; left: 0; right: 0;
      padding: 22px 7px 5px;
      background: linear-gradient(to top, rgba(229,57,53,0.96) 0%, rgba(229,57,53,0.3) 55%, transparent 100%);
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.58rem; font-weight: 800; color: #fff;
      letter-spacing: 0.12em; text-align: center;
      pointer-events: none;
    }

    .tv-live-dot { display: none; }

    .tv-live-pulse {
      display: inline-block;
      width: 5px; height: 5px; border-radius: 50%;
      background: #fff; margin-right: 3px;
      vertical-align: middle;
      animation: tvPulse 1.4s ease-in-out infinite;
    }

    @keyframes tvPulse {
      0%,100% { opacity: 1; transform: scale(1); }

      50%      { opacity: 0.2; transform: scale(0.6); }

    }

    @keyframes tvLiveBlink { 0%,100%{opacity:1;} 50%{opacity:0.15;} }

    /* EQ overlay when playing */

    .tv-pill-eq-overlay {
      position: absolute; inset: 0;
      background: rgba(0,0,0,0.48);
      display: flex; align-items: center; justify-content: center;
      opacity: 0; transition: opacity 0.2s;
      pointer-events: none;
    }

    .tv-pill.tv-active .tv-pill-eq-overlay { opacity: 1; }

    .tv-eq-bars { display: flex; align-items: flex-end; gap: 3px; height: 24px; }

    .tv-eq-b { width: 4px; border-radius: 2px; background: #fff; }

    .tv-pill.tv-active .tv-eq-b:nth-child(1) { height: 20px; animation: tvBar 0.8s ease-in-out infinite alternate; }

    .tv-pill.tv-active .tv-eq-b:nth-child(2) { height: 20px; animation: tvBar 0.6s ease-in-out 0.1s infinite alternate; }

    .tv-pill.tv-active .tv-eq-b:nth-child(3) { height: 20px; animation: tvBar 0.9s ease-in-out 0.2s infinite alternate; }

    @keyframes tvBar { from{transform:scaleY(0.3);} to{transform:scaleY(1);} }

    /* placeholder thumb when no img */

    /* Live TV tag filter bar */

    .ltv-tag-bar {
      display: flex;
      flex-direction: row;
      gap: 8px;
      overflow-x: auto;
      padding: 10px 14px 4px;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

    .ltv-tag-bar::-webkit-scrollbar { display: none; }

    .ltv-tag-chip {
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      padding: 6px 14px;
      border-radius: 20px;
      background: var(--surface);
      border: 1.5px solid var(--border);
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--text);
      cursor: pointer;
      white-space: nowrap;
      transition: background 0.15s, border-color 0.15s, color 0.15s;
      -webkit-tap-highlight-color: transparent;
    }

    .ltv-tag-chip.active {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }

    .ltv-tag-chip-img {
      width: 18px;
      height: 18px;
      border-radius: 5px;
      object-fit: cover;
      margin-right: 6px;
      flex-shrink: 0;
    }

    .tv-pill-placeholder {
      width: 100%; height: 100%;
      display: flex; align-items: center; justify-content: center;
      background: linear-gradient(135deg, #1a2540, #2d3f6e);
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 1rem; font-weight: 800;
      color: rgba(255,255,255,0.85);
      letter-spacing: -0.02em;
    }

    .watch-cat-section {
      position: relative;
      margin-top: 0;
      overflow: hidden;
      border-radius: 0;
    }

    .watch-cat-section + .watch-cat-section { margin-top: 16px; }

    #watchCatRows { margin-bottom: 16px; }

    .watch-cat-section.cat-tint-0,

    .watch-cat-section.cat-tint-1,

    .watch-cat-section.cat-tint-2,

    .watch-cat-section.cat-tint-3,

    .watch-cat-section.cat-tint-4,

    .watch-cat-section.cat-tint-5 { background: #ffffff; }

    .cat-section-canvas {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      display: block; object-fit: cover;
    }

    .cat-section-content {
      position: relative; z-index: 1;
    }

    .cat-section-header {
      display: flex; align-items: center; gap: 10px;
      padding: 6px 14px 4px;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
      transition: color 0.15s;
    }

    .cat-section-header:active .cat-section-title,

    .cat-section-header:active { color: var(--accent); }

    .cat-section-header::before {
      content: '';
      width: 3px; height: 16px;
      background: var(--accent);
      border-radius: 2px;
      flex-shrink: 0;
    }

    .cat-section-title {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.82rem; font-weight: 700;
      color: #1a1a2e;
      letter-spacing: 0;
    }

    .watch-cat-section .watch-cat-horiz {
      padding: 4px 8px 16px 12px;
    }

    .watch-cat-section .watch-video-card {
      background: var(--surface);
    }

    .watch-cat-section .watch-video-title { color: var(--text); }

    /* legacy cat-banner — unused but keep for safety */

    .cat-banner { display: none; }

    .hist-date-label {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--accent);
      padding: 14px 14px 6px;
      opacity: 0.85;
      grid-column: 1 / -1;
    }

    .hist-date-label:first-child { padding-top: 6px; }

    .hist-cards-row {
      grid-column: 1 / -1;
      display: flex;
      flex-direction: row;
      gap: 8px;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      padding: 0 14px 8px;
      margin: 0 -14px;
      scrollbar-width: none;
    }

    .hist-cards-row::-webkit-scrollbar { display: none; }

    .hist-cards-row .watch-video-card,

    .hist-cards-row .pep-ep-row {
      flex: 0 0 calc((100vw - 28px - 16px) / 3);
      width: calc((100vw - 28px - 16px) / 3);
    }

    .watch-cat-section-label {
      display: flex; align-items: center; gap: 10px;
      padding: 6px 14px 4px;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
      transition: color 0.15s;
    }

    .watch-cat-section-label:active span:first-child,

    .watch-cat-section-label:active { color: var(--accent); }

    .watch-cat-section-label::before {
      content: '';
      width: 3px; height: 16px;
      background: var(--accent);
      border-radius: 2px;
      flex-shrink: 0;
    }

    .watch-cat-section-label span:first-child {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.82rem; font-weight: 600;
      color: var(--text);
      white-space: nowrap; flex-shrink: 0;
    }

    .watch-cat-section-label::after { content: none; }

    .section-see-all {
      margin-left: auto;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.72rem;
      font-weight: 600;
      color: rgba(0,0,0,0.35);
      text-decoration: none;
      padding: 2px 0;
      flex-shrink: 0;
      cursor: pointer;
      letter-spacing: 0.01em;
      -webkit-tap-highlight-color: transparent;
      opacity: 0.85;
      user-select: none;
    }

    .section-see-all:active { opacity: 0.5; }

    /* ── RANKINGS SECTION ── */

    .rankings-pill-bar {
      display: flex; flex-direction: row; gap: 0;
      overflow-x: auto; overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding: 0 14px;
      background: #ffffff;
      border-bottom: 1px solid var(--border);
    }

    .rankings-pill-bar::-webkit-scrollbar { display: none; }

    .rankings-pill {
      flex-shrink: 0;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.78rem; font-weight: 600;
      padding: 10px 12px 9px;
      border-radius: 0;
      border: none;
      border-bottom: 4px solid transparent;
      background: transparent;
      color: var(--muted);
      white-space: nowrap;
      transition: color 0.18s, border-color 0.18s;
      -webkit-tap-highlight-color: transparent;
      margin-bottom: -2px;
    }

    .rankings-pill.active {
      border-bottom-color: var(--accent);
      color: var(--accent);
      font-weight: 700;
    }

    .rankings-pill:active { opacity: 0.6; }

    .rankings-rank-badge {
      position: absolute; bottom: -4px; left: 4px;
      font-size: 3.2rem; font-weight: 900; line-height: 1;
      color: rgba(255,255,255,0.85);
      font-family: 'Plus Jakarta Sans', sans-serif;
      letter-spacing: -0.04em;
      text-shadow: 0 2px 12px rgba(0,0,0,0.6);
      pointer-events: none;
      z-index: 2;
    }

    #forYouFilterBtn:active, #listenForYouFilterBtn:active {
      background: var(--accent) !important;
      color: #fff !important;
      transition: background 0.1s, color 0.1s;
    }

    .watch-cat-horiz {
      display: flex; flex-direction: row; gap: 8px;
      overflow-x: auto; overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding: 0 8px 12px 14px;
    }

    .watch-cat-horiz::-webkit-scrollbar { display: none; }

    .watch-cat-horiz .watch-video-card {
      width: calc((100vw - 28px - 16px) / 3); flex-shrink: 0;
    }



    /* watch category modal — podcast modal style */

    .watchcat-modal-base {
      display: none; position: fixed; inset: 0;
      z-index: 9400;
      background: var(--bg);
      background-image:
        linear-gradient(to bottom, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, var(--accent) 18%) 55%, color-mix(in srgb, var(--bg) 62%, var(--accent) 38%) 100%),
        radial-gradient(ellipse 60% 40% at 20% 30%, color-mix(in srgb, var(--bg) 78%, var(--accent) 22%) 0%, transparent 70%),
        radial-gradient(ellipse 50% 35% at 80% 70%, color-mix(in srgb, var(--bg) 74%, var(--accent) 26%) 0%, transparent 70%);
      background-size: 100% 100%, 200% 200%, 200% 200%;
      background-blend-mode: normal, screen, screen;
      flex-direction: column; overflow: hidden;
      touch-action: pan-x pan-y;
    }

    .watchcat-modal-base.open { display: flex; }

    #liveTvModal { z-index: 9600; }

    #watchCatModal {
      /* extends .watchcat-modal-base */
    }

    /* Watch Category Modal — cover banner */
    .wcat-cover-banner {
      width: 100%;
      height: 140px;
      background-size: cover;
      background-position: center top;
      background-repeat: no-repeat;
      flex-shrink: 0;
      margin-top: calc(-52px - 10px - var(--status-bar-height) - 12px); /* overlap topbar + its margin */
      position: relative;
      z-index: 0;
      overflow: hidden;
    }
    .wcat-cover-banner.wcat-cover-has-video {
      height: 160px;
    }
    .wcat-cover-video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: none;
    }

    .wcat-cover-banner::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.18) 0%,
        rgba(0,0,0,0.0) 60%
      );
    }

    /* push topbar above cover */
    #watchCatModal .pep-topbar {
      position: relative;
      z-index: 2;
    }

    /* Watch Category Modal — full-width white card with top gap + rounded corners */
    #watchCatTagBar {
      background: #fff;
      border-radius: 18px 18px 0 0;
      margin: -20px 0 0;
      position: relative;
      z-index: 1;
      padding: 14px 14px 4px;
    }

    #watchCatModalList {
      background: #fff;
      border-radius: 0;
      margin: 0;
      position: relative;
      z-index: 1;
    }

    #watchCatTagBar:empty {
      display: none;
    }

    #watchCatTagBar:empty + #watchCatModalList {
      border-radius: 18px 18px 0 0;
      margin-top: -20px;
    }

    #watchCatModal .watch-video-card {
      background: #ffffff;
      border-color: var(--border);
    }

    /* ── Live TV Modal ── */
    #liveTvModal .pep-topbar { position: relative; z-index: 2; }
    #liveTvCover {
      margin-top: calc(-52px - 10px - var(--status-bar-height) - 12px);
      z-index: 0;
      background-image: url('https://res.cloudinary.com/dnzao51g5/image/upload/v1776449098/aruefdsavus8udwut5j9.gif');
    }
    #liveTvTagBar {
      background: #fff;
      border-radius: 18px 18px 0 0;
      margin: -20px 0 0;
      padding: 10px 14px 4px;
      gap: 8px;
      position: relative;
      z-index: 1;
    }
    #liveTvTagBar:empty { display: none; }
    #liveTvTagBar:empty + #liveTvModalList { border-radius: 18px 18px 0 0; margin-top: -20px; }
    #liveTvModalList {
      background: #fff;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      padding: 10px 14px 120px;
      box-sizing: border-box;
      width: 100%;
      position: relative;
      z-index: 1;
    }

    /* ── Browse All Categories Modal (Watch) ── */
    #browseCatsAllModal .pep-topbar { position: relative; z-index: 2; }
    #browseCatsAllCover {
      margin-top: calc(-52px - 10px - var(--status-bar-height) - 12px);
      z-index: 0;
      background-image: url('https://res.cloudinary.com/dnzao51g5/image/upload/v1776449098/aruefdsavus8udwut5j9.gif');
    }
    #browseCatsAllTagBar {
      background: #fff;
      border-radius: 18px 18px 0 0;
      margin: -20px 0 0;
      padding: 10px 14px 4px;
      gap: 8px;
      position: relative;
      z-index: 1;
    }
    #browseCatsAllTagBar:empty { display: none; }
    #browseCatsAllTagBar:empty + #browseCatsAllList { border-radius: 18px 18px 0 0; margin-top: -20px; }
    #browseCatsAllList {
      background: #fff;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      padding: 10px 14px 120px;
      box-sizing: border-box;
      width: 100%;
      position: relative;
      z-index: 1;
    }

    /* ── Listen Browse All Categories Modal ── */
    #listenBrowseAllModal .pep-topbar { position: relative; z-index: 2; }
    #listenBrowseAllCover {
      margin-top: calc(-52px - 10px - var(--status-bar-height) - 12px);
      z-index: 0;
      background-image: url('https://res.cloudinary.com/dnzao51g5/image/upload/v1776449098/aruefdsavus8udwut5j9.gif');
    }
    #listenBrowseAllTagBar {
      background: #fff;
      border-radius: 18px 18px 0 0;
      margin: -20px 0 0;
      padding: 10px 14px 4px;
      gap: 8px;
      position: relative;
      z-index: 1;
    }
    #listenBrowseAllTagBar:empty { display: none; }
    #listenBrowseAllTagBar:empty + #listenBrowseAllList { border-radius: 18px 18px 0 0; margin-top: -20px; }
    #listenBrowseAllList {
      background: #fff;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      padding: 10px 14px 120px;
      box-sizing: border-box;
      width: 100%;
      position: relative;
      z-index: 1;
    }

    /* ── Browse Artists Modal (Listen) ── */
    #allArtistsModal .pep-topbar { position: relative; z-index: 2; }
    #allArtistsCover {
      margin-top: calc(-52px - 10px - var(--status-bar-height) - 12px);
      z-index: 0;
      background-image: url('https://res.cloudinary.com/dnzao51g5/image/upload/v1776449098/aruefdsavus8udwut5j9.gif');
    }
    #allArtistsGrid {
      background: #fff;
      border-radius: 18px 18px 0 0;
      margin-top: -20px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      padding: 12px 14px 120px;
      box-sizing: border-box;
      width: 100%;
      position: relative;
      z-index: 1;
    }

    /* ── Browse Artists Modal (Watch) ── */
    #allWatchArtistsModal .pep-topbar { position: relative; z-index: 2; }
    #allWatchArtistsCover {
      margin-top: calc(-52px - 10px - var(--status-bar-height) - 12px);
      z-index: 0;
      background-image: url('https://res.cloudinary.com/dnzao51g5/image/upload/v1776449098/aruefdsavus8udwut5j9.gif');
    }
    #allWatchArtistsGrid {
      background: #fff;
      border-radius: 18px 18px 0 0;
      margin-top: -20px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      padding: 12px 14px 120px;
      box-sizing: border-box;
      width: 100%;
      position: relative;
      z-index: 1;
    }

    /* ── Artist Episodes Modal (Listen) ── */
    #artistEpModal .pep-topbar { position: relative; z-index: 2; }
    #artistEpCover {
      margin-top: calc(-52px - 10px - var(--status-bar-height) - 12px);
      z-index: 0;
      background-image: url('https://res.cloudinary.com/dnzao51g5/image/upload/v1776449098/aruefdsavus8udwut5j9.gif');
    }
    #artistEpList {
      background: #fff;
      border-radius: 18px 18px 0 0;
      margin-top: -20px;
      position: relative;
      z-index: 1;
    }

    /* ── Watch Artist Videos Modal ── */
    #watchArtistVidModal .pep-topbar { position: relative; z-index: 2; }
    #watchArtistVidCover {
      margin-top: calc(-52px - 10px - var(--status-bar-height) - 12px);
      z-index: 0;
      background-image: url('https://res.cloudinary.com/dnzao51g5/image/upload/v1776449098/aruefdsavus8udwut5j9.gif');
    }
    #watchArtistVidList {
      background: #fff;
      border-radius: 18px 18px 0 0;
      margin-top: -20px;
      position: relative;
      z-index: 1;
    }

    /* ── Saved Videos Modal ── */
    #savedVideosModal .pep-topbar { position: relative; z-index: 2; }
    #savedVideosCover {
      margin-top: calc(-52px - 10px - var(--status-bar-height) - 12px);
      z-index: 0;
      background-image: url('https://res.cloudinary.com/dnzao51g5/image/upload/v1776449098/aruefdsavus8udwut5j9.gif');
    }
    #savedVideosTagBar {
      background: #fff;
      border-radius: 18px 18px 0 0;
      margin: -20px 0 0;
      padding: 10px 14px 4px;
      gap: 8px;
      position: relative;
      z-index: 1;
    }
    #savedVideosTagBar:empty { display: none; }
    #savedVideosTagBar:empty + #savedVideosModalBody {
      border-radius: 18px 18px 0 0;
      margin-top: -20px;
    }
    #savedVideosModalBody {
      background: #fff;
      position: relative;
      z-index: 1;
    }

    /* ── Saved Episodes Modal ── */
    #bookmarkedEpsModal .pep-topbar { position: relative; z-index: 2; }
    #bookmarkedEpsCover {
      margin-top: calc(-52px - 10px - var(--status-bar-height) - 12px);
      z-index: 0;
      background-image: url('https://res.cloudinary.com/dnzao51g5/image/upload/v1776449098/aruefdsavus8udwut5j9.gif');
    }
    #bookmarkedEpsTagBar {
      background: #fff;
      border-radius: 18px 18px 0 0;
      margin: -20px 0 0;
      padding: 10px 14px 4px;
      gap: 8px;
      position: relative;
      z-index: 1;
    }
    #bookmarkedEpsTagBar:empty { display: none; }
    #bookmarkedEpsTagBar:empty + #bookmarkedEpsModalBody {
      border-radius: 18px 18px 0 0;
      margin-top: -20px;
    }
    #bookmarkedEpsModalBody {
      border-radius: 0;
      margin-top: 0;
      position: relative;
      z-index: 1;
    }

    /* ── Live Radio Modal ── */
    #allStationsModal .pep-topbar { position: relative; z-index: 2; }
    #allStationsCover {
      margin-top: calc(-52px - 10px - var(--status-bar-height) - 12px);
      z-index: 0;
      background-image: url('https://res.cloudinary.com/dnzao51g5/image/upload/v1776449098/aruefdsavus8udwut5j9.gif');
    }
    #allStationsTagBar {
      background: #fff;
      border-radius: 18px 18px 0 0;
      margin: -20px 0 0;
      padding: 10px 14px 4px;
      gap: 8px;
      position: relative;
      z-index: 1;
    }
    #allStationsTagBar:empty { display: none; }
    #allStationsTagBar:empty + #allStationsList { border-radius: 18px 18px 0 0; margin-top: -20px; }
    #allStationsList {
      background: #fff;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      padding: 10px 14px 120px;
      box-sizing: border-box;
      width: 100%;
      position: relative;
      z-index: 1;
    }

    #watchHistoryModalBody .watch-cat-section-label {
      margin: 8px -14px 4px;
      padding-left: 14px;
    }

    #watchHistoryModalBody .watch-cat-section-label:first-child {
      margin-top: 0;
    }

    #listenHistoryModalBody .watch-cat-section-label {
      margin: 8px -14px 0;
      padding: 2px 14px 1px;
    }

    #listenHistoryModalBody .watch-cat-section-label:first-child {
      margin-top: 0;
    }

    #watchHistoryModalBody .watch-cat-section-label {
      margin: 14px -14px 4px;
      padding: 4px 14px 4px;
    }

    #watchHistoryModalBody .watch-cat-section-label:first-child {
      margin-top: 0;
    }

    .wcat-modal-list {
      flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
      display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
      padding: 10px 14px 80px;
    }

    #watchHistoryModalBody.wcat-modal-list {
      display: block;
      padding: 6px 14px 80px;
    }

    .watch-video-card {
      display: flex; flex-direction: column;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0;
      overflow: hidden;
      cursor: pointer;
      position: relative;
      box-shadow: 0 1px 6px rgba(0,0,0,0.06);
      transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
      -webkit-tap-highlight-color: transparent;
      will-change: transform;
      opacity: 0;
      animation: fadeSlideIn 0.35s ease forwards;
    }

    .watch-video-card:hover { border-color: var(--accent); transform: scale(1.012); box-shadow: 0 4px 18px rgba(0,0,0,0.08); }

    .watch-video-card:hover .watch-video-title { color: var(--accent); }

    .watch-video-card:active { transform: scale(0.985); box-shadow: none; }

    .watch-video-thumb {
      width: 100%; aspect-ratio: 3 / 4;
      background: var(--border2);
      border-radius: 8px;
      position: relative; overflow: hidden; flex-shrink: 0;
    }

    .watch-video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 0.3s ease; }

    .watch-video-thumb img.loaded { opacity: 1; }

    .watch-video-play-btn {
      position: absolute; inset: 0;
      display: flex; align-items: center; justify-content: center;
      background: rgba(0,0,0,0.18);
    }

    .watch-video-play-btn i { font-size: 1.1rem; color: #fff; }

    .watch-video-info { flex: 1; min-width: 0; padding: 5px 4px 2px; text-align: center; }

    .watch-video-title {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.72rem; font-weight: 500;
      color: var(--text);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      line-height: 1.3; transition: color 0.2s;
    }

    .watch-video-meta {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.72rem; color: var(--muted);
      margin-top: 4px;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }

    .watch-video-card .fav-btn { display: none; }

        /* ── CATEGORY PROFILE MODAL ── */

    /* ── PODCAST CATEGORY LIST ── */

    /* ── PODCAST FILTER PILLS ── */

    /* ── PODCAST LIST LABEL ── */

      display: flex; align-items: center; gap: 10px;

      padding: 14px 16px 8px;

    }

    .pc-latest-label span {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.78rem; font-weight: 700;
      color: var(--muted2);
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    .pc-latest-label::after {
      content: ''; flex: 1; height: 1px; background: var(--border);
    }

    /* ── PODCAST TAB — RECENTLY ADDED EPISODES ── */

    .pc-ep-pill {
      display: flex; align-items: center; gap: 9px;
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: 999px;
      padding: 7px 14px 7px 7px;
      cursor: pointer; flex-shrink: 0;
      max-width: 200px;
      transition: border-color 0.2s, background 0.2s, transform 0.15s;
      -webkit-tap-highlight-color: transparent;
    }

    .pc-ep-pill:active {
      background: var(--surface2);
      border-color: var(--accent);
      transform: scale(1.03);
    }

    .pc-ep-pill.playing {
      border-color: var(--accent);
      background: var(--accent-light);
    }

    .pc-ep-pill-img {
      width: 32px; height: 32px; border-radius: 50%;
      flex-shrink: 0; overflow: hidden;
      border: 1.5px solid var(--border2);
      background: var(--surface2);
      display: flex; align-items: center; justify-content: center;
      font-size: 1rem;
    }

    .pc-ep-pill-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

    .pc-ep-pill-name {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.8rem; font-weight: 600;
      color: var(--text);
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
      min-width: 0;
    }

    #podcastCategoryList {
      margin: 0;
      padding: 0 8px;
      display: block;
      overflow-x: auto;
      overflow-y: visible;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }

    #podcastCategoryList::-webkit-scrollbar { display: none; }

    /* 2-row grid for podcast categories */

    #podcastCatRow.pc-cat-grid {
      display: grid !important;
      grid-template-rows: repeat(2, auto);
      grid-auto-flow: column;
      grid-auto-columns: max-content;
      gap: 8px;
      padding: 10px 14px 14px;
      width: max-content;
    }

    /* podcast category pill — watch tab style */

    #podcastCatRow .pc-card {
      width: auto;
      height: 38px;
      border-radius: 20px;
      overflow: hidden;
      position: relative;
      background: var(--surface);
      border: 1.5px solid var(--border2);
      box-shadow: none;
      transition: background 0.18s, border-color 0.18s, transform 0.15s;
      display: flex; align-items: center; justify-content: center;
      padding: 0 18px;
      min-width: 0;
      white-space: nowrap;
      flex-shrink: 0;
    }

    #podcastCatRow .pc-card:active { transform: scale(0.94); }

    #podcastCatRow .pc-card.active-cat { border-color: var(--accent); }

    #podcastCatRow .pc-card.active-cat .pc-card-title { color: var(--accent); }

    #podcastCatRow .pc-card-thumb { display: none; }

    #podcastCatRow .pc-card-badge { display: none; }

    #podcastCatRow .pc-card-info  { display: none; }

    #podcastCatRow .pc-card-overlay { display: none; }

    #podcastCatRow .pc-card-title {
      position: relative; z-index: 1;
      font-size: 0.85rem; font-weight: 600;
      color: var(--text); white-space: nowrap;
      text-shadow: none;
      display: block;
    }

    #podcastCatRow.pc-horiz-row {
      gap: 8px;
      padding: 10px 14px 14px;
    }

    .pc-horiz-row {
      display: flex;
      flex-direction: row;
      gap: 12px;
      padding: 12px 14px 16px;
      width: max-content;
    }

    .pc-card {
      width: 190px;
      flex-shrink: 0;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      border-radius: 14px;
      overflow: hidden;
      background: var(--surface);
      box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    }

    .pc-card:active { opacity: 0.85; }

    @keyframes shimmer {
      0% { background-position: -400px 0; }

      100% { background-position: 400px 0; }

    }

    .pc-card-thumb {
      width: 100%;
      aspect-ratio: 16/9;
      background: linear-gradient(90deg, var(--surface2) 25%, var(--border) 50%, var(--surface2) 75%);
      background-size: 800px 100%;
      animation: shimmer 1.4s infinite linear;
      display: flex; align-items: center; justify-content: center;
      font-size: 2.5rem; overflow: hidden; position: relative;
    }

    .pc-card-thumb.loaded {
      background: none;
      animation: none;
    }

    .pc-card-thumb img {
      width: 100%; height: 100%; object-fit: cover; display: block;
      opacity: 0; transition: opacity 0.3s ease;
    }

    .pc-card-thumb.loaded img { opacity: 1; }

    .pc-card-overlay {
      position: absolute; bottom: 0; left: 0; right: 0;
      padding: 32px 10px 8px;
      background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 50%, transparent 100%);
      pointer-events: none;
    }

    .pc-card-desc--overlay {
      font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.68rem;
      color: rgba(255,255,255,0.78); margin-top: 3px;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
      text-shadow: 0 1px 5px rgba(0,0,0,0.9), 0 2px 8px rgba(0,0,0,0.7);
    }

    .pc-card-title {
      font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.85rem; font-weight: 700;
      color: #fff; display: -webkit-box; -webkit-line-clamp: 2;
      -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3;
      text-shadow: 0 1px 5px rgba(0,0,0,0.9), 0 2px 8px rgba(0,0,0,0.7);
    }

    .pc-card-badge {
      position: absolute; top: 6px; right: 7px;
      background: rgba(0,0,0,0.75); color: #fff;
      font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.67rem; font-weight: 700;
      padding: 2px 6px; border-radius: 5px;
      backdrop-filter: blur(4px);
      pointer-events: none;
    }

    .pc-card-vidcount {
      position: absolute; bottom: 6px; right: 6px;
      background: rgba(0,0,0,0.55);
      color: #fff;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.75rem; font-weight: 700;
      padding: 4px 10px;
      border-radius: 20px;
      display: flex; align-items: center; gap: 5px;
      pointer-events: none;
      line-height: 1;
      letter-spacing: 0.02em;
    }
    .pc-card-vidcount i {
      font-size: 0.65rem;
      opacity: 0.85;
    }

    .pc-card-info {
      padding: 8px 10px 10px;
    }

    .pc-card-desc {
      font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.72rem; color: var(--muted);
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }

    .pc-row {
      display: flex; flex-direction: column;
      padding: 0 0 20px;
      cursor: pointer; -webkit-tap-highlight-color: transparent;
    }

    .pc-row:active .pc-thumb { opacity: 0.85; }

    /* ── PODCAST EPISODE MODAL ── */

    #searchModal {
      display: none; position: fixed; inset: 0;
      z-index: 9600;
      background: var(--bg);
      background-image:
        linear-gradient(to bottom, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, var(--accent) 18%) 55%, color-mix(in srgb, var(--bg) 62%, var(--accent) 38%) 100%),
        radial-gradient(ellipse 60% 40% at 20% 30%, color-mix(in srgb, var(--bg) 78%, var(--accent) 22%) 0%, transparent 70%),
        radial-gradient(ellipse 50% 35% at 80% 70%, color-mix(in srgb, var(--bg) 74%, var(--accent) 26%) 0%, transparent 70%);
      background-size: 100% 100%, 200% 200%, 200% 200%;
      background-blend-mode: normal, screen, screen;
      flex-direction: column; overflow: hidden;
    }

    #searchModal.open { display: flex; }

    #podcastEpModal {
      display: none; position: fixed; inset: 0;
      z-index: 9500;
      background: var(--bg);
      background-image:
        linear-gradient(to bottom, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, var(--accent) 18%) 55%, color-mix(in srgb, var(--bg) 62%, var(--accent) 38%) 100%),
        radial-gradient(ellipse 60% 40% at 20% 30%, color-mix(in srgb, var(--bg) 78%, var(--accent) 22%) 0%, transparent 70%),
        radial-gradient(ellipse 50% 35% at 80% 70%, color-mix(in srgb, var(--bg) 74%, var(--accent) 26%) 0%, transparent 70%);
      background-size: 100% 100%, 200% 200%, 200% 200%;
      background-blend-mode: normal, screen, screen;
      flex-direction: column; overflow: hidden;
    }

    #podcastEpModal.open { display: flex; }

    #allEpsModal {
      display: none; position: fixed; inset: 0;
      z-index: 9500;
      background: var(--bg);
      background-image:
        linear-gradient(to bottom, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, var(--accent) 18%) 55%, color-mix(in srgb, var(--bg) 62%, var(--accent) 38%) 100%),
        radial-gradient(ellipse 60% 40% at 20% 30%, color-mix(in srgb, var(--bg) 78%, var(--accent) 22%) 0%, transparent 70%),
        radial-gradient(ellipse 50% 35% at 80% 70%, color-mix(in srgb, var(--bg) 74%, var(--accent) 26%) 0%, transparent 70%);
      background-size: 100% 100%, 200% 200%, 200% 200%;
      background-blend-mode: normal, screen, screen;
      flex-direction: column; overflow: hidden;
    }

    #allEpsModal.open { display: flex; }

    #allStationsModal {
      display: none; position: fixed; inset: 0;
      z-index: 9500;
      background: var(--bg);
      background-image:
        linear-gradient(to bottom, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, var(--accent) 18%) 55%, color-mix(in srgb, var(--bg) 62%, var(--accent) 38%) 100%),
        radial-gradient(ellipse 60% 40% at 20% 30%, color-mix(in srgb, var(--bg) 78%, var(--accent) 22%) 0%, transparent 70%),
        radial-gradient(ellipse 50% 35% at 80% 70%, color-mix(in srgb, var(--bg) 74%, var(--accent) 26%) 0%, transparent 70%);
      background-size: 100% 100%, 200% 200%, 200% 200%;
      background-blend-mode: normal, screen, screen;
      flex-direction: column; overflow: hidden;
    }

    #allStationsModal.open { display: flex; }

    /* inline-styled modals — gradient override */

    #bookmarkedEpsModal,

    #listenHistoryModal,

    #pollModal {
      background-image:
        linear-gradient(to bottom, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, var(--accent) 18%) 55%, color-mix(in srgb, var(--bg) 62%, var(--accent) 38%) 100%),
        radial-gradient(ellipse 60% 40% at 20% 30%, color-mix(in srgb, var(--bg) 78%, var(--accent) 22%) 0%, transparent 70%),
        radial-gradient(ellipse 50% 35% at 80% 70%, color-mix(in srgb, var(--bg) 74%, var(--accent) 26%) 0%, transparent 70%) !important;
      background-size: 100% 100%, 200% 200%, 200% 200% !important;
      background-blend-mode: normal, screen, screen !important;
    }

    .pep-scroll-body {
      flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding-bottom: calc(var(--tab-bar-h) + env(safe-area-inset-bottom, 0px));
    }

    .pep-scroll-body::-webkit-scrollbar { display: none; }

    .pep-topbar {
      display: flex; align-items: center; gap: 10px;
      padding: 0 14px;
      height: 52px;
      position: relative;
      margin: calc(10px + var(--status-bar-height)) 12px 0;
      border-radius: 28px;
      background: rgba(255,255,255,0.95);
      box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }

    .pep-close-btn {
      width: 38px; height: 38px; border-radius: 50%;
      background: none; border: none;
      cursor: pointer; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      color: var(--accent); -webkit-tap-highlight-color: transparent;
      transition: background 0.15s;
    }

    .pep-close-btn:active { background: var(--accent-light); }

    .pep-search {
      flex: 1; display: flex; align-items: center; gap: 8px;
      background: var(--bg); border: 1.5px solid var(--border);
      border-radius: 10px; padding: 0 12px; height: 36px;
      overflow: hidden;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .pep-search:focus-within {
      border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light);
      background: var(--surface);
    }

    .pep-search svg { color: var(--muted); flex-shrink: 0; width: 15px; height: 15px; transition: color 0.2s; }

    .pep-search:focus-within svg { color: var(--accent); }

    .pep-search input {
      flex: 1; background: none; border: none; outline: none;
      font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.85rem; color: var(--text);
      user-select: text; -webkit-user-select: text; min-width: 0;
    }

    .pep-search input::placeholder { color: var(--muted); }

    /* ── EPISODE CARD — 3-column square style ── */

    .pep-list {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      padding: 10px 12px 30px;
    }

    .pep-ep-row {
      background: var(--surface);
      border-radius: 10px;
      border: 1px solid var(--border);
      overflow: hidden;
      cursor: pointer;
      display: flex; flex-direction: column;
      opacity: 0;
      animation: fadeSlideIn 0.35s ease forwards;
      -webkit-tap-highlight-color: transparent;
      transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
      box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    }

    .pep-ep-row:hover { transform: scale(1.03); box-shadow: 0 4px 16px rgba(0,0,0,0.13); border-color: var(--accent); }

    .pep-ep-row:hover .pep-ep-title { color: var(--accent); }

    .pep-ep-row:active { transform: scale(0.96); box-shadow: none; border-color: var(--accent); }

    .pep-ep-row:active .pep-ep-title { color: var(--accent); }

    .pep-ep-row.active { box-shadow: none; border-color: var(--accent); background: var(--accent-light); }

    .pep-ep-row.active .pep-ep-title { color: var(--accent); }

    /* square thumbnail — bottom corners rounded like video card */

    .pep-ep-thumb {
      width: 100%; aspect-ratio: 1 / 1;
      background: var(--border2);
      position: relative; overflow: hidden;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.6rem;
      border-radius: 10px;
    }

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

    /* overlay */

    .pep-ep-eq-overlay {
      position: absolute; inset: 0;
      background: rgba(0,0,0,0.18);
      display: flex; align-items: center; justify-content: center;
      transition: background 0.2s;
      pointer-events: none;
    }

    .pep-ep-row:hover .pep-ep-eq-overlay,

    .pep-ep-row.active .pep-ep-eq-overlay { background: rgba(0,0,0,0.38); }

    /* play/pause circle */

    .pep-ep-play-btn {
      width: 32px; height: 32px; border-radius: 50%;
      background: rgba(255,255,255,0.92);
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 2px 8px rgba(0,0,0,0.22);
      transition: transform 0.15s, background 0.15s;
    }

    .pep-ep-row:hover .pep-ep-play-btn { transform: scale(1.1); background: white; }

    .pep-ep-row.active .pep-ep-play-btn { background: var(--accent); }

    .pep-ep-row.active.paused .pep-ep-play-btn { background: rgba(255,255,255,0.92); }

    .pep-ep-row.active:not(.paused) .pep-ep-play-btn { opacity: 0; pointer-events: none; }

    /* play icon — default & paused */

    .ep-play-icon { display: block; margin-left: 2px; color: #333; }

    .ep-pause-icon { display: none; color: white; }

    .pep-ep-row.active:not(.paused) .ep-play-icon { display: none; }

    .pep-ep-row.active:not(.paused) .ep-pause-icon { display: block; }

    /* bottom info */

    .pep-ep-bottom { padding: 6px 4px 6px; text-align: center; }

    .pep-ep-title {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.72rem; font-weight: 500;
      color: var(--text);
      display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
      line-height: 1.3; transition: color 0.2s;
      min-height: unset;
      text-align: center;
    }

    .pep-ep-meta {
      font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.62rem; color: var(--muted);
      margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      text-align: center;
    }

    .pep-ep-desc { display: none; }

    .pep-ep-right { display: none; }

    .pep-ep-left { display: contents; }

    .pep-ep-info { display: none; }

    .pep-ep-dur { display: none; }

    .pep-ep-eq { display: none; }

    .pep-ep-row.st-row.unavailable { opacity: 0.5; cursor: default; }

    .pep-ep-row.st-row.unavailable:hover { transform: none; box-shadow: none; }

    .pep-ep-row.st-row.unavailable:hover .pep-ep-title { color: var(--text); }

    .pep-empty {
      padding: 48px 20px; text-align: center;
      font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.9rem; color: var(--muted);
    }

    /* Add button */

    /* Story item */

    /* ── MUSIC CARD EDIT MODAL ── */



/* ═══════════════════════════════════════════════ */

.poll-card {
  background:var(--surface2);
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
  display:flex;flex-direction:column;gap:10px;
}

.poll-question {
  font-size:0.95rem;font-weight:700;color:var(--text);line-height:1.4;
  font-family:'Noto Sans Bengali','Plus Jakarta Sans',sans-serif;
}

.poll-option {
  position:relative;border-radius:12px;overflow:hidden;
  border:1.5px solid var(--border);background:var(--surface);
  cursor:pointer;transition:border-color 0.15s;
  -webkit-tap-highlight-color:transparent;
}

.poll-option.voted { border-color:var(--accent); }

.poll-option.voted.my-vote { border-color:var(--accent);background:var(--accent-light); }

.poll-option-bar {
  position:absolute;inset:0;right:auto;
  background:var(--accent-light);
  transition:width 0.5s cubic-bezier(0.4,0,0.2,1);
  pointer-events:none;
}

.poll-option-inner {
  position:relative;display:flex;align-items:center;gap:8px;
  padding:11px 14px;z-index:1;
}

.poll-option-text {
  flex:1;font-size:0.88rem;color:var(--text);
  font-family:'Noto Sans Bengali','Plus Jakarta Sans',sans-serif;
}

.poll-option-pct {
  font-size:0.78rem;font-weight:700;color:var(--accent);min-width:34px;text-align:right;
}

.poll-meta {
  font-size:0.68rem;color:var(--muted);
  display:flex;justify-content:space-between;
}

.poll-empty {
  display:flex;flex-direction:column;align-items:center;gap:12px;
  padding:50px 0;color:var(--muted);
}

/* ══════════════════════════════════════

   FOR YOU — Section

══════════════════════════════════════ */

#watchBrowseArtistsSection,
#listenForYouSection {
  margin-top: 16px;
}

#forYouSection {
  margin-top: 16px;
  padding-bottom: 8px;
  background: #ffffff;
  border-radius: 18px 18px 0 0;
}

.for-you-header {
  padding: 18px 14px 4px;
}

.for-you-title {
  display: flex; align-items: center; gap: 7px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem; font-weight: 900;
  color: var(--text);
  letter-spacing: -0.03em;
}
.fy-sparkle {
  display: inline-block;
  margin-left: auto;
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  animation: fy-sparkle-pulse 2.4s ease-in-out infinite;
  transform-origin: center;
  will-change: transform, opacity;
}
@keyframes fy-sparkle-pulse {
  0%   { transform: scale(1) rotate(0deg);    opacity: 1; }
  20%  { transform: scale(1.35) rotate(18deg); opacity: 0.85; }
  40%  { transform: scale(0.9) rotate(-8deg);  opacity: 1; }
  60%  { transform: scale(1.2) rotate(12deg);  opacity: 0.8; }
  80%  { transform: scale(1) rotate(-4deg);    opacity: 1; }
  100% { transform: scale(1) rotate(0deg);    opacity: 1; }
}

.for-you-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 12px 4px;
}

.for-you-loader {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 18px 0 10px;
}

.fy-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
  animation: fyPulse 1.2s ease-in-out infinite;
}

.fy-dot:nth-child(2) { animation-delay: 0.2s; }

.fy-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes fyPulse {
  0%, 100% { opacity: 0.2; transform: scale(0.85); }

  50%       { opacity: 1;   transform: scale(1.1); }

}

#forYouRefreshBtn { transition: opacity 0.2s; }

#forYouRefreshBtn:active { opacity: 0.5; }

#forYouRefreshBtn.spinning i { animation: fySpinOnce 0.5s ease; }

@keyframes fySpinOnce {
  from { transform: rotate(0deg); }

  to   { transform: rotate(360deg); }

}

/* For You — category filter bar */

.for-you-cats {
  display: flex; flex-direction: row; gap: 6px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px 14px 10px;
}

.for-you-cats::-webkit-scrollbar { display: none; }

.fy-cat-chip {
  flex-shrink: 0;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem; font-weight: 600;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.fy-cat-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.fy-cat-chip:active { opacity: 0.75; }

/* For You — filter sheet */

#forYouFilterSheet, #listenForYouFilterSheet {
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.32,0.72,0,1), opacity 0.25s;
}

.fy-filter-chip {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.fy-filter-chip.active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.fy-filter-chip:active { opacity: 0.7; }

/* remove old fy-cat-chip if exists */

.for-you-cats { display: none !important; }

/* ══════════════════════════════════════

   Popular Web Series Section

══════════════════════════════════════ */

.mygp-series-wrap {
  background: #ffffff;
  border-radius: 0;
  padding: 12px 0 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.mygp-series-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px 12px;
}

.mygp-series-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.mygp-series-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.97rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.popular-series-scroll {
  display: flex;
  flex-direction: row;
  gap: 0;
  overflow-x: hidden;
  padding: 4px 0 6px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  align-items: center;
  -webkit-scroll-behavior: smooth;
}

.popular-series-scroll::-webkit-scrollbar { display: none; }

.popular-series-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

.popular-series-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.3s;
}

.popular-series-item.active .popular-series-card-title {
  opacity: 1;
}

.popular-series-card {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 16/9;
  background: var(--surface);
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 0.3s, opacity 0.4s;
  box-shadow: none;
  border: none;
  opacity: 1;
}

.popular-series-item.active .popular-series-card {
  opacity: 1;
  box-shadow: none;
}

.popular-series-card:active,

.popular-series-card.tapped {
  box-shadow: none;
}

.popular-series-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.popular-series-card-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--surface) 100%);
  border-radius: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  padding: 8px;
  line-height: 1.3;
}

/* Dark mode shadow adjustment */

/* Popular Series Dots */

.popular-series-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 0 4px;
}

.popular-series-dot {
  width: 6px;
  height: 6px;
  border-radius: 6px;
  background: var(--border2);
  transition: width 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
}

.popular-series-dot.active {
  width: 18px;
  background: var(--accent);
}

/* ══════════════════════════════════════

   DESKTOP BLOCK SCREEN

══════════════════════════════════════ */

html.is-desktop-html {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #f5f5f3;
  padding: 0;
}

html.is-desktop-html body {
  display: none !important;
}

html.is-desktop-html::after {
  content: '';
  position: fixed;
  inset: 0;
  background: #f5f5f3;
  z-index: -1;
}

html.is-desktop-html::before {
  content: none;
}

.desktop-block-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 40px 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.desktop-block-wrap .dbs-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #111110;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}

.desktop-block-wrap .dbs-logo span {
  color: #5D91E4;
}

.desktop-block-wrap .dbs-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111110;
}

.desktop-block-wrap .dbs-sub {
  font-size: 0.88rem;
  color: #a0a09a;
  font-weight: 400;
}

/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
   BROWSE CATEGORIES \u2014 YouTube playlist-style
\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */

#browseCatsSection,
#listenBrowseCatsSection {
  background: #ffffff;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

#browseCatsSection {
  margin-bottom: 16px;
}

.browse-cat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}

.browse-cat-item:last-child {
  border-bottom: none;
}

.browse-cat-item.tapped,
.browse-cat-item:active {
  background: var(--surface2);
}

.browse-cat-thumb-wrap {
  width: 120px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--border2);
  position: relative;
}

.browse-cat-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.browse-cat-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--surface2) 100%);
  color: var(--accent);
  opacity: 0.7;
}

.browse-cat-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.browse-cat-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  transition: color 0.15s;
}

.browse-cat-item.tapped .browse-cat-name,
.browse-cat-item:active .browse-cat-name {
  color: var(--accent);
}

.browse-cat-meta {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.browse-cat-arrow {
  color: var(--muted);
  flex-shrink: 0;
  opacity: 0.5;
}

/* ======================================
   BROWSE CATEGORIES - Horizontal scroll
====================================== */

#browseCatsSection {
  background: #ffffff;
  padding-bottom: 12px;
}

.browse-cats-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 4px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: color 0.15s;
  cursor: pointer;
}

.browse-cats-header:active,
.browse-cats-header:active .browse-cats-title {
  color: var(--accent);
}

.browse-cats-header::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.browse-cats-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s;
}

.browse-cats-title::before {
  content: none;
}

/* Horizontal scroll container */
#browseCatsSection {
  margin-bottom: 16px;
  position: relative;
}

.browse-cats-scroll {
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 14px 6px;
}

.browse-cats-scroll::-webkit-scrollbar { display: none; }

/* Individual card - same style as watch-video-card */
.browse-cat-card {
  flex-shrink: 0;
  width: calc((100vw - 28px - 20px) / 2.0);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: visible;
  cursor: pointer;
  position: relative;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  animation: browseCatFadeIn 0.4s ease forwards;
}

@keyframes browseCatFadeIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.browse-cat-card:nth-child(1) { animation-delay: 0.05s; }
.browse-cat-card:nth-child(2) { animation-delay: 0.12s; }
.browse-cat-card:nth-child(3) { animation-delay: 0.19s; }
.browse-cat-card:nth-child(4) { animation-delay: 0.26s; }
.browse-cat-card:nth-child(5) { animation-delay: 0.33s; }
.browse-cat-card:nth-child(6) { animation-delay: 0.40s; }
.browse-cat-card:nth-child(n+7) { animation-delay: 0.46s; }

.browse-cat-card.tapped,
.browse-cat-card:active {
  transform: scale(0.96);
  border-color: var(--accent);
}

/* Thumb - 3:4 portrait like watch cards */
.browse-cat-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--border2);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.browse-cat-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.browse-cat-card-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--surface2) 100%);
  color: var(--accent);
  opacity: 0.7;
}

.browse-cat-vidcount {
  position: absolute;
  bottom: 6px; right: 6px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem; font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex; align-items: center; gap: 5px;
  pointer-events: none;
  line-height: 1;
  z-index: 2;
  letter-spacing: 0.02em;
}
.browse-cat-vidcount i {
  font-size: 0.65rem;
  opacity: 0.85;
}

/* Listen tab — episode badge উপরে */
#listenBrowseCatsList .browse-cat-vidcount,
#listenBrowseAllList .browse-cat-vidcount {
  bottom: auto;
  top: 6px;
  right: 6px;
}

/* Play icon overlay */
.browse-cat-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.10);
  pointer-events: none;
}

/* Label below thumb */
.browse-cat-card-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text);
  padding: 5px 5px 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}

.browse-cat-card.tapped .browse-cat-card-label,
.browse-cat-card:active .browse-cat-card-label {
  color: var(--accent);
}

.browse-cat-card-count {
  display: none;
}

/* Modal grid-এ card full width নেবে, fixed width override */
#browseCatsAllList .browse-cat-card,
#listenBrowseAllList .browse-cat-card {
  width: 100%;
  flex-shrink: 1;
  min-width: 0;
}

/* ══════════════════════════════════════
   LISTEN TAB — Browse Category Cards
   Square shape, title inside thumb
══════════════════════════════════════ */

/* Scroll section cards — 3.2 per view */
#listenBrowseCatsList .browse-cat-card,
#listenBrowseAllList .browse-cat-card {
  overflow: hidden;
  border-radius: 10px;
  width: calc((100vw - 28px - 20px) / 3.0);
}

/* Square thumb */
#listenBrowseCatsList .browse-cat-card-thumb,
#listenBrowseAllList .browse-cat-card-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 0;
}

/* Title overlay inside thumb — card is position:relative */
#listenBrowseCatsList .browse-cat-card-label,
#listenBrowseAllList .browse-cat-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 8px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 0 0 10px 10px;
  z-index: 3;
  pointer-events: none;
}

#listenBrowseCatsList .browse-cat-card.tapped .browse-cat-card-label,
#listenBrowseCatsList .browse-cat-card:active .browse-cat-card-label,
#listenBrowseAllList .browse-cat-card.tapped .browse-cat-card-label,
#listenBrowseAllList .browse-cat-card:active .browse-cat-card-label {
  color: #fff;
}

/* ══════════════════════════════════════
   BROWSE ARTISTS — Circle cards horizontal scroll
══════════════════════════════════════ */

.browse-artists-scroll {
  display: flex;
  flex-direction: row;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px 14px 14px;
  background: #ffffff;
}

.browse-artists-scroll::-webkit-scrollbar { display: none; }

.artist-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  width: calc((100vw - 28px - 32px) / 3.2);
  padding: 10px 8px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  transition: border-color 0.15s, transform 0.15s;
}

.artist-card-circle {
  width: calc((100vw - 28px - 32px) / 3.2 - 24px);
  height: calc((100vw - 28px - 32px) / 3.2 - 24px);
  border-radius: 50%;
  overflow: hidden;
  border: none;
  background: var(--surface2);
  flex-shrink: 0;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.artist-card-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artist-card-circle-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-light), var(--surface2));
  font-size: 1.5rem;
}

.artist-card-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  width: 100%;
  line-height: 1.3;
  transition: color 0.15s;
}

.artist-card.tapped,
.artist-card:active {
  border-color: var(--accent);
  transform: scale(0.95);
}

.artist-card.tapped .artist-card-name,
.artist-card:active .artist-card-name {
  color: var(--accent);
}

/* Artist card entrance animation */
.artist-card {
  opacity: 0;
  animation: artistFadeIn 0.35s ease forwards;
}

@keyframes artistFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.artist-card:nth-child(1) { animation-delay: 0.04s; }
.artist-card:nth-child(2) { animation-delay: 0.10s; }
.artist-card:nth-child(3) { animation-delay: 0.16s; }
.artist-card:nth-child(4) { animation-delay: 0.22s; }
.artist-card:nth-child(5) { animation-delay: 0.28s; }
.artist-card:nth-child(6) { animation-delay: 0.34s; }
.artist-card:nth-child(n+7) { animation-delay: 0.40s; }

/* Artist Modal — same as podcastEpModal */
#artistEpModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9500;
  flex-direction: column;
  background: var(--bg);
}

#artistEpModal.open {
  display: flex;
}

#allWatchArtistsModal.open .pep-scroll-body,
#watchArtistVidModal.open .pep-scroll-body {
  animation: pepBodySlideUp 0.38s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

/* All Artists Modal — slide up animation */
#allArtistsModal.open {
  animation: none;
}

#allArtistsModal.open .pep-scroll-body {
  animation: pepBodySlideUp 0.38s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

@keyframes pepBodySlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.all-artist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: 12px 8px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  transition: border-color 0.15s, transform 0.15s;
  opacity: 0;
  animation: allArtistFadeIn 0.32s ease forwards;
}

@keyframes allArtistFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.all-artist-card:nth-child(1)  { animation-delay: 0.04s; }
.all-artist-card:nth-child(2)  { animation-delay: 0.08s; }
.all-artist-card:nth-child(3)  { animation-delay: 0.12s; }
.all-artist-card:nth-child(4)  { animation-delay: 0.16s; }
.all-artist-card:nth-child(5)  { animation-delay: 0.20s; }
.all-artist-card:nth-child(6)  { animation-delay: 0.24s; }
.all-artist-card:nth-child(7)  { animation-delay: 0.28s; }
.all-artist-card:nth-child(8)  { animation-delay: 0.32s; }
.all-artist-card:nth-child(9)  { animation-delay: 0.36s; }
.all-artist-card:nth-child(n+10) { animation-delay: 0.40s; }

.all-artist-card.tapped,
.all-artist-card:active {
  border-color: var(--accent);
  transform: scale(0.95);
}

.all-artist-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface2);
  flex-shrink: 0;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.all-artist-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.all-artist-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  width: 100%;
  transition: color 0.15s;
}

.all-artist-card.tapped .all-artist-name,
.all-artist-card:active .all-artist-name {
  color: var(--accent);
}

/* ============================================================
   REELS STRIP
   ============================================================ */
#reelsStrip {
  padding: 8px 0;
  margin: 0;
  background: #ffffff;
}
.reels-bg-divider {
  height: 8px;
  background: var(--bg);
  margin: 8px -999px 0;
  padding: 0 999px;
}
.reels-scroll-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 14px 6px 14px;
}
.reels-scroll-row::-webkit-scrollbar { display: none; }
.reels-scroll-row .reel-card:first-child { margin-left: 0; }
.reels-scroll-row .reel-card:last-child  { margin-right: 0; }

.reel-card {
  flex: 0 0 100px;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  cursor: pointer;
  background: var(--card);
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s, box-shadow 0.15s;
}
.reel-card:active {
  transform: scale(0.95);
  box-shadow: 0 1px 6px rgba(0,0,0,0.22);
}
.reel-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reel-card-thumb-iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
  transform: scale(1.8);
  transform-origin: center center;
}
.reel-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px 7px;
}
.reel-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reel-card-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

/* ============================================================
   REELS FULL-SCREEN MODAL
   ============================================================ */
.reels-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: #000;
  flex-direction: column;
  overflow: hidden;
}
.reels-modal-overlay.open {
  display: flex;
}
.reels-modal-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + var(--status-bar-height, 0px) + 10px) 14px 16px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 100%);
}
.reels-modal-topbar-title {
  flex: 1;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.reels-speed-indicator {
  width: 38px;
  flex-shrink: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  opacity: 0;
  transition: opacity 0.12s ease;
  pointer-events: none;
}
.reels-speed-indicator.visible {
  opacity: 1;
  transition: none;
}
.reels-modal-close {
  flex-shrink: 0;
  background: none;
  border: none;
  border-radius: 50%;
  padding: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.reels-modal-close:active {
  background: rgba(255,255,255,0.1);
}
.reels-modal-bottom {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 40px 18px calc(env(safe-area-inset-bottom, 0px) + 24px);
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, transparent 100%);
  pointer-events: none;
  z-index: 5;
  display: block;
}
.reels-modal-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.reels-modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}
.reels-modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.reels-modal-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  overflow: hidden;
}
.reels-modal-tag {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.reels-modal-views {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  flex-shrink: 0;
}

.reel-slide-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  z-index: 2;
}
.reel-loader-spin {
  width: 32px; height: 32px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: rgba(255,255,255,0.8);
  border-radius: 50%;
  animation: reelSpin 0.7s linear infinite;
}
@keyframes reelSpin {
  to { transform: rotate(360deg); }
}
.reels-modal-track {
  flex: 1;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior: contain;
  overscroll-behavior-y: contain;
}
.reels-modal-track::-webkit-scrollbar { display: none; }

.reel-slide {
  width: 100%;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #000;
  flex-shrink: 0;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}
.reel-slide iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  inset: 0;
}
.reel-tap-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 72px; height: 72px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  z-index: 8;
  transition: opacity 0.2s ease;
}
.reel-tap-icon.visible {
  opacity: 1;
  transition: none;
}
.reels-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.2);
  z-index: 10;
  pointer-events: none;
}
.reels-progress-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  transition: width 0.25s linear;
  border-radius: 0 2px 2px 0;
}
.reels-nav-hint {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 8px 6px;
  color: rgba(255,255,255,0.7);
  pointer-events: none;
  z-index: 5;
  animation: reelsHintFade 3s ease forwards;
}
@keyframes reelsHintFade {
  0%   { opacity: 1; }
  60%  { opacity: 1; }
  100% { opacity: 0; }
}


/* ── INLINE INFINITE SCROLL LOADER ── */
.castfm-inline-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 0 10px;
  width: 100%;
}
.castfm-inline-loader-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}
.castfm-inline-loader-dots span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent, #4f8ef7);
  opacity: 0.25;
  animation: castfm-dot-bounce 1.1s ease-in-out infinite;
}
.castfm-inline-loader-dots span:nth-child(1) { animation-delay: 0s; }
.castfm-inline-loader-dots span:nth-child(2) { animation-delay: 0.18s; }
.castfm-inline-loader-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes castfm-dot-bounce {
  0%, 80%, 100% { transform: translateY(0);  opacity: 0.25; }
  40%            { transform: translateY(-7px); opacity: 1;    }
}

    /* Watch Category Sort chips separator */
    .ltv-tag-chip-sep {
      width: 1px;
      height: 20px;
      background: var(--border);
      align-self: center;
      flex-shrink: 0;
      margin: 0 2px;
    }

    .sports-pill-flag {
      width: 18px;
      height: 12px;
      border-radius: 2px;
      object-fit: cover;
      margin-right: 5px;
      flex-shrink: 0;
      vertical-align: middle;
    }

    .sports-match-card {
      flex-shrink: 0;
      width: 176px;
      height: 88px;
      border-radius: 14px;
      background: linear-gradient(135deg, #0d1b4b 0%, #1a3a6e 100%);
      border: 1.5px solid #2a4b8a;
      overflow: hidden;
      cursor: pointer;
      position: relative;
      -webkit-tap-highlight-color: transparent;
      opacity: 0;
      animation: fadeSlideIn 0.35s ease forwards;
    }

    /* trophy watermark emoji */
    .sports-card-trophy {
      position: absolute;
      font-size: 52px;
      left: 50%;
      transform: translateX(-50%);
      bottom: -8px;
      opacity: 0.15;
      pointer-events: none;
      line-height: 1;
    }

    .sports-match-card:active { transform: scale(0.97); border-color: var(--accent); }
    .sports-match-card.sports-card-playing { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }

    .sports-card-disabled {
      cursor: default;
      opacity: 0;
      animation: fadeSlideIn 0.35s ease forwards;
    }
    .sports-card-disabled:active { transform: none; }

    .sports-card-inner {
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 9px 11px 8px;
      position: relative;
      z-index: 1;
    }

    .sports-teams-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .sports-team {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      flex: 1;
    }

    .sports-flag-img {
      width: 32px;
      height: 21px;
      border-radius: 3px;
      object-fit: cover;
      box-shadow: 0 1px 6px rgba(0,0,0,0.4);
      display: block;
    }

    .sports-flag-fallback {
      width: 32px;
      height: 21px;
      border-radius: 3px;
      background: rgba(255,255,255,0.1);
      color: rgba(255,255,255,0.7);
      font-size: 0.52rem;
      font-weight: 700;
      font-family: 'Plus Jakarta Sans', sans-serif;
      display: flex;
      align-items: center;
      justify-content: center;
      letter-spacing: 0.03em;
    }

    .sports-team-name {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.6rem;
      font-weight: 700;
      color: rgba(255,255,255,0.9);
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
      line-height: 1.2;
    }

    .sports-vs {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.65rem;
      font-weight: 900;
      color: #ffd740;
      padding: 0 5px;
      flex-shrink: 0;
      letter-spacing: 0.04em;
    }

    /* Status row: countdown/LIVE centered on top, stage below */
    .sports-status-row {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
    }

    .sports-live-badge {
      display: flex;
      align-items: center;
      gap: 4px;
      background: #e53935;
      color: #fff;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.58rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      padding: 3px 8px;
      border-radius: 6px;
      flex-shrink: 0;
    }

    .sports-countdown {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.68rem;
      font-weight: 700;
      color: #fff;
      background: rgba(255,255,255,0.12);
      border-radius: 6px;
      padding: 2px 7px;
      letter-spacing: 0.04em;
      flex-shrink: 0;
    }

    .sports-highlights-badge {
      display: flex;
      align-items: center;
      gap: 4px;
      background: #2e7d32;
      color: #fff;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.58rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      padding: 3px 8px;
      border-radius: 6px;
      flex-shrink: 0;
    }

    .sports-highlights-icon {
      font-size: 0.5rem;
      line-height: 1;
    }

    .sports-stage {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.58rem;
      font-weight: 600;
      color: rgba(255,255,255,0.55);
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
    }

    /* ── Sports Modal ── */
    #sportsModal .pep-topbar { position: relative; z-index: 2; }
    #sportsModalCover {
      margin-top: calc(-52px - 10px - var(--status-bar-height) - 12px);
      z-index: 0;
      background-image: url('https://res.cloudinary.com/dnzao51g5/image/upload/v1776449098/aruefdsavus8udwut5j9.gif');
    }
    .sports-filter-bar {
      background: #fff;
      padding: 10px 14px 6px;
      margin-top: -20px;
      position: relative;
      z-index: 2;
      border-radius: 18px 18px 0 0;
      box-shadow: none;
    }
    .sports-modal-grid {
      background: #fff;
      border-radius: 0 0 0 0;
      margin-top: 0;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      padding: 6px 14px 120px;
      box-sizing: border-box;
      width: 100%;
      position: relative;
      z-index: 1;
    }

    .sports-modal-card {
      border-radius: 14px;
      background: linear-gradient(135deg, #0d1b4b 0%, #1a3a6e 100%);
      border: 1.5px solid #2a4b8a;
      overflow: hidden;
      cursor: pointer;
      position: relative;
      -webkit-tap-highlight-color: transparent;
      opacity: 0;
      animation: fadeSlideIn 0.35s ease forwards;
      min-height: 100px;
    }
    .sports-modal-card:active { transform: scale(0.97); border-color: var(--accent); }
    .sports-modal-card.sports-card-playing { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
    .sports-modal-card.sports-card-disabled { cursor: default; }
    .sports-modal-card.sports-card-disabled:active { transform: none; }

    /* Modal card inner */
    .sports-modal-card .sports-card-inner {
      padding: 8px 10px 8px;
      justify-content: space-between;
      gap: 5px;
    }

    /* Bottom section: stage + title + badge + time */
    .sports-card-bottom {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
      width: 100%;
    }
    .sports-card-stage {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.54rem;
      font-weight: 600;
      color: rgba(255,255,255,0.45);
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
      letter-spacing: 0.03em;
      text-transform: uppercase;
    }
    .sports-card-title {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.6rem;
      font-weight: 700;
      color: rgba(255,255,255,0.75);
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
      margin-top: 3px;
    }
    .sports-card-time {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.55rem;
      font-weight: 600;
      color: rgba(255,215,64,0.75);
      text-align: center;
      white-space: nowrap;
    }
