/* public/css/styles.css */

:root{
  /* Core */
  --bg: #05050a;
  --panel: rgba(255,255,255,0.035);
  --panel-2: rgba(255,255,255,0.055);
  --panel-strong: rgba(10,10,16,0.86);
  --border: rgba(255,255,255,0.10);
  --border-2: rgba(255,255,255,0.14);

  --text: rgba(255,255,255,0.90);
  --muted: rgba(255,255,255,0.62);
  --muted-2: rgba(255,255,255,0.46);

  /* Brand (purple) */
  --accent: #a855f7;
  --accent-2: #7c3aed;

  /* Status */
  --danger: #ef4444;
  --ok: #22c55e;

  /* Radius + shadow */
  --radius: 18px;
  --radius-sm: 14px;
  --radius-xs: 10px;

  --shadow: 0 22px 70px rgba(0,0,0,0.70);
  --shadow-soft: 0 14px 42px rgba(0,0,0,0.52);
  --shadow-lift: 0 22px 60px rgba(0,0,0,0.62);

  /* Layout sizing */
  --page-max: 1320px;
  --gutter: 20px;
  --nav-h: 60px;
  --control-h: 38px;

  /* Typography scale */
  --fs-hero: clamp(26px, 2.4vw, 38px);
  --fs-h2: 20px;
  --fs-title: 14px;
  --fs-meta: 12px;

  /* Interaction */
  --ease: cubic-bezier(.2,.8,.2,1);
}


*{ box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  font-size: 14.75px;
  line-height: 1.42;
  color: var(--text);
  background:
    radial-gradient(900px 540px at 45% 18%, rgba(168,85,247,0.12), transparent 62%),
    radial-gradient(720px 420px at 18% 12%, rgba(124,58,237,0.10), transparent 60%),
    radial-gradient(900px 700px at 70% 88%, rgba(255,255,255,0.04), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* low-noise grain */
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.10) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 22%, rgba(168,85,247,0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 72%, rgba(255,255,255,0.08) 0 1px, transparent 2px);
  opacity: 0.08;
  filter: blur(0.2px);
}


a{
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
a:hover{ color: white; }

.container{
  width: min(var(--page-max), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 14px 0 28px;
}

/* ---------- Nav ---------- */
.nav{
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(5,5,10,0.985);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 34px rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
}
.nav-inner{
  height: var(--nav-h);
  width: min(var(--page-max), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  flex: 0 0 auto;
}

/* Brand as a link (safe: only affects .brand when it's an <a href="...">) */
.brand[href]{
  color: inherit;
  text-decoration: none;
}
.brand[href]:hover{
  color: inherit;
}

.brand-mark{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.30), rgba(168,85,247,0.40) 35%, rgba(124,58,237,0.26) 65%, transparent);
  box-shadow: 0 0 26px rgba(168,85,247,0.22);
  border: 1px solid rgba(255,255,255,0.10);
}

/* ✅ Use the real logo only when brand-mark-logo is present */
.brand-mark.brand-mark-logo{
  /* Keep the logo visually larger while keeping the layout footprint smaller.
     This prevents the brand area from pushing the nav links off-screen. */
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow: visible;

  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}

/* ✅ Actual logo image */
.brand-logo{
  display:block;
  /* Many logo PNGs have transparent padding; oversizing helps readability
     without increasing the flex item's width. */
  width: 140%;
  height: 140%;
  object-fit: contain;
}
.brand-title{
  font-weight: 860;
  letter-spacing: 0.2px;
  font-size: 16px;
}
.brand-title span{
  background: linear-gradient(90deg, var(--accent), #e9d5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-center{
  flex: 1 1 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width: 220px;
}

.search{
  width: min(740px, 100%);
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.035);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.18) inset;
}
.search:focus-within{
  border-color: rgba(168,85,247,0.55);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.16);
}
.search-input{
  flex: 1;
  height: var(--control-h);
  padding: 0 12px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-weight: 520;
}
.search-input::placeholder{ color: rgba(255,255,255,0.46); }

.search-btn{
  height: var(--control-h);
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.90);
  cursor:pointer;
  font-weight: 720;
}
.search-btn:hover{ background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); }

.nav-links{
  display:flex;
  align-items:center;
  gap: 8px;
  flex: 0 0 auto;
}
.nav-links a{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.78);
}
.nav-links a:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
}

/* ---------- Headings ---------- */
.h1{
  font-size: var(--fs-hero);
  line-height: 1.12;
  margin: 8px 0 6px;
  letter-spacing: -0.02em;
}
.sub{
  color: var(--muted);
  margin: 0 0 12px;
}

/* ---------- Panels / cards ---------- */
.panel{
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.panel-inner{ padding: 18px; }

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card{
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(255,255,255,0.028);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.18) inset;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}
.card:hover{
  transform: translateY(-3px);
  border-color: rgba(168,85,247,0.26);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(0,0,0,0.16) inset;
}
.card-title{
  font-weight: 860;
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.25;
}
.card-meta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

/* Home video grid */
.video-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.video-card{ padding: 10px; }
.video-title{
  margin: 8px 0 6px;
  font-weight: 860;
  font-size: 14px;
  line-height: 1.22;
  letter-spacing: 0.1px;
}
.video-title a{ color: rgba(255,255,255,0.92); }
.video-title a:hover{ color: white; }
.video-meta{
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  height: var(--control-h);
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.90);
  cursor:pointer;
  font-weight: 760;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.btn:hover{
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.20);
  transform: translateY(-1px);
}
.btn-primary{
  border-color: rgba(168,85,247,0.40);
  background: linear-gradient(135deg, rgba(168,85,247,0.26), rgba(124,58,237,0.22));
  box-shadow: 0 0 0 1px rgba(168,85,247,0.14) inset, 0 14px 50px rgba(124,58,237,0.14);
}
.btn-primary:hover{
  background: linear-gradient(135deg, rgba(168,85,247,0.32), rgba(124,58,237,0.28));
  border-color: rgba(168,85,247,0.55);
}
.btn-danger{
  border-color: rgba(239,68,68,0.40);
  background: rgba(239,68,68,0.12);
}
.btn-sm{ height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13px; }

