/* ============================================================
   DesiXoXo Tube — matte deep navy theme (flat, low-sheen)
   Layout: dark navy navbar/footer · deep blue core canvas ·
           lighter navy side panes · 5×4 main grid
   Fonts: Syne (display) · Sora (headings) · Outfit (body)
   ============================================================ */

:root {
  /* matte deep blue scale */
  --nav-bg: #05080f;        /* navbar — darker than core */
  --foot-bg: #03050b;       /* footer — darkest */
  --core: #070b14;          /* main canvas core — deep, flat */
  --core-hi: #0a0f1d;       /* raised panel on core */
  --pane: #0b1222;           /* side panes — lighter navy, still matte */
  --pane-hi: #0e1629;
  --chip: #090d19;

  --ink: #e3e7ef;
  --muted: #8b93a8;
  --faint: #5a6478;

  --accent: #4c7ecb;        /* calm steel blue */
  --accent2: #6a63c2;       /* muted indigo */
  --hot: #d66a8c;           /* desaturated rose */

  --line: rgba(140, 155, 190, 0.09);
  --line-hi: rgba(140, 155, 190, 0.18);

  --grad: linear-gradient(90deg, var(--accent), var(--accent2));

  --pad-x: clamp(14px, 2.4vw, 30px);
  --radius: 14px;
  --head-h: 60px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--core);   /* flat, no radial shine */
  color: var(--ink);
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
}

main, .shell { flex: 1 0 auto; }

img { max-width: 100%; }

a { color: inherit; }

.hidden { display: none !important; }

/* the hidden attribute must always win over any display rule */
[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #05080f;
  padding: 8px 14px;
  border-radius: 0 0 10px 0;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

::selection { background: rgba(76, 126, 203, 0.3); }

/* scrollbars — quiet */
* { scrollbar-width: thin; scrollbar-color: #1a2238 transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: #1a2238; border-radius: 6px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   NAVBAR
   ============================================================ */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line-hi);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 22px);
  max-width: 1720px;
  margin: 0 auto;
  min-height: var(--head-h);
  padding: 8px var(--pad-x);
}

.brand {
  font-family: "Syne", "Outfit", sans-serif;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.brand-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand em {
  font-family: "Sora", sans-serif;
  font-style: normal;
  font-size: 0.52em;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--faint);
  margin-left: 6px;
  transform: translateY(-2px);
}

.tabs {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  font-family: "Sora", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.tab:hover { color: var(--ink); border-color: var(--line-hi); }

.tab.active {
  color: var(--ink);
  background: #101a30;
  border-color: rgba(76, 126, 203, 0.35);
}

.searchbox {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}

.searchbox svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--faint);
  stroke-width: 2.2;
  stroke-linecap: round;
  pointer-events: none;
}

.searchbox input {
  background: #0a101e;
  border: 1px solid var(--line-hi);
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  border-radius: 999px;
  padding: 9px 18px 9px 38px;
  width: clamp(150px, 20vw, 270px);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.searchbox input::placeholder { color: var(--faint); }

.searchbox input:focus { border-color: rgba(76, 126, 203, 0.55); }

.head-spacer { margin-left: auto; }

.adult-badge {
  flex-shrink: 0;
  font-family: "Sora", sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #d8b6c6;
  background: rgba(214, 106, 140, 0.09);
  border: 1px solid rgba(214, 106, 140, 0.35);
  padding: 4px 9px;
  border-radius: 8px;
  user-select: none;
}

.adult-badge.big { font-size: 13px; padding: 6px 12px; display: inline-block; margin-top: 14px; }

/* nav toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--chip);
  border: 1px solid var(--line-hi);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px 9px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  display: none;
}

/* ============================================================
   BOTTOM NAV (mobile) — YouTube-style tab bar
   ============================================================ */

.bottom-nav { display: none; }

/* ============================================================
   SHELL — side panes + main canvas
   ============================================================ */

.shell {
  display: flex;
  align-items: stretch;
  max-width: 1720px;
  margin: 0 auto;
  width: 100%;
}

.pane {
  flex: 0 0 clamp(168px, 15vw, 236px);
  position: sticky;
  top: var(--head-h);
  height: calc(100vh - var(--head-h));
  overflow-y: auto;
  background: var(--pane);           /* flat lighter navy */
  border-right: 1px solid var(--line);
  padding: 20px 14px 30px;
}
.pane-right { border-right: 0; border-left: 1px solid var(--line); }

.pane-title {
  font-family: "Sora", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 10px 6px;
}
.pane-title:not(:first-child) { margin-top: 26px; }

.pane-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}
.pane-link:hover { background: #101a30; color: var(--ink); }
.pane-link.active {
  background: #101a30;
  color: var(--ink);
  box-shadow: inset 2px 0 0 var(--accent);
}
.pane-link .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.45; flex-shrink: 0; }

