:root{--bg:#070707;--side:#0d0a14;--card:#14111d;--card2:#191426;--purple:#6d28d9;--purple2:#8b5cf6;--deep:#4c1d95;--text:#f8f8f8;--muted:#b8b8c7;--border:#262035;--danger:#ef4444;--ok:#22c55e}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top center,rgba(109,40,217,.16),transparent 38%),var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif}a{color:inherit;text-decoration:none}.topbar{height:74px;display:flex;align-items:center;gap:18px;padding:0 24px;background:rgba(7,7,7,.88);backdrop-filter:blur(18px);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:50}.brand{font-weight:900;letter-spacing:.08em;white-space:nowrap}.brand-ring{display:inline-grid;place-items:center;width:29px;height:29px;border:2px solid var(--purple2);border-radius:50%;color:transparent;box-shadow:0 0 24px rgba(139,92,246,.55);margin-right:3px}.search{flex:1;min-width:140px;height:48px;border-radius:999px;border:1px solid var(--border);background:#14111d;color:var(--text);padding:0 20px;outline:none}.search:focus,input:focus,textarea:focus,select:focus{border-color:var(--purple2);box-shadow:0 0 0 4px rgba(139,92,246,.15);outline:none}.nav{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:14px}.nav a:hover{color:#fff}.shell{display:grid;grid-template-columns:260px 1fr;gap:24px;max-width:1500px;margin:0 auto;padding:24px}.shell.single{grid-template-columns:1fr;max-width:1200px}.sidebar{background:rgba(13,10,20,.72);border:1px solid var(--border);border-radius:22px;padding:16px;height:calc(100vh - 122px);position:sticky;top:94px}.side-title{text-transform:uppercase;color:var(--muted);letter-spacing:.14em;font-size:12px;margin:8px 8px 14px}.category-list{display:grid;gap:8px}.cat{display:flex;align-items:center;justify-content:space-between;padding:12px;border-radius:14px;color:#ece8ff;border-left:3px solid transparent}.cat:hover,.cat.active{background:rgba(139,92,246,.12);border-left-color:var(--purple2)}.cat b{background:rgba(139,92,246,.18);color:#d9ccff;border:1px solid rgba(139,92,246,.28);border-radius:999px;padding:3px 9px;font-size:12px}.content{min-width:0}.hero{display:flex;align-items:end;justify-content:space-between;gap:18px;background:linear-gradient(135deg,rgba(109,40,217,.24),rgba(20,17,29,.72));border:1px solid var(--border);border-radius:26px;padding:28px;margin-bottom:22px}.eyebrow{text-transform:uppercase;letter-spacing:.16em;color:#c4b5fd;font-size:12px;margin:0 0 8px}.hero h1{font-size:clamp(28px,4vw,52px);line-height:1.02;margin:0;max-width:850px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.pill,button{border:1px solid var(--border);background:#171326;color:#fff;border-radius:999px;padding:11px 15px;cursor:pointer;font:inherit}.pill.active,button:hover{background:var(--purple);border-color:var(--purple2)}.video-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px}.video-card{background:var(--card);border:1px solid var(--border);border-radius:18px;overflow:hidden;transition:.2s;display:block}.video-card:hover{transform:translateY(-4px);box-shadow:0 16px 38px rgba(109,40,217,.25);border-color:rgba(139,92,246,.55)}.thumb{aspect-ratio:16/9;background:linear-gradient(135deg,#1f1535,#0b0711);overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover;display:block}.video-card h3{font-size:16px;margin:12px 12px 5px;line-height:1.25}.video-card p{margin:0 12px 10px;color:var(--muted);font-size:13px}.tags{display:flex;gap:6px;flex-wrap:wrap;padding:0 12px 12px}.watch-main .tags{padding-left:0}.tags span{font-size:12px;color:#ddd6fe;background:rgba(139,92,246,.13);border:1px solid rgba(139,92,246,.22);border-radius:999px;padding:4px 8px}.watch-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px}.watch-main,.panel{background:rgba(20,17,29,.82);border:1px solid var(--border);border-radius:24px;padding:18px}.player{width:100%;aspect-ratio:16/9;background:#000;border-radius:18px;display:block}.watch-main h1{font-size:30px;margin:18px 0 10px}.watch-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:var(--muted);margin-bottom:14px}.description{color:#ddd;line-height:1.65}.watch-side{display:grid;gap:18px;align-content:start}.suggestions{display:grid;gap:12px}.ad{display:grid;place-items:center;text-align:center;min-height:260px;border:1px dashed rgba(139,92,246,.45);border-radius:20px;color:#c4b5fd;background:rgba(109,40,217,.08)}.small-ad{margin-top:18px;min-height:220px}.ad span{color:var(--muted);font-size:12px}.comments textarea,.panel textarea{min-height:95px}.comment{background:#100d19;border:1px solid var(--border);border-radius:14px;padding:12px;margin:10px 0;color:#eee}.comment small{display:block;color:var(--muted);margin-top:7px}.notice{padding:13px 15px;border-radius:14px;background:rgba(139,92,246,.16);border:1px solid rgba(139,92,246,.3);margin-bottom:16px}.hidden{display:none!important}.muted{color:var(--muted)}.auth-wrap{min-height:calc(100vh - 74px);display:grid;place-items:start center;padding:34px}.auth-wrap.wide{grid-template-columns:minmax(360px,520px) minmax(360px,720px);gap:22px;place-items:start center}.auth-panel{max-width:460px;width:100%}.panel h1,.panel h2{margin-top:0}.panel label{display:grid;gap:7px;margin:12px 0;color:var(--muted)}input,textarea,select{width:100%;background:#100d19;border:1px solid var(--border);border-radius:14px;color:#fff;padding:13px 14px;font:inherit}.secondary{background:#241a3a}.ghost{background:transparent}.danger{background:rgba(239,68,68,.18);border-color:rgba(239,68,68,.4)}.admin-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px;border:1px solid var(--border);background:#100d19;border-radius:15px;margin:10px 0}.admin-row small{color:var(--muted)}.subscription-box small{display:block;color:var(--muted);margin-top:10px}.meta-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:14px}@media(max-width:920px){.shell{grid-template-columns:1fr;padding:14px}.sidebar{position:static;height:auto}.watch-layout{grid-template-columns:1fr}.topbar{gap:10px;padding:0 12px}.nav{gap:8px}.brand{font-size:13px}.search{height:42px}.hero{align-items:start;flex-direction:column}.auth-wrap.wide{grid-template-columns:1fr}.video-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}}
.header-cats{display:flex;gap:10px;align-items:center}.language-select{background:#14111d;color:#f8f8f8;border:1px solid #2a2140;border-radius:999px;padding:9px 10px}.home-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin:18px 0}.home-tile{background:linear-gradient(135deg,rgba(109,40,217,.22),rgba(20,17,29,.9));border:1px solid #2a2140;border-radius:16px;padding:16px;text-decoration:none;color:#fff;box-shadow:0 10px 28px rgba(0,0,0,.18)}.home-tile strong{display:block;font-size:16px}.home-tile span{display:block;color:#b8b8b8;font-size:13px;margin-top:6px}.checks{display:grid;gap:8px;margin:12px 0}.checks label{display:flex;align-items:center;gap:8px;background:#100d18;border:1px solid #272038;border-radius:12px;padding:10px}.section-heading{grid-column:1/-1}.section-heading h2{margin:0 0 6px}.section-heading p{margin:0;color:#b8b8b8}

/* V12 homepage category-card layout */
.hero{padding:22px 28px;margin-bottom:18px;border-radius:22px}
.hero h1{font-size:clamp(30px,4.2vw,56px);letter-spacing:-.035em}
.home-tiles{grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:16px;margin:18px 0 20px}
.home-tile.category-card{padding:0;overflow:hidden;min-height:155px;display:block;background:#08060d;border-radius:6px;border:1px solid rgba(139,92,246,.28);box-shadow:none}
.category-thumb{position:relative;aspect-ratio:16/9;background:linear-gradient(135deg,#211235,#09060f);overflow:hidden}
.category-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s ease;filter:saturate(1.05) contrast(1.04)}
.home-tile.category-card:hover .category-thumb img{transform:scale(1.04)}
.cat-label{position:absolute;left:0;right:0;bottom:0;padding:9px 12px;font-weight:900;font-size:17px;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.75);background:linear-gradient(transparent,rgba(0,0,0,.86))}
.category-thumb b{position:absolute;right:8px;bottom:8px;background:linear-gradient(135deg,#6d28d9,#8b5cf6);border:1px solid rgba(255,255,255,.18);border-radius:3px;color:#fff;padding:4px 7px;font-size:12px;box-shadow:0 6px 16px rgba(0,0,0,.35)}
.empty-thumb{height:100%;display:grid;place-items:center;color:#c4b5fd;font-weight:900;text-transform:uppercase;letter-spacing:.08em;background:radial-gradient(circle at center,rgba(139,92,246,.22),rgba(12,7,18,.96))}
.header-cats a[href*="library" i]{display:none}
@media(max-width:920px){.home-tiles{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}.cat-label{font-size:14px}.hero{padding:18px}.hero h1{font-size:34px}}

/* V13: homepage shows category tiles only; video lists appear under New / All / Popular / Trending */
.section-heading{margin:8px 0 18px;display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap}
.section-heading h2{margin:0;font-size:28px;line-height:1.1}.section-heading p{margin:6px 0 0;color:var(--muted)}
.results-tools{display:flex;gap:12px;align-items:center}.results-tools label{color:var(--muted);font-size:14px;display:flex;align-items:center;gap:10px}.results-tools select{min-width:190px;padding:10px 12px;border-radius:999px}
.home-tiles{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin-bottom:22px}
.home-tile.category-card{min-height:auto;border-radius:8px}.category-thumb{aspect-ratio:16/9}.cat-label{font-size:16px}.empty-thumb{height:100%;display:grid;place-items:center;color:#d9ccff;background:linear-gradient(135deg,#211235,#09060f)}
@media(max-width:920px){.home-tiles{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}.section-heading{align-items:flex-start}.results-tools{width:100%}.results-tools label,.results-tools select{width:100%}}


/* V14 header, homepage category scale, and footer/legal pages */
.site-header{position:sticky;top:0;z-index:60;background:linear-gradient(180deg,rgba(12,8,24,.97),rgba(7,7,7,.94));border-bottom:1px solid var(--border);backdrop-filter:blur(18px)}
.header-main{display:grid;grid-template-columns:auto minmax(260px,460px) auto;align-items:center;gap:22px;max-width:1500px;margin:0 auto;padding:16px 24px 12px}.search-wrap{display:flex;align-items:center;gap:0}.search{flex:initial;width:100%;max-width:380px;height:42px;border-radius:0;border-top-left-radius:6px;border-bottom-left-radius:6px}.search-btn{height:42px;border-radius:0;border-top-right-radius:6px;border-bottom-right-radius:6px;background:var(--purple);padding:0 20px;font-weight:800}.header-right{display:flex;align-items:center;gap:12px;justify-content:end}.header-login{border:1px solid var(--border);border-radius:999px;padding:9px 13px;color:#fff;background:#171326}.header-nav{max-width:1500px;margin:0 auto;padding:0 24px 12px;justify-content:flex-start;gap:22px;overflow-x:auto;white-space:nowrap}.header-nav a,.header-cats a{color:#d8d2e8;font-weight:700}.header-nav a:hover,.header-cats a:hover{color:#fff}.topbar{display:none}.shell{padding-top:24px}.sidebar{top:132px}.home-tiles{grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:20px;margin-top:18px}.home-tile.category-card{min-height:210px;border-radius:2px;background:#050308;border-color:#160c27}.category-thumb{aspect-ratio:16/9}.category-thumb img{filter:saturate(1.05) contrast(1.05)}.cat-label{font-size:20px;font-weight:900;text-shadow:0 2px 12px #000}.category-thumb b{font-size:13px;padding:5px 9px;background:rgba(109,40,217,.94)}.home-tile.category-card:hover{box-shadow:0 0 0 2px rgba(139,92,246,.45),0 18px 44px rgba(109,40,217,.26);transform:translateY(-2px)}.section-heading h2{font-size:34px;text-transform:uppercase;letter-spacing:.01em;color:#fff}.site-footer{border-top:1px solid var(--border);background:#050408;margin-top:32px}.footer-inner{max-width:1500px;margin:0 auto;padding:28px 24px;display:flex;justify-content:space-between;gap:24px;align-items:flex-start;color:#c8c1d9}.footer-inner p{margin:8px 0 0;color:var(--muted);max-width:520px}.footer-links{display:flex;gap:12px 18px;flex-wrap:wrap;justify-content:flex-end}.footer-links a{color:#ddd6fe;font-size:13px}.footer-links a:hover{color:#fff}.legal-shell{max-width:960px;margin:0 auto;padding:34px 24px}.legal-card{background:rgba(20,17,29,.82);border:1px solid var(--border);border-radius:24px;padding:26px}.legal-card h1{margin-top:0;font-size:38px}.legal-card p,.legal-card li{color:#d9d6e4;line-height:1.65}.legal-card textarea{min-height:150px}.form-grid{display:grid;gap:14px;margin-top:18px}.form-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.small-note{font-size:13px;color:var(--muted)}@media(max-width:920px){.header-main{grid-template-columns:1fr;gap:12px;padding:14px}.search-wrap{width:100%}.search{max-width:none}.header-right{justify-content:space-between}.header-nav{padding:0 14px 12px;gap:16px}.home-tiles{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}.home-tile.category-card{min-height:150px}.footer-inner{display:block}.footer-links{justify-content:flex-start;margin-top:18px}.sidebar{top:0}}

/* V15: category listing pages and portal-style footer */
body.listing-mode .hero, body.listing-mode #homeTiles{display:none!important}
body.listing-mode .content{background:rgba(0,0,80,.18);border-radius:0}
.listing-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}.listing-head h2{font-size:34px;text-transform:uppercase;color:#f8e900;margin:0;letter-spacing:.01em}.result-badge{background:#171326;border:1px solid rgba(139,92,246,.4);border-radius:4px;padding:5px 10px;color:#d9ccff;font-weight:800}.listing-controls{display:flex;gap:14px;align-items:center;flex-wrap:wrap;color:#ddd6fe;font-size:14px;margin:8px 0 18px}.listing-controls b{color:#f8e900}.listing-controls select{width:auto;min-width:120px;padding:6px 28px 6px 9px;border-radius:4px;background:#08006d;color:#fff;border:1px solid #2b4dff}.pager,.bottom-pager .pager{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;margin:18px 0 22px}.page-num,.page-ellipsis{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 9px;border:1px solid #4769ff;background:#08006d;color:#fff;font-weight:800;border-radius:2px}.page-num.active,.page-num:hover{background:#1b58ff;border-color:#89a4ff}.page-num.next{min-width:58px}.video-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}.video-card{border-radius:3px;background:#06006b;border-color:#08006d}.video-card h3{font-size:16px;margin:9px 0 4px;padding:0 0;color:#fff}.video-card p{margin:0 0 10px;color:#7db0ff}.video-card .tags{display:none}.video-card .thumb{border-radius:0}.video-card:hover{box-shadow:none;border-color:#2b4dff;transform:none}.portal-footer{background:#020024;border-top:1px solid rgba(139,92,246,.25);margin-top:0;text-align:center}.portal-footer .footer-inner{display:block;max-width:980px;padding:40px 24px;color:#e8e4ff}.portal-footer h2{font-size:26px;margin:0 0 14px;color:#fff;font-weight:800}.portal-footer p{margin:8px auto;color:#d6d0e8;max-width:760px;font-size:13px;line-height:1.5}.portal-footer .footer-contact{font-size:13px}.portal-footer a{color:#fff;text-decoration:underline}.portal-footer .footer-links{justify-content:center;display:flex;margin:14px 0 8px;gap:6px 12px}.portal-footer .footer-links a{font-size:12px;color:#ddd6fe;text-decoration:none}.portal-footer .footer-links a:hover{text-decoration:underline;color:#fff}.portal-footer small{display:block;color:#9d93bd;font-size:11px;margin-top:10px}@media(max-width:920px){.listing-head h2{font-size:28px}.listing-controls{align-items:stretch}.listing-controls label{width:100%}.listing-controls select{width:100%}.video-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}}

.icon-count{display:inline-flex;align-items:center;gap:8px;min-width:72px;justify-content:center}.icon-count .heart{font-size:18px;line-height:1}.icon-count.active{background:rgba(139,92,246,.2);border-color:rgba(139,92,246,.65);color:#fff}.icon-count.active .heart{color:#ff5ea8}.view-count{display:inline-flex;align-items:center;color:var(--muted);padding:0 4px}#favBtn.active{background:rgba(139,92,246,.2);border-color:rgba(139,92,246,.65);color:#fff}


/* V17: polished purple/black header, listing colors, and admin checkbox fixes */
.site-header{
  background:linear-gradient(180deg,rgba(8,5,15,.98),rgba(6,4,10,.96));
  border-bottom:1px solid rgba(139,92,246,.22);
  box-shadow:0 12px 35px rgba(0,0,0,.32);
}
.header-main{
  grid-template-columns:auto minmax(260px,420px) auto;
  gap:18px;
  padding:14px 24px 10px;
}
.brand{font-size:15px;color:#fff;text-shadow:0 0 18px rgba(139,92,246,.26)}
.search-wrap{max-width:520px;justify-self:center;width:100%}
.search{max-width:none;height:40px;background:#130f1d;border-color:#2b2141;border-top-left-radius:8px;border-bottom-left-radius:8px;font-size:15px}
.search-btn{height:40px;background:linear-gradient(135deg,#6d28d9,#8b5cf6);border-color:#8b5cf6;border-top-right-radius:8px;border-bottom-right-radius:8px;box-shadow:0 10px 24px rgba(109,40,217,.2)}
.header-right{gap:10px;min-width:150px}
.language-select{width:72px!important;min-width:72px!important;max-width:72px!important;height:38px;padding:0 9px;border-radius:10px;background:#120e1c;border:1px solid #2a2140;color:#f8f8f8;font-weight:800}
.header-login{height:38px;display:inline-flex;align-items:center;border-radius:999px;background:#181225;border-color:#31244d;padding:0 14px;font-weight:800}
.header-nav{padding:0 24px 12px;gap:18px;border-top:1px solid rgba(139,92,246,.08)}
.header-nav a,.header-cats a{padding-top:10px;color:#cfc7df;font-size:14px;font-weight:850}
.header-nav a:hover,.header-cats a:hover{color:#fff;text-shadow:0 0 14px rgba(139,92,246,.45)}

/* Replace the reference-site blue/yellow listing palette with Lustomatic velvet purple */
body.listing-mode .content{background:linear-gradient(180deg,rgba(109,40,217,.10),rgba(7,7,7,.02));border:1px solid rgba(139,92,246,.10);border-radius:14px;padding:18px}
.listing-head h2{color:#f7f2ff;text-shadow:0 0 18px rgba(139,92,246,.20)}
.result-badge{background:rgba(139,92,246,.16);border-color:rgba(139,92,246,.42);color:#e9ddff;border-radius:999px}
.listing-controls{color:#d9ccff}.listing-controls b{color:#c4b5fd}.listing-controls select{background:#120e1c;color:#fff;border:1px solid #3b2b5f;border-radius:10px}
.page-num,.page-ellipsis{background:#151022;border:1px solid rgba(139,92,246,.42);color:#eee6ff;border-radius:8px}.page-num.active,.page-num:hover{background:linear-gradient(135deg,#6d28d9,#8b5cf6);border-color:#b197ff;color:#fff}
.video-card{background:#100b19;border-color:#251d35;border-radius:10px;overflow:hidden}.video-card:hover{border-color:rgba(139,92,246,.65);box-shadow:0 14px 34px rgba(109,40,217,.22)}
.video-card p{color:#a99ed0}.video-card h3{color:#fff;padding:0 10px}.video-card p{padding:0 10px}

/* Admin checkboxes: global input width was stretching these out */
.checks{display:grid;gap:10px;margin:12px 0}.checks label{display:flex!important;align-items:center!important;gap:10px;background:#100d18;border:1px solid #272038;border-radius:12px;padding:11px 12px;color:#ddd6fe}.checks input[type="checkbox"]{width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;margin:0!important;accent-color:#8b5cf6;box-shadow:none!important}.checks label span{display:inline-block}

@media(max-width:920px){.header-main{grid-template-columns:1fr;gap:10px}.search-wrap{justify-self:stretch}.header-right{justify-content:space-between}.language-select{width:68px!important;min-width:68px!important}.header-nav{gap:14px}}

/* V21: show full category inventory and full-width header category row */
.header-nav{
  display:flex!important;
  align-items:center;
  flex-wrap:wrap!important;
  width:100%;
  max-width:1500px;
  overflow:visible!important;
  white-space:normal!important;
  row-gap:8px;
}
.header-cats{
  display:flex!important;
  align-items:center;
  flex-wrap:wrap!important;
  flex:1 1 auto;
  gap:8px 14px;
  min-width:0;
  width:auto;
}
.header-cats a{
  display:inline-flex;
  white-space:nowrap;
  padding:7px 0;
}
.home-tiles{
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr))!important;
  align-items:stretch;
}
.category-list{
  max-height:none!important;
  overflow:visible!important;
}
.sidebar{
  overflow:visible!important;
}
@media(max-width:920px){
  .header-nav{overflow-x:auto!important;flex-wrap:nowrap!important;white-space:nowrap!important;padding-bottom:12px}
  .header-cats{flex-wrap:nowrap!important;width:max-content;flex:0 0 auto}
  .home-tiles{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))!important}
}

/* V22: keep left category pane contained between header and footer */
.sidebar{
  height:auto!important;
  max-height:calc(100vh - 154px)!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  position:sticky!important;
  top:132px!important;
}
.sidebar .side-title{
  flex:0 0 auto;
  margin:6px 8px 10px!important;
}
.category-list{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-right:6px;
  scrollbar-width:thin;
  scrollbar-color:rgba(139,92,246,.65) rgba(13,10,20,.45);
}
.category-list::-webkit-scrollbar{width:8px}
.category-list::-webkit-scrollbar-track{background:rgba(13,10,20,.45);border-radius:999px}
.category-list::-webkit-scrollbar-thumb{background:rgba(139,92,246,.65);border-radius:999px}
.category-list::-webkit-scrollbar-thumb:hover{background:rgba(139,92,246,.9)}
.category-list .cat{
  padding:8px 10px!important;
  border-radius:10px!important;
  min-height:34px;
  font-size:13px;
}
.category-list .cat b{
  font-size:11px!important;
  padding:2px 7px!important;
}
@media(max-width:920px){
  .sidebar{
    position:static!important;
    max-height:340px!important;
    overflow:hidden!important;
  }
  .category-list{overflow-y:auto!important;max-height:285px!important}
}

/* V23: symmetrical left category pane + right-side ad rail */
.shell.with-ads{
  grid-template-columns:260px minmax(0,1fr) 240px!important;
  align-items:stretch!important;
  max-width:1680px!important;
}
.shell.with-ads .sidebar{
  position:relative!important;
  top:auto!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  display:block!important;
  align-self:stretch!important;
  min-height:100%!important;
}
.shell.with-ads .category-list{
  max-height:none!important;
  overflow:visible!important;
  padding-right:0!important;
}
.shell.with-ads .category-list .cat{
  padding:9px 10px!important;
  min-height:36px;
}
.right-ad-rail{
  display:grid;
  gap:18px;
  align-content:start;
  align-self:stretch;
}
.right-ad-rail .rail-ad{
  min-height:250px;
  border-radius:16px;
  background:linear-gradient(180deg,rgba(139,92,246,.12),rgba(20,17,29,.68));
  border:1px dashed rgba(139,92,246,.45);
  position:sticky;
  top:136px;
}
.right-ad-rail .rail-ad:not(:first-child){position:relative;top:auto}
.right-ad-rail .rail-ad.tall{min-height:520px}
.sidebar .small-ad{display:none!important}
body.watch-mode .right-ad-rail{display:none!important}
body.watch-mode .shell.with-ads{grid-template-columns:260px minmax(0,1fr)!important;max-width:1500px!important}
@media(max-width:1180px){
  .shell.with-ads{grid-template-columns:230px minmax(0,1fr)!important;max-width:1200px!important}
  .right-ad-rail{display:none!important}
}
@media(max-width:920px){
  .shell.with-ads{grid-template-columns:1fr!important}
  .shell.with-ads .sidebar{position:static!important;max-height:none!important;overflow:visible!important}
  .shell.with-ads .category-list{max-height:none!important;overflow:visible!important}
}

/* V24: full-height category/sidebar balance + extended right ad inventory */
.shell.with-ads{
  grid-template-columns:260px minmax(0,1fr) 260px!important;
  align-items:start!important;
}
.shell.with-ads .sidebar{
  align-self:start!important;
  min-height:auto!important;
  height:max-content!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,rgba(13,10,20,.92),rgba(10,7,16,.86));
  box-shadow:0 16px 34px rgba(0,0,0,.22);
}
.shell.with-ads .category-list{
  overflow:visible!important;
  max-height:none!important;
  display:grid!important;
  gap:7px!important;
}
.shell.with-ads .category-list .cat{
  min-height:34px!important;
  padding:8px 10px!important;
}
.right-ad-rail{
  display:flex!important;
  flex-direction:column!important;
  gap:18px!important;
  align-self:start!important;
  min-height:100%;
}
.right-ad-rail .primary-ad{
  position:sticky!important;
  top:136px!important;
  z-index:2;
  min-height:250px!important;
  box-shadow:0 14px 32px rgba(0,0,0,.22);
}
.rail-ad-stack{
  display:grid;
  gap:18px;
  align-content:start;
}
.rail-ad-stack .rail-ad{
  position:relative!important;
  top:auto!important;
}
.right-ad-rail .rail-ad{
  width:100%;
}
.right-ad-rail .rail-ad.tall{min-height:600px!important}
.right-ad-rail .rail-ad:not(.tall){min-height:250px!important}
body.watch-mode .right-ad-rail{display:none!important}
body.watch-mode .shell.with-ads{grid-template-columns:220px minmax(0,1fr) 220px!important;max-width:1680px!important}
.watch-page-layout{display:grid;grid-template-columns:220px minmax(0,1fr) 220px;gap:18px;align-items:start}.watch-page-layout .watch-ad-col{display:grid;gap:18px}.watch-page-layout .watch-ad-col .ad{min-height:300px}.watch-page-layout .watch-ad-col .ad.tall{min-height:600px}.watch-core{min-width:0}.watch-suggested-block{margin:22px 0}.watch-suggested-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
@media(max-width:1180px){.shell.with-ads{grid-template-columns:230px minmax(0,1fr)!important;max-width:1200px!important}.right-ad-rail{display:none!important}.watch-page-layout{grid-template-columns:1fr}.watch-ad-col{display:none!important}}
@media(max-width:920px){.shell.with-ads .sidebar{height:auto!important}.shell.with-ads .category-list{overflow:visible!important;max-height:none!important}.watch-page-layout{grid-template-columns:1fr}}

/* V25: fixed ad rails + left ad inventory under categories */
.right-ad-rail .primary-ad,
.right-ad-rail .rail-ad,
.rail-ad-stack .rail-ad{
  position:relative!important;
  top:auto!important;
  z-index:auto!important;
}
.right-ad-rail{
  position:relative!important;
  align-self:start!important;
}
.left-ad-stack{
  display:grid;
  gap:18px;
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid rgba(139,92,246,.18);
}
.left-ad-stack .side-ad{
  min-height:250px;
  border-radius:16px;
  background:linear-gradient(180deg,rgba(139,92,246,.10),rgba(20,17,29,.68));
  border:1px dashed rgba(139,92,246,.38);
}
.left-ad-stack .side-ad.tall{min-height:520px;}
.shell.with-ads .sidebar{
  height:auto!important;
  min-height:100%!important;
  align-self:stretch!important;
}
body.watch-mode .left-ad-stack{display:none!important;}
@media(max-width:1180px){.left-ad-stack{display:none!important;}}

/* V26: wider watch page + 3-column category/listing grids */
body.watch-mode .shell.with-ads{
  grid-template-columns:minmax(0,1fr)!important;
  max-width:1900px!important;
  padding-left:28px!important;
  padding-right:28px!important;
}
body.watch-mode .shell.with-ads > .sidebar,
body.watch-mode .right-ad-rail{
  display:none!important;
}
body.watch-mode .content{
  width:100%!important;
}
body.watch-mode .watch-page-layout{
  grid-template-columns:170px minmax(760px,1fr) 170px!important;
  gap:20px!important;
  max-width:1780px!important;
  margin:0 auto!important;
}
body.watch-mode .watch-main{
  padding:20px!important;
}
body.watch-mode .player{
  width:100%!important;
  aspect-ratio:16/9!important;
  border-radius:16px!important;
}
body.watch-mode .watch-ad-col .ad{
  min-height:260px!important;
}
body.watch-mode .watch-ad-col .ad.tall{
  min-height:520px!important;
}
body.watch-mode .watch-suggested-grid{
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr))!important;
}
body.listing-mode .video-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:20px!important;
}
body.listing-mode .video-card .thumb{
  aspect-ratio:16/9!important;
}
@media(max-width:1280px){
  body.watch-mode .watch-page-layout{grid-template-columns:140px minmax(0,1fr) 140px!important;gap:14px!important;}
  body.watch-mode .watch-ad-col .ad{min-height:220px!important;}
  body.listing-mode .video-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;}
}
@media(max-width:1050px){
  body.watch-mode .watch-page-layout{grid-template-columns:1fr!important;}
  body.watch-mode .watch-ad-col{display:none!important;}
  body.listing-mode .video-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:640px){
  body.watch-mode .shell.with-ads{padding-left:12px!important;padding-right:12px!important;}
  body.listing-mode .video-grid{grid-template-columns:1fr!important;}
}

/* V27: full-length ad rails, balanced sidebar, centered watch player */
.shell.with-ads{
  grid-template-columns:280px minmax(0,1fr) 280px!important;
  max-width:1880px!important;
  align-items:stretch!important;
}
.shell.with-ads .sidebar{
  align-self:stretch!important;
  min-height:100%!important;
  height:auto!important;
  display:flex!important;
  flex-direction:column!important;
}
.shell.with-ads .category-list{
  overflow:visible!important;
  max-height:none!important;
}
.left-ad-stack{
  margin-top:22px!important;
  padding-top:22px!important;
  display:grid!important;
  gap:18px!important;
}
.left-ad-stack .side-ad{min-height:250px!important;}
.left-ad-stack .side-ad.tall{min-height:600px!important;}
.right-ad-rail{
  align-self:stretch!important;
  display:grid!important;
  grid-auto-rows:max-content!important;
  gap:18px!important;
  height:100%!important;
}
.right-ad-rail .rail-ad{min-height:250px!important;position:relative!important;top:auto!important;}
.right-ad-rail .rail-ad.tall{min-height:600px!important;}
body.listing-mode .right-ad-rail{display:grid!important;}
body.listing-mode .left-ad-stack{display:grid!important;}

/* Watch page: reduce tunnel effect and center player proportionally */
body.watch-mode .shell.with-ads{
  grid-template-columns:minmax(0,1fr)!important;
  max-width:1760px!important;
  padding-left:28px!important;
  padding-right:28px!important;
}
body.watch-mode .watch-page-layout{
  grid-template-columns:150px minmax(0,1120px) 150px!important;
  justify-content:center!important;
  align-items:start!important;
  gap:22px!important;
  max-width:1500px!important;
  margin:0 auto!important;
}
body.watch-mode .watch-main{
  padding:18px!important;
  margin:0 auto!important;
  max-width:1120px!important;
}
body.watch-mode .player{
  width:100%!important;
  aspect-ratio:16/9!important;
  max-height:68vh!important;
  object-fit:contain!important;
  background:#000!important;
  border-radius:16px!important;
}
body.watch-mode .watch-ad-col{
  gap:18px!important;
}
body.watch-mode .watch-ad-col .ad{
  min-height:230px!important;
  border-radius:16px!important;
}
body.watch-mode .watch-ad-col .ad.tall{
  min-height:520px!important;
}
body.watch-mode .watch-suggested-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
}

/* Admin ad inventory */
.ad-inventory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:14px 0}.ad-inventory-card{background:#100d19;border:1px solid var(--border);border-radius:16px;padding:14px}.ad-inventory-card strong{display:block;font-size:22px;margin-top:8px}.ad-slot-list{display:grid;gap:8px;margin-top:12px}.ad-slot-row{display:flex;justify-content:space-between;gap:12px;background:#100d19;border:1px solid var(--border);border-radius:12px;padding:10px;color:#ddd6fe}.ad-slot-row span:last-child{color:#c4b5fd;font-weight:800}

@media(max-width:1280px){
  .shell.with-ads{grid-template-columns:250px minmax(0,1fr)!important;max-width:1320px!important;}
  .right-ad-rail{display:none!important;}
  body.watch-mode .watch-page-layout{grid-template-columns:120px minmax(0,1fr) 120px!important;max-width:1260px!important;}
}
@media(max-width:1050px){
  body.watch-mode .watch-page-layout{grid-template-columns:1fr!important;}
  body.watch-mode .watch-ad-col{display:none!important;}
  body.watch-mode .watch-suggested-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:920px){
  .shell.with-ads{grid-template-columns:1fr!important;}
  .left-ad-stack,.right-ad-rail{display:none!important;}
}
@media(max-width:640px){
  body.watch-mode .watch-suggested-grid{grid-template-columns:1fr!important;}
}

/* V28: refined homepage/listing rails + centered watch experience */
.shell.with-ads{
  grid-template-columns:230px minmax(0,1fr) 260px!important;
  max-width:1800px!important;
  gap:20px!important;
  align-items:start!important;
}
.shell.with-ads .sidebar{
  padding:14px!important;
  border-radius:16px!important;
  min-width:0!important;
}
.shell.with-ads .category-list .cat{
  padding:7px 9px!important;
  min-height:32px!important;
  font-size:12.5px!important;
}
.shell.with-ads .category-list .cat b{
  font-size:10.5px!important;
  padding:2px 6px!important;
}
body:not(.listing-mode):not(.watch-mode) .home-tiles{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
}
body:not(.listing-mode):not(.watch-mode) .home-tile.category-card{
  min-height:185px!important;
}
.right-ad-rail,
.rail-ad-stack,
.left-ad-stack{
  display:grid!important;
  gap:18px!important;
  align-content:start!important;
}
.right-ad-rail{
  align-self:stretch!important;
  min-height:100%!important;
}
.right-ad-rail .primary-ad,
.right-ad-rail .rail-ad,
.rail-ad-stack .rail-ad,
.left-ad-stack .side-ad{
  position:relative!important;
  top:auto!important;
  width:100%!important;
  border-radius:16px!important;
}
.right-ad-rail .rail-ad:not(.tall),
.left-ad-stack .side-ad:not(.tall){min-height:250px!important;}
.right-ad-rail .rail-ad.tall,
.left-ad-stack .side-ad.tall{min-height:600px!important;}
.left-ad-stack{
  margin-top:18px!important;
  padding-top:18px!important;
  border-top:1px solid rgba(139,92,246,.18)!important;
}
body.listing-mode .right-ad-rail,
body.listing-mode .left-ad-stack{display:grid!important;}
body.listing-mode .video-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
}
body.watch-mode .shell.with-ads{
  max-width:1580px!important;
  padding:20px 24px!important;
}
body.watch-mode .watch-page-layout{
  grid-template-columns:130px minmax(0,960px) 130px!important;
  gap:18px!important;
  max-width:1240px!important;
  justify-content:center!important;
  margin:0 auto!important;
}
body.watch-mode .watch-core{max-width:960px!important;margin:0 auto!important;width:100%!important;}
body.watch-mode .watch-main{
  max-width:960px!important;
  padding:16px!important;
  margin:0 auto!important;
}
body.watch-mode .player{
  aspect-ratio:16/9!important;
  max-height:56vh!important;
  object-fit:contain!important;
  background:#000!important;
}
.watch-category-header{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 12px;
  color:var(--muted);
  font-size:13px;
}
.watch-category-header .mini-link{
  color:#ddd6fe;
  border:1px solid rgba(139,92,246,.28);
  background:rgba(139,92,246,.10);
  border-radius:999px;
  padding:5px 9px;
  font-weight:800;
}
.watch-category-header .mini-link:hover{background:rgba(139,92,246,.22);color:#fff;}
.watch-category-header .mini-current{
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#f6f0ff;
}
body.watch-mode .watch-main h1{
  font-size:clamp(20px,2.2vw,28px)!important;
  margin:14px 0 10px!important;
  line-height:1.2!important;
}
body.watch-mode .watch-ad-col .ad{min-height:220px!important;font-size:13px!important;}
body.watch-mode .watch-ad-col .ad.tall{min-height:460px!important;}
body.watch-mode .watch-suggested-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
@media(max-width:1380px){
  .shell.with-ads{grid-template-columns:220px minmax(0,1fr) 230px!important;gap:16px!important;}
  body.watch-mode .watch-page-layout{grid-template-columns:110px minmax(0,900px) 110px!important;}
}
@media(max-width:1180px){
  .shell.with-ads{grid-template-columns:220px minmax(0,1fr)!important;max-width:1280px!important;}
  .right-ad-rail{display:none!important;}
  body:not(.listing-mode):not(.watch-mode) .home-tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body.watch-mode .watch-page-layout{grid-template-columns:1fr!important;max-width:960px!important;}
  body.watch-mode .watch-ad-col{display:none!important;}
}
@media(max-width:920px){
  .shell.with-ads{grid-template-columns:1fr!important;}
  .left-ad-stack,.right-ad-rail{display:none!important;}
  body:not(.listing-mode):not(.watch-mode) .home-tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body.listing-mode .video-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:640px){
  body:not(.listing-mode):not(.watch-mode) .home-tiles,
  body.listing-mode .video-grid,
  body.watch-mode .watch-suggested-grid{grid-template-columns:1fr!important;}
}

/* V29: refined ad rail coverage + balanced watch player */
body:not(.watch-mode) .right-ad-rail,
body:not(.watch-mode) .rail-ad-stack,
body:not(.watch-mode) .left-ad-stack{
  display:grid!important;
  gap:18px!important;
  align-content:start!important;
}
body:not(.watch-mode) .right-ad-rail .ad,
body:not(.watch-mode) .left-ad-stack .ad{
  width:100%!important;
  position:relative!important;
  top:auto!important;
}
body.watch-mode .watch-page-layout{
  grid-template-columns:180px minmax(0,980px) 180px!important;
  gap:22px!important;
  max-width:1420px!important;
  justify-content:center!important;
  align-items:start!important;
}
body.watch-mode .watch-core,
body.watch-mode .watch-main{
  max-width:980px!important;
  width:100%!important;
}
body.watch-mode .player{
  aspect-ratio:16/9!important;
  max-height:58vh!important;
  object-fit:contain!important;
  background:#000!important;
  margin:0 auto!important;
}
body.watch-mode .watch-ad-col .ad{
  min-height:250px!important;
  border-radius:18px!important;
}
body.watch-mode .watch-ad-col .ad.tall{
  min-height:520px!important;
}
body.watch-mode .watch-actions{
  margin-top:8px!important;
}
body.watch-mode .watch-suggested-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
@media(max-width:1380px){
  body.watch-mode .watch-page-layout{grid-template-columns:150px minmax(0,920px) 150px!important;gap:18px!important;}
}
@media(max-width:1180px){
  body.watch-mode .watch-page-layout{grid-template-columns:1fr!important;max-width:960px!important;}
  body.watch-mode .watch-ad-col{display:none!important;}
}

/* V31: tighten watch page vertical spacing */
body.watch-mode .hero,
body.watch-mode .hero-actions,
body.watch-mode .eyebrow{
  display:none!important;
}
body.watch-mode .shell.with-ads{
  padding-top:14px!important;
}
body.watch-mode .content{
  padding-top:0!important;
}
body.watch-mode #sectionHeading{
  margin:0!important;
  padding:0!important;
}
body.watch-mode .watch-page-layout{
  margin-top:0!important;
}
body.watch-mode .watch-main{
  padding-top:16px!important;
}
body.watch-mode .watch-category-header{
  margin:0 0 12px!important;
  padding:0!important;
}
body.watch-mode .player{
  max-height:68vh!important;
  margin-top:0!important;
}
body.watch-mode .watch-main h1{
  margin-top:14px!important;
}


/* V32: category listing ad rail coverage + trimmed watch player */
body.listing-mode .right-ad-rail,
body.listing-mode .rail-ad-stack{
  align-self:stretch!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
}
body.listing-mode .rail-ad-stack .ad,
body.listing-mode .right-ad-rail .ad{
  flex:0 0 auto!important;
}
body.watch-mode .player{
  max-height:52vh!important;
  aspect-ratio:16/9!important;
}
body.watch-mode .watch-main{
  padding-top:12px!important;
}
body.watch-mode .watch-main h1{
  margin-top:10px!important;
  font-size:clamp(20px,2vw,26px)!important;
}
body.watch-mode .watch-category-header{
  margin-bottom:8px!important;
}
body.watch-mode .watch-actions{
  margin-top:6px!important;
}
@media(max-height:820px){
  body.watch-mode .player{max-height:48vh!important;}
}

/* V33: Admin control panel cleanup */
.admin-shell{max-width:1320px;margin:0 auto;padding:24px}.admin-login-panel{max-width:560px}.admin-console{display:block;width:100%}.admin-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}.tab-btn{border-radius:999px;padding:10px 14px;background:#120f1c;border:1px solid var(--border);color:#ddd6fe}.tab-btn.active{background:linear-gradient(135deg,var(--purple),var(--deep));border-color:var(--purple2);color:#fff}.admin-tab{display:none}.admin-tab.active{display:block}.admin-stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:18px}.stat-card{background:rgba(20,17,29,.88);border:1px solid var(--border);border-radius:18px;padding:18px}.stat-card span{display:block;color:var(--muted);font-size:13px}.stat-card strong{font-size:30px;display:block;margin-top:6px}.compact-panel{padding:18px!important;margin-bottom:18px}.admin-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.admin-filter-row{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:10px;margin:12px 0 16px}.admin-table{display:grid;gap:10px}.admin-table-row{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:12px;align-items:center;background:#100d19;border:1px solid var(--border);border-radius:16px;padding:10px}.admin-table-row small{display:block;color:var(--muted);margin-top:4px;line-height:1.45}.admin-thumb{width:72px;aspect-ratio:16/9;background:#08060d;border-radius:10px;overflow:hidden;border:1px solid var(--border)}.admin-thumb img{width:100%;height:100%;object-fit:cover;display:block}.admin-row-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.admin-check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:12px 0}.admin-check-grid label{display:flex!important;align-items:center;gap:8px;margin:0!important;background:#100d19;border:1px solid var(--border);border-radius:14px;padding:11px;color:#ddd6fe}.admin-check-grid input{width:auto!important}.ad-inventory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}.ad-inventory-card{background:#100d19;border:1px solid var(--border);border-radius:16px;padding:16px}.ad-inventory-card strong{font-size:28px;display:block;margin:4px 0}.r2-help{background:rgba(139,92,246,.10);border:1px solid rgba(139,92,246,.24);border-radius:16px;padding:14px;margin-bottom:14px;color:#ddd6fe}.admin-note{font-size:13px;color:var(--muted)}@media(max-width:860px){.admin-filter-row{grid-template-columns:1fr}.admin-table-row{grid-template-columns:1fr}.admin-thumb{width:100%;max-width:180px}.admin-row-actions{justify-content:flex-start}}


/* V34: watch page header trim, better player proportion, and stronger category ad rail coverage */
body.watch-mode .header-cats{display:none!important;}
body.watch-mode .header-nav{
  flex-wrap:nowrap!important;
  overflow-x:auto!important;
  padding-top:4px!important;
  padding-bottom:8px!important;
  min-height:auto!important;
}
body.watch-mode .header-main{
  padding-top:10px!important;
  padding-bottom:8px!important;
}
body.watch-mode .shell.with-ads{
  padding-top:10px!important;
}
body.watch-mode .watch-page-layout{
  grid-template-columns:190px minmax(0,1040px) 190px!important;
  gap:22px!important;
  max-width:1500px!important;
}
body.watch-mode .watch-core,
body.watch-mode .watch-main{
  max-width:1040px!important;
}
body.watch-mode .player{
  aspect-ratio:16/9!important;
  max-height:60vh!important;
  min-height:360px!important;
}
body.watch-mode .watch-main h1{
  margin-top:9px!important;
  margin-bottom:7px!important;
  font-size:clamp(20px,1.85vw,25px)!important;
  line-height:1.15!important;
}
body.watch-mode .watch-category-header{
  margin-bottom:6px!important;
  font-size:12px!important;
}
body.watch-mode .watch-actions{
  margin-top:4px!important;
  margin-bottom:10px!important;
}
body.listing-mode .right-ad-rail,
body.listing-mode .rail-ad-stack{
  display:grid!important;
  align-content:start!important;
  align-self:start!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
}
body.listing-mode .right-ad-rail .primary-ad,
body.listing-mode .rail-ad-stack .ad{
  width:100%!important;
  position:relative!important;
  top:auto!important;
}
@media(max-width:1380px){
  body.watch-mode .watch-page-layout{grid-template-columns:160px minmax(0,960px) 160px!important;gap:18px!important;}
  body.watch-mode .player{min-height:320px!important;max-height:58vh!important;}
}
@media(max-width:1180px){
  body.watch-mode .watch-page-layout{grid-template-columns:1fr!important;max-width:980px!important;}
  body.watch-mode .watch-ad-col{display:none!important;}
  body.watch-mode .player{min-height:0!important;max-height:none!important;}
}

/* V35 R2 importer additions */
.button-link{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:12px;background:linear-gradient(135deg,#7c3aed,#4c1d95);color:#fff;text-decoration:none;font-weight:800;border:1px solid rgba(255,255,255,.12);box-shadow:0 12px 30px rgba(124,58,237,.18)}
.code-block{background:#090714;border:1px solid rgba(168,85,247,.22);border-radius:14px;padding:16px;overflow:auto;color:#f4eaff;line-height:1.55}

/* V36: video-page two-row header + taller balanced player */
body.watch-mode .site-header{
  position:sticky;
  top:0;
  z-index:80;
}
body.watch-mode .header-main{
  padding-top:8px!important;
  padding-bottom:7px!important;
}
body.watch-mode .header-nav{
  display:flex!important;
  flex-wrap:nowrap!important;
  overflow-x:auto!important;
  white-space:nowrap!important;
  padding-top:4px!important;
  padding-bottom:7px!important;
  max-height:42px!important;
}
body.watch-mode .header-cats{
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:16px!important;
  width:max-content!important;
  flex:0 0 auto!important;
}
body.watch-mode .header-cats a{
  display:inline-flex!important;
  align-items:center!important;
  white-space:nowrap!important;
}
body.watch-mode .shell.with-ads{
  padding-top:8px!important;
}
body.watch-mode .watch-page-layout{
  grid-template-columns:190px minmax(0,1060px) 190px!important;
  gap:22px!important;
  max-width:1520px!important;
}
body.watch-mode .watch-main{
  padding:14px!important;
}
body.watch-mode .watch-category-header{
  margin:0 0 5px!important;
  font-size:12px!important;
  line-height:1.2!important;
}
body.watch-mode .player{
  aspect-ratio:16/9!important;
  width:100%!important;
  min-height:390px!important;
  max-height:62vh!important;
  object-fit:contain!important;
}
body.watch-mode .watch-main h1{
  margin-top:8px!important;
  margin-bottom:6px!important;
  font-size:clamp(20px,1.9vw,26px)!important;
  line-height:1.12!important;
}
body.watch-mode .watch-actions{
  margin-top:3px!important;
  margin-bottom:9px!important;
}
@media(max-height:820px){
  body.watch-mode .player{max-height:56vh!important;min-height:330px!important;}
  body.watch-mode .header-nav{max-height:38px!important;padding-bottom:5px!important;}
}
@media(max-width:1180px){
  body.watch-mode .watch-page-layout{grid-template-columns:1fr!important;max-width:980px!important;}
  body.watch-mode .watch-ad-col{display:none!important;}
  body.watch-mode .player{min-height:0!important;max-height:none!important;}
}

/* V37: slightly taller watch-page video player; header unchanged */
body.watch-mode .player{
  min-height:440px!important;
  max-height:66vh!important;
}
@media(max-height:820px){
  body.watch-mode .player{min-height:370px!important;max-height:60vh!important;}
}
@media(max-width:1180px){
  body.watch-mode .player{min-height:0!important;max-height:none!important;}
}

/* V39 admin repair helpers */
.bulk-actions{display:flex;align-items:center;gap:12px;margin:10px 0 14px;flex-wrap:wrap}
.video-admin-row{grid-template-columns:28px 74px minmax(0,1fr) auto;align-items:center}
.video-admin-row .admin-video-meta{min-width:0}
.admin-badges{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.bad-badge{display:inline-flex;align-items:center;border:1px solid rgba(251,191,36,.35);background:rgba(251,191,36,.08);color:#fde68a;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:700}
.video-select{width:16px;height:16px;accent-color:#8b5cf6}
.admin-thumb span{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:#8b5cf6;font-weight:900;font-size:22px}
@media(max-width:720px){.video-admin-row{grid-template-columns:24px 58px minmax(0,1fr)}.video-admin-row .admin-row-actions{grid-column:1/-1;justify-content:flex-end}}

/* V42: hover previews + 18+ gate */
.preview-thumb{position:relative;}
.hover-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;opacity:0;transition:opacity .18s ease;pointer-events:none;background:#000;}
.video-card.is-previewing .hover-preview{opacity:1;}
.video-card.is-previewing .preview-thumb img{opacity:0;}
.preview-badge{position:absolute;left:8px;bottom:8px;background:rgba(7,7,7,.75);border:1px solid rgba(139,92,246,.5);color:#f5f3ff;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:800;letter-spacing:.02em;opacity:0;transition:opacity .18s ease;pointer-events:none;}
.video-card:hover .preview-badge{opacity:1;}
.age-locked{overflow:hidden;}
.age-gate{position:fixed;inset:0;z-index:9999;background:radial-gradient(circle at top,rgba(109,40,217,.28),rgba(0,0,0,.94) 48%,#000);display:grid;place-items:center;padding:24px;backdrop-filter:blur(10px);}
.age-card{width:min(620px,100%);background:linear-gradient(145deg,rgba(20,17,29,.98),rgba(8,5,12,.98));border:1px solid rgba(139,92,246,.38);box-shadow:0 28px 80px rgba(0,0,0,.65),0 0 60px rgba(109,40,217,.24);border-radius:28px;padding:34px;text-align:center;color:#fff;}
.age-logo{display:inline-flex;align-items:center;gap:7px;font-weight:950;letter-spacing:.08em;margin-bottom:12px;color:#f8f8f8;}
.age-card h2{margin:8px 0 12px;font-size:clamp(30px,5vw,46px);line-height:1;}
.age-card p{color:#d9d6e6;line-height:1.65;margin:0 auto 20px;max-width:520px;}
.age-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:20px 0 14px;}
.age-enter{background:linear-gradient(135deg,var(--purple),var(--purple2));border-color:rgba(255,255,255,.18);font-weight:900;padding:13px 20px;}
.age-exit{background:#120f18;border-color:#332645;color:#d8d1e8;padding:13px 20px;}
.age-card small{display:block;color:#a99fbd;line-height:1.5;}
.legal-card .compliance-list{display:grid;gap:10px;margin:18px 0;padding:0;list-style:none;}
.legal-card .compliance-list li{background:#100d19;border:1px solid var(--border);border-radius:14px;padding:12px 14px;}

/* V43 creator + account refinements */
.cat.home-link{background:linear-gradient(135deg,rgba(139,92,246,.22),rgba(255,255,255,.04));border-color:rgba(168,85,247,.45);font-weight:800}.creator-mini{color:#d8b4fe}.watch-creator{margin:.25rem 0 1rem;color:#c7bddc}.watch-creator a{color:#d8b4fe;text-decoration:none;font-weight:800}.watch-creator a:hover{text-decoration:underline}.creator-hero{background:linear-gradient(135deg,rgba(124,58,237,.18),rgba(20,17,29,.9));border:1px solid rgba(168,85,247,.25);border-radius:18px;padding:18px 20px;margin-bottom:16px}.creator-hero h2{margin:0 0 4px}.creator-hero p{margin:0;color:#b8b2c7}.home-section-break{grid-column:1/-1;margin:18px 0 2px;padding-top:10px;border-top:1px solid rgba(255,255,255,.08)}.home-section-break h2{margin:0;color:#fff}.home-section-break p{margin:.25rem 0;color:#aaa}.creator-card .category-thumb{border-color:rgba(216,180,254,.32)}.creator-card .category-thumb:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 70% 20%,rgba(216,180,254,.14),transparent 45%);pointer-events:none}.creator-card em{position:absolute;left:12px;top:12px;padding:4px 8px;border-radius:999px;background:rgba(8,8,12,.78);border:1px solid rgba(216,180,254,.3);color:#d8b4fe;font-size:.72rem;font-style:normal;text-transform:uppercase;letter-spacing:.06em}.compact-account-header .header-nav{justify-content:center}.account-shell.single{max-width:1320px;margin:0 auto;padding:24px}.account-grid.video-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.admin-table-row .admin-thumb img{width:72px;height:52px;object-fit:cover;border-radius:8px}.admin-table-row{gap:12px}@media(max-width:900px){.account-grid.video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-shell.single{padding:14px}}@media(max-width:560px){.account-grid.video-grid{grid-template-columns:1fr}}

/* V44 navigation refinements */
.watch-home-link,.watch-back-link{display:block;text-decoration:none;border:1px solid rgba(190,120,255,.22);background:rgba(18,10,28,.86);color:#f5ebff;border-radius:14px;padding:12px 14px;margin-bottom:12px;font-weight:800;letter-spacing:.01em;box-shadow:0 0 18px rgba(128,55,210,.10)}
.watch-home-link:hover,.watch-back-link:hover{border-color:rgba(214,160,255,.55);background:rgba(57,24,83,.88)}
.brand-ring.small{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;font-size:13px;margin-right:6px;vertical-align:middle}
.watch-back-link{font-size:13px;color:#d8c5f3;font-weight:700}

/* V45 creator/channel refinements */
.watch-creator a,
.creator-mini,
.channel-card em {
  color: #d7b6ff;
}
.channel-hero {
  border-color: rgba(190, 130, 255, .35);
}

/* V47: homepage category marketing polish — clear full thumbnails, larger cards, lighter labels */
body:not(.listing-mode):not(.watch-mode) .home-tiles{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:22px!important;
  align-items:start!important;
}
body:not(.listing-mode):not(.watch-mode) .home-tile.category-card{
  min-height:0!important;
  border-radius:12px!important;
  overflow:hidden!important;
  background:#08050f!important;
  border:1px solid rgba(168,85,247,.34)!important;
  box-shadow:0 16px 34px rgba(0,0,0,.22)!important;
}
body:not(.listing-mode):not(.watch-mode) .home-tile.category-card:hover{
  transform:translateY(-3px)!important;
  border-color:rgba(216,180,254,.72)!important;
  box-shadow:0 0 0 1px rgba(168,85,247,.30),0 22px 46px rgba(109,40,217,.26)!important;
}
body:not(.listing-mode):not(.watch-mode) .category-thumb{
  aspect-ratio:16/10!important;
  min-height:225px!important;
  border-radius:12px!important;
  background:#0a0610!important;
}
body:not(.listing-mode):not(.watch-mode) .category-thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  filter:saturate(1.10) contrast(1.04) brightness(1.02)!important;
}
/* Remove the heavy dark footer band that made cards feel smaller */
body:not(.listing-mode):not(.watch-mode) .cat-label{
  left:10px!important;
  right:auto!important;
  bottom:10px!important;
  max-width:calc(100% - 70px)!important;
  padding:7px 11px!important;
  font-size:clamp(16px,1.15vw,21px)!important;
  line-height:1.1!important;
  border-radius:999px!important;
  color:#fff!important;
  background:rgba(10,6,17,.58)!important;
  border:1px solid rgba(255,255,255,.18)!important;
  backdrop-filter:blur(6px)!important;
  text-shadow:0 1px 8px rgba(0,0,0,.72)!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body:not(.listing-mode):not(.watch-mode) .category-thumb b{
  right:10px!important;
  bottom:10px!important;
  border-radius:999px!important;
  padding:7px 10px!important;
  font-size:12px!important;
  background:linear-gradient(135deg,rgba(124,58,237,.96),rgba(168,85,247,.96))!important;
  border:1px solid rgba(255,255,255,.20)!important;
  color:#fff!important;
  box-shadow:0 10px 22px rgba(0,0,0,.35)!important;
}
/* Keep creator/channel cards consistent but slightly more compact than primary categories */
body:not(.listing-mode):not(.watch-mode) .creator-card .category-thumb{
  min-height:205px!important;
}
body:not(.listing-mode):not(.watch-mode) .creator-card em{
  top:10px!important;
  left:10px!important;
  background:rgba(10,6,17,.62)!important;
  backdrop-filter:blur(6px)!important;
}
@media(max-width:1380px){
  body:not(.listing-mode):not(.watch-mode) .category-thumb{min-height:205px!important;}
}
@media(max-width:1180px){
  body:not(.listing-mode):not(.watch-mode) .home-tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body:not(.listing-mode):not(.watch-mode) .category-thumb{min-height:210px!important;}
}
@media(max-width:640px){
  body:not(.listing-mode):not(.watch-mode) .home-tiles{grid-template-columns:1fr!important;gap:16px!important;}
  body:not(.listing-mode):not(.watch-mode) .category-thumb{min-height:205px!important;}
  body:not(.listing-mode):not(.watch-mode) .cat-label{font-size:16px!important;max-width:calc(100% - 62px)!important;}
}

/* V48: homepage category thumbnail proportion fix
   Keep the larger category card footprint, but make image framing match video/category page thumbnails. */
body:not(.listing-mode):not(.watch-mode) .home-tile.category-card{
  min-height:auto!important;
}

body:not(.listing-mode):not(.watch-mode) .category-thumb{
  aspect-ratio:16/9!important;
  min-height:0!important;
  height:auto!important;
  border-radius:12px!important;
  background:#07040c!important;
}

body:not(.listing-mode):not(.watch-mode) .category-thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center center!important;
  display:block!important;
}

/* Make the homepage category grid feel premium without distorting thumbnails. */
body:not(.listing-mode):not(.watch-mode) .home-tiles{
  grid-template-columns:repeat(3,minmax(300px,1fr))!important;
  gap:24px!important;
}

body:not(.listing-mode):not(.watch-mode) .cat-label{
  background:rgba(10,6,17,.50)!important;
  backdrop-filter:blur(5px)!important;
}

body:not(.listing-mode):not(.watch-mode) .category-thumb b{
  background:linear-gradient(135deg,rgba(124,58,237,.94),rgba(168,85,247,.94))!important;
}

@media(max-width:1180px){
  body:not(.listing-mode):not(.watch-mode) .home-tiles{grid-template-columns:repeat(2,minmax(260px,1fr))!important;}
}

@media(max-width:640px){
  body:not(.listing-mode):not(.watch-mode) .home-tiles{grid-template-columns:1fr!important;}
}

/* V49: Homepage category grid fit + proportional thumbnails
   Keeps the larger category cards, but prevents the third tile from sliding under the right ad rail. */
.shell.with-ads{
  grid-template-columns:230px minmax(0,1fr) 220px!important;
  gap:18px!important;
  max-width:1680px!important;
}
.shell.with-ads .content{min-width:0!important;overflow:hidden!important;}
.shell.with-ads .sidebar{width:230px!important;}
.right-ad-rail{width:220px!important;min-width:220px!important;}
body:not(.listing-mode):not(.watch-mode) .home-tiles{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:20px!important;
  width:100%!important;
  max-width:100%!important;
  overflow:visible!important;
}
body:not(.listing-mode):not(.watch-mode) .home-tile.category-card{
  width:100%!important;
  min-width:0!important;
}
body:not(.listing-mode):not(.watch-mode) .category-thumb{
  width:100%!important;
  aspect-ratio:16/9!important;
  min-height:0!important;
  height:auto!important;
  border-radius:12px!important;
}
body:not(.listing-mode):not(.watch-mode) .category-thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center center!important;
}
@media(max-width:1380px){
  .shell.with-ads{grid-template-columns:215px minmax(0,1fr) 205px!important;gap:16px!important;}
  .shell.with-ads .sidebar{width:215px!important;}
  .right-ad-rail{width:205px!important;min-width:205px!important;}
  body:not(.listing-mode):not(.watch-mode) .home-tiles{gap:16px!important;}
}
@media(max-width:1180px){
  .shell.with-ads{grid-template-columns:220px minmax(0,1fr)!important;max-width:1280px!important;}
  .right-ad-rail{display:none!important;}
  body:not(.listing-mode):not(.watch-mode) .home-tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:720px){
  .shell.with-ads{grid-template-columns:1fr!important;}
  .shell.with-ads .sidebar{width:auto!important;}
  body:not(.listing-mode):not(.watch-mode) .home-tiles{grid-template-columns:1fr!important;}
}

/* V50 discovery sections */
.home-video-strip{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:4px 0 12px}
.home-video-strip .video-card{min-width:0}
@media(max-width:1100px){.home-video-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.home-video-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.home-video-strip{grid-template-columns:1fr}}

/* V51: Mobile-first UX repair
   Goal: show actual content first on phones/tablets; hide long category/ad rails before content. */
.mobile-bottom-nav{display:none;}
.discovery-strip{grid-column:1/-1;display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));gap:12px;margin:0 0 14px;}
.discovery-tile{display:flex;flex-direction:column;gap:5px;min-height:74px;border:1px solid rgba(168,85,247,.30);border-radius:16px;padding:13px 14px;background:linear-gradient(135deg,rgba(124,58,237,.22),rgba(13,10,20,.92));box-shadow:0 10px 28px rgba(0,0,0,.18);}
.discovery-tile strong{font-size:14px;color:#fff;line-height:1.1;}
.discovery-tile span{font-size:12px;color:#c7bddc;}
.discovery-tile.hot{border-color:rgba(236,72,153,.45)}
.discovery-tile.trend{border-color:rgba(168,85,247,.55)}
.discovery-tile.popular{border-color:rgba(250,204,21,.35)}
.discovery-tile.random{border-color:rgba(34,197,94,.38)}

@media(max-width:1180px){
  .discovery-strip{grid-template-columns:repeat(4,minmax(0,1fr));}
}

@media(max-width:720px){
  body{padding-bottom:66px;}
  .site-header{position:sticky;top:0;z-index:80;background:rgba(7,7,7,.94);backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,.08);}
  .header-main{display:grid!important;grid-template-columns:1fr auto!important;gap:10px!important;padding:10px 12px 8px!important;align-items:center!important;}
  .brand{font-size:16px!important;letter-spacing:.04em!important;}
  .brand-ring{width:24px!important;height:24px!important;margin-right:2px!important;}
  .search-wrap{grid-column:1/-1!important;width:100%!important;}
  .search{height:38px!important;font-size:14px!important;}
  .search-btn{height:38px!important;padding:0 13px!important;font-size:13px!important;}
  .header-right{justify-content:end!important;gap:8px!important;}
  .language-select{height:34px!important;width:58px!important;min-width:58px!important;padding:6px!important;font-size:12px!important;}
  .header-login{padding:7px 10px!important;font-size:12px!important;}
  .header-nav{display:flex!important;gap:12px!important;overflow-x:auto!important;padding:0 12px 8px!important;white-space:nowrap!important;font-size:13px!important;}
  .header-cats{display:none!important;}

  /* Critical order fix: content before the massive category list and ads. */
  .shell.with-ads{display:flex!important;flex-direction:column!important;padding:10px 10px 14px!important;gap:12px!important;max-width:100%!important;}
  .shell.with-ads .content{order:1!important;overflow:visible!important;width:100%!important;}
  .shell.with-ads .sidebar{order:2!important;width:100%!important;position:static!important;height:auto!important;max-height:none!important;padding:12px!important;border-radius:18px!important;}
  .right-ad-rail{display:none!important;}
  .left-ad-stack{display:none!important;}

  /* Homepage/category hero becomes compact, not a full-screen blocker. */
  .hero{padding:14px!important;margin-bottom:12px!important;border-radius:18px!important;}
  .hero h1{font-size:26px!important;line-height:1.05!important;}
  .eyebrow{font-size:10px!important;margin-bottom:5px!important;}
  .hero-actions{gap:7px!important;overflow-x:auto!important;flex-wrap:nowrap!important;width:100%!important;padding-bottom:2px!important;}
  .hero-actions .pill{white-space:nowrap!important;font-size:12px!important;padding:8px 11px!important;}

  /* Discovery sections are first-class mobile entry points. */
  .discovery-strip{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;margin:0 0 12px!important;}
  .discovery-tile{min-height:62px!important;border-radius:14px!important;padding:11px!important;}
  .discovery-tile strong{font-size:13px!important;}
  .discovery-tile span{font-size:11px!important;}
  .home-section-break{margin:14px 0 4px!important;padding-top:10px!important;}
  .home-section-break h2{font-size:19px!important;}
  .home-section-break p{font-size:12px!important;}
  .section-heading h2,.listing-head h2{font-size:22px!important;}
  .section-heading p,.listing-head + p{font-size:12px!important;}

  /* Mobile content cards: compact and immediately browseable. */
  .home-video-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  .video-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  body:not(.listing-mode):not(.watch-mode) .home-tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  body:not(.listing-mode):not(.watch-mode) .home-tile.category-card{border-radius:10px!important;}
  body:not(.listing-mode):not(.watch-mode) .category-thumb{border-radius:10px!important;}
  .cat-label{font-size:12px!important;left:8px!important;bottom:8px!important;max-width:calc(100% - 48px)!important;padding:5px 7px!important;}
  .category-thumb b{right:7px!important;bottom:7px!important;font-size:10px!important;padding:4px 6px!important;}
  .video-card h3{font-size:13px!important;line-height:1.2!important;margin:7px 7px 3px!important;}
  .video-card p{font-size:11px!important;margin:0 7px 7px!important;}
  .tags{display:none!important;}

  /* Sidebar on mobile becomes a compact secondary section, not the first experience. */
  .side-title{font-size:11px!important;margin:4px 4px 8px!important;}
  .category-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;max-height:380px!important;overflow:auto!important;padding-right:2px!important;}
  .cat{padding:9px!important;border-radius:12px!important;font-size:12px!important;}
  .cat b{font-size:10px!important;padding:2px 6px!important;}

  .listing-controls{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;}
  .pager{gap:5px!important;margin:12px 0!important;}
  .page-num,.page-ellipsis{min-width:30px!important;height:30px!important;font-size:12px!important;}

  .mobile-bottom-nav{display:grid!important;position:fixed;left:0;right:0;bottom:0;z-index:120;grid-template-columns:repeat(5,1fr);background:rgba(7,7,7,.96);border-top:1px solid rgba(168,85,247,.25);backdrop-filter:blur(18px);}
  .mobile-bottom-nav a{display:grid;place-items:center;padding:10px 4px 9px;color:#ddd6fe;font-size:11px;font-weight:800;}
  .mobile-bottom-nav a:hover{color:#fff;background:rgba(139,92,246,.12);}
}

@media(max-width:420px){
  .home-video-strip,.video-grid,body:not(.listing-mode):not(.watch-mode) .home-tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .discovery-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .category-list{grid-template-columns:1fr!important;max-height:340px!important;}
}

/* V52: Mobile category/watch visual optimization
   Goal: content first, no sidebar/ad clutter before videos, compact watch metadata. */

/* Watch page visual tightening across desktop */
.watch-main h1{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  line-height:1.15!important;
  margin-bottom:8px!important;
}
.watch-description-wrap{margin:8px 0 8px;}
.description.clamped{
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}
.text-more-btn{
  padding:5px 10px!important;
  font-size:12px!important;
  margin-top:6px!important;
  border-radius:999px!important;
  background:rgba(139,92,246,.16)!important;
  border-color:rgba(139,92,246,.35)!important;
}
.watch-tags{
  flex-wrap:nowrap!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  max-height:32px!important;
  padding-top:0!important;
  padding-bottom:4px!important;
}
.watch-tags span{flex:0 0 auto!important;}
.watch-suggested-grid .tags{display:none!important;}
.watch-suggested-grid .video-card h3{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.watch-suggested-grid .video-card p{
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

@media(max-width:720px){
  /* Category/listing pages: videos first, no giant category/sidebar/ad pre-roll. */
  body.listing-mode .shell.with-ads{display:block!important;padding:8px 8px 72px!important;}
  body.listing-mode .shell.with-ads .content{display:block!important;width:100%!important;}
  body.listing-mode .shell.with-ads .sidebar{display:none!important;}
  body.listing-mode .right-ad-rail,
  body.listing-mode .left-ad-stack{display:none!important;}
  body.listing-mode .hero{display:none!important;}
  body.listing-mode #sectionHeading{margin:0 0 8px!important;}
  body.listing-mode .listing-head{padding:9px 10px!important;border-radius:14px!important;margin-bottom:8px!important;}
  body.listing-mode .listing-head h2{font-size:20px!important;line-height:1.08!important;}
  body.listing-mode .result-badge{font-size:11px!important;padding:5px 8px!important;}
  body.listing-mode .listing-controls{display:flex!important;gap:7px!important;overflow-x:auto!important;padding-bottom:4px!important;margin-bottom:8px!important;}
  body.listing-mode .listing-controls label,
  body.listing-mode .listing-controls span{flex:0 0 auto!important;font-size:11px!important;}
  body.listing-mode .listing-controls select{height:34px!important;padding:6px 8px!important;font-size:12px!important;}

  /* Watch page: full-width video, no left/right ads above content, suggestions two across. */
  body.watch-mode .shell.with-ads{display:block!important;padding:8px 8px 72px!important;}
  body.watch-mode .sidebar,
  body.watch-mode .right-ad-rail{display:none!important;}
  .watch-page-layout{display:block!important;width:100%!important;max-width:100%!important;}
  .watch-ad-col{display:none!important;}
  .watch-core{width:100%!important;max-width:100%!important;}
  .watch-main{padding:10px!important;border-radius:16px!important;}
  .watch-category-header{font-size:11px!important;gap:5px!important;margin-bottom:7px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .player{width:100%!important;aspect-ratio:16/9!important;border-radius:13px!important;}
  .watch-main h1{font-size:18px!important;margin:9px 0 6px!important;-webkit-line-clamp:2!important;}
  .watch-creator{font-size:12px!important;margin:5px 0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .watch-actions{gap:6px!important;margin:7px 0 8px!important;}
  .watch-actions button,.watch-actions .pill{font-size:11px!important;padding:7px 9px!important;}
  .view-count{font-size:11px!important;}
  .description{font-size:12px!important;line-height:1.45!important;margin:6px 0!important;}
  .watch-tags{display:flex!important;font-size:11px!important;max-height:28px!important;}
  .watch-tags span{font-size:10px!important;padding:3px 6px!important;}
  .watch-suggested-block{margin-top:12px!important;}
  .watch-suggested-block h2{font-size:18px!important;margin:0 0 8px!important;}
  .watch-suggested-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  .watch-suggested-grid .video-card h3{font-size:12px!important;margin:7px 7px 3px!important;}
  .watch-suggested-grid .video-card p{font-size:10px!important;margin:0 7px 7px!important;}
  .comments{margin-top:14px!important;}
  .comments h2{font-size:18px!important;}
}

@media(max-width:420px){
  body.listing-mode .video-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
  .watch-suggested-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
}

/* V53: mobile content-first UX and inline ad tiles */
.mobile-priority-feed{display:none;}
.mobile-inline-ad-card{display:none;}

@media(max-width:920px){
  /* Absolute mobile rule: no rail/sidebar/ad blocks before the actual content. */
  .right-ad-rail,
  .left-ad-stack,
  .rail-ad-stack,
  .sidebar .small-ad,
  .watch-ad-col,
  .ad.side-ad,
  .ad.rail-ad{display:none!important;}
  .shell.with-ads{display:flex!important;flex-direction:column!important;gap:10px!important;padding:8px 8px 74px!important;}
  .shell.with-ads .content{order:1!important;width:100%!important;min-width:0!important;}
  .shell.with-ads .sidebar{order:2!important;display:block!important;width:100%!important;position:static!important;max-height:none!important;margin-top:12px!important;}
  body.listing-mode .shell.with-ads .sidebar{display:none!important;}

  /* Show real content immediately on mobile. Text-only discovery buttons move below these video/creator previews. */
  .mobile-priority-feed{display:block!important;grid-column:1/-1;order:-5;margin:0 0 10px!important;}
  .mobile-priority-section{margin:0 0 14px!important;}
  .mobile-section-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 8px!important;padding:0 2px!important;}
  .mobile-section-head h2{font-size:18px!important;line-height:1.1!important;margin:0!important;color:#fff!important;}
  .mobile-section-head a{font-size:12px!important;color:#c4b5fd!important;font-weight:900!important;text-decoration:none!important;}
  .mobile-priority-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
  .mobile-priority-grid .video-card{min-width:0!important;border-radius:11px!important;}
  .mobile-priority-grid .video-card h3{font-size:12px!important;line-height:1.2!important;margin:7px 0 3px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
  .mobile-priority-grid .video-card p{font-size:10px!important;line-height:1.2!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .mobile-mini-tile{display:block;background:#100b19;border:1px solid rgba(139,92,246,.22);border-radius:11px;overflow:hidden;text-decoration:none;color:#fff;min-width:0;}
  .mobile-mini-tile img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;}
  .mobile-mini-tile > span{display:grid;place-items:center;aspect-ratio:16/9;background:linear-gradient(135deg,rgba(139,92,246,.35),rgba(15,10,25,.95));font-weight:900;padding:10px;text-align:center;}
  .mobile-mini-tile b{display:block;font-size:12px;line-height:1.2;padding:8px 8px 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .mobile-mini-tile small{display:block;font-size:10px;color:#a99ed0;padding:0 8px 8px;}

  /* Text discovery shortcuts are still useful, but not first. */
  .discovery-strip{order:4!important;margin-top:4px!important;}
  .discovery-tile{min-height:50px!important;padding:9px 10px!important;}

  /* Mobile inline ad tiles live inside content grids instead of blocking the top of the page. */
  .mobile-inline-ad-card{display:grid!important;place-items:center;min-height:118px;border:1px dashed rgba(168,85,247,.48);border-radius:12px;background:linear-gradient(180deg,rgba(139,92,246,.12),rgba(11,8,18,.88));color:#ddd6fe;text-align:center;box-shadow:0 10px 26px rgba(0,0,0,.20);}
  .mobile-inline-ad-card strong{display:block;font-size:12px;color:#fff;margin-bottom:4px;}
  .mobile-inline-ad-card span{font-size:11px;color:#b9add5;}
  .home-tiles .mobile-inline-ad-card{min-height:150px;}

  /* Category/listing pages: videos first, compact heading, ads inline only. */
  body.listing-mode #sectionHeading{margin:0 0 8px!important;}
  body.listing-mode .listing-head{padding:8px 9px!important;margin-bottom:6px!important;}
  body.listing-mode .video-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}

  /* Homepage categories remain below high-intent content, but still attractive. */
  body:not(.listing-mode):not(.watch-mode) #browse-categories{margin-top:8px!important;}
  body:not(.listing-mode):not(.watch-mode) .home-tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
  body:not(.listing-mode):not(.watch-mode) .category-thumb{aspect-ratio:16/9!important;}
}

@media(min-width:921px){
  .mobile-priority-feed{display:none!important;}
  .mobile-inline-ad-card{display:none!important;}
}

/* V54: mobile speed and content-first performance optimization */
img{content-visibility:auto;}
.video-card,.home-tile{content-visibility:auto;contain-intrinsic-size:220px 180px;}
@media(max-width:920px){
  body{background:#070707!important;}
  .site-header{position:sticky;top:0;z-index:80;}
  .shell.with-ads{display:block!important;padding:10px!important;max-width:100%!important;}
  .shell.with-ads .sidebar{display:none!important;}
  .right-ad-rail,.left-ad-stack,.rail-ad-stack{display:none!important;}
  .hero{display:none!important;}
  .content{width:100%!important;padding:0!important;border:none!important;background:transparent!important;}
  .home-tiles{display:block!important;margin:0!important;}
  .mobile-fast-home,.mobile-priority-feed{display:block!important;}
  .mobile-priority-section{margin:12px 0 18px!important;}
  .mobile-section-head{display:flex;align-items:center;justify-content:space-between;margin:0 2px 10px;}
  .mobile-section-head h2{font-size:20px;margin:0;line-height:1.1;}
  .mobile-section-head a{font-size:13px;color:#c4b5fd;font-weight:800;}
  .mobile-priority-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  .mobile-priority-grid .video-card{border-radius:10px!important;min-width:0;}
  .video-card h3{font-size:13px!important;line-height:1.2;margin:7px 8px 3px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
  .video-card p{font-size:11px!important;margin:0 8px 8px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .video-card .tags{display:none!important;}
  .category-mobile-grid .home-tile{padding:0!important;min-height:auto!important;}
  .category-thumb{aspect-ratio:16/9!important;}
  .cat-label{font-size:13px!important;padding:5px 7px!important;background:linear-gradient(transparent,rgba(0,0,0,.58))!important;}
  .category-thumb b{font-size:10px!important;padding:2px 5px!important;right:5px!important;bottom:5px!important;}
  .mobile-inline-ad-card{margin:14px 0!important;min-height:90px!important;border:1px dashed rgba(139,92,246,.45);border-radius:12px;background:rgba(109,40,217,.08);display:grid;place-items:center;text-align:center;color:#c4b5fd;}
  .video-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  .listing-head,.listing-controls{margin:6px 0 10px!important;}
  .listing-controls{display:none!important;}
  .watch-page-layout{display:block!important;}
  .watch-ad-col{display:none!important;}
  .watch-main{padding:0!important;border:none!important;background:transparent!important;}
  .player{border-radius:10px!important;max-height:58vh;object-fit:contain;background:#000;}
  .watch-main h1{font-size:18px!important;margin:8px 0 6px!important;line-height:1.15;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
  .watch-actions{gap:6px!important;margin-bottom:8px!important;}
  .watch-description-wrap,.watch-tags{font-size:12px!important;}
  .watch-suggested-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  .mobile-bottom-nav{display:flex!important;}
  body{padding-bottom:64px;}
}
@media(min-width:921px){.mobile-fast-home{display:none!important;}}

/* V56: Mobile category drawer + cleaner discovery UX */
.mobile-menu-btn{display:none;border:1px solid rgba(168,85,247,.35);background:linear-gradient(135deg,rgba(139,92,246,.22),rgba(10,7,16,.95));color:#fff;border-radius:12px;width:42px;height:38px;font-size:22px;line-height:1;place-items:center;cursor:pointer;}
.mobile-category-drawer{display:none;}

@media(max-width:920px){
  .mobile-menu-btn{display:grid!important;}
  .header-main{grid-template-columns:1fr auto!important;}
  .search-wrap{display:grid!important;grid-template-columns:1fr auto auto!important;gap:7px!important;grid-column:1/-1!important;align-items:center!important;}
  .search-wrap .search{min-width:0!important;}
  .search-wrap .search-btn{white-space:nowrap!important;}

  /* Hide the huge category/sidebar block on mobile. Categories now live in the drawer. */
  .shell.with-ads .sidebar{display:none!important;}
  .category-list{display:none!important;}

  .mobile-category-drawer{display:block;position:fixed;inset:0;z-index:300;pointer-events:none;background:rgba(0,0,0,0);transition:background .18s ease;}
  .mobile-category-drawer.open{pointer-events:auto;background:rgba(0,0,0,.62);}
  .mobile-drawer-panel{position:absolute;top:0;right:0;height:100%;width:min(86vw,380px);background:linear-gradient(180deg,#0b0712,#14101f);border-left:1px solid rgba(168,85,247,.32);box-shadow:-18px 0 50px rgba(0,0,0,.45);transform:translateX(100%);transition:transform .22s ease;display:flex;flex-direction:column;padding:14px;}
  .mobile-category-drawer.open .mobile-drawer-panel{transform:translateX(0);}
  .mobile-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 2px 12px;border-bottom:1px solid rgba(255,255,255,.08);}
  .mobile-drawer-head strong{font-size:18px;letter-spacing:.03em;}
  .mobile-drawer-head button{width:38px;height:38px;border-radius:12px;padding:0;font-size:24px;display:grid;place-items:center;}
  .mobile-drawer-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0;}
  .mobile-drawer-shortcuts a{border:1px solid rgba(139,92,246,.25);background:rgba(139,92,246,.11);border-radius:12px;padding:10px 9px;font-size:12px;font-weight:900;color:#eee;text-align:center;}
  .mobile-drawer-subtitle,.drawer-group-title{color:#c4b5fd;text-transform:uppercase;letter-spacing:.12em;font-size:11px;font-weight:900;margin:10px 3px 8px;}
  .mobile-category-menu-list{overflow:auto;padding-right:3px;display:grid;gap:7px;}
  .drawer-cat{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.035);border-radius:13px;padding:10px 10px;color:#fff;min-height:40px;}
  .drawer-cat.active,.drawer-cat:hover{border-color:rgba(168,85,247,.55);background:rgba(139,92,246,.15);}
  .drawer-cat span{font-size:13px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .drawer-cat b{font-size:11px;color:#d9ccff;background:rgba(139,92,246,.18);border:1px solid rgba(139,92,246,.28);border-radius:999px;padding:3px 8px;flex:0 0 auto;}
  body.mobile-menu-open{overflow:hidden;}

  /* Only one mobile discovery feed. Keep it short so users reach content fast. */
  .mobile-fast-home{display:block!important;}
  .mobile-priority-feed,.discovery-strip,.home-section-break,.home-video-strip{display:none!important;}
  .mobile-fast-home .mobile-priority-section{margin:0 0 14px!important;}
  .mobile-fast-home .mobile-priority-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  .mobile-fast-home .mobile-priority-grid .video-card:nth-child(n+7),
  .mobile-fast-home .mobile-priority-grid .mobile-mini-tile:nth-child(n+7){display:none!important;}

  /* Proportional tiles: videos, creators, channels, and sponsored blocks align visually. */
  .mobile-priority-grid .video-card,.mobile-priority-grid .mobile-mini-tile,.mobile-priority-grid .mobile-inline-ad-card{height:100%!important;min-height:0!important;}
  .mobile-priority-grid .thumb,.mobile-priority-grid .mobile-mini-tile img,.mobile-priority-grid .mobile-mini-tile > span{aspect-ratio:16/9!important;width:100%!important;height:auto!important;object-fit:cover!important;display:block!important;}
  .mobile-priority-grid .mobile-inline-ad-card{aspect-ratio:auto!important;min-height:calc((50vw - 15px) * .5625 + 54px)!important;margin:0!important;}
  .mobile-mini-tile b{min-height:28px!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;white-space:normal!important;overflow:hidden!important;}

  /* Mobile pages keep content first; the category drawer handles navigation. */
  body.listing-mode .sidebar, body.watch-mode .sidebar{display:none!important;}
}

@media(min-width:921px){
  .mobile-menu-btn,.mobile-category-drawer{display:none!important;}
}

/* V57: restore desktop category-first layout and make mobile content fast/clean */
@media(min-width:921px){
  .desktop-first-categories{margin-top:0!important;}
  .desktop-discovery-strip{margin-top:22px!important;}
  .mobile-fast-home,.mobile-priority-feed{display:none!important;}
}
@media(max-width:920px){
  /* mobile shows only one compact discovery feed, then drawer handles categories */
  .desktop-first-categories,.desktop-discovery-strip{display:none!important;}
  .mobile-fast-home{display:block!important;margin-top:0!important;}
  .mobile-fast-home .mobile-priority-section{margin-bottom:12px!important;}
  .mobile-fast-home .mobile-priority-section:nth-of-type(n+5){display:none!important;}
  .mobile-section-head h2{font-size:18px!important;margin:0!important;}
  .mobile-section-head a,.mobile-section-head button{font-size:12px!important;border-radius:999px;border:1px solid rgba(139,92,246,.35);background:rgba(139,92,246,.16);color:#fff;padding:7px 10px;font-weight:900;}
  .mobile-category-entry{border:1px solid rgba(139,92,246,.25);background:rgba(139,92,246,.08);border-radius:14px;padding:12px!important;}
  .mobile-category-entry p{font-size:12px;color:#cfc7df;margin:7px 0 0!important;}
  /* fix drawer so all categories show in a proper vertical scroll */
  .mobile-drawer-panel{max-height:100dvh!important;height:100dvh!important;min-height:0!important;overflow:hidden!important;}
  .mobile-category-menu-list{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;padding-bottom:24px!important;}
  .mobile-drawer-shortcuts{flex:0 0 auto!important;}
  .mobile-drawer-subtitle{flex:0 0 auto!important;}
  /* thumbnail speed/perceived load */
  .video-card .thumb,.home-tile .category-thumb,.mobile-mini-tile img,.mobile-mini-tile > span{background:linear-gradient(135deg,#21162f,#0e0a16)!important;}
  .mobile-priority-grid .video-card h3{font-size:12px!important;line-height:1.2!important;min-height:29px!important;}
  .mobile-priority-grid .video-card p{font-size:10.5px!important;line-height:1.15!important;}
  .mobile-priority-grid .video-card .tags{display:none!important;}
}

/* V58: efficient desktop/mobile homepage balance */
.home-video-strip.priority-strip{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px;}
.home-video-strip.priority-strip .video-card:nth-child(n+7){display:none!important;}
.creator-reel{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(190px,230px);gap:14px;overflow-x:auto;overscroll-behavior-x:contain;padding:2px 0 12px;scrollbar-width:thin;}
.creator-reel .home-tile{width:auto!important;min-width:190px!important;}
.creator-reel .category-thumb{aspect-ratio:16/9!important;}
.creator-reel .category-thumb img{width:100%!important;height:100%!important;object-fit:cover!important;}

@media(max-width:920px){
  .mobile-fast-home{display:block!important;}
  .mobile-fast-home .mobile-priority-section{margin-bottom:12px!important;}
  .mobile-fast-home .mobile-priority-section:nth-of-type(n+6){display:none!important;}
  .mobile-visible-cats{display:block!important;border:1px solid rgba(139,92,246,.22);background:rgba(139,92,246,.055);border-radius:14px;padding:10px!important;}
  .mobile-visible-cats .mobile-priority-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .mobile-category-tile img,.mobile-mini-tile img{aspect-ratio:16/9!important;height:auto!important;object-fit:cover!important;}
  .mobile-category-tile b,.mobile-mini-tile b{font-size:12px!important;line-height:1.15!important;}
  .mobile-category-tile small,.mobile-mini-tile small{font-size:10px!important;}
}
@media(max-width:600px){
  .mobile-fast-home .mobile-priority-grid{gap:9px!important;}
}

/* V60: stable homepage architecture — desktop V56 flow, full mobile categories, two-row creator reel */
/* Desktop: keep content-first flow, remove duplicate/trending clutter, and preserve full category wall. */
#trending-now{display:none!important;}
.home-video-strip.priority-strip{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;}
.home-video-strip.priority-strip .video-card:nth-child(n+7){display:none!important;}
.two-row-creator-reel{display:grid!important;grid-template-rows:repeat(2,auto)!important;gap:12px!important;overflow:hidden!important;padding:2px 0 14px!important;}
.creator-reel-row{display:flex!important;gap:14px!important;width:max-content!important;will-change:transform;}
.creator-reel-row .home-tile{width:220px!important;min-width:220px!important;max-width:220px!important;}
.creator-reel-row .category-thumb{aspect-ratio:16/9!important;width:100%!important;}
.creator-reel-row .category-thumb img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;}
.reel-row-a{animation:lustoReelLeft 55s linear infinite;}
.reel-row-b{animation:lustoReelRight 62s linear infinite;}
.two-row-creator-reel:hover .creator-reel-row{animation-play-state:paused;}
@keyframes lustoReelLeft{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes lustoReelRight{from{transform:translateX(-50%)}to{transform:translateX(0)}}

/* Mobile: categories are the meat of the site — show the full category wall, not six items or a hidden See All flow. */
@media(max-width:920px){
  .mobile-fast-home{display:block!important;margin-top:0!important;}
  .mobile-fast-home .mobile-priority-section{display:block!important;margin-bottom:12px!important;}
  .mobile-fast-home .mobile-priority-section:nth-of-type(n+6){display:block!important;}
  .mobile-visible-cats{display:block!important;border:1px solid rgba(139,92,246,.22);background:rgba(139,92,246,.055);border-radius:14px;padding:10px!important;}
  .mobile-visible-cats .mobile-section-head button{display:none!important;}
  .mobile-visible-cats .mobile-priority-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
  .mobile-visible-cats .mobile-mini-tile:nth-child(n+7),
  .mobile-visible-cats .mobile-category-tile:nth-child(n+7){display:block!important;}
  .mobile-fast-home .mobile-priority-grid .mobile-visible-cats .mobile-mini-tile:nth-child(n+7){display:block!important;}
  .mobile-category-tile img,.mobile-mini-tile img{aspect-ratio:16/9!important;width:100%!important;height:auto!important;object-fit:cover!important;display:block!important;}
  .mobile-category-tile b,.mobile-mini-tile b{font-size:12px!important;line-height:1.15!important;}
  .mobile-category-tile small,.mobile-mini-tile small{font-size:10px!important;}
  .mobile-priority-section:not(.mobile-visible-cats) .mobile-priority-grid .video-card:nth-child(n+5){display:none!important;}
  .mobile-priority-section:not(.mobile-visible-cats) .mobile-priority-grid .mobile-mini-tile:nth-child(n+13){display:none!important;}
  .creator-reel,.two-row-creator-reel{display:none!important;}
}

@media(max-width:560px){
  .mobile-visible-cats .mobile-priority-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .mobile-category-tile b{min-height:28px!important;}
}


/* V70 FOUNDATION: locked homepage architecture, mobile category wall, creator reel, and stability overrides */
:root{--lm-content-max:1680px;--lm-gap:20px;}
body:not(.watch-mode):not(.listing-mode) .shell.with-ads{grid-template-columns:260px minmax(0,1fr) 260px!important;max-width:var(--lm-content-max)!important;gap:var(--lm-gap)!important;align-items:start!important;}
body:not(.watch-mode):not(.listing-mode) .content{min-width:0!important;}
body:not(.watch-mode):not(.listing-mode) #homeTiles{display:block!important;width:100%!important;}
body:not(.watch-mode):not(.listing-mode) .home-section-break{display:block!important;margin:18px 0 10px!important;}
body:not(.watch-mode):not(.listing-mode) .home-section-break h2{margin:0!important;font-size:clamp(22px,2vw,32px)!important;line-height:1.1!important;text-transform:none!important;}
body:not(.watch-mode):not(.listing-mode) .home-section-break p{margin:5px 0 0!important;color:var(--muted)!important;}
body:not(.watch-mode):not(.listing-mode) .home-video-strip.priority-strip{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:14px!important;width:100%!important;overflow-x:auto!important;overscroll-behavior-x:contain!important;scrollbar-width:thin!important;margin:0 0 16px!important;padding-bottom:6px!important;}
body:not(.watch-mode):not(.listing-mode) .home-video-strip.priority-strip .video-card{min-width:150px!important;}
body:not(.watch-mode):not(.listing-mode) .home-video-strip.priority-strip .video-card:nth-child(n+7){display:none!important;}
body:not(.watch-mode):not(.listing-mode) .creator-reel-section,
body:not(.watch-mode):not(.listing-mode) .two-row-creator-reel{width:100%!important;max-width:100%!important;}
body:not(.watch-mode):not(.listing-mode) .two-row-creator-reel{display:grid!important;grid-template-rows:repeat(2,auto)!important;gap:12px!important;overflow:hidden!important;padding:2px 0 16px!important;margin-bottom:16px!important;}
body:not(.watch-mode):not(.listing-mode) .creator-reel-row{display:flex!important;gap:14px!important;width:max-content!important;will-change:transform!important;}
body:not(.watch-mode):not(.listing-mode) .creator-reel-row .home-tile{width:220px!important;min-width:220px!important;max-width:220px!important;}
body:not(.watch-mode):not(.listing-mode) .creator-reel-row .category-thumb{aspect-ratio:16/9!important;width:100%!important;}
body:not(.watch-mode):not(.listing-mode) .reel-row-a{animation:lustoV70ReelRight 26s linear infinite!important;}
body:not(.watch-mode):not(.listing-mode) .reel-row-b{animation:lustoV70ReelLeft 30s linear infinite!important;}
body:not(.watch-mode):not(.listing-mode) .two-row-creator-reel:hover .creator-reel-row{animation-play-state:paused!important;}
@keyframes lustoV70ReelRight{from{transform:translateX(-50%)}to{transform:translateX(0)}}
@keyframes lustoV70ReelLeft{from{transform:translateX(0)}to{transform:translateX(-50%)}}
body:not(.watch-mode):not(.listing-mode) #browse-categories + .category-card,
body:not(.watch-mode):not(.listing-mode) .category-section-title ~ .home-tile.category-card{display:inline-block;}
body:not(.watch-mode):not(.listing-mode) #homeTiles > .home-tile.category-card{display:inline-block;width:calc((100% - 40px)/3);margin:0 16px 16px 0;vertical-align:top;}
body:not(.watch-mode):not(.listing-mode) #homeTiles > .home-tile.category-card:nth-of-type(3n){margin-right:0;}
.header-nav a[href*="filter=trending"],.mobile-drawer-shortcuts a[href*="filter=trending"]{display:none!important;}

@media(max-width:1180px){
  body:not(.watch-mode):not(.listing-mode) .shell.with-ads{grid-template-columns:220px minmax(0,1fr)!important;max-width:1280px!important;}
  body:not(.watch-mode):not(.listing-mode) .right-ad-rail{display:none!important;}
  body:not(.watch-mode):not(.listing-mode) .home-video-strip.priority-strip{grid-template-columns:repeat(3,minmax(180px,1fr))!important;}
  body:not(.watch-mode):not(.listing-mode) #homeTiles > .home-tile.category-card{width:calc((100% - 18px)/2)!important;margin-right:14px!important;}
  body:not(.watch-mode):not(.listing-mode) #homeTiles > .home-tile.category-card:nth-of-type(2n){margin-right:0!important;}
}
@media(max-width:920px){
  body:not(.watch-mode):not(.listing-mode) .shell.with-ads{grid-template-columns:1fr!important;padding:12px!important;}
  body:not(.watch-mode):not(.listing-mode) .sidebar,.left-ad-stack,.right-ad-rail{display:none!important;}
  body:not(.watch-mode):not(.listing-mode) .hero{display:none!important;}
  body:not(.watch-mode):not(.listing-mode) #homeTiles{display:block!important;}
  .mobile-fast-home{display:block!important;margin-top:0!important;}
  .mobile-fast-home .mobile-priority-section{display:block!important;margin:0 0 14px!important;}
  .mobile-priority-section .mobile-section-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:8px!important;}
  .mobile-priority-section .mobile-section-head h2{margin:0!important;font-size:20px!important;line-height:1.1!important;}
  .mobile-priority-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
  .mobile-priority-section:not(.mobile-visible-cats) .mobile-priority-grid{display:flex!important;overflow-x:auto!important;gap:10px!important;padding-bottom:6px!important;scroll-snap-type:x proximity!important;}
  .mobile-priority-section:not(.mobile-visible-cats) .video-card{flex:0 0 46%!important;min-width:46%!important;scroll-snap-align:start!important;}
  .mobile-priority-section:not(.mobile-visible-cats) .video-card:nth-child(n+5){display:block!important;}
  .mobile-visible-cats{display:block!important;border:1px solid rgba(139,92,246,.22)!important;background:rgba(139,92,246,.055)!important;border-radius:14px!important;padding:10px!important;}
  .mobile-visible-cats .mobile-section-head button{display:none!important;}
  .mobile-visible-cats .mobile-priority-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;overflow:visible!important;}
  .mobile-visible-cats .mobile-category-tile{display:block!important;min-width:0!important;}
  .mobile-category-tile img,.mobile-mini-tile img{aspect-ratio:16/9!important;width:100%!important;height:auto!important;object-fit:cover!important;display:block!important;}
  .mobile-category-tile b,.mobile-mini-tile b{display:block!important;font-size:12px!important;line-height:1.15!important;min-height:28px!important;}
  .mobile-category-tile small,.mobile-mini-tile small{display:block!important;font-size:10px!important;color:var(--muted)!important;}
  .creator-reel,.two-row-creator-reel{display:none!important;}
  body.watch-mode .shell.with-ads{padding:8px!important;grid-template-columns:1fr!important;}
  body.watch-mode .watch-page-layout{display:block!important;max-width:100%!important;margin:0!important;}
  body.watch-mode .watch-ad-col{display:none!important;}
  body.watch-mode .watch-main{padding:10px!important;border-radius:14px!important;}
  body.watch-mode .watch-category-header{display:none!important;}
  body.watch-mode .player{display:block!important;width:100%!important;aspect-ratio:16/9!important;min-height:0!important;max-height:none!important;border-radius:12px!important;}
  body.watch-mode .watch-main h1{font-size:19px!important;margin:10px 0 8px!important;line-height:1.18!important;}
  body.watch-mode .watch-actions{margin:6px 0 8px!important;}
  body.watch-mode .description.clamped{display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}
  body.watch-mode .watch-tags{white-space:nowrap!important;overflow:hidden!important;display:block!important;}
  body.watch-mode .watch-suggested-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
}
@media(max-width:520px){
  .mobile-priority-section:not(.mobile-visible-cats) .video-card{flex-basis:48%!important;min-width:48%!important;}
  .mobile-visible-cats .mobile-priority-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}

/* V70.1 DESKTOP CLASSIC PATCH: restore large 3-column category wall */
@media(min-width:921px){
  body:not(.watch-mode):not(.listing-mode) #homeTiles{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:18px!important;
    width:100%!important;
    align-items:start!important;
  }
  body:not(.watch-mode):not(.listing-mode) #homeTiles > .home-section-break,
  body:not(.watch-mode):not(.listing-mode) #homeTiles > .home-video-strip,
  body:not(.watch-mode):not(.listing-mode) #homeTiles > .creator-reel,
  body:not(.watch-mode):not(.listing-mode) #homeTiles > .two-row-creator-reel{
    grid-column:1/-1!important;
    width:100%!important;
  }
  body:not(.watch-mode):not(.listing-mode) #homeTiles > .home-tile.category-card{
    display:block!important;
    width:auto!important;
    margin:0!important;
    min-height:0!important;
  }
  body:not(.watch-mode):not(.listing-mode) #homeTiles > .mobile-inline-ad-card{
    display:grid!important;
    min-height:185px!important;
    border-radius:8px!important;
    border:1px dashed rgba(139,92,246,.38)!important;
    background:rgba(109,40,217,.08)!important;
    place-items:center!important;
    text-align:center!important;
    color:#c4b5fd!important;
  }
  body:not(.watch-mode):not(.listing-mode) .home-tile.category-card .category-thumb{
    aspect-ratio:16/9!important;
    width:100%!important;
    min-height:0!important;
  }
  body:not(.watch-mode):not(.listing-mode) .home-tile.category-card .category-thumb img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    display:block!important;
  }
  body:not(.watch-mode):not(.listing-mode) .home-tile.category-card .cat-label{
    font-size:20px!important;
    padding:10px 12px!important;
  }
  body:not(.watch-mode):not(.listing-mode) .home-tile.category-card .category-thumb b{
    font-size:13px!important;
    padding:5px 9px!important;
  }
  body:not(.watch-mode):not(.listing-mode) .home-video-strip.priority-strip{
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:14px!important;
    overflow:hidden!important;
  }
}
@media(min-width:921px) and (max-width:1180px){
  body:not(.watch-mode):not(.listing-mode) #homeTiles{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body:not(.watch-mode):not(.listing-mode) .home-video-strip.priority-strip{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    overflow-x:auto!important;
  }
}

/* V70.2 VISUAL PROPORTION PATCH: desktop uniform card sizing */
@media(min-width:921px){
  :root{
    --lm-desktop-card-gap:18px;
    --lm-category-min-height:210px;
    --lm-video-card-min:0px;
    --lm-creator-card-width:240px;
  }

  /* Keep desktop category wall at 3 columns with full-size thumbnails. */
  body:not(.watch-mode):not(.listing-mode) #homeTiles{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:var(--lm-desktop-card-gap)!important;
    align-items:start!important;
  }
  body:not(.watch-mode):not(.listing-mode) #homeTiles > .home-section-break,
  body:not(.watch-mode):not(.listing-mode) #homeTiles > .home-video-strip,
  body:not(.watch-mode):not(.listing-mode) #homeTiles > .creator-reel,
  body:not(.watch-mode):not(.listing-mode) #homeTiles > .two-row-creator-reel,
  body:not(.watch-mode):not(.listing-mode) #homeTiles > .creator-reel-section{
    grid-column:1/-1!important;
    width:100%!important;
  }
  body:not(.watch-mode):not(.listing-mode) #homeTiles > .home-tile.category-card{
    display:block!important;
    width:auto!important;
    margin:0!important;
    min-height:var(--lm-category-min-height)!important;
    border-radius:8px!important;
    overflow:hidden!important;
  }
  body:not(.watch-mode):not(.listing-mode) .home-tile.category-card .category-thumb{
    aspect-ratio:16/9!important;
    width:100%!important;
    min-height:var(--lm-category-min-height)!important;
    max-height:none!important;
  }
  body:not(.watch-mode):not(.listing-mode) .home-tile.category-card .category-thumb img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    display:block!important;
  }
  body:not(.watch-mode):not(.listing-mode) .home-tile.category-card .cat-label{
    font-size:20px!important;
    line-height:1.1!important;
    padding:12px 14px!important;
  }
  body:not(.watch-mode):not(.listing-mode) .home-tile.category-card .category-thumb b{
    font-size:13px!important;
    padding:5px 9px!important;
  }

  /* Make top video rows visually proportional instead of tiny. */
  body:not(.watch-mode):not(.listing-mode) .home-video-strip.priority-strip{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:var(--lm-desktop-card-gap)!important;
    overflow:visible!important;
    padding-bottom:0!important;
  }
  body:not(.watch-mode):not(.listing-mode) .home-video-strip.priority-strip .video-card{
    min-width:0!important;
    border-radius:10px!important;
  }
  body:not(.watch-mode):not(.listing-mode) .home-video-strip.priority-strip .thumb,
  body:not(.watch-mode):not(.listing-mode) .video-card .thumb{
    aspect-ratio:16/9!important;
  }
  body:not(.watch-mode):not(.listing-mode) .home-video-strip.priority-strip .video-card h3{
    font-size:15px!important;
    line-height:1.22!important;
    min-height:38px!important;
  }
  body:not(.watch-mode):not(.listing-mode) .home-video-strip.priority-strip .video-card p{
    font-size:12px!important;
  }

  /* Creator reel: full-width two-row reel with cards sized closer to category/video proportions. */
  body:not(.watch-mode):not(.listing-mode) .two-row-creator-reel{
    display:grid!important;
    grid-template-rows:repeat(2,auto)!important;
    gap:14px!important;
    overflow:hidden!important;
    width:100%!important;
    max-width:100%!important;
    padding:2px 0 18px!important;
  }
  body:not(.watch-mode):not(.listing-mode) .creator-reel-row{
    display:flex!important;
    gap:var(--lm-desktop-card-gap)!important;
    width:max-content!important;
    will-change:transform!important;
  }
  body:not(.watch-mode):not(.listing-mode) .creator-reel-row .home-tile,
  body:not(.watch-mode):not(.listing-mode) .creator-reel .home-tile{
    width:var(--lm-creator-card-width)!important;
    min-width:var(--lm-creator-card-width)!important;
    max-width:var(--lm-creator-card-width)!important;
    border-radius:8px!important;
    overflow:hidden!important;
    padding:0!important;
  }
  body:not(.watch-mode):not(.listing-mode) .creator-reel-row .category-thumb,
  body:not(.watch-mode):not(.listing-mode) .creator-reel .category-thumb{
    aspect-ratio:16/9!important;
    width:100%!important;
    min-height:135px!important;
  }
  body:not(.watch-mode):not(.listing-mode) .creator-reel-row .category-thumb img,
  body:not(.watch-mode):not(.listing-mode) .creator-reel .category-thumb img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    display:block!important;
  }
  body:not(.watch-mode):not(.listing-mode) .creator-reel-row .cat-label,
  body:not(.watch-mode):not(.listing-mode) .creator-reel .cat-label{
    font-size:15px!important;
    padding:9px 10px!important;
  }
  body:not(.watch-mode):not(.listing-mode) .reel-row-a{animation:lustoV70ReelRight 24s linear infinite!important;}
  body:not(.watch-mode):not(.listing-mode) .reel-row-b{animation:lustoV70ReelLeft 27s linear infinite!important;}
}

@media(min-width:1181px){
  body:not(.watch-mode):not(.listing-mode) #homeTiles > .home-tile.category-card,
  body:not(.watch-mode):not(.listing-mode) .home-tile.category-card .category-thumb{
    min-height:230px!important;
  }
}

@media(min-width:921px) and (max-width:1180px){
  body:not(.watch-mode):not(.listing-mode) #homeTiles{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body:not(.watch-mode):not(.listing-mode) .home-video-strip.priority-strip{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body:not(.watch-mode):not(.listing-mode) .creator-reel-row .home-tile,
  body:not(.watch-mode):not(.listing-mode) .creator-reel .home-tile{
    width:220px!important;
    min-width:220px!important;
    max-width:220px!important;
  }
}

/* V52.6: Desktop/mobile separation patch
   Goal: preserve the original desktop layout while keeping mobile-only fixes scoped to mobile. */

/* Shared safe media fitting */
.category-thumb,
.thumb,
.mobile-mini-tile img,
.mobile-mini-tile > span{
  background:linear-gradient(135deg,#211235,#09060f);
}
.category-thumb img,
.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Desktop-only additions for V52 homepage sections. These rules do not touch mobile. */
@media (min-width:921px){
  .mobile-fast-home,
  .mobile-priority-feed,
  .mobile-priority-section,
  .mobile-auto-reel,
  .mobile-category-drawer{display:none!important;}

  body:not(.listing-mode):not(.watch-mode) .home-tiles{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:18px!important;
  }

  .home-video-strip.priority-strip,
  .home-video-strip{
    grid-column:1/-1;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:16px!important;
    margin:4px 0 20px!important;
  }
  .home-video-strip.priority-strip .video-card:nth-child(n+7){display:none!important;}

  .home-section-break{
    grid-column:1/-1;
    margin:18px 0 4px!important;
  }
  .home-section-break h2{
    margin:0 0 4px!important;
    font-size:28px!important;
    line-height:1.1!important;
  }
  .home-section-break p{margin:0!important;color:var(--muted);}

  .two-row-creator-reel{
    grid-column:1/-1;
    display:grid!important;
    grid-template-rows:repeat(2,auto)!important;
    gap:12px!important;
    overflow:hidden!important;
    padding:2px 0 18px!important;
    max-width:100%!important;
  }
  .creator-reel-row{
    display:flex!important;
    gap:14px!important;
    width:max-content!important;
    will-change:transform;
  }
  .creator-reel-row .home-tile{
    width:220px!important;
    min-width:220px!important;
    max-width:220px!important;
  }
  .creator-reel-row .category-thumb{
    aspect-ratio:16/9!important;
    width:100%!important;
  }
  .creator-reel-row .category-thumb img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    display:block!important;
  }
  .reel-row-a{animation:creatorReelLeft 45s linear infinite;}
  .reel-row-b{animation:creatorReelRight 50s linear infinite;}
  .two-row-creator-reel:hover .creator-reel-row{animation-play-state:paused;}
  @keyframes creatorReelLeft{from{transform:translateX(0)}to{transform:translateX(-50%)}}
  @keyframes creatorReelRight{from{transform:translateX(-50%)}to{transform:translateX(0)}}
}

/* Mobile-only layout. Nothing in this block affects desktop. */
@media (max-width:920px){
  .shell.with-ads{grid-template-columns:1fr!important;padding:12px!important;gap:12px!important;}
  .right-ad-rail,.left-ad-stack{display:none!important;}
  .sidebar{display:none!important;}
  .content{width:100%!important;min-width:0!important;}

  .mobile-fast-home{display:block!important;margin-top:0!important;}
  .mobile-priority-feed{display:none!important;}
  .discovery-strip,
  .home-section-break,
  .home-video-strip{display:none!important;}

  .mobile-fast-home .mobile-priority-section{
    display:block!important;
    margin:0 0 14px!important;
    padding:0!important;
  }
  .mobile-section-head{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    margin:0 0 8px!important;
  }
  .mobile-section-head h2{
    margin:0!important;
    font-size:18px!important;
    line-height:1.15!important;
  }
  .mobile-section-head a,
  .mobile-section-head button{
    font-size:12px!important;
    color:#ddd6fe!important;
    background:rgba(139,92,246,.12)!important;
    border:1px solid rgba(139,92,246,.25)!important;
    border-radius:999px!important;
    padding:6px 9px!important;
  }

  .mobile-priority-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .mobile-priority-grid .video-card,
  .mobile-priority-grid .mobile-mini-tile,
  .mobile-priority-grid .mobile-inline-ad-card{
    height:100%!important;
    min-height:0!important;
    border-radius:11px!important;
    overflow:hidden!important;
  }
  .mobile-priority-grid .thumb,
  .mobile-priority-grid .mobile-mini-tile img,
  .mobile-priority-grid .mobile-mini-tile > span{
    aspect-ratio:16/9!important;
    width:100%!important;
    height:auto!important;
    object-fit:cover!important;
    display:block!important;
  }
  .mobile-priority-grid .video-card h3{
    font-size:12px!important;
    line-height:1.2!important;
    min-height:29px!important;
    margin:7px 8px 3px!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  .mobile-priority-grid .video-card p{
    font-size:10.5px!important;
    line-height:1.15!important;
    margin:0 8px 8px!important;
    color:#a99ed0!important;
  }
  .mobile-priority-grid .video-card .tags{display:none!important;}

  .mobile-mini-tile{
    display:block!important;
    background:#100b19!important;
    border:1px solid rgba(139,92,246,.22)!important;
    color:#fff!important;
    text-decoration:none!important;
  }
  .mobile-mini-tile b{
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    white-space:normal!important;
    overflow:hidden!important;
    font-size:12px!important;
    line-height:1.15!important;
    min-height:28px!important;
    padding:8px 8px 2px!important;
  }
  .mobile-mini-tile small{
    display:block!important;
    font-size:10px!important;
    color:#a99ed0!important;
    padding:0 8px 8px!important;
  }

  /* Show every populated category on mobile. No nth-child cap. */
  .mobile-visible-cats{
    display:block!important;
    border:1px solid rgba(139,92,246,.22)!important;
    background:rgba(139,92,246,.055)!important;
    border-radius:14px!important;
    padding:10px!important;
  }
  .mobile-visible-cats .mobile-section-head button{display:none!important;}
  .mobile-visible-cats .mobile-mini-tile,
  .mobile-visible-cats .mobile-category-tile,
  .mobile-visible-cats .mobile-mini-tile:nth-child(n+7),
  .mobile-visible-cats .mobile-category-tile:nth-child(n+7){display:block!important;}

  /* Mobile creator reel remains mobile-only and does not affect desktop creator styling. */
  .creator-mobile-reel{
    display:block!important;
    overflow:hidden!important;
    max-width:100%!important;
    padding-bottom:4px!important;
  }
  .creator-mobile-reel .mobile-auto-track{
    display:flex!important;
    gap:10px!important;
    width:max-content!important;
    animation:mobileCreatorSlide 38s linear infinite;
  }
  .creator-mobile-reel .mobile-mini-tile{
    width:150px!important;
    min-width:150px!important;
  }
  @keyframes mobileCreatorSlide{from{transform:translateX(0)}to{transform:translateX(-50%)}}

  .mobile-menu-open{overflow:hidden!important;}
}

/* V52.7 GOLD SPLIT: hard separation for desktop and mobile layouts.
   Desktop restores the approved three-column/pane design.
   Mobile keeps the all-populated-categories experience without touching desktop. */

/* Shared thumbnail fit only: safe for both layouts */
.category-thumb,
.thumb,
.mobile-mini-tile img,
.mobile-mini-tile > span{
  overflow:hidden!important;
  background:linear-gradient(135deg,#211235,#09060f)!important;
}
.category-thumb img,
.thumb img,
.mobile-mini-tile img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
}

@media (min-width:921px){
  /* Hide mobile-only layout fragments on desktop */
  .mobile-fast-home,
  .mobile-priority-feed,
  .mobile-priority-section,
  .mobile-visible-cats,
  .creator-mobile-reel,
  .mobile-category-drawer,
  .mobile-menu-btn{
    display:none!important;
  }

  /* Restore desktop shell/panes */
  .shell.with-ads{
    display:grid!important;
    grid-template-columns:230px minmax(0,1fr) 260px!important;
    max-width:1800px!important;
    gap:20px!important;
    align-items:start!important;
    padding:24px!important;
    margin:0 auto!important;
  }
  body.watch-mode .shell.with-ads{
    grid-template-columns:minmax(0,1fr)!important;
    max-width:1580px!important;
    padding:20px 24px!important;
  }
  body:not(.watch-mode) .shell.with-ads .sidebar{
    display:flex!important;
    flex-direction:column!important;
    align-self:start!important;
    width:230px!important;
    min-width:230px!important;
    max-width:230px!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    padding:14px!important;
    border-radius:16px!important;
  }
  body:not(.watch-mode) .right-ad-rail{
    display:grid!important;
    width:260px!important;
    min-width:260px!important;
    max-width:260px!important;
    gap:18px!important;
    align-self:start!important;
  }
  body.watch-mode .sidebar,
  body.watch-mode .right-ad-rail{display:none!important;}

  /* Restore approved desktop header alignment */
  .site-header .header-main{
    display:grid!important;
    grid-template-columns:auto minmax(260px,420px) auto!important;
    gap:18px!important;
    align-items:center!important;
    padding:14px 24px 10px!important;
  }
  .header-nav{
    display:flex!important;
    align-items:center!important;
    flex-wrap:wrap!important;
    overflow:visible!important;
    white-space:normal!important;
    gap:18px!important;
    row-gap:8px!important;
    max-width:1500px!important;
    padding:0 24px 12px!important;
  }
  .header-cats{
    display:flex!important;
    align-items:center!important;
    flex-wrap:wrap!important;
    gap:8px 14px!important;
    width:auto!important;
    min-width:0!important;
  }
  .header-cats a{
    display:inline-flex!important;
    align-items:center!important;
    white-space:nowrap!important;
    padding:7px 0!important;
  }

  /* Restore desktop category grid: exactly 3 columns where space allows */
  body:not(.listing-mode):not(.watch-mode) #homeTiles,
  body:not(.listing-mode):not(.watch-mode) .home-tiles{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:18px!important;
    align-items:stretch!important;
    margin-top:18px!important;
  }
  body:not(.listing-mode):not(.watch-mode) .home-tile.category-card{
    display:block!important;
    min-height:185px!important;
    border-radius:2px!important;
    overflow:hidden!important;
  }
  body:not(.listing-mode):not(.watch-mode) .category-thumb{
    aspect-ratio:16/9!important;
    height:auto!important;
  }

  /* Desktop video rows stay 3-column and full width */
  body:not(.watch-mode) .home-video-strip,
  body:not(.watch-mode) .home-video-strip.priority-strip{
    grid-column:1/-1!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:16px!important;
    width:100%!important;
    margin:4px 0 20px!important;
  }
  body:not(.watch-mode) .home-section-break{
    grid-column:1/-1!important;
    display:block!important;
    margin:18px 0 4px!important;
  }

  /* Desktop creator reel: two full-width opposing rows */
  body:not(.watch-mode) .two-row-creator-reel{
    grid-column:1/-1!important;
    display:grid!important;
    grid-template-rows:repeat(2,auto)!important;
    gap:12px!important;
    overflow:hidden!important;
    padding:2px 0 18px!important;
    width:100%!important;
    max-width:100%!important;
  }
  body:not(.watch-mode) .creator-reel-row{
    display:flex!important;
    gap:14px!important;
    width:max-content!important;
    will-change:transform!important;
  }
  body:not(.watch-mode) .creator-reel-row .home-tile{
    flex:0 0 220px!important;
    width:220px!important;
    min-width:220px!important;
    max-width:220px!important;
  }
  body:not(.watch-mode) .creator-reel-row .category-thumb{
    aspect-ratio:16/9!important;
  }
  body:not(.watch-mode) .reel-row-a{animation:creatorReelLeftGold 45s linear infinite!important;}
  body:not(.watch-mode) .reel-row-b{animation:creatorReelRightGold 50s linear infinite!important;}
  body:not(.watch-mode) .two-row-creator-reel:hover .creator-reel-row{animation-play-state:paused!important;}
  @keyframes creatorReelLeftGold{from{transform:translateX(0)}to{transform:translateX(-50%)}}
  @keyframes creatorReelRightGold{from{transform:translateX(-50%)}to{transform:translateX(0)}}
}

@media (max-width:920px){
  /* Mobile is independently controlled from desktop */
  .shell.with-ads{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    padding:12px!important;
    width:100%!important;
    max-width:100%!important;
  }
  .sidebar,
  .right-ad-rail,
  .left-ad-stack{display:none!important;}
  .content{width:100%!important;min-width:0!important;}

  .header-main{
    grid-template-columns:1fr!important;
    gap:10px!important;
    padding:12px!important;
  }
  .search-wrap{width:100%!important;max-width:none!important;justify-self:stretch!important;}
  .header-right{justify-content:space-between!important;min-width:0!important;}
  .header-nav{
    display:flex!important;
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    white-space:nowrap!important;
    gap:14px!important;
    padding:0 12px 10px!important;
    scrollbar-width:none!important;
  }
  .header-nav::-webkit-scrollbar{display:none!important;}
  .header-cats{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:14px!important;
    width:max-content!important;
    flex:0 0 auto!important;
  }

  .mobile-fast-home{display:block!important;margin-top:0!important;}
  .mobile-priority-feed{display:none!important;}
  .discovery-strip,
  .home-section-break,
  .home-video-strip{display:none!important;}

  .mobile-priority-section{
    display:block!important;
    margin:0 0 14px!important;
    padding:0!important;
  }
  .mobile-section-head{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    margin:0 0 8px!important;
  }
  .mobile-section-head h2{font-size:18px!important;line-height:1.15!important;margin:0!important;}

  .mobile-priority-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .mobile-priority-section:not(.mobile-visible-cats) .mobile-priority-grid{
    display:flex!important;
    overflow-x:auto!important;
    gap:10px!important;
    padding-bottom:6px!important;
    scroll-snap-type:x proximity!important;
    scrollbar-width:none!important;
  }
  .mobile-priority-section:not(.mobile-visible-cats) .mobile-priority-grid::-webkit-scrollbar{display:none!important;}
  .mobile-priority-section:not(.mobile-visible-cats) .video-card,
  .mobile-priority-section:not(.mobile-visible-cats) .mobile-mini-tile{
    flex:0 0 46%!important;
    min-width:46%!important;
    scroll-snap-align:start!important;
  }

  /* All populated categories show on mobile; empty categories are still excluded by app.js data logic. */
  .mobile-visible-cats{
    display:block!important;
    border:1px solid rgba(139,92,246,.22)!important;
    background:rgba(139,92,246,.055)!important;
    border-radius:14px!important;
    padding:10px!important;
  }
  .mobile-visible-cats .mobile-section-head button{display:none!important;}
  .mobile-visible-cats .mobile-priority-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    overflow:visible!important;
    gap:10px!important;
  }
  .mobile-visible-cats .mobile-mini-tile,
  .mobile-visible-cats .mobile-category-tile,
  .mobile-visible-cats .mobile-mini-tile:nth-child(n+7),
  .mobile-visible-cats .mobile-category-tile:nth-child(n+7){display:block!important;}

  .mobile-priority-grid .thumb,
  .mobile-priority-grid .mobile-mini-tile img,
  .mobile-priority-grid .mobile-mini-tile > span{
    aspect-ratio:16/9!important;
    width:100%!important;
    height:auto!important;
    object-fit:cover!important;
  }
  .mobile-priority-grid .video-card h3{
    font-size:12px!important;
    line-height:1.2!important;
    min-height:29px!important;
    margin:7px 8px 3px!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  .mobile-priority-grid .video-card p{font-size:10.5px!important;line-height:1.15!important;margin:0 8px 8px!important;}
  .mobile-priority-grid .video-card .tags{display:none!important;}

  .creator-mobile-reel{display:block!important;overflow:hidden!important;max-width:100%!important;padding-bottom:4px!important;}
  .creator-mobile-reel .mobile-auto-track{display:flex!important;gap:10px!important;width:max-content!important;animation:mobileCreatorSlideGold 38s linear infinite!important;}
  .creator-mobile-reel .mobile-mini-tile{width:150px!important;min-width:150px!important;}
  @keyframes mobileCreatorSlideGold{from{transform:translateX(0)}to{transform:translateX(-50%)}}
}


/* V52.8 DESKTOP GRID RESTORE + MOBILE FULL CATEGORY WALL
   Purpose: restore the approved desktop layout without undoing mobile fixes.
   Desktop and mobile are now hard-separated below. */

@media (min-width: 921px){
  /* Restore the original desktop shell: left directory + content grid + right rail. */
  body:not(.watch-mode):not(.listing-mode) .shell.with-ads{
    display:grid!important;
    grid-template-columns:260px minmax(0,1fr) 260px!important;
    gap:20px!important;
    max-width:1880px!important;
    align-items:start!important;
  }
  body:not(.watch-mode):not(.listing-mode) .shell.with-ads .sidebar{
    display:block!important;
    width:auto!important;
    position:relative!important;
    top:auto!important;
    align-self:start!important;
    padding:14px!important;
    border-radius:18px!important;
    background:linear-gradient(180deg,rgba(13,10,20,.92),rgba(10,7,16,.86))!important;
  }
  body:not(.watch-mode):not(.listing-mode) .category-list{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
    max-height:none!important;
    overflow:visible!important;
  }
  body:not(.watch-mode):not(.listing-mode) .category-list .cat{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
  }
  body:not(.watch-mode):not(.listing-mode) .right-ad-rail{
    display:flex!important;
    flex-direction:column!important;
    gap:18px!important;
    width:auto!important;
    min-width:0!important;
  }
  body:not(.watch-mode):not(.listing-mode) .left-ad-stack{
    display:grid!important;
  }

  /* Home container itself is a vertical section stack. The category wall inside it owns the 3-column grid. */
  body:not(.watch-mode):not(.listing-mode) #homeTiles{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
  }
  body:not(.watch-mode):not(.listing-mode) .home-section-break,
  body:not(.watch-mode):not(.listing-mode) .continue-auto-viewport,
  body:not(.watch-mode):not(.listing-mode) .creator-reel-section,
  body:not(.watch-mode):not(.listing-mode) .two-row-creator-reel,
  body:not(.watch-mode):not(.listing-mode) #browseCategoryGrid{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }

  /* Continue Watching must extend through the full content section, not collapse to one side. */
  body:not(.watch-mode):not(.listing-mode) .continue-auto-viewport{
    display:block!important;
    overflow:hidden!important;
    margin:0 0 18px!important;
  }
  body:not(.watch-mode):not(.listing-mode) .continue-auto-strip,
  body:not(.watch-mode):not(.listing-mode) .home-video-strip.priority-strip{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:18px!important;
    width:100%!important;
    overflow:visible!important;
    padding:0!important;
    margin:0 0 18px!important;
  }
  body:not(.watch-mode):not(.listing-mode) .home-video-strip.priority-strip .video-card{
    min-width:0!important;
    width:100%!important;
  }
  body:not(.watch-mode):not(.listing-mode) .home-video-strip.priority-strip .video-card:nth-child(n+7){
    display:block!important;
  }
  body:not(.watch-mode):not(.listing-mode) .home-video-strip.priority-strip .video-card:nth-child(n+7):not(.continue-auto-strip .video-card){
    display:none!important;
  }

  /* This is the desktop category wall: all populated categories, 3 across, never vertical. */
  body:not(.watch-mode):not(.listing-mode) #browseCategoryGrid,
  body:not(.watch-mode):not(.listing-mode) .browse-category-grid,
  body:not(.watch-mode):not(.listing-mode) .home-category-grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:20px!important;
    align-items:stretch!important;
    margin:0 0 22px!important;
  }
  body:not(.watch-mode):not(.listing-mode) #browseCategoryGrid > .home-tile.category-card,
  body:not(.watch-mode):not(.listing-mode) .browse-category-grid > .home-tile.category-card,
  body:not(.watch-mode):not(.listing-mode) .home-category-grid > .home-tile.category-card{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    border-radius:8px!important;
    overflow:hidden!important;
    min-height:0!important;
  }
  body:not(.watch-mode):not(.listing-mode) #browseCategoryGrid .category-thumb,
  body:not(.watch-mode):not(.listing-mode) .browse-category-grid .category-thumb,
  body:not(.watch-mode):not(.listing-mode) .home-category-grid .category-thumb{
    aspect-ratio:16/9!important;
    width:100%!important;
    min-height:210px!important;
    height:auto!important;
    border-radius:8px!important;
    overflow:hidden!important;
  }
  body:not(.watch-mode):not(.listing-mode) #browseCategoryGrid .category-thumb img,
  body:not(.watch-mode):not(.listing-mode) .browse-category-grid .category-thumb img,
  body:not(.watch-mode):not(.listing-mode) .home-category-grid .category-thumb img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center center!important;
    display:block!important;
  }
  body:not(.watch-mode):not(.listing-mode) #browseCategoryGrid .cat-label,
  body:not(.watch-mode):not(.listing-mode) .browse-category-grid .cat-label,
  body:not(.watch-mode):not(.listing-mode) .home-category-grid .cat-label{
    font-size:20px!important;
    line-height:1.1!important;
    padding:10px 12px!important;
  }

  /* Keep the final sponsored category row as 3 aligned tiles, not mixed into category count logic. */
  body:not(.watch-mode):not(.listing-mode) .category-ad-row-break{
    grid-column:1/-1!important;
    height:0!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  body:not(.watch-mode):not(.listing-mode) #browseCategoryGrid > .mobile-inline-ad-card,
  body:not(.watch-mode):not(.listing-mode) .browse-category-grid > .mobile-inline-ad-card{
    display:grid!important;
    min-height:210px!important;
    border:1px dashed rgba(139,92,246,.38)!important;
    border-radius:8px!important;
    background:rgba(109,40,217,.08)!important;
    color:#c4b5fd!important;
    place-items:center!important;
    text-align:center!important;
  }

  /* Desktop creator reel: two opposing full-width rows. */
  body:not(.watch-mode):not(.listing-mode) .two-row-creator-reel{
    display:grid!important;
    grid-template-rows:repeat(2,auto)!important;
    gap:14px!important;
    overflow:hidden!important;
    margin:0 0 20px!important;
    padding:2px 0 16px!important;
  }
  body:not(.watch-mode):not(.listing-mode) .creator-reel-row{
    display:flex!important;
    gap:18px!important;
    width:max-content!important;
  }
  body:not(.watch-mode):not(.listing-mode) .creator-reel-row .home-tile{
    width:240px!important;
    min-width:240px!important;
    max-width:240px!important;
    padding:0!important;
    border-radius:8px!important;
    overflow:hidden!important;
  }
  body:not(.watch-mode):not(.listing-mode) .creator-reel-row .category-thumb{
    aspect-ratio:16/9!important;
    min-height:135px!important;
    width:100%!important;
  }
  body:not(.watch-mode):not(.listing-mode) .creator-reel-row .category-thumb img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }
}

@media (min-width:921px) and (max-width:1180px){
  body:not(.watch-mode):not(.listing-mode) .shell.with-ads{
    grid-template-columns:230px minmax(0,1fr)!important;
    max-width:1280px!important;
  }
  body:not(.watch-mode):not(.listing-mode) .right-ad-rail{display:none!important;}
  body:not(.watch-mode):not(.listing-mode) #browseCategoryGrid,
  body:not(.watch-mode):not(.listing-mode) .browse-category-grid,
  body:not(.watch-mode):not(.listing-mode) .home-category-grid,
  body:not(.watch-mode):not(.listing-mode) .home-video-strip.priority-strip{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media (max-width:920px){
  /* Mobile keeps all populated categories visible and separate from desktop. */
  body:not(.watch-mode):not(.listing-mode) #homeTiles{display:block!important;}
  .mobile-fast-home{display:block!important;}
  .mobile-visible-cats{display:block!important;}
  .mobile-visible-cats .mobile-priority-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
    overflow:visible!important;
    max-height:none!important;
  }
  .mobile-visible-cats .mobile-mini-tile,
  .mobile-visible-cats .mobile-category-tile,
  .mobile-visible-cats .mobile-priority-grid > *{
    display:block!important;
  }
  .mobile-visible-cats .mobile-mini-tile:nth-child(n+1),
  .mobile-visible-cats .mobile-category-tile:nth-child(n+1){display:block!important;}
}


/* V52.9 MOBILE CATEGORY + CREATOR FINAL FIX
   Desktop is untouched. Mobile now shows every populated category and gives
   creators the same premium two-row sliding treatment as desktop. */
@media (max-width:920px){
  body:not(.watch-mode):not(.listing-mode) .mobile-visible-cats,
  body:not(.watch-mode):not(.listing-mode) .primary-mobile-cats,
  body:not(.watch-mode):not(.listing-mode) .all-mobile-cats{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
    max-height:none!important;
  }
  body:not(.watch-mode):not(.listing-mode) .mobile-visible-cats .mobile-priority-grid,
  body:not(.watch-mode):not(.listing-mode) .primary-mobile-cats .mobile-priority-grid,
  body:not(.watch-mode):not(.listing-mode) .all-mobile-cats .mobile-priority-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    overflow:visible!important;
    max-height:none!important;
    width:100%!important;
  }
  body:not(.watch-mode):not(.listing-mode) .mobile-visible-cats .mobile-priority-grid > *,
  body:not(.watch-mode):not(.listing-mode) .primary-mobile-cats .mobile-priority-grid > *,
  body:not(.watch-mode):not(.listing-mode) .all-mobile-cats .mobile-priority-grid > *,
  body:not(.watch-mode):not(.listing-mode) .mobile-visible-cats .mobile-mini-tile:nth-child(n),
  body:not(.watch-mode):not(.listing-mode) .mobile-visible-cats .mobile-category-tile:nth-child(n){
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
  }
  body:not(.watch-mode):not(.listing-mode) .mobile-visible-cats .mobile-mini-tile img,
  body:not(.watch-mode):not(.listing-mode) .mobile-visible-cats .mobile-category-tile img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center center!important;
  }

  body:not(.watch-mode):not(.listing-mode) .mobile-creator-break{
    display:block!important;
    width:100%!important;
    overflow:hidden!important;
  }
  body:not(.watch-mode):not(.listing-mode) .two-row-mobile-creator-reel{
    display:grid!important;
    grid-template-rows:repeat(2,auto)!important;
    gap:10px!important;
    overflow:hidden!important;
    padding:2px 0 8px!important;
    max-width:100%!important;
  }
  body:not(.watch-mode):not(.listing-mode) .two-row-mobile-creator-reel .mobile-creator-row{
    display:flex!important;
    gap:10px!important;
    width:max-content!important;
    will-change:transform;
  }
  body:not(.watch-mode):not(.listing-mode) .two-row-mobile-creator-reel .mobile-creator-row-a{
    animation:mobileCreatorRowRight 34s linear infinite!important;
  }
  body:not(.watch-mode):not(.listing-mode) .two-row-mobile-creator-reel .mobile-creator-row-b{
    animation:mobileCreatorRowLeft 38s linear infinite!important;
  }
  body:not(.watch-mode):not(.listing-mode) .two-row-mobile-creator-reel .mobile-creator-tile{
    width:150px!important;
    min-width:150px!important;
    max-width:150px!important;
    display:block!important;
  }
  body:not(.watch-mode):not(.listing-mode) .two-row-mobile-creator-reel .mobile-creator-tile img,
  body:not(.watch-mode):not(.listing-mode) .two-row-mobile-creator-reel .mobile-creator-tile > span{
    width:100%!important;
    aspect-ratio:16/9!important;
    height:auto!important;
    object-fit:cover!important;
    object-position:center center!important;
    display:block!important;
  }
  @keyframes mobileCreatorRowRight{from{transform:translateX(-50%)}to{transform:translateX(0)}}
  @keyframes mobileCreatorRowLeft{from{transform:translateX(0)}to{transform:translateX(-50%)}}
}

@media (max-width:520px){
  body:not(.watch-mode):not(.listing-mode) .mobile-visible-cats .mobile-priority-grid,
  body:not(.watch-mode):not(.listing-mode) .primary-mobile-cats .mobile-priority-grid,
  body:not(.watch-mode):not(.listing-mode) .all-mobile-cats .mobile-priority-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body:not(.watch-mode):not(.listing-mode) .two-row-mobile-creator-reel .mobile-creator-tile{
    width:142px!important;
    min-width:142px!important;
    max-width:142px!important;
  }
}

/* ============================================================
   LUSTOMATIC MOBILE V1
   Authoritative mobile presentation layer
   Desktop >= 921px intentionally untouched
   ============================================================ */

@media (max-width: 920px) {

  html,
  body {
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }

  body {
    -webkit-text-size-adjust:100%;
  }

  img,
  video {
    max-width:100%;
  }

  /* ---------- HEADER ---------- */

  .header-main {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:
      "brand controls"
      "search search"!important;
    align-items:center!important;
    width:100%!important;
    max-width:none!important;
    gap:10px 12px!important;
    padding:10px 12px!important;
  }

  .header-main .brand {
    grid-area:brand!important;
    min-width:0!important;
    font-size:15px!important;
    white-space:nowrap!important;
  }

  .header-main .search-wrap,
  .search-wrap {
    grid-area:search!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    justify-self:stretch!important;
  }

  .search {
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:42px!important;
    font-size:16px!important;
  }

  .search-btn {
    flex:0 0 auto!important;
    height:42px!important;
    padding:0 15px!important;
  }

  .header-right {
    grid-area:controls!important;
    min-width:0!important;
    width:auto!important;
    justify-content:flex-end!important;
    gap:7px!important;
  }

  .header-login {
    padding:8px 10px!important;
    font-size:13px!important;
    white-space:nowrap!important;
  }

  .language-select {
    width:64px!important;
    min-width:64px!important;
    max-width:64px!important;
    padding:8px 6px!important;
    font-size:13px!important;
  }

  /* ---------- NAVIGATION ---------- */

  .header-nav {
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    gap:16px!important;
    padding:3px 12px 10px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    white-space:nowrap!important;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }

  .header-nav::-webkit-scrollbar {
    display:none;
  }

  .header-nav a {
    flex:0 0 auto!important;
    font-size:13px!important;
  }

  /* ---------- MAIN SHELL ---------- */

  .shell,
  .shell.with-ads,
  body.watch-mode .shell.with-ads,
  body.listing-mode .shell.with-ads {
    display:block!important;
    grid-template-columns:1fr!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:10px!important;
  }

  .content {
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  /* Desktop sidebar and desktop ad rails must never consume
     mobile layout width. Mobile drawer remains available. */

  .shell > .sidebar,
  .left-ad-stack,
  .left-ad-rail,
  .right-ad-rail,
  .watch-ad-col {
    display:none!important;
  }

  /* ---------- HERO ---------- */

  .hero {
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    width:100%!important;
    gap:12px!important;
    padding:16px!important;
    margin-bottom:16px!important;
    border-radius:14px!important;
  }

  .hero h1 {
    max-width:100%!important;
    font-size:clamp(25px,8vw,34px)!important;
    line-height:1.08!important;
  }

  .hero-actions {
    width:100%!important;
    gap:8px!important;
  }

  /* ---------- MOBILE HOME ---------- */

  .mobile-fast-home,
  .mobile-v72-home {
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  .mobile-priority-section {
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0 0 22px!important;
  }

  .mobile-section-head {
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    margin:0 0 10px!important;
  }

  .mobile-section-head h2 {
    min-width:0!important;
    margin:0!important;
    font-size:20px!important;
    line-height:1.15!important;
  }

  .mobile-section-head a,
  .mobile-section-head button {
    flex:0 0 auto!important;
    font-size:12px!important;
    padding:7px 10px!important;
  }

  /* ---------- VIDEO GRIDS ---------- */

  .video-grid,
  body.listing-mode .video-grid,
  .mobile-priority-grid.mobile-video-grid,
  .mobile-video-grid {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    width:100%!important;
    min-width:0!important;
  }

  .video-card,
  .mobile-fast-video-card {
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    overflow:hidden!important;
  }

  .video-card .thumb {
    width:100%!important;
    aspect-ratio:16/9!important;
    overflow:hidden!important;
  }

  .video-card .thumb img {
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }

  .video-card h3 {
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
    margin:7px 0 3px!important;
    font-size:13px!important;
    line-height:1.25!important;
  }

  .video-card p {
    margin:0 0 7px!important;
    font-size:11px!important;
    line-height:1.3!important;
  }

  /* ---------- CATEGORY / CREATOR TILES ---------- */

  .home-tiles,
  .mobile-priority-grid.mini-grid {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    width:100%!important;
  }

  .mobile-mini-tile {
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
  }

  .mobile-mini-tile img {
    display:block!important;
    width:100%!important;
    height:auto!important;
    aspect-ratio:16/9!important;
    object-fit:cover!important;
  }

  .mobile-mini-tile b {
    font-size:13px!important;
    line-height:1.2!important;
  }

  .mobile-mini-tile small {
    font-size:11px!important;
  }

  /* Creator reel is allowed to scroll horizontally instead
     of increasing page width. */

  .mobile-auto-reel {
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch;
  }

  .mobile-auto-track {
    max-width:none!important;
  }

  /* ---------- LISTING PAGES ---------- */

  .listing-head {
    align-items:flex-start!important;
    gap:8px!important;
  }

  .listing-head h2 {
    max-width:100%!important;
    font-size:24px!important;
    line-height:1.1!important;
    overflow-wrap:anywhere!important;
  }

  .listing-controls {
    width:100%!important;
    gap:8px!important;
    margin-bottom:14px!important;
  }

  .listing-controls label,
  .listing-controls select {
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  .pager,
  .bottom-pager .pager {
    gap:4px!important;
  }

  .page-num,
  .page-ellipsis {
    min-width:31px!important;
    height:31px!important;
    padding:0 7px!important;
    font-size:12px!important;
  }

  /* ---------- WATCH PAGE ---------- */

  body.watch-mode .shell.with-ads {
    padding:0!important;
  }

  body.watch-mode .content {
    padding:0!important;
  }

  body.watch-mode .watch-page-layout,
  .watch-page-layout,
  .watch-layout {
    display:block!important;
    grid-template-columns:1fr!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
  }

  body.watch-mode .watch-core,
  .watch-core,
  .watch-main {
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
  }

  .watch-main {
    padding:10px!important;
    border-radius:0!important;
  }

  .player,
  .watch-main video {
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    aspect-ratio:16/9!important;
    border-radius:8px!important;
    background:#000!important;
  }

  .watch-main h1 {
    margin:13px 0 8px!important;
    font-size:21px!important;
    line-height:1.18!important;
    overflow-wrap:anywhere!important;
  }

  .watch-actions {
    display:flex!important;
    align-items:center!important;
    flex-wrap:wrap!important;
    width:100%!important;
    gap:7px!important;
    margin-bottom:12px!important;
  }

  .watch-actions button,
  .watch-actions .pill {
    flex:0 0 auto!important;
    min-height:38px!important;
    padding:8px 11px!important;
    font-size:12px!important;
  }

  .description {
    font-size:14px!important;
    line-height:1.55!important;
    overflow-wrap:anywhere!important;
  }

  .watch-suggested-block {
    width:100%!important;
    margin:18px 0!important;
    padding:0 10px!important;
  }

  body.watch-mode .watch-suggested-grid,
  .watch-suggested-grid {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }

  /* ---------- PANELS / COMMENTS / FORMS ---------- */

  .panel,
  .comments {
    width:100%!important;
    max-width:100%!important;
    padding:14px!important;
    border-radius:14px!important;
  }

  input,
  textarea,
  select,
  button {
    max-width:100%;
  }

  input,
  textarea,
  select {
    font-size:16px!important;
  }

  .auth-wrap,
  .auth-wrap.wide {
    display:block!important;
    width:100%!important;
    min-height:0!important;
    padding:14px!important;
  }

  .auth-panel {
    width:100%!important;
    max-width:100%!important;
  }

  .legal-shell {
    width:100%!important;
    padding:14px!important;
  }

  .legal-card {
    padding:16px!important;
    border-radius:14px!important;
  }

  .legal-card h1 {
    font-size:28px!important;
  }

  /* ---------- FOOTER ---------- */

  .footer-inner,
  .portal-footer .footer-inner {
    display:block!important;
    width:100%!important;
    padding:24px 14px!important;
  }

  .footer-links,
  .portal-footer .footer-links {
    justify-content:flex-start!important;
    gap:10px 14px!important;
  }

  /* ---------- MOBILE DRAWER ---------- */

  body.mobile-menu-open {
    overflow:hidden!important;
  }

  .mobile-category-drawer {
    max-width:100vw!important;
  }
}


/* Small phones */
@media (max-width: 520px) {

  .header-main {
    padding:9px 10px!important;
  }

  .shell,
  .shell.with-ads {
    padding:8px!important;
  }

  .header-login {
    font-size:12px!important;
    padding:7px 8px!important;
  }

  .language-select {
    width:58px!important;
    min-width:58px!important;
    max-width:58px!important;
  }

  .video-grid,
  body.listing-mode .video-grid,
  .mobile-priority-grid.mobile-video-grid,
  .mobile-video-grid,
  .home-tiles,
  .mobile-priority-grid.mini-grid,
  body.watch-mode .watch-suggested-grid,
  .watch-suggested-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }

  .mobile-section-head h2 {
    font-size:18px!important;
  }

  .watch-main h1 {
    font-size:19px!important;
  }
}


/* Very narrow devices */
@media (max-width: 340px) {

  .video-grid,
  body.listing-mode .video-grid,
  .mobile-priority-grid.mobile-video-grid,
  .mobile-video-grid,
  .home-tiles,
  .mobile-priority-grid.mini-grid,
  body.watch-mode .watch-suggested-grid,
  .watch-suggested-grid {
    grid-template-columns:1fr!important;
  }

}


/* ============================================================
   LUSTOMATIC MOBILE V1.1 — 390PX VISUAL REFINEMENT
   Candidate only
   ============================================================ */

@media (max-width: 920px) {

  /* Tighter mobile header */
  .header-main {
    gap:7px 9px!important;
    padding:8px 10px 7px!important;
  }

  .header-main .brand {
    font-size:14px!important;
    line-height:1!important;
  }

  .header-right {
    gap:5px!important;
  }

  .header-login {
    min-height:36px!important;
    padding:7px 9px!important;
    font-size:12px!important;
  }

  .language-select {
    width:59px!important;
    min-width:59px!important;
    max-width:59px!important;
    min-height:36px!important;
    padding:6px!important;
    font-size:12px!important;
  }

  /* Search */
  .search-wrap {
    gap:6px!important;
  }

  .search {
    height:40px!important;
    min-height:40px!important;
    padding:0 12px!important;
    font-size:16px!important;
  }

  .search-btn {
    height:40px!important;
    min-height:40px!important;
    padding:0 13px!important;
    font-size:13px!important;
  }

  /* Menu button */
  #mobileMenuBtn,
  .mobile-menu-btn {
    width:40px!important;
    min-width:40px!important;
    height:40px!important;
    min-height:40px!important;
    padding:0!important;
  }

  /* Compact horizontal category rail */
  .header-nav {
    gap:15px!important;
    min-height:0!important;
    padding:8px 10px!important;
    margin:0!important;
  }

  .header-nav a {
    font-size:12px!important;
    line-height:1!important;
  }

  /* Remove inherited desktop spacing before mobile content */
  main,
  .shell,
  .shell.with-ads,
  .content,
  .mobile-fast-home,
  .mobile-v72-home {
    margin-top:0!important;
  }

  .shell,
  .shell.with-ads {
    padding-top:8px!important;
  }

  .mobile-fast-home,
  .mobile-v72-home {
    padding-top:0!important;
  }

  .mobile-priority-section:first-child {
    margin-top:0!important;
    padding-top:0!important;
  }

  .mobile-priority-section {
    margin-bottom:18px!important;
  }

  .mobile-section-head {
    margin:0 0 9px!important;
  }

  .mobile-section-head h2 {
    font-size:20px!important;
    line-height:1.1!important;
  }

  .mobile-section-head p,
  .mobile-section-head small {
    line-height:1.25!important;
  }

  /* Card refinement */
  .video-grid,
  body.listing-mode .video-grid,
  .mobile-priority-grid.mobile-video-grid,
  .mobile-video-grid {
    gap:10px!important;
  }

  .video-card,
  .mobile-fast-video-card {
    border-radius:8px!important;
  }

  .video-card h3,
  .mobile-fast-video-card h3 {
    margin:6px 7px 3px!important;
    font-size:12.5px!important;
    line-height:1.22!important;
  }

  .video-card p,
  .mobile-fast-video-card p {
    margin:0 7px 7px!important;
    font-size:10.5px!important;
  }

}


/* 390px-class phones */
@media (max-width: 430px) {

  .shell,
  .shell.with-ads {
    padding-left:10px!important;
    padding-right:10px!important;
  }

  .video-grid,
  body.listing-mode .video-grid,
  .mobile-priority-grid.mobile-video-grid,
  .mobile-video-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    column-gap:9px!important;
    row-gap:11px!important;
  }

}


/* Very narrow phones only */
@media (max-width: 340px) {

  .video-grid,
  body.listing-mode .video-grid,
  .mobile-priority-grid.mobile-video-grid,
  .mobile-video-grid {
    grid-template-columns:1fr!important;
  }

}


/* ==========================================================
   LUSTOMATIC MOBILE V1.2 — WATCH PAGE TOP ALIGNMENT
   Stage 8B9
   ========================================================== */

@media (max-width: 920px) {

  /* Watch route begins immediately after site navigation */
  body.watch-mode main,
  body.watch-mode .main,
  body.watch-mode .main-content,
  body.watch-mode .content,
  body.watch-mode .content-shell,
  body.watch-mode .page-shell,
  body.watch-mode .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Hidden homepage/listing elements must occupy zero space */
  body.watch-mode #homeTiles,
  body.watch-mode #videoGrid,
  body.watch-mode #sectionHeading:empty {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Watch container itself starts at the top */
  body.watch-mode #watchView {
    display: block !important;
    position: relative !important;
    top: auto !important;
    transform: none !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    min-height: 0 !important;
  }

  body.watch-mode .watch-page-layout,
  body.watch-mode .watch-core,
  body.watch-mode .watch-main {
    position: relative !important;
    top: auto !important;
    transform: none !important;

    width: 100% !important;
    max-width: 100% !important;

    margin-top: 0 !important;
    padding-top: 0 !important;

    min-height: 0 !important;
  }

  /* Player should be the first substantive watch-page element */
  body.watch-mode .watch-main video,
  body.watch-mode .watch-main iframe,
  body.watch-mode .watch-main .video-player,
  body.watch-mode .watch-main .player-wrap,
  body.watch-mode .watch-main .video-wrap {
    margin-top: 0 !important;
  }

  /* Desktop ad columns must not reserve vertical/mobile space */
  body.watch-mode .watch-ad-col,
  body.watch-mode .left-watch-ads,
  body.watch-mode .right-watch-ads,
  body.watch-mode .skeleton-desktop {
    display: none !important;
  }
}


/* ==========================================================
   LUSTOMATIC MOBILE V1.3 — HOMEPAGE CATEGORIES TITLE
   Stage 8B10A
   ========================================================== */

@media (max-width: 920px) {
  .mobile-categories-title {
    margin: 18px 0 10px !important;
    padding: 0 2px !important;
  }

  .mobile-categories-title h2 {
    margin: 0 0 4px !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
  }

  .mobile-categories-title p {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    opacity: .72;
  }
}


/* ==========================================================
   LUSTOMATIC MOBILE V1.4 — TOP NAV / CATEGORY TAB ALIGNMENT
   Stage 8B10B
   ========================================================== */

@media (max-width: 920px) {

  /* Main mobile horizontal navigation row */
  #headerCategories,
  .header-categories,
  .top-categories,
  .category-nav,
  .header-nav {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;

    width: 100% !important;
    max-width: 100% !important;

    min-height: 38px !important;

    margin: 0 !important;
    padding: 0 10px !important;

    gap: 16px !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    white-space: nowrap !important;

    box-sizing: border-box !important;

    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #headerCategories::-webkit-scrollbar,
  .header-categories::-webkit-scrollbar,
  .top-categories::-webkit-scrollbar,
  .category-nav::-webkit-scrollbar,
  .header-nav::-webkit-scrollbar {
    display: none !important;
  }

  /* Every tab gets exactly the same vertical alignment */
  #headerCategories a,
  .header-categories a,
  .top-categories a,
  .category-nav a,
  .header-nav a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 auto !important;

    height: 38px !important;

    margin: 0 !important;
    padding: 0 !important;

    line-height: 1 !important;
    white-space: nowrap !important;

    vertical-align: middle !important;
  }

  /* First and last tabs get clean edge spacing */
  #headerCategories a:first-child,
  .header-categories a:first-child {
    margin-left: 0 !important;
  }

  #headerCategories a:last-child,
  .header-categories a:last-child {
    margin-right: 6px !important;
  }

}





/* ==========================================================
   LUSTOMATIC MOBILE V1.5 — CATEGORY THUMBNAIL LABELS
   Stage 8B10C
   ========================================================== */

@media (max-width: 920px) {

  /* Category tile provides positioning context */
  .category-card .category-thumb,
  .primary-mobile-cats .category-thumb,
  .all-mobile-cats .category-thumb {
    position: relative !important;
    overflow: hidden !important;
  }

  /* Category image fills the thumbnail */
  .category-card .category-thumb img,
  .primary-mobile-cats .category-thumb img,
  .all-mobile-cats .category-thumb img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
  }

  /* Category name visible directly on thumbnail */
  .category-card .cat-label,
  .primary-mobile-cats .cat-label,
  .all-mobile-cats .cat-label {
    display: block !important;

    position: absolute !important;
    left: 8px !important;
    right: 8px !important;
    bottom: 7px !important;
    z-index: 5 !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 14px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;

    color: #fff !important;
    text-align: left !important;

    white-space: normal !important;
    overflow: visible !important;

    text-shadow:
      0 1px 2px rgba(0,0,0,.95),
      0 2px 6px rgba(0,0,0,.9) !important;

    background: none !important;
    border: 0 !important;
  }

  /* Slight darkening at bottom so titles stay readable */
  .category-card .category-thumb::after,
  .primary-mobile-cats .category-thumb::after,
  .all-mobile-cats .category-thumb::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 42% !important;
    pointer-events: none !important;
    z-index: 3 !important;

    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0),
      rgba(0,0,0,.72)
    ) !important;
  }

  /* Keep label above gradient */
  .category-card .cat-label,
  .primary-mobile-cats .cat-label,
  .all-mobile-cats .cat-label {
    z-index: 4 !important;
  }
}


/* ==========================================================
   LUSTOMATIC MOBILE V1.6 — CATEGORY LABELS INSIDE THUMBNAILS
   Stage 8B10E
   ========================================================== */

@media (max-width: 920px) {

  .mobile-category-tile {
    display: block !important;
    overflow: hidden !important;
  }

  .mobile-category-thumb {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    border-radius: inherit !important;
    background: #111 !important;
  }

  .mobile-category-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .mobile-category-thumb::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 52% !important;
    z-index: 2 !important;
    pointer-events: none !important;
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0),
      rgba(0,0,0,.82)
    ) !important;
  }

  .mobile-category-label {
    position: absolute !important;
    left: 9px !important;
    right: 9px !important;
    bottom: 8px !important;
    z-index: 3 !important;

    display: block !important;
    margin: 0 !important;
    padding: 0 !important;

    color: #fff !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    text-align: left !important;

    text-shadow: 0 1px 4px rgba(0,0,0,.95) !important;
  }

  .mobile-category-empty {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
  }

  .mobile-category-tile > small {
    display: block !important;
    margin: 5px 2px 0 !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    opacity: .72 !important;
  }
}