/* ---------- Forms ---------- */
.form{
  display:grid;
  gap: 12px;
}
.label{
  font-size: 13px;
  color: var(--muted);
}
.input, select{
  width: 100%;
  height: var(--control-h);
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.20);
  color: var(--text);
  outline: none;
}
.input:focus, select:focus{
  border-color: rgba(168,85,247,0.55);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.14);
}

/* ---------- Badges ---------- */
.badge{
  display:inline-flex;
  align-items:center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  font-size: 12px;
  color: rgba(255,255,255,0.80);
}
.badge-premium{
  border-color: rgba(168,85,247,0.35);
  background: rgba(168,85,247,0.12);
}
.badge-free{
  border-color: rgba(34,197,94,0.25);
  background: rgba(34,197,94,0.10);
}
.badge-published{
  border-color: rgba(34,197,94,0.25);
  background: rgba(34,197,94,0.10);
}
.badge-draft{
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

/* ---------- Alerts ---------- */
.alert{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.88);
}
.alert-warn{
  border-color: rgba(168,85,247,0.35);
  background: rgba(168,85,247,0.10);
}
.alert-danger{
  border-color: rgba(239,68,68,0.35);
  background: rgba(239,68,68,0.10);
}

/* ---------- Video ---------- */
.video-wrap{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.35);
  max-height: 70vh;
  max-width: 100%;
}

/* Native video defaults (still used on other pages if needed) */
video{
  width: 100%;
  height: auto;
  display:block;
  background: #000;
}

.video-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
  background: radial-gradient(800px 400px at 50% 30%, rgba(168,85,247,0.22), rgba(0,0,0,0.65));
}
.overlay-box{
  width: min(680px, 92%);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(5,5,10,0.62);
  padding: 18px;
  text-align: center;
}
.overlay-box h2{
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: 0.2px;
}
.overlay-box p{
  margin: 0 0 14px;
  color: var(--muted);
}
.overlay-actions{
  display:flex;
  justify-content:center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Table ---------- */
.table{
  width: 100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
}
.table th, .table td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}
.table th{
  text-align:left;
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.03);
}
.table tr:hover td{
  background: rgba(255,255,255,0.03);
}

/* ---------- Footer ---------- */
.footer{
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  padding: 16px 0 22px;
  text-align:center;
}

/* --- Thumbnails (Home + Admin) --- */
.thumb-wrap{
  position: relative;
  width: 100%;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  margin-bottom: 10px;
  transform: translateZ(0);
}
.thumb{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 180ms var(--ease), filter 180ms var(--ease);
}
.card:hover .thumb,
.video-card:hover .thumb{
  transform: scale(1.045);
  filter: saturate(1.05) contrast(1.03);
}
.thumb-empty{
  aspect-ratio: 16 / 9;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,0.55);
}

.thumb-play{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(180deg, rgba(0,0,0,0.20), rgba(0,0,0,0.55));
  opacity: 0;
  transition: opacity 140ms var(--ease);
}
.thumb-wrap:hover .thumb-play{ opacity: 1; }

.play-icon{
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(5,5,10,0.55);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 18px 60px rgba(0,0,0,0.62);
  transform: scale(0.98);
  transition: transform 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
}
.thumb-wrap:hover .play-icon{
  transform: scale(1);
  border-color: rgba(255,255,255,0.28);
  background: rgba(5,5,10,0.62);
}
.play-icon::before{
  content:"";
  display:block;
  width: 0;
  height: 0;
  border-left: 16px solid rgba(255,255,255,0.90);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 3px;
}

/* Make tables more readable on large dashboards */
.table td { vertical-align: top; }
code { color: rgba(255,255,255,0.75); }

/* Watch layout */
.watch-layout{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items:start;
}
.watch-main{
  min-width: 0;
  max-width: 980px;
  justify-self: start;
}
.watch-side{ position: sticky; top: calc(var(--nav-h) + 16px); }

@media (max-width: 980px){
  .nav-center{ display:none; }
  .watch-layout{ grid-template-columns: 1fr; }
  .watch-side{ position: static; }
  .watch-main{ max-width: 100%; }
}

@media (max-width: 520px){
  .container{ width: min(var(--page-max), calc(100% - 32px)); }
  .video-grid{ grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

  /* Mobile nav: prevent overflow when the logo + links can't fit on one row */
  .nav-inner{
    height: auto;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 10px;
  }
  .brand{ gap: 10px; }
  .nav-links{
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 6px;
  }
  .nav-links a{ padding: 8px 9px; }
}

/* =========================================================
   Pro Player Overlay (REPLACES old .cc-controls bar)
   Requires: watch.ejs markup (.cc-wrap/.cc-overlay) + /js/player.js
   ========================================================= */

.cc-player{ max-width: 980px; }

.cc-wrap{
  position: relative;
}

.cc-wrap video{
  width: 100%;
  height: auto;
  display:block;
  background:#000;
}

.cc-overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
}

.cc-overlay.show{
  opacity: 1;
}

.cc-topbar,
.cc-bottombar{
  pointer-events: none;
}

.cc-topbar{
  padding: 10px 12px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
}

.cc-title-mini{
  font-weight: 750;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-bottombar{
  padding: 10px 12px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.70), transparent);
}

.cc-bottombar *{
  pointer-events: auto;
}

.cc-seek{
  width: 100%;
  margin: 0 0 10px;
  height: 6px;
  appearance: none;
  background: rgba(255,255,255,0.22);
  border-radius: 999px;
  outline: none;
}

.cc-seek::-webkit-slider-thumb{
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  border: 2px solid rgba(168,85,247,0.65);
}

.cc-seek::-moz-range-thumb{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  border: 2px solid rgba(168,85,247,0.65);
}

.cc-row{
  display:flex;
  align-items:center;
  gap: 10px;
}

.cc-spacer{ flex: 1; }

.cc-icon{
  width: 40px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.92);
  font-weight: 800;
  cursor:pointer;
}