/* trending mini list in right pane */
.pane-item {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  padding: 7px 8px;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.pane-item:hover { background: #101a30; }
.pane-item .rank {
  font-family: "Syne", sans-serif;
  font-size: 15px;
  font-weight: 800;
  width: 20px;
  text-align: center;
  color: var(--faint);
  flex-shrink: 0;
}
.pane-item .t {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pane-item:hover .t { color: var(--ink); }

.pane-card {
  margin-top: 26px;
  background: #0d1220;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--faint);
}
.pane-card strong { color: var(--muted); display: block; margin-bottom: 4px; font-family: "Sora", sans-serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.pane-card a { color: var(--accent); text-decoration: none; }
.pane-card a:hover { text-decoration: underline; }

/* main canvas */
.canvas {
  flex: 1;
  min-width: 0;
  padding: 0 0 44px;
}

.page-banner {
  padding: clamp(22px, 4vw, 40px) var(--pad-x) 6px;
}
.page-banner h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: 0.5px;
}
.page-banner h1 span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-banner p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  height: clamp(300px, 54vh, 600px);
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: brightness(0.62) saturate(0.75);   /* mute the poster shine */
  transition: background-image 0.5s ease;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.45) 15%, rgba(7, 11, 20, 0.85) 65%, var(--core) 100%),
    linear-gradient(90deg, rgba(7, 11, 20, 0.9) 0%, transparent 60%);
}

.hero-info {
  position: absolute;
  left: var(--pad-x);
  bottom: clamp(26px, 5vh, 56px);
  max-width: 640px;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Sora", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #a9c2e6;
  background: rgba(10, 16, 30, 0.75);
  border: 1px solid var(--line-hi);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-info h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(26px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  text-shadow: 0 4px 22px rgba(3, 5, 11, 0.9);
  margin-bottom: clamp(12px, 2vh, 20px);
}

.hero-actions { display: flex; gap: 12px; align-items: center; }

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Sora", sans-serif;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 700;
  color: #dfe7f5;
  background: #16223c;
  border: 1px solid rgba(76, 126, 203, 0.45);
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-play:hover { background: #1a2949; border-color: rgba(76, 126, 203, 0.7); }
.btn-play svg { width: 16px; height: 16px; fill: #dfe7f5; }

.hero-dots {
  position: absolute;
  right: var(--pad-x);
  bottom: 22px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-dots span {
  width: 22px;
  height: 4px;
  border-radius: 4px;
  background: rgba(227, 231, 239, 0.2);
  cursor: pointer;
  transition: background 0.2s ease;
}
.hero-dots span.active { background: var(--accent); }

/* ============================================================
   SECTIONS — three distinct looks
   ============================================================ */

.section { padding-top: clamp(20px, 3vw, 34px); }

/* header styles vary per section type */
.sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 var(--pad-x);
  margin-bottom: 16px;
}

.sec-head h2 {
  font-family: "Sora", sans-serif;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  white-space: nowrap;
}

.sec-head .bar {
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: var(--grad);
  flex-shrink: 0;
}

.sec-head .count {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--faint);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.sec-head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-hi), transparent); }

