/* ══════════════════════════════════════════════════════
   RESET + BASE
══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #1A0033;
  --surface: #220040;
  --surface2: #2a0050;
  --surface3: #330060;
  --border: rgba(255,0,170,0.15);
  --border2: rgba(255,0,170,0.28);
  --accent: #FF00AA;
  --accent2: #C026D3;
  --highlight: #FF2EFF;
  --secondary: #FF0088;
  --text: #ffffff;
  --text-soft: #FFCCE6;
  --muted: #cc88bb;
  --muted2: #7a3a6a;
  --radius: 6px;
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --card-w-shelf: 240px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body), 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { display: block; }

/* ══════════════════════════════════════════════════════
   TICKER
══════════════════════════════════════════════════════ */
.ticker {
  background: var(--accent);
  overflow: hidden;
  height: 28px;
  display: flex;
  align-items: center;
}
.ticker-inner {
  display: inline-block;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #fff;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,0,51,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
}
.logo span { color: var(--accent2); }

.nav-cats {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}
.nav-cats::-webkit-scrollbar { display: none; }

.cat-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 99px;
  white-space: nowrap;
  transition: color .15s, background .15s, border-color .15s;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.cat-btn:hover { color: var(--text); border-color: var(--border2); }
.cat-btn.active { background: linear-gradient(135deg, #ec4899, #f97316); color: #fff; border-color: transparent; font-weight: 600; }

.nav-articles-link {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 2px;
  transition: color .15s;
  flex-shrink: 0;
}
.nav-articles-link:hover { color: var(--accent2, #e91e8c); }

.nav-search {
  position: relative;
  flex-shrink: 0;
}
.nav-search input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 13px;
  padding: 6px 12px 6px 32px;
  width: 200px;
  outline: none;
  transition: border-color .15s, width .2s;
}
.nav-search input:focus {
  border-color: rgba(255,255,255,.3);
  width: 260px;
}
.nav-search input::placeholder { color: var(--muted); }
.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════
   HERO BANNER
══════════════════════════════════════════════════════ */
.home-hero {
  padding: 28px 24px 24px;
  min-height: 140px;   /* prevents collapse while stats load — eliminates CLS */
  background: linear-gradient(135deg, rgba(229,9,20,.12) 0%, transparent 60%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.hero-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.hero-title span { color: var(--accent); }
.hero-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.hero-stats {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
}
.stat { text-align: left; }
.stat-num {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.stat-lbl {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 3px;
}

/* ══════════════════════════════════════════════════════
   PAGE LAYOUT
══════════════════════════════════════════════════════ */
.page-body {
  padding: 0 24px 60px;
}

/* ══════════════════════════════════════════════════════
   SECTION ROW (Netflix shelf)
══════════════════════════════════════════════════════ */
.section-row {
  width: 100%;
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.section-row:last-child {
  border-bottom: none;
}

.section-hd {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.section-hd h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  color: #fff;
  position: relative;
  padding-left: 10px;
}
.section-hd h2::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(135deg, #ec4899, #f97316);
  border-radius: 2px;
}
.section-hd-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.section-see-all {
  margin-left: auto;
  background: linear-gradient(135deg, #ec4899, #f97316);
  border: none;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 3px;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.section-see-all:hover { opacity: .85; transform: translateY(-1px); }

/* Shelf — 4 columns desktop */
.shelf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
}

/* ══════════════════════════════════════════════════════
   VIDEO CARD
══════════════════════════════════════════════════════ */
.vcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease;
  position: relative;
}
.vcard:hover {
  transform: scale(1.03);
  border-color: rgba(255,255,255,.2);
  z-index: 2;
}

.vcard-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;    /* reserves correct space before image loads — eliminates CLS */
  background: linear-gradient(90deg, #150028 0%, #2a0050 50%, #150028 100%);
  background-size: 200% 100%;
  animation: vcard-skeleton 1.5s ease-in-out infinite;
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Stop the skeleton shimmer once the thumbnail has loaded or errored */
.vcard-thumb:has(img.loaded),
.vcard-thumb:has(.thumb-emoji),
.vcard-thumb.thumb-error {
  animation: none;
  background: #0d0d0d;
}
.vcard-thumb.thumb-error::after {
  content: '🎬';
  font-size: 32px;
  opacity: .35;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
@keyframes vcard-skeleton {
  0%   { background-position:  100% 0; }
  100% { background-position: -100% 0; }
}
.vcard-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  opacity: 0;
  transition: opacity .25s;
}
.vcard-thumb img.loaded { opacity: 1; }
.thumb-emoji {
  font-size: 32px;
  opacity: .4;
}

/* Overlay badges */
.badge-pick {
  position: absolute;
  top: 6px; left: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 2;
}
.badge-hot {
  position: absolute;
  top: 6px; left: 6px;
  background: rgba(255,100,0,.9);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 2;
}
.badge-dur {
  position: absolute;
  bottom: 6px; right: 6px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 10px;
  font-family: var(--font-mono), monospace;
  padding: 2px 5px;
  border-radius: 3px;
}
.badge-quality {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(0,0,0,.7);
  color: #FFD700;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(255,215,0,.3);
}

/* Card body */
.vcard-body {
  padding: 12px 14px 14px;
}
.vcard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.vcard-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}
.vcard-views {
  font-size: 11px;
  color: var(--muted);
}
.vcard-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
  margin-bottom: 6px;
}
.vcard-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
}
.vcard-stars .s { color: #FFD700; }
.vcard-stars .s.empty { color: var(--surface2); }
.vcard-stars .cnt { font-size: 10px; color: var(--muted); margin-left: 3px; }
.vcard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.tag {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  transition: border-color .15s, color .15s;
  cursor: pointer;
}
.tag:hover { border-color: rgba(255,255,255,.2); color: var(--text); }

/* ══════════════════════════════════════════════════════
   BEST-OF SECTION
══════════════════════════════════════════════════════ */
.bestof-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  align-items: stretch;
  width: 100%;
}
.bestof-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .18s;
}
.bestof-hero:hover { border-color: rgba(255,255,255,.2); }
.bestof-hero-thumb {
  aspect-ratio: 16/10;
  background: #0d0d0d;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.bestof-hero-thumb img { width:100%;height:100%;object-fit:cover;display:block;opacity:0;transition:opacity .25s; }
.bestof-hero-thumb img.loaded { opacity:1; }
.bestof-hero-body { padding: 12px 14px 14px; }
.bestof-rank {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 5px;
}
.bestof-hero-title { font-size: 14px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; }

.bestof-list { display: flex; flex-direction: column; gap: 6px; width: 100%; align-self: stretch; }
.bestof-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: stretch;
  overflow: hidden; cursor: pointer;
  transition: border-color .18s;
  width: 100%;
  min-height: 68px;
  flex: 1 1 0;
}
.bestof-row:hover { border-color: rgba(255,255,255,.2); }
.bestof-num {
  width: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono), monospace; font-size: 12px; font-weight:700; color: var(--muted);
  background: rgba(255,255,255,.025);
  border-right: 1px solid var(--border);
}
.bestof-thumb {
  width: 140px; height: 80px; flex-shrink: 0;
  background: #0d0d0d;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--border);
}
.bestof-thumb img { width:100%;height:100%;object-fit:cover;display:block;opacity:0;transition:opacity .25s; }
.bestof-thumb img.loaded { opacity:1; }
.bestof-body { padding: 10px 14px; flex:1; min-width:0; display:flex; flex-direction:column; justify-content:center; border-right: none; }
.bestof-title { font-size: 13px; font-weight: 500; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; margin-bottom: 4px; }
.bestof-meta { font-size: 11px; color: var(--muted); }

/* ══════════════════════════════════════════════════════
   CATEGORY GRID
══════════════════════════════════════════════════════ */
.catgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.catcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .18s;
}
.catcard:hover { border-color: rgba(255,255,255,.2); }
.catcard-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #000;
  aspect-ratio: 16/9;
}
.catcard-cell {
  overflow: hidden;
  background: #111;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: rgba(255,255,255,.2);
}
.catcard-cell img { width:100%;height:100%;object-fit:cover;display:block;opacity:0;transition:opacity .25s; }
.catcard-cell img.loaded { opacity:1; }
.catcard-body { padding: 8px 10px 10px; }
.catcard-title { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.catcard-meta { font-size: 10px; color: var(--muted); }

/* ══════════════════════════════════════════════════════
   ALL VIDEOS GRID SECTION
══════════════════════════════════════════════════════ */
.grid-section { margin-top: 20px; }

.grid-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.grid-hd-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
}
.count-badge {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: var(--font-mono), monospace;
}

/* Sort bar */
.sort-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.sort-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 4px;
  transition: border-color .15s, color .15s, background .15s;
}
.sort-btn:hover { border-color: rgba(255,255,255,.2); color: var(--text); }
.sort-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Video grid — bigger cards, fewer columns */
.video-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  width: 100%;
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.empty-state p { font-size: 13px; }
.empty-state a { color: var(--accent); }