.cc-icon:hover{
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
}

.cc-time{
  display:flex;
  align-items:center;
  gap: 6px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}

.cc-sep{ color: rgba(255,255,255,0.55); }

.cc-vol{
  width: 120px;
  height: 6px;
  appearance: none;
  background: rgba(255,255,255,0.22);
  border-radius: 999px;
  outline: none;
}

.cc-vol::-webkit-slider-thumb{
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  border: 2px solid rgba(168,85,247,0.65);
}

.cc-vol::-moz-range-thumb{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  border: 2px solid rgba(168,85,247,0.65);
}

/* Meta under video */
.cc-meta{ margin-top: 14px; }
.cc-title{
  font-weight: 850;
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.cc-submeta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  color: rgba(255,255,255,0.62);
  font-size: 13px;
}
.cc-submeta .dot{ color: rgba(255,255,255,0.40); }

.cc-desc{ margin-top: 12px; }
.cc-desc-text{
  color: rgba(255,255,255,0.72);
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Up next */
.cc-upnext{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
  align-items:start;
}
.cc-upthumb{
  border-radius: 12px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.cc-upthumb img{
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display:block;
}
.cc-upthumb-empty{
  aspect-ratio:16/9;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
}
.cc-up-title{
  font-weight: 750;
  font-size: 13px;
  line-height:1.25;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.92);
}
.cc-up-sub{
  color: rgba(255,255,255,0.58);
  font-size: 12px;
}

/* Fullscreen tweaks */
.cc-wrap:fullscreen{
  background: #000;
}
.cc-wrap:fullscreen .cc-overlay{
  opacity: 1;
}
/* The watch player container should be a fixed 16:9 box */
.video-wrap.cc-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;              /* ensure aspect-ratio controls height */
  max-height: none;          /* disable earlier max-height crop */
  background: #000;          /* black bars */
  overflow: hidden;          /* keep overlays inside */
  border-radius: 18px;
}

/* The video must fill the box but NOT crop */
.video-wrap.cc-wrap > video,
.cc-wrap > video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;       /* key: show full video */
  background: #000;
}

/* If any other rule forces height:auto, this overrides it */
.cc-wrap video{
  height: 100% !important;
  object-fit: contain !important;
}

/* Fullscreen: still contain, still black bars */
.video-wrap.cc-wrap:fullscreen,
.video-wrap.cc-wrap:-webkit-full-screen{
  background: #000;
}

.video-wrap.cc-wrap:fullscreen > video,
.video-wrap.cc-wrap:-webkit-full-screen > video{
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* =========================================================
   Analytics (PRO layout) — scoped classes (won't clash)
   Use with updated views/admin-analytics.ejs
   ========================================================= */

.a-page{
  max-width: 1200px;
  margin: 0 auto;
}

.a-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  margin: 8px 0 16px;
}

.a-title{
  margin: 0;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.a-sub{
  margin: 8px 0 0;
  color: var(--muted);
}

.a-range{
  display:flex;
  gap: 10px;
  align-items:center;
}

.a-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  white-space: nowrap;
}

.a-grid{
  display:grid;
  gap: 14px;
}

.a-kpis{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1000px){
  .a-kpis{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px){
  .a-kpis{ grid-template-columns: 1fr; }
}

.a-two{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

@media (max-width: 1000px){
  .a-two{ grid-template-columns: 1fr; }
}

.a-split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 1000px){
  .a-split{ grid-template-columns: 1fr; }
}

.a-card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow:hidden;
}

.a-pad{
  padding: 14px 16px;
}

.a-card-title{
  margin: 0 0 10px;
  font-weight: 850;
  font-size: 16px;
}

.a-kpi-label{
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.a-kpi-value{
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.a-kpi-hint{
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 12px;
}

.a-metric-row{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1000px){
  .a-metric-row{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px){
  .a-metric-row{ grid-template-columns: 1fr; }
}

.a-mini{
  color: var(--muted-2);
  font-size: 12px;
}

.a-table{
  width: 100%;
  border-collapse: collapse;
}

.a-table th{
  text-align:left;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.a-table td{
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: middle;
}

.a-table tr:last-child td{ border-bottom: none; }

.a-num{
  text-align:right;
  font-variant-numeric: tabular-nums;
}

.a-actions{
  text-align:right;
  white-space: nowrap;
}

/* tighten buttons in tables without touching global .btn */
.a-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.86);
  font-weight: 700;
}
.a-btn:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
}

.a-muted-link{
  color: rgba(255,255,255,0.72);
}
.a-muted-link:hover{ color: #fff; }

/* =========================================================
   NAV: Profile Dropdown (YouTube-style)
   ========================================================= */

.nav-menu{ position: relative; }

.nav-menu-btn{
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.86);
  cursor: pointer;
}

.nav-menu-btn:hover{
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.16);
}

.nav-menu-btn:focus-visible{
  outline: 2px solid rgba(168,85,247,0.55);
  outline-offset: 2px;
}

.nav-avatar{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  color: rgba(255,255,255,0.92);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), rgba(168,85,247,0.35) 45%, rgba(124,58,237,0.20));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 18px rgba(168,85,247,0.18);
  user-select: none;
}

.nav-menu-label{
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-caret{
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255,255,255,0.55);
  border-bottom: 2px solid rgba(255,255,255,0.55);
  transform: rotate(45deg);
  margin-left: 2px;
  opacity: .8;
}

.nav-menu-panel{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 320px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,10,16,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 22px 60px rgba(0,0,0,0.70);
  overflow: hidden;

  transform: translateY(-6px) scale(0.985);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 160ms ease;
}

.nav-menu[data-open="true"] .nav-menu-panel{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-menu-top{
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: radial-gradient(900px 300px at 10% 0%, rgba(168,85,247,0.22), transparent 55%);
}

.nav-menu-name{
  font-weight: 900;
  letter-spacing: 0.2px;
}

.nav-menu-sub{
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  margin-top: 4px;
}

.nav-menu-section{
  padding: 10px;
  display: grid;
  gap: 6px;
}

.nav-menu-item{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.86);
}