/* type A — trending rail */
.sec-rail .sec-head h2 { color: #b9cbe6; }

.rail {
  display: flex;
  gap: clamp(12px, 1.5vw, 18px);
  overflow-x: auto;
  padding: 6px var(--pad-x) 14px;
  scroll-snap-type: x proximity;
}

.rail .vcard {
  flex: 0 0 clamp(250px, 24vw, 330px);
  scroll-snap-align: start;
}

/* type B — the 5×4 collection grid */
.sec-grid {
  background: rgba(10, 15, 29, 0.6);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(22px, 3vw, 32px);
}
.sec-grid .sec-head h2 span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vgrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));  /* 5 columns */
  gap: clamp(14px, 1.6vw, 20px) clamp(10px, 1.2vw, 16px);
  padding: 0 var(--pad-x);
}

/* type C — nets / premium wide cards */
.sec-nets .sec-head h2 { color: #c3bde6; }

.nets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  padding: 0 var(--pad-x);
}

.netcard {
  display: flex;
  gap: clamp(14px, 1.6vw, 20px);
  align-items: stretch;
  text-decoration: none;
  background: var(--core-hi);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(12px, 1.4vw, 18px);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.netcard:hover {
  border-color: rgba(76, 126, 203, 0.45);
  background: #0c1324;
}

.netcard .thumb {
  flex: 0 0 clamp(150px, 38%, 230px);
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: var(--chip);
}

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

.netcard .nbody { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.netcard .nname {
  font-family: "Sora", sans-serif;
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.netcard .nmeta { font-size: 12.5px; color: var(--muted); }
.netcard .ngo {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Sora", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #a4b3d9;
}
.netcard .ngo svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s ease; }
.netcard:hover .ngo svg { transform: translateX(4px); }

/* ============================================================
   VIDEO CARDS
   ============================================================ */

.vcard {
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease;
}
.vcard:hover { transform: translateY(-3px); }

.vcard .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--chip);
  border: 1px solid var(--line);
}

.vcard .thumb img.poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.35s ease;
}
.vcard:hover .thumb img.poster { transform: scale(1.04); }

/* shimmer while posters load — very quiet */
.vcard .thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #0a0f1d 30%, #101828 50%, #0a0f1d 70%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}
@keyframes shimmer {
  from { background-position: 140% 0; }
  to { background-position: -60% 0; }
}

/* play overlay — subtle darken, no glow */
.vcard .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 15, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}
.vcard .thumb .play-ico {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: scale(0.75);
  pointer-events: none;
}
.play-ico span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 16, 30, 0.85);
  border: 1px solid rgba(76, 126, 203, 0.5);
}
.play-ico svg { width: 16px; height: 16px; fill: #dfe7f5; margin-left: 2px; }
.vcard:hover .thumb::after { opacity: 1; }
.vcard:hover .play-ico { opacity: 1; transform: scale(1); }

.vcard .tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  font-family: "Sora", sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #d3e0f2;
  background: rgba(5, 8, 15, 0.8);
  border: 1px solid var(--line-hi);
  padding: 3px 8px;
  border-radius: 6px;
}
.vcard .tag.series {
  color: #cfc9ea;
  border-color: rgba(106, 99, 194, 0.5);
}

/* rank badge on rail cards */
.rail .vcard .rank {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 4;
  font-family: "Syne", sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: rgba(227, 231, 239, 0.85);
  text-shadow: 0 2px 10px rgba(3, 5, 11, 0.9);
}