/* ══════════════════════════════════════════════════════
   AD BANNER
══════════════════════════════════════════════════════ */
.ad-banner {
  background: var(--surface);
  border: 1px dashed var(--muted2);
  border-radius: var(--radius);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  margin: 20px 0 0;
  position: relative;
}
.ad-banner::before {
  content: 'AD';
  position: absolute;
  top: 6px;
  left: 10px;
  font-family: var(--font-mono), monospace;
  font-size: 10px;
  color: var(--muted2);
}

/* ══════════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.page-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 4px;
  min-width: 38px;
  transition: border-color .15s, color .15s;
}
.page-btn:hover:not(:disabled) { border-color: rgba(255,255,255,.2); color: var(--text); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn:disabled { opacity: .3; cursor: default; }

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}
footer .footer-logo { font-size: 18px; font-weight: 700; color: var(--accent); }
footer .footer-logo span { color: var(--muted); }
footer .footer-links { display: flex; gap: 16px; }
footer .footer-links a { color: var(--muted); transition: color .15s; }
footer .footer-links a:hover { color: var(--text); }
footer .footer-copy { margin-left: auto; }

/* ══════════════════════════════════════════════════════
   VIDEO PAGE — video.html
══════════════════════════════════════════════════════ */
.page-wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.video-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  padding: 12px 0;
  cursor: pointer;
  transition: color .12s;
  text-decoration: none;
}
.video-back:hover { color: var(--text); }