.nav-menu-item:hover{
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
}

.nav-menu-right{
  color: rgba(255,255,255,0.45);
  font-weight: 900;
}

.nav-menu-divider{
  height: 1px;
  background: rgba(255,255,255,0.10);
}

.nav-menu-heading{
  padding: 4px 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.nav-menu-danger:hover{
  border-color: rgba(239,68,68,0.28);
  background: rgba(239,68,68,0.08);
}

/* Mobile: keep dropdown usable */
@media (max-width: 520px){
  .nav-menu-panel{ width: min(92vw, 340px); }
  .nav-menu-label{ max-width: 120px; }
}

/* =========================================================
   Search page (user-side discovery)
   ========================================================= */

.s-head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 14px;
}

.s-count{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.s-filters{ margin-top: 14px; }

.s-filter-row{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items:end;
}

.s-actions{
  display:flex;
  gap: 10px;
  justify-content:flex-end;
  flex-wrap: wrap;
}

.s-chip-row{
  margin-top: 10px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.s-chip{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.78);
  font-size: 12.5px;
}

.s-chip:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
}

.s-pager{
  margin-top: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
}

.s-pageinfo{
  color: rgba(255,255,255,0.70);
}

@media (max-width: 980px){
  .s-filter-row{ grid-template-columns: 1fr 1fr; }
  .s-actions{ justify-content:flex-start; }
}

@media (max-width: 520px){
  .s-head{ align-items:flex-start; flex-direction: column; }
  .s-count{ justify-content:flex-start; }
}

/* =========================================================
   Home: Fancy layout (Hero + Rails + Categories)
   ========================================================= */

.home-hero{
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(1200px 500px at 20% 10%, rgba(168,85,247,0.22), transparent 55%),
    radial-gradient(900px 450px at 80% 30%, rgba(124,58,237,0.14), transparent 55%),
    rgba(255,255,255,0.02);
}

.home-hero-inner{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  padding: 18px;
  align-items: center;
}

.home-hero-kicker{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.78);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
}

.home-hero-title{
  margin: 10px 0 8px;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 950;
}

.home-hero-meta{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  margin-bottom: 14px;
}

.home-dot{ opacity: .55; }

.home-hero-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.home-hero-badges{
  margin-top: 14px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.home-hero-thumb{
  position: relative;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 18px 60px rgba(0,0,0,0.60);
  aspect-ratio: 16/9;
}

.home-hero-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.home-dur{
  position:absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 10px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 12px;
  color: rgba(255,255,255,0.92);
  font-weight: 900;
}

.home-rowhead{
  margin-top: 14px;
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 12px;
}

.home-h2{
  font-weight: 950;
  font-size: 18px;
  margin: 0;
}

.home-sub{
  margin-top: 6px;
  color: rgba(255,255,255,0.58);
  font-size: 13px;
}

.home-more{
  color: rgba(255,255,255,0.70);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.home-more:hover{
  color: white;
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
}

.home-rail{
  margin-top: 12px;
  padding-bottom: 8px;
}

.home-rail-card{
  width: 320px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.home-cats{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-cat{
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  box-shadow: var(--shadow-soft);
}
.home-cat:hover{
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
}

.home-cat-name{
  font-weight: 900;
  font-size: 14px;
  color: rgba(255,255,255,0.90);
}

.home-cat-sub{
  margin-top: 6px;
  color: rgba(255,255,255,0.55);
  font-size: 12.5px;
}

@media (max-width: 980px){
  .home-hero-inner{ grid-template-columns: 1fr; }
  .home-rail-card{ width: 300px; }
  .home-cats{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px){
  .home-rail-card{ width: 86vw; }
  .home-cats{ grid-template-columns: 1fr; }
}

/* =========================================================
   Search v2 (less boxy, more product-like)
   ========================================================= */

.s2 .card{ background: rgba(255,255,255,0.025); }
.s2-top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
}

.s2-title{
  margin: 6px 0 6px;
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 950;
}

.s2-sub{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,0.60);
  font-size: 13px;
}

.s2-kpi{ color: rgba(255,255,255,0.72); }
.s2-sep{ opacity: .55; }

.s2-right{
  display:flex;
  align-items:center;
  gap: 10px;
}

.s2-sort-select{
  min-width: 160px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}

.s2-filters{ position: relative; }
.s2-filters > summary{ list-style:none; }
.s2-filters > summary::-webkit-details-marker{ display:none; }

.s2-filter-btn{
  border-radius: 999px;
  height: 38px;
  padding: 0 14px;
}

.s2-dot{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(168,85,247,0.90);
  box-shadow: 0 0 14px rgba(168,85,247,0.35);
  margin-left: 8px;
}

.s2-panel{
  position:absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 520px;
  z-index: 60;
  border-radius: 16px;
  overflow:hidden;
  background: rgba(10,10,16,0.92);
  backdrop-filter: blur(12px);
}

.s2-panel-inner{ padding: 14px; }

.s2-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}

.s2-actions{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  justify-content:flex-end;
  flex-wrap: wrap;
}

.s2-chips{
  margin-top: 10px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.s2-chip{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.78);
  font-size: 12.5px;
}
.s2-chip:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
}
.s2-chip-ghost{
  background: transparent;
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.62);
}

.s2-meta{
  color: rgba(255,255,255,0.58);
  font-size: 13px;
  margin-top: 6px;
}
.s2-dotsep{ opacity: .6; }

.s2-dur{
  position:absolute;
  right:10px;
  bottom:10px;
  padding:4px 8px;
  border-radius:10px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.14);
  font-size:12px;
  color: rgba(255,255,255,0.92);
  font-weight: 900;
}

.s2-pager{
  margin-top: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
}
.s2-pageinfo{ color: rgba(255,255,255,0.70); }

/* responsive */
@media (max-width: 980px){
  .s2-top{ align-items:flex-start; flex-direction: column; }
  .s2-right{ width: 100%; justify-content:flex-start; flex-wrap: wrap; }
  .s2-panel{ width: min(92vw, 560px); left: 0; right: auto; }
  .s2-grid{ grid-template-columns: 1fr; }
}