.vcard .vinfo { padding: 9px 2px 0; }
.vcard .vname {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}
.vcard:hover .vname { color: #b9cbe6; }
.vcard .vmeta {
  font-size: 12px;
  color: var(--faint);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vcard .vmeta .star { color: #c9a35c; }

/* load more */
.more-row { display: flex; justify-content: center; margin-top: clamp(18px, 2.6vw, 26px); }
.more-btn {
  font-family: "Sora", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  padding: 11px 30px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.more-btn:hover {
  border-color: rgba(76, 126, 203, 0.55);
  background: #101a30;
}
.more-btn[disabled] { opacity: 0.5; cursor: default; }

/* lazy section placeholder */
.lazy-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 var(--pad-x);
  min-height: 220px;
  border: 1px dashed var(--line-hi);
  border-radius: var(--radius);
  color: var(--faint);
  font-size: 13px;
}

.spinner.sm {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(76, 126, 203, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: sm-spin 0.9s linear infinite;
  flex-shrink: 0;
}
@keyframes sm-spin { to { transform: rotate(360deg); } }

/* ============================================================
   SEARCH RESULTS
   ============================================================ */

.search-results { padding: clamp(18px, 3vw, 30px) var(--pad-x) 40px; }
.search-results .sec-head { padding: 0; margin-bottom: 20px; }

/* ============================================================
   NOTICE CALLOUT (legal pages)
   ============================================================ */

.notice {
  background: #0c1322;
  border: 1px solid var(--line-hi);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 26px;
}
.notice h2 {
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}
.notice-ico {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #16223c;
  color: #b9cbe6;
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 800;
  font-style: italic;
  flex-shrink: 0;
}
.notice p { font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.notice .notice-extra { margin-top: 8px; color: #c3ccdf; }

/* ============================================================
   AD PLACEHOLDERS — native, banners, push prompt
   ============================================================ */

.ad-unit { position: relative; }

.ad-tag {
  display: inline-block;
  font-family: "Sora", sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 5px;
  line-height: 1.5;
}

/* banner slots */
.ad-banner {
  margin: clamp(14px, 2vw, 22px) var(--pad-x) 0;
}
.ad-banner .ad-holder {
  margin-top: 6px;
  min-height: 90px;
  border: 1px dashed var(--line-hi);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(9, 13, 25, 0.55);
  overflow: hidden;
}
.ad-holder .ad-ph {
  font-family: "Sora", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--faint);
  letter-spacing: 0.5px;
}
.ad-banner.banner-top .ad-holder { min-height: clamp(70px, 10vh, 120px); }
.ad-banner.banner-watch .ad-holder { min-height: 100px; max-width: 728px; margin: 6px auto 0; }

/* pane banners (square-ish) */
.pane .ad-banner { margin: 14px 0 0; }
.pane .ad-banner .ad-holder { min-height: 200px; }

/* native in-feed card — styled exactly like a vcard */
.vcard.ad-native .thumb {
  display: grid;
  place-items: center;
  border-style: dashed;
}
.vcard.ad-native .ad-holder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: transparent;
}
.vcard.ad-native .ad-tag-thumb {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  color: #d3e0f2;
  background: rgba(5, 8, 15, 0.8);
}
.vcard.ad-native .play-ico { display: none; }
.vcard.ad-native:hover { transform: none; }
.vcard.ad-native .vname { color: var(--faint); font-weight: 500; }
.vcard.ad-native .vmeta { color: var(--faint); }

/* push prompt */
.push-prompt {
  position: fixed;
  left: 50%;
  bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 14px);
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(520px, calc(100vw - 24px));
  background: #0c1322;
  border: 1px solid var(--line-hi);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 16px 50px rgba(2, 5, 11, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.push-prompt.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.push-ico {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #16223c;
  border: 1px solid var(--line-hi);
  display: grid;
  place-items: center;
}
.push-ico svg { width: 19px; height: 19px; fill: none; stroke: #b9cbe6; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.push-txt { flex: 1; min-width: 0; }
.push-txt b { display: block; font-family: "Sora", sans-serif; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.push-txt span { display: block; font-size: 12px; color: var(--faint); margin-top: 2px; }
.push-allow {
  flex-shrink: 0;
  font-family: "Sora", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #dfe7f5;
  background: #16223c;
  border: 1px solid rgba(76, 126, 203, 0.5);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
}
.push-allow:hover { background: #1a2949; }
.push-allow[disabled] { opacity: 0.6; cursor: default; }
.push-close {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  color: var(--faint);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
}
.push-close:hover { color: var(--ink); }

/* ============================================================
   DOC PAGES (legal)
   ============================================================ */

.doc {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px) var(--pad-x) 60px;
}

.doc-head { margin-bottom: 26px; }
.doc-head .chip {
  display: inline-block;
  font-family: "Sora", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a9c2e6;
  border: 1px solid var(--line-hi);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.doc-head h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 800;
  line-height: 1.1;
}
.doc-head h1 span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.doc-head .updated {
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 10px;
}

.doc section {
  background: var(--core-hi);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.6vw, 28px);
  margin-bottom: 18px;
}

.doc h2 {
  font-family: "Sora", sans-serif;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.doc h2::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 4px;
  background: var(--grad);
  flex-shrink: 0;
}

.doc h3 {
  font-family: "Sora", sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: #c3ccdf;
  margin: 16px 0 8px;
}

.doc p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 10px;
}
.doc p strong, .doc li strong { color: var(--ink); }

.doc ul, .doc ol {
  margin: 6px 0 14px 20px;
  display: grid;
  gap: 8px;
}
.doc li { font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.doc li::marker { color: var(--accent); }

.doc a { color: #8fb3e0; text-decoration: none; font-weight: 600; }
.doc a:hover { text-decoration: underline; }

.doc .mail-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  background: #0c1322;
  border: 1px solid var(--line-hi);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 6px 0 14px;
}
.doc .mail-chip b { font-family: "Sora", sans-serif; font-size: 13px; color: #c3ccdf; }
.doc .mail-chip a { font-size: 14.5px; }

/* ============================================================
   FORMS
   ============================================================ */

.form { max-width: 720px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .field { margin-bottom: 14px; }
.form label {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.form label .req { color: var(--hot); }
.form input, .form select, .form textarea {
  width: 100%;
  background: #0a101e;
  border: 1px solid var(--line-hi);
  border-radius: 10px;
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-size: 14.5px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: rgba(76, 126, 203, 0.6);
}
.form input::placeholder, .form textarea::placeholder { color: var(--faint); }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.form .hint { font-size: 12px; color: var(--faint); margin-top: 5px; }
.form .checks { display: grid; gap: 10px; margin: 16px 0; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.6; color: var(--muted); }
.form .check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.form .hp { position: absolute; left: -9999px; top: -9999px; }
.form .submit-btn {
  font-family: "Sora", sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #dfe7f5;
  background: #16223c;
  border: 1px solid rgba(76, 126, 203, 0.5);
  border-radius: 999px;
  padding: 13px 34px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.form .submit-btn:hover { background: #1a2949; border-color: rgba(76, 126, 203, 0.75); }

.form-ok {
  background: #0d1526;
  border: 1px solid rgba(76, 126, 203, 0.4);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 22px;
}
.form-ok h2 { font-family: "Sora", sans-serif; font-size: 17px; margin-bottom: 8px; color: #b9cbe6; }
.form-ok p { font-size: 14px; line-height: 1.7; color: var(--muted); }
.form-ok a { color: #8fb3e0; }

.form-err {
  border: 1px solid rgba(214, 106, 140, 0.45);
  background: rgba(214, 106, 140, 0.07);
  color: #e3b8c8;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  margin-bottom: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-foot {
  margin-top: 30px;
  background: var(--foot-bg);
  border-top: 1px solid var(--line-hi);
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: clamp(20px, 3vw, 44px);
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 52px) var(--pad-x);
}

.foot-col h3 {
  font-family: "Sora", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

.foot-col a {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.15s ease, transform 0.15s ease;
}
.foot-col a:hover { color: #b9cbe6; transform: translateX(3px); }

.foot-brand p {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--faint);
  margin-top: 14px;
  max-width: 420px;
}

.foot-mail-label {
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.4px;
  margin: 10px 0 2px;
}
.foot-mail {
  font-family: "Sora", sans-serif;
  font-size: 13.5px !important;
  color: #8fb3e0 !important;
  padding: 2px 0 !important;
}

.foot-bottom {
  border-top: 1px solid var(--line);
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px var(--pad-x) 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
}
.foot-bottom p {
  font-size: 12px;
  color: var(--faint);
  max-width: 760px;
  line-height: 1.65;
}
.foot-bottom span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.foot-bottom a { color: var(--muted); text-decoration: none; }
.foot-bottom a:hover { color: #b9cbe6; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

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

@media (max-width: 1100px) {
  .pane { display: none; }
  .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nets { grid-template-columns: 1fr; }
  .netcard .thumb { flex-basis: 170px; }
}

@media (max-width: 860px) {
  body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); /* room for bottom nav */
  }
  body.menu-open { overflow: hidden; }

  .tabs { display: none; }
  .nav-toggle { display: flex; }

  /* search takes the freed-up space; 16px stops iOS auto-zoom on focus */
  .searchbox { flex: 1; margin-left: auto; }
  .searchbox input { width: 100%; font-size: 16px; }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    background: rgba(5, 8, 15, 0.97);
    border-top: 1px solid var(--line-hi);
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom, 0px));
  }
  .bn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 2px;
    color: var(--faint);
    text-decoration: none;
    background: none;
    border: 0;
    font-family: "Sora", sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    border-radius: 10px;
    cursor: pointer;
    min-width: 0;
    user-select: none;
  }
  .bn-item svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .bn-item.active { color: #b9cbe6; }
  .bn-item:active { background: #101a30; }

  .drawer {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #05080f;
    border-bottom: 0 solid var(--line);
    padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); /* links clear the bottom nav */
  }
  body.menu-open .drawer {
    max-height: 640px;
    border-bottom-width: 1px;
    overflow-y: auto;
  }
  .drawer-title {
    font-family: "Sora", sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--faint);
    padding: 14px var(--pad-x) 6px;
  }
  .drawer-link {
    display: block;
    padding: 13px var(--pad-x);
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    border-left: 3px solid transparent;
  }
  .drawer-link.active { color: var(--ink); border-left-color: var(--accent); background: #101a30; }
  .drawer-note {
    font-size: 11.5px;
    color: var(--faint);
    padding: 10px var(--pad-x) 16px;
    line-height: 1.6;
  }
  .drawer-note a { color: #8fb3e0; }

  /* bigger native controls on touch */
  .form input, .form select, .form textarea { font-size: 16px; }
  .form .submit-btn { width: 100%; max-width: 460px; }
  .more-btn { width: 100%; max-width: 460px; }
}

/* phones — YouTube-style single column feed */
@media (max-width: 700px) {
  .adult-badge { display: none; } /* it stays in the drawer + footer */

  .vgrid { grid-template-columns: 1fr; gap: 22px; }

  .vcard .thumb {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    aspect-ratio: 16 / 9;
  }
  .vcard .vinfo {
    padding: 10px 4px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }
  .vcard .vinfo .chan {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #16223c;
    border: 1px solid var(--line-hi);
    display: grid;
    place-items: center;
    font-family: "Syne", sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: #b9cbe6;
  }
  .vcard .vname { font-size: 14.5px; font-weight: 600; }
  .vcard .vmeta { margin-top: 4px; }
  .vcard:hover { transform: none; }

  .rail .vcard { flex-basis: 82vw; }
  .hero { height: clamp(240px, 42vh, 360px); border-radius: 0; }
  .hero-dots { display: none; }
  .form .row2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .netcard { flex-direction: column; }
  .netcard .thumb { flex-basis: auto; width: 100%; }
}