.video-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  padding: 0;
  width: 100%;
}

.player-wrap {
  background: #000;
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.player-wrap > iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.player-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
}
.player-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,0,170,0.12);
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; cursor: pointer;
  transition: background .15s;
}
.player-icon:hover { background: rgba(255,0,170,0.24); }
.player-label { font-family: var(--font-mono), monospace; font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.player-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 20px 16px 14px;
  display: flex; align-items: center; gap: 12px;
}
.progress-track {
  flex: 1; height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px; cursor: pointer; position: relative;
}
.progress-fill {
  width: 35%; height: 100%;
  background: var(--accent); border-radius: 2px; position: relative;
}
.progress-fill::after {
  content: ''; position: absolute; right: -5px; top: -4px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}
.player-ctrl {
  font-size: 16px; cursor: pointer; color: #fff; opacity: .8;
  transition: opacity .12s; background: none; border: none;
  padding: 0; display: flex; align-items: center;
}
.player-ctrl:hover { opacity: 1; }
.player-time { font-family: var(--font-mono), monospace; font-size: 11px; color: rgba(255,255,255,0.7); white-space: nowrap; }

.video-info { padding: 20px 0; }
.video-info-cat { font-family: var(--font-mono), monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 8px; }
.video-info-title { font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: .5px; margin-bottom: 14px; }
.video-info-bar {
  display: flex; align-items: center; gap: 20px;
  padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 16px; flex-wrap: wrap;
}
.info-stat { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.info-stat strong { color: var(--text); font-weight: 600; }
.action-btns { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.action-btn {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); font-size: 13px; font-weight: 500;
  padding: 7px 14px; border-radius: var(--radius); cursor: pointer;
  display: flex; align-items: center; gap: 6px; transition: all .12s;
}
.action-btn:hover { background: var(--surface3); border-color: var(--border2); }
.action-btn.liked { color: var(--accent2); border-color: var(--accent2); }
.video-desc { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.video-tags-row { display: flex; gap: 6px; flex-wrap: wrap; }

/* Sidebar */
.sidebar-section { margin-bottom: 20px; }
.sidebar-title {
  font-size: 14px; font-weight: 600; letter-spacing: 1px;
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.sidebar-title::before { content: ''; width: 3px; height: 16px; background: var(--accent); border-radius: 2px; }
.related-card {
  display: flex; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--border); cursor: pointer;
  transition: opacity .12s; text-decoration: none; color: inherit;
}
.related-card:last-child { border-bottom: none; }
.related-card:hover { opacity: .75; }
.related-thumb {
  flex-shrink: 0; width: 120px; aspect-ratio: 16/9;
  background: var(--surface2); border-radius: 4px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; border: 1px solid var(--border);
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-info { flex: 1; min-width: 0; }
.related-title {
  font-size: 12px; font-weight: 500; line-height: 1.35; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.related-meta { font-size: 10px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; }

.sidebar-ad {
  background: var(--surface); border: 1px dashed var(--muted2);
  border-radius: var(--radius); padding: 28px 16px; text-align: center;
  color: var(--muted2); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; position: relative; margin-bottom: 20px;
}
.sidebar-ad::before {
  content: 'AD'; position: absolute; top: 6px; left: 10px;
  font-family: var(--font-mono), monospace; font-size: 10px;
}
.sidebar-ad-size { color: var(--muted); font-size: 13px; margin-top: 4px; text-transform: none; letter-spacing: 0; }

/* Sidebar base (admin/browse pages) */
.sidebar {
  width: 260px; background: var(--surface); border-right: 1px solid var(--border);
  padding: 16px; overflow-y: auto; position: sticky; top: 56px; height: calc(100vh - 56px);
}
.sidebar-logo { font-size: 18px; font-weight: 700; letter-spacing: 2px; color: var(--accent); margin-bottom: 14px; }

.cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; margin-bottom: 6px; border-radius: var(--radius);
  cursor: pointer; border: 1px solid transparent; transition: all .15s ease;
  background: transparent;
}
.cat-item:hover { background: var(--surface2); border-color: var(--border); }
.cat-item.active { background: var(--accent); color: white; border-color: var(--accent); }
.cat-item .emoji { margin-right: 8px; }
.cat-item .label { flex: 1; font-size: 13px; font-weight: 500; }
.cat-item .cnt { font-size: 11px; color: var(--muted); }
.cat-item.active .cnt { color: rgba(255,255,255,0.8); }

.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 99; }
.sidebar-overlay.show { display: block; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .shelf { grid-template-columns: repeat(4, 1fr); }
  .video-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}

@media (max-width: 900px) {
  nav { padding: 0 16px; gap: 16px; }
  .home-hero { padding: 20px 16px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-title { font-size: 24px; }
  .page-body { padding: 0 16px 40px; }
  .shelf { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .video-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .catgrid { grid-template-columns: repeat(2, 1fr); }
  .bestof-wrap { grid-template-columns: 1fr; }
  .bestof-list { display: none; }
  .video-layout { grid-template-columns: 1fr; padding: 0; }
  footer { flex-wrap: wrap; padding: 20px 16px; }
  footer .footer-copy { margin-left: 0; }
  .sidebar { position: fixed; left: -280px; top: 0; height: 100%; z-index: 100; transition: left 0.25s ease; }
  .sidebar.open { left: 0; }
}

/* Mobile nav: two-row layout so cats get full first row */
@media (max-width: 640px) {
  nav {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    padding: 8px 12px;
    row-gap: 6px;
    gap: 8px;
  }
  .nav-cats { order: 2; flex: 1; }
  .nav-search { order: 10; flex: 0 0 100%; }
  .nav-search input { width: 100%; box-sizing: border-box; }
  .nav-search input:focus { width: 100%; }
  .cat-btn { min-height: 36px; padding: 7px 12px; font-size: 12px; }
  .section-see-all { padding: 6px 14px; font-size: 12px; }
}

@media (max-width: 540px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .catgrid { grid-template-columns: repeat(2, 1fr); }
}

/* Video grid cards must NOT inherit shelf fixed width */
.video-grid .vcard {
  flex: unset;
  width: 100%;
}
/* ═══════════════════════════════════════════════════════════════
   ADD THESE RULES TO YOUR style.css
   They cover:
     1. Age verification gate overlay
     2. Updated footer legal text
═══════════════════════════════════════════════════════════════ */

/* ── Prevent page scroll while gate is open ── */
body.age-gate-open {
  overflow: hidden;
}

/* ── Full-screen overlay ── */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: ageFadeIn 0.3s ease;
}

@keyframes ageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Fade-out when user clicks Enter */
.age-gate--leaving {
  animation: ageFadeOut 0.4s ease forwards;
}

@keyframes ageFadeOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(1.03); }
}

/* ── Modal box ── */
.age-gate-box {
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 0 60px rgba(255, 60, 60, 0.15);
}

/* ── Logo inside gate ── */
.age-gate-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 1rem;
}