/* --- Search Pro Layout (desktop sidebar + results) --- */
.s2-layout{
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  margin-top: 14px;
}
.s2-sidebar{
  position: sticky;
  top: calc(var(--nav-h) + 18px);
  align-self: start;
  padding: 14px;
}
.s2-side-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.s2-side-title{
  font-weight: 900;
  letter-spacing: .02em;
}
.s2-results{ min-width: 0; }
.s2-filters-mobile{ display: none; }

@media (max-width: 1050px){
  .s2-layout{ grid-template-columns: 1fr; }
  .s2-sidebar{ display: none; }
  .s2-filters-mobile{ display: block; }
}
/* =========================================================
   GLOBAL POLISH v2 (reduces boxy/AI feel + adds space vibe)
   Drop-in overrides (keep existing rules above)
   ========================================================= */

:root{
  --glass: rgba(255,255,255,0.045);
  --glass-2: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.12);
  --glass-border-2: rgba(255,255,255,0.16);
  --shadow-hard: 0 28px 90px rgba(0,0,0,0.72);
  --shadow-mid: 0 18px 55px rgba(0,0,0,0.62);
  --ease: cubic-bezier(.2,.8,.2,1);
}

/* Space background: layered nebula + sparse stars */
body{
  background:
    radial-gradient(1200px 800px at 55% 12%, rgba(168,85,247,0.22), transparent 55%),
    radial-gradient(900px 650px at 18% 18%, rgba(124,58,237,0.18), transparent 56%),
    radial-gradient(900px 650px at 80% 70%, rgba(56,189,248,0.10), transparent 58%),
    radial-gradient(1000px 800px at 40% 90%, rgba(168,85,247,0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* stars */
body::before{
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 40%, rgba(255,255,255,0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 70%, rgba(255,255,255,0.14) 0 1px, transparent 2px),
    radial-gradient(circle at 85% 75%, rgba(255,255,255,0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 15% 80%, rgba(168,85,247,0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 92% 18%, rgba(124,58,237,0.14) 0 1px, transparent 2px);
  filter: blur(0.2px);
}

/* soft fog layer */
body::after{
  content:"";
  position: fixed;
  inset: -10% -10% -10% -10%;
  pointer-events: none;
  background:
    radial-gradient(1000px 600px at 30% 40%, rgba(168,85,247,0.10), transparent 60%),
    radial-gradient(900px 520px at 70% 30%, rgba(124,58,237,0.08), transparent 62%),
    radial-gradient(900px 520px at 60% 80%, rgba(56,189,248,0.06), transparent 62%);
  opacity: 0.9;
  filter: blur(18px);
  mix-blend-mode: screen;
}

/* Typography tighten */
.h1{ letter-spacing: -0.02em; }

/* Nav: make it glassy and less flat */
.nav{
  background: rgba(5,5,10,0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
}

/* Panels/cards: less chunky, more premium */
.panel{
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border-color: var(--glass-border);
  box-shadow: var(--shadow-mid);
}

.card{
  background: rgba(255,255,255,0.025);
  border-color: rgba(255,255,255,0.11);
  transition: transform 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
}

/* Thumb: nicer hover */
.thumb-wrap{
  border-color: rgba(255,255,255,0.12);
}
.thumb-play{
  background: radial-gradient(520px 240px at 50% 30%, rgba(168,85,247,0.22), rgba(0,0,0,0.62));
}

/* Buttons: smoother */
.btn{
  border-radius: 999px;
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.035);
  transition: transform 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); }

.btn-primary{
  border-color: rgba(168,85,247,0.40);
  background: linear-gradient(135deg, rgba(168,85,247,0.28), rgba(124,58,237,0.22));
  box-shadow: 0 0 0 1px rgba(168,85,247,0.12) inset, 0 18px 70px rgba(124,58,237,0.16);
}

/* Inputs: reduce boxy feel */
.input, select{
  border-radius: 14px;
  background: rgba(0,0,0,0.28);
  border-color: rgba(255,255,255,0.12);
}
.search{
  background: rgba(255,255,255,0.025);
  border-color: rgba(255,255,255,0.12);
}

/* Home: tighten rhythm */
.home-rowhead{ margin-top: 18px; }
.home-sub{ margin-top: 4px; }
.home-rail{ padding-bottom: 10px; }
.home-rail-card{ width: 300px; }

/* ===== Fix OLD search layout too (in case your search.ejs wasn't replaced) ===== */
.s-head{ align-items: center; }
.s-filters .panel-inner{ padding: 12px !important; }
.s-filter-row{
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
}
.s-filter-row .input{ height: 38px; border-radius: 14px; }
.s-actions .btn{ height: 38px; }

/* Make the old filter bar less huge */
.s-filters{ border-radius: 18px; }

/* Search v2 panel: a bit more premium */
.s2-panel{
  border-color: rgba(255,255,255,0.12);
  box-shadow: var(--shadow-hard);
}

/* Reduce scrollbar visual weight (optional) */
::-webkit-scrollbar{ width: 10px; height: 10px; }
::-webkit-scrollbar-thumb{ background: rgba(255,255,255,0.10); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,0.16); }

/* =========================================================
   Search v2 + Home v2 polish
   ========================================================= */

/* Search v2 */
.s2-top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
}
.s2-title{
  margin: 6px 0 6px;
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 950;
}
.s2-sub{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,0.60);
  font-size: 13px;
}
.s2-kpi{ color: rgba(255,255,255,0.72); }
.s2-sep{ opacity: .55; }

.s2-right{
  display:flex;
  align-items:center;
  gap: 10px;
}
.s2-sort-select{
  min-width: 160px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}

.s2-filters{ position: relative; }
.s2-filters > summary{ list-style:none; }
.s2-filters > summary::-webkit-details-marker{ display:none; }

.s2-filter-btn{
  border-radius: 999px;
  height: 38px;
  padding: 0 14px;
}

.s2-dot{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(168,85,247,0.90);
  box-shadow: 0 0 14px rgba(168,85,247,0.35);
  margin-left: 8px;
}

.s2-panel{
  position:absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 520px;
  z-index: 60;
  border-radius: 16px;
  overflow:hidden;
  background: rgba(10,10,16,0.92);
  backdrop-filter: blur(12px);
}
.s2-panel-inner{ padding: 14px; }

.s2-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.s2-actions{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  justify-content:flex-end;
  flex-wrap: wrap;
}
.s2-chips{
  margin-top: 10px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}
.s2-chip{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.78);
  font-size: 12.5px;
}
.s2-chip:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
}
.s2-chip-ghost{
  background: transparent;
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.62);
}
.s2-meta{
  color: rgba(255,255,255,0.58);
  font-size: 13px;
  margin-top: 6px;
}
.s2-dotsep{ opacity: .6; }
.s2-dur{
  position:absolute;
  right:10px;
  bottom:10px;
  padding:4px 8px;
  border-radius:10px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.14);
  font-size:12px;
  color: rgba(255,255,255,0.92);
  font-weight: 900;
}
.s2-pager{
  margin-top: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
}
.s2-pageinfo{ color: rgba(255,255,255,0.70); }

@media (max-width: 980px){
  .s2-top{ align-items:flex-start; flex-direction: column; }
  .s2-right{ width: 100%; justify-content:flex-start; flex-wrap: wrap; }
  .s2-panel{ width: min(92vw, 560px); left: 0; right: auto; }
  .s2-grid{ grid-template-columns: 1fr; }
}

/* Home (Pornhub-like density + discovery) */
.home2 .home-rowhead{ margin-top: 14px; }
.home2-hero{ margin-bottom: 12px; }
.home2-hero-inner{ padding: 18px; }
.home2-hero-title{ max-width: 640px; }
.home2-actions .btn{ height: 36px; }

.home2-thumb{ border-radius: 16px; }
.home2-rail-card{ width: 280px; } /* tighter rail */
.home2-title{ margin-top: 8px; }

.home2-meta{
  color: rgba(255,255,255,0.60);
  font-size: 12.5px;
  margin-top: 6px;
}

.home2-dur{
  position:absolute;
  right:10px;
  bottom:10px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(0,0,0,0.70);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 12px;
  color: rgba(255,255,255,0.92);
  font-weight: 900;
}

.home2-cats .home2-cat{
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

/* Browse chips bar (home only) */
.browsebar{
  position: sticky;
  top: var(--nav-h);
  z-index: 70;
  padding: 10px 0;
  background: rgba(5,5,10,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}
.browsebar-inner{
  width: min(var(--page-max), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.chips{
  display:flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.chips::-webkit-scrollbar{ height: 0; }
.chip{
  display:inline-flex;
  align-items:center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.80);
  font-size: 12.5px;
  white-space: nowrap;
}
.chip:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.94);
}
.chip-accent{
  border-color: rgba(168,85,247,0.34);
  background: rgba(168,85,247,0.12);
}
.chip-ghost{
  background: transparent;
  color: rgba(255,255,255,0.62);
}

/* Rail v2 (snap + arrows + edge fades) */
.rail{
  position: relative;
}
.rail-track{
  display:flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  scrollbar-width: none;
}
.rail-track::-webkit-scrollbar{ height: 0; }
.rail-track > *{ scroll-snap-align: start; }
.rail::before,
.rail::after{
  content:"";
  position:absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  pointer-events: none;
  z-index: 5;
}
.rail::before{
  left: 0;
  background: linear-gradient(90deg, rgba(5,5,10,0.92), transparent);
}
.rail::after{
  right: 0;
  background: linear-gradient(270deg, rgba(5,5,10,0.92), transparent);
}

.rail-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10,10,16,0.78);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  z-index: 6;
  opacity: 0;
  transition: opacity 140ms var(--ease), transform 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
}
.rail:hover .rail-btn{ opacity: 1; }
.rail-btn:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-50%) scale(1.03);
}
.rail-btn.left{ left: 6px; }
.rail-btn.right{ right: 6px; }

/* Denser desktop grid */
@media (min-width: 1200px){
  .video-grid{ grid-template-columns: repeat(5, minmax(0,1fr)); }
}
@media (max-width: 980px){
  .browsebar{ position: static; }
}

/* ================================
   NAV SUBBAR (single bar)
================================ */
.nav-subbar{
  position: sticky;
  top: 0; /* if your main nav is also sticky, set this to its height instead */
  z-index: 90;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(6,6,12,0.72);
  backdrop-filter: blur(12px);
}

.nav-subbar-inner{
  width: min(var(--page-max), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-chips{
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  flex: 1;
  padding-bottom: 2px;
}
.nav-chips::-webkit-scrollbar{ height: 0; }
.nav-chips{ scrollbar-width: none; }

/* Prevent chip text from getting clipped on small widths (flex shrink) */
.nav-chips .chip,
.chips .chip{
  flex: 0 0 auto;
}

.chip{
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.86);
  text-decoration: none;
  font-weight: 650;
  font-size: 13.5px;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}
.chip:hover{
  transform: translateY(-1px);
  border-color: rgba(168,85,247,0.35);
  background: rgba(255,255,255,0.08);
}
.chip-ghost{
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.74);
  font-weight: 600;
}
.chip-hot{
  border-color: rgba(168,85,247,0.45);
  background: rgba(168,85,247,0.14);
}

.chip-sep{
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.12);
  margin: 0 2px;
}

.nav-browse-btn{
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
}
.nav-browse-btn:hover{
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
}

/* ================================
   RAIL CLICK FIXES (arrows + fades)
   Fixes: black side bars + arrows not clickable
================================ */

/* Ensure rail wrapper is the click context */
.home-rail,
.rail,
.home2-rail{
  position: relative;
  overflow: visible;
}

/* Fade overlays must NOT intercept clicks */
.home-rail::before,
.home-rail::after{
  pointer-events: none;
}

/* Arrows must sit above fades/cards */
.rail-btn,
.home-rail .rail-btn,
.home-rail [data-rail-left],
.home-rail [data-rail-right],
.home-rail-arrow{
  z-index: 60;
  pointer-events: auto;
}