.age-gate-logo span {
  color: var(--accent, #e63946);  /* inherits your accent colour */
}

/* ── 🔞 icon ── */
.age-gate-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

/* ── Heading ── */
.age-gate-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

/* ── Body text ── */
.age-gate-body {
  font-size: 0.875rem;
  color: #aaa;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.age-gate-body strong {
  color: #fff;
}

.age-gate-body a {
  color: var(--accent, #e63946);
  text-decoration: underline;
}

.age-gate-body a:hover {
  opacity: 0.8;
}

/* ── Button row ── */
.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Enter button */
.age-gate-enter {
  background: var(--accent, #e63946);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: opacity 0.15s, transform 0.1s;
}

.age-gate-enter:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.age-gate-enter:active {
  transform: translateY(0);
}

/* Leave link styled as a muted button */
.age-gate-leave {
  display: block;
  color: #666;
  font-size: 0.8rem;
  text-decoration: none;
  padding: 0.4rem;
  transition: color 0.15s;
}

.age-gate-leave:hover {
  color: #999;
}

/* ── Small legal note at the bottom ── */
.age-gate-legal {
  font-size: 0.7rem;
  color: #555;
  line-height: 1.5;
  border-top: 1px solid #222;
  padding-top: 1rem;
  margin: 0;
}

.age-gate-legal a {
  color: #777;
  text-decoration: underline;
}

.age-gate-legal a:hover {
  color: #aaa;
}

/* ── Mobile adjustments ── */
@media (max-width: 480px) {
  .age-gate-box {
    padding: 2rem 1.25rem;
    border-radius: 10px;
  }
  .age-gate-title {
    font-size: 1.35rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER ADDITIONS
   Add .footer-legal if it doesn't exist in your current style.css
═══════════════════════════════════════════════════════════════ */

/* Small legal disclaimer line above copyright */
.footer-legal {
  font-size: 0.7rem;
  color: #555;
  max-width: 640px;
  margin: 0 auto 0.75rem;
  line-height: 1.6;
  text-align: center;
}

/* Ensure footer links wrap nicely on mobile */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1rem;
}
/* ── EDITORIAL SECTION ── */
.editorial-section {
  max-width: 860px;
  margin: 48px auto 0;
  padding: 32px 24px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.45);
  font-size: 14px;
  line-height: 1.75;
}
.editorial-section h2 {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.editorial-section h3 {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  margin: 18px 0 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.editorial-section p {
  margin-bottom: 8px;
}

/* ── FEATURED ARTICLES SECTION ── */
.featured-articles-section {
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0 20px;
}
.featured-articles-inner {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
}
.featured-articles-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.featured-articles-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent2, #e91e8c);
  background: rgba(233,30,140,.12);
  border: 1px solid rgba(233,30,140,.25);
  padding: 2px 8px;
  border-radius: 4px;
}
.featured-articles-title {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  margin: 0;
  letter-spacing: .02em;
}
.featured-articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .featured-articles-grid { grid-template-columns: 1fr; }
}
.article-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.article-card:hover {
  background: rgba(233,30,140,.07);
  border-color: rgba(233,30,140,.3);
}
.article-card-meta {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent2, #e91e8c);
}
.article-card-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  line-height: 1.4;
}
.article-card-desc {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
}
.article-card-cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent2, #e91e8c);
  margin-top: 4px;
}