/* Keep arrows inside rail edges and away from card hitboxes */
.home-rail .rail-btn.left{ left: 10px; }
.home-rail .rail-btn.right{ right: 10px; }

/* If your rail track exists, give padding so arrows don't sit on content */
.rail-track,
.home-rail-track{
  padding-left: 64px;
  padding-right: 64px;
}

/* ===========================
   MOBILE/RESPONSIVE PATCHES
   =========================== */

html, body{
  overflow-x: hidden;
}

/* Prevent dropdown panels from forcing horizontal scroll */
.nav-menu-panel{
  width: min(320px, calc(100vw - 24px));
}

.s2-panel{
  width: min(520px, calc(100vw - 32px));
  max-width: 520px;
}

/* Keep the subbar stacked correctly under the main nav */
.nav-subbar{
  top: var(--nav-h);
}

/* Dropdown panels: prevent off-screen overflow on small heights */
.nav-menu-panel{
  max-height: calc(100vh - var(--nav-h) - 18px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.s2-panel{
  max-height: calc(100vh - var(--nav-h) - 18px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* File input theming (prevents the white "Choose File" block on dark UI) */
input[type="file"]{
  width: 100%;
  max-width: 100%;
  color: rgba(255,255,255,0.80);
}

input[type="file"]::file-selector-button{
  height: 34px;
  padding: 0 12px;
  margin-right: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  font-weight: 750;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.20);
}

/* Admin tables: keep within card and allow horizontal scroll on mobile */
@media (max-width: 520px){
  .a-table{
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .a-table th, .a-table td{
    white-space: nowrap;
    padding-right: 14px;
  }
}

/* ===========================
   MOBILE NAV + TABLE POLISH
   Fixes:
   - nav right edge clipping (caret/avatar)
   - admin/public tables cut off on mobile
   =========================== */

@media (max-width: 520px){
  /* Give nav content breathing room on narrow screens */
  .nav-inner{
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  /* Respect notch safe areas (mainly iOS) */
  .nav{
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  /* If the right side still gets tight, allow it to wrap less aggressively */
  .nav-links{
    flex-wrap: nowrap;
  }

  /* Tables: keep inside the panel and allow horizontal swipe */
  .table,
  .a-table{
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table th, .table td,
  .a-table th, .a-table td{
    white-space: nowrap;
  }
}



/* ================================
   ADMIN DASHBOARD: MOBILE FIXES
   (stacks grid-column spans + removes min-width clamps)
================================ */
@media (max-width: 640px){

  /* Make inline span columns stack */
  .grid > div[style*="grid-column: span 6"],
  .grid > div[style*="grid-column: span 5"],
  .grid > div[style*="grid-column: span 4"],
  .grid > div[style*="grid-column: span 3"],
  .grid > div[style*="grid-column: span 2"]{
    grid-column: span 12 !important;
  }

  /* Stack nested panels that are hard-coded to span 6 */
  .grid > .panel[style*="grid-column: span 6"]{
    grid-column: span 12 !important;
  }

  /* Remove min-width clamps that cause squeeze/overflow */
  .panel .input,
  .panel select{
    min-width: 0 !important;
    width: 100%;
  }

  /* Admin selects specifically */
  #catSelect,
  #tagSelect{
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Keep multi-action rows readable */
  .panel form [style*="display:flex"]{
    row-gap: 10px;
  }
}

/* Ultra-small phones: stop nav links from overflowing */
@media (max-width: 380px){
  /* give the nav a bit more usable width */
  .nav-inner{
    width: calc(100% - 32px); /* instead of gutter*2 */
    height: auto;             /* allow wrapping */
    padding: 10px 0;
    flex-wrap: wrap;
    row-gap: 10px;
  }

  /* let the right-side buttons wrap */
  .nav-links{
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }

  /* tighten pills so they fit better */
  .nav-links a{
    padding: 7px 9px;
    font-size: 13px;
    line-height: 1;
  }

  /* optional: slightly shrink the brand text */
  .brand-title{ font-size: 14px; }
}
/* ===========================
   Subscribe page polish
   (scoped + backwards-compatible)
   =========================== */

.hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 0 12px;
}
.hero--tight{ padding-top: 10px; }
.hero .h1{ margin: 0; }
.hero .sub{ margin: 6px 0 0 0; }

.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.86);
  background: linear-gradient(180deg, rgba(168,85,247,0.18), rgba(255,255,255,0.035));
  border: 1px solid rgba(168,85,247,0.22);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

.sub-hr{ margin: 18px 0; }

.sub-status{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sub-status__title{ margin-top: 10px; }
.sub-status__meta{ margin-top: 6px; }

.sub-status__right{
  display:flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items:flex-end;
  justify-content:flex-end;
}

.sub-kpi{
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.022);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.14) inset;
  min-width: 150px;
}
.sub-kpi__label{
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}
.sub-kpi__value{
  font-size: 18px;
  font-weight: 800;
  margin-top: 4px;
}

.sub-grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items:start;
}

.sub-section{
  padding: 2px 0;
}
.sub-section__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.sub-section__title{ margin: 0 0 8px 0; }
.sub-section__desc{ margin: 0 0 12px 0; }

.sub-badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.86);
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(255,255,255,0.03);
}

.sub-form{ max-width: 560px; }
.sub-form__row{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.sub-form__row .input{ flex: 1; min-width: 260px; }
.sub-hint{ margin-top: 10px; font-size: 13px; }

.sub-pricing{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sub-price{
  position: relative;
  overflow: hidden;
}
.sub-price__top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.sub-price .card-sub{
  font-size: 18px;
  font-weight: 900;
}

.sub-price--popular{
  border-color: rgba(168,85,247,0.30);
  box-shadow: 0 0 0 1px rgba(168,85,247,0.14) inset, var(--shadow-lift);
}
.sub-popular{
  position:absolute;
  top: 10px;
  right: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  color: rgba(255,255,255,0.92);
  background: linear-gradient(180deg, rgba(168,85,247,0.34), rgba(124,58,237,0.18));
  border: 1px solid rgba(168,85,247,0.26);
  box-shadow: 0 12px 26px rgba(0,0,0,0.38);
}

.sub-actions{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sub-right{
  display:flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: calc(var(--nav-h) + 14px);
}
.sub-trust .card-title{ margin-bottom: 6px; }
.sub-list{
  margin: 10px 0 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.74);
}
.sub-list li{ margin: 8px 0; }

.sub-faq details{
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 10px 0;
}
.sub-faq details:first-child{ border-top: 0; padding-top: 0; }
.sub-faq summary{
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.sub-faq summary::-webkit-details-marker{ display:none; }
.sub-faq details[open] summary{
  color: rgba(255,255,255,0.92);
}
.sub-faq details > div{ margin-top: 8px; }

@media (max-width: 980px){
  .sub-grid{
    grid-template-columns: 1fr;
  }
  .sub-right{
    position: static;
  }
  .sub-pricing{
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* Subtle global polish (safe defaults) */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 50% 10%, rgba(255,255,255,0.045), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.00), rgba(0,0,0,0.22));
  mix-blend-mode: soft-light;
  opacity: 0.55;
  z-index: 0;
}
.container, .nav, .footer, .panel, .modal{
  position: relative;
  z-index: 1;
}

a, button, .btn, .input{
  -webkit-tap-highlight-color: transparent;
}
.input:focus, .btn:focus{
  outline: none;
}
.input:focus-visible, .btn:focus-visible, a:focus-visible{
  outline: 2px solid rgba(168,85,247,0.38);
  outline-offset: 2px;
  border-radius: 10px;
}


/* =====================================================
   CRAVEDARK FIX PATCH – 2026-02-25
   - Fix nav dropdown going under video
   - Fix "Most popular" badge overlapping price
   ===================================================== */

/* Ensure nav stays above all content */
.nav {
  z-index: 80 !important;
}

/* Ensure dropdown panel is always on top */
.nav-menu-panel {
  z-index: 1000 !important;
}

/* Prevent Most Popular badge from overlapping pricing text */
.sub-price--popular .sub-price__top {
  padding-top: 28px;
}


/* =====================================================
   CRAVEDARK SUB DEAL PATCH – 2026-02-25
   - Keep "Most popular" but move it below the title/price row
   - Add styling for "50% off for limited time!" line
   ===================================================== */

/* Fix nav dropdown stacking (in case other rules override it later) */
.nav { z-index: 80 !important; }
.nav-menu-panel { z-index: 1000 !important; }

/* Popular card: vertical stack so we can keep top row consistent with other cards */
.sub-price--popular{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Title/price stays first (same visual rhythm as other cards) */
.sub-price--popular .sub-price__top{
  order: 1;
  padding-top: 0 !important;
}

/* "Most popular" sits under title/price (not floating over it) */
.sub-price--popular .sub-popular{
  order: 2;
  position: static !important;
  align-self: flex-start;
  margin-top: -2px;
}

/* New promo line */
.sub-price--popular .sub-deal{
  order: 3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(168,85,247,0.22);
  background: rgba(168,85,247,0.10);
  color: rgba(255,255,255,0.92);
  width: fit-content;
}

/* Button last */
.sub-price--popular a.btn,
.sub-price--popular button.btn{
  order: 4;
}

/* ========================================
   GLOBAL PROMO POPUP
   ======================================== */

.promo-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.promo-overlay.active{
  opacity: 1;
  pointer-events: all;
}

.promo-box{
  position: relative;
  max-width: 520px;
  width: 90%;
  padding: 32px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(168,85,247,0.18), rgba(15,11,22,0.95));
  border: 1px solid rgba(168,85,247,0.35);
  box-shadow: 0 25px 80px rgba(0,0,0,0.8);
  text-align: center;
}

.promo-title{
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 12px;
}

.promo-text{
  font-size: 16px;
  opacity: 0.85;
}

.promo-close{
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.6;
}

.promo-close:hover{
  opacity: 1;
}

/* ========================================
   SUBSCRIBE PAGE PROMO BANNER
   ======================================== */

.sub-promo-banner{
  margin: 16px 0 22px 0;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.28);
  text-align: center;
}

/* =====================================================
   CRAVEDARK FLOATING PROMO PATCH – 2026-02-25
   - Non-blocking promo popup (bottom-right)
   - Works with footer.ejs: #promoOverlay.promo-floating
   ===================================================== */

.promo-floating{
  position: fixed;
  
  right: 24px;
  width: 320px;
  max-width: calc(100vw - 48px);
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(168,85,247,0.20), rgba(15,11,22,0.95));
  border: 1px solid rgba(168,85,247,0.35);
  box-shadow: 0 18px 60px rgba(0,0,0,0.7);
  z-index: 1500;
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.promo-floating.active{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.promo-floating .promo-close{
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.65;
  line-height: 1;
}

.promo-floating .promo-close:hover{
  opacity: 1;
}

.promo-floating .promo-title{
  font-weight: 900;
  margin-bottom: 6px;
}

.promo-floating .promo-text{
  font-size: 14px;
  opacity: 0.85;
}


/* =====================================================
   CRAVEDARK FLOATING PROMO TOP-RIGHT PATCH – 2026-02-25
   ===================================================== */

.promo-floating{
  position: fixed;
  top: 24px;
  right: 24px;
  width: 320px;
  max-width: calc(100vw - 48px);
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(168,85,247,0.20), rgba(15,11,22,0.95));
  border: 1px solid rgba(168,85,247,0.35);
  box-shadow: 0 18px 60px rgba(0,0,0,0.7);
  z-index: 1500;
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.promo-floating.active{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.promo-floating .promo-close{
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.65;
  line-height: 1;
}

.promo-floating .promo-close:hover{
  opacity: 1;
}

.promo-floating .promo-title{
  font-weight: 900;
  margin-bottom: 6px;
}

.promo-floating .promo-text{
  font-size: 14px;
  opacity: 0.85;
}
