/* ============================================================
   RuleVid.com — TikTok-Style "Neon Manga Theater"
   KVS-Ready Video Site Template
   ============================================================ */

/* ---------- Google Fonts ---------- */

/* ---------- Design Tokens ---------- */
:root {
  /* Backgrounds */
  --bg-void: #0a0a0f;
  --bg-surface: #12121f;
  --bg-card: #1a1a2e;
  --bg-card-hover: #22223a;
  --bg-input: #0e0e1a;
  --bg-header: rgba(10, 10, 15, 0.85);
  --bg-overlay: rgba(0, 0, 0, 0.6);
  --bg-bottom-nav: rgba(12, 12, 20, 0.95);

  /* Accent palette */
  --neon-pink: #ff2d78;
  --neon-pink-dim: rgba(255, 45, 120, 0.15);
  --neon-pink-glow: rgba(255, 45, 120, 0.4);
  --neon-cyan: #00d4ff;
  --neon-cyan-dim: rgba(0, 212, 255, 0.12);
  --neon-cyan-glow: rgba(0, 212, 255, 0.35);
  --neon-purple: #7b2dff;
  --neon-purple-dim: rgba(123, 45, 255, 0.12);
  --neon-purple-glow: rgba(123, 45, 255, 0.35);

  /* Text */
  --text-primary: #eaeaef;
  --text-secondary: #a0a0b8;
  --text-muted: #5a5a7a;
  --text-accent: var(--neon-pink);

  /* Borders */
  --border-color: #2a2a42;
  --border-subtle: #1e1e34;

  /* Semantic */
  --success: #00e676;
  --warning: #ffab00;
  --danger: #ff1744;

  /* Typography */
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --fs-xs: 0.7rem;
  --fs-sm: 0.8rem;
  --fs-base: 0.9rem;
  --fs-md: 1rem;
  --fs-lg: 1.15rem;
  --fs-xl: 1.4rem;
  --fs-2xl: 1.8rem;
  --fs-3xl: 2.4rem;
  --fs-4xl: 3rem;

  /* Spacing */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-lg: 16px;
  --sp-xl: 24px;
  --sp-2xl: 32px;
  --sp-3xl: 48px;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-glow-pink: 0 0 20px var(--neon-pink-glow), 0 0 60px rgba(255, 45, 120, 0.1);
  --shadow-glow-cyan: 0 0 20px var(--neon-cyan-glow), 0 0 60px rgba(0, 212, 255, 0.1);
  --shadow-glow-purple: 0 0 20px var(--neon-purple-glow);
  --shadow-header: 0 2px 30px rgba(0, 0, 0, 0.7);

  /* Transitions */
  --tr-fast: 150ms ease;
  --tr-base: 250ms ease;
  --tr-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --content-max: 1400px;
  --header-height: 56px;
  --bottom-nav-height: 60px;
  --feed-gap: 6px;
}

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

html {
  scroll-behavior: smooth;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-pink) var(--bg-void);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background: var(--bg-void);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--neon-pink); border-radius: 3px; }

a { color: var(--neon-cyan); text-decoration: none; transition: color var(--tr-fast); }
a:hover { color: var(--neon-pink); }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* ---------- Utility ---------- */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--sp-lg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- Floating Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--bg-header);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background var(--tr-base), box-shadow var(--tr-base);
}
.site-header.scrolled {
  background: rgba(10, 10, 15, 0.96);
  box-shadow: var(--shadow-header);
}

.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: 0 var(--sp-lg);
}

/* Logo */
.logo { display: flex; align-items: center; gap: 6px; text-decoration: none; flex-shrink: 0; }
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.logo-text span { color: var(--neon-pink); }

/* Header search */
.header-search {
  flex: 1; max-width: 420px;
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}
.header-search:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan-dim);
}
.header-search input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-size: var(--fs-sm);
  outline: none;
  color: var(--text-primary);
}
.header-search input::placeholder { color: var(--text-muted); }
.header-search button {
  padding: 8px 14px;
  color: var(--text-muted);
  transition: color var(--tr-fast);
}
.header-search button:hover { color: var(--neon-cyan); }

/* Header nav */
.header-nav { display: flex; gap: var(--sp-lg); }
.header-nav a {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  transition: color var(--tr-fast);
}
.header-nav a:hover, .header-nav a.active { color: var(--neon-pink); }
.header-nav a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--neon-pink);
  transform: scaleX(0);
  transition: transform var(--tr-base);
}
.header-nav a:hover::after, .header-nav a.active::after { transform: scaleX(1); }

/* Header auth */
.header-auth { display: flex; gap: var(--sp-sm); flex-shrink: 0; }

/* Hamburger */
.drawer-toggle {
  display: flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  color: var(--text-primary);
  border-radius: var(--radius-md);
  transition: background var(--tr-fast);
}
.drawer-toggle:hover { background: var(--bg-card); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  transition: all var(--tr-base);
  white-space: nowrap;
  text-decoration: none;
}
.btn-sm { padding: 6px 14px; font-size: var(--fs-xs); }
.btn-primary {
  background: var(--neon-pink);
  color: #fff;
}
.btn-primary:hover {
  background: #ff4d90;
  box-shadow: var(--shadow-glow-pink);
  color: #fff;
}
.btn-outline {
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.btn-outline:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan-dim);
}
.btn-ghost { color: var(--text-secondary); }
.btn-ghost:hover { color: var(--neon-pink); }
.btn-icon {
  width: 40px; height: 40px;
  padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1100;
  opacity: 0; pointer-events: none;
  transition: opacity var(--tr-base);
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.drawer-panel {
  position: fixed; top: 0; left: 0;
  width: 280px; height: 100%;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  z-index: 1101;
  transform: translateX(-100%);
  transition: transform var(--tr-slow);
  overflow-y: auto;
  padding: var(--sp-xl);
}
.drawer-panel.open { transform: translateX(0); }

.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-lg);
  border-bottom: 1px solid var(--border-color);
}
.drawer-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: all var(--tr-fast);
}
.drawer-close:hover { color: var(--neon-pink); background: var(--neon-pink-dim); }

.drawer-nav { list-style: none; }
.drawer-nav li { margin-bottom: 2px; }
.drawer-nav a {
  display: flex; align-items: center; gap: var(--sp-md);
  padding: 10px var(--sp-md);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-md);
  transition: all var(--tr-fast);
}
.drawer-nav a:hover, .drawer-nav a.active {
  color: var(--neon-pink);
  background: var(--neon-pink-dim);
}
.drawer-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }

.drawer-section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: var(--sp-xl) 0 var(--sp-sm);
}
n/* ---------- Language Switcher (Header) ---------- */
.lang-switcher {
  position: relative;
}
.lang-current {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--tr-fast);
  cursor: pointer;
}
.lang-current:hover {
  background: var(--bg-card-hover);
  color: var(--neon-cyan);
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 0;
  min-width: 160px;
  z-index: 1200;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.lang-dropdown.open {
  display: block;
}
.lang-dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  transition: all var(--tr-fast);
}
.lang-dropdown a:hover {
  background: var(--bg-card);
  color: var(--neon-cyan);
}
.lang-dropdown a.active {
  color: var(--neon-pink);
  font-weight: 600;
}

/* ---------- Drawer Language Grid ---------- */
.drawer-lang-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: var(--sp-lg);
}
.drawer-lang-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--tr-fast);
}
.drawer-lang-grid a:hover {
  background: var(--bg-card-hover);
  color: var(--neon-cyan);
}
.drawer-lang-grid a.active {
  background: var(--neon-pink-dim);
  color: var(--neon-pink);
  border: 1px solid var(--neon-pink);
}

/* ---------- Drawer: Toggle Filters ---------- */
.drawer-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px 12px;
  margin-bottom: var(--sp-md);
}
.drawer-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.drawer-toggle-input { display: none; }
.drawer-toggle-switch {
  position: relative;
  width: 36px; height: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  transition: all var(--tr-fast);
  flex-shrink: 0;
}
.drawer-toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all var(--tr-fast);
}
.drawer-toggle-input:checked + .drawer-toggle-switch {
  background: var(--neon-pink);
  border-color: var(--neon-pink);
}
.drawer-toggle-input:checked + .drawer-toggle-switch::after {
  left: 18px;
  background: #fff;
}

/* ---------- Drawer: Trending Searches ---------- */
.drawer-trending {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--sp-md);
}
.drawer-tag {
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: var(--fs-xs);
  font-weight: 500;
  transition: all var(--tr-fast);
  white-space: nowrap;
}
.drawer-tag:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  background: rgba(0, 212, 255, 0.08);
}

/* ---------- Drawer: Top Categories ---------- */
.drawer-top-cats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--sp-md);
}
.drawer-cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  transition: all var(--tr-fast);
}
.drawer-cat-item:hover {
  background: var(--neon-pink-dim);
}
.drawer-cat-rank {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--neon-pink);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.drawer-cat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}
.drawer-cat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.drawer-cat-name {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer-cat-count {
  font-size: 11px;
  color: var(--text-muted);
}

/* ---------- Bottom Nav (mobile) ---------- */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-height);
  background: var(--bg-bottom-nav);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  z-index: 999;
}
.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  max-width: 500px;
  margin: 0 auto;
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color var(--tr-fast);
  padding: 6px 12px;
}
.bottom-nav-item svg { width: 22px; height: 22px; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--neon-pink); }
.bottom-nav-item.active svg { filter: drop-shadow(0 0 6px var(--neon-pink-glow)); }

/* Center search button */
.bottom-nav-item.nav-center {
  width: 48px; height: 48px;
  background: var(--neon-pink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin-top: -16px;
  box-shadow: 0 0 20px var(--neon-pink-glow);
}
.bottom-nav-item.nav-center span { display: none; }
.bottom-nav-item.nav-center svg { width: 24px; height: 24px; }

/* ---------- Sort Bar (generic, for tags/categories etc.) ---------- */
.sort-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: var(--sp-sm) var(--sp-lg);
  max-width: var(--content-max);
  margin: 0 auto;
  flex-wrap: wrap;
  box-sizing: border-box;
}
.sort-bar-inner {
  display: flex;
  gap: var(--sp-xs);
  overflow-x: auto;
  scrollbar-width: none;
}
.sort-bar-inner::-webkit-scrollbar { display: none; }
.sort-tab {
  padding: 6px 16px;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: all var(--tr-fast);
}
.sort-tab:hover { color: var(--text-secondary); background: var(--bg-card); }
.sort-tab.active {
  color: #fff;
  background: var(--neon-pink);
  box-shadow: 0 0 14px var(--neon-pink-dim);
}

/* ---------- Filter Bar ---------- */
.filter-bar {
  display: flex;
  gap: var(--sp-xs);
  margin-left: auto;
}

.filter-group {
  position: relative;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--tr-fast);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-btn:hover {
  color: var(--text-secondary);
  border-color: var(--neon-cyan);
}

.filter-arrow {
  transition: transform 0.2s;
}

.filter-dropdown.open + .filter-btn .filter-arrow,
.filter-group:has(.filter-dropdown.open) .filter-arrow {
  transform: rotate(180deg);
}

.filter-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 6px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.filter-dropdown.open {
  display: block;
}

.filter-option {
  display: block;
  padding: 8px 12px;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--tr-fast);
  text-decoration: none;
}

.filter-option:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.filter-option.active {
  color: var(--neon-cyan);
  background: rgba(0, 212, 255, 0.08);
}

/* Feed sort bar (floats over the TikTok feed) */
.feed-sort-bar {
  position: fixed;
  top: calc(var(--header-height) + 8px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  padding: 3px;
  z-index: 200;
}
.feed-sort-tab {
  padding: 6px 18px;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: all var(--tr-fast);
}
.feed-sort-tab:hover { color: #fff; }
.feed-sort-tab.active {
  color: #fff;
  background: var(--neon-pink);
}

/* ---------- Feed (TikTok style — vertical scroll-snap) ---------- */
.feed-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.feed {
  scroll-snap-type: y mandatory;
  overflow-y: auto;
  height: calc(100vh - var(--header-height));
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.feed::-webkit-scrollbar { width: 0; }
.feed { scrollbar-width: none; }

.feed-card {
  display: block;
  position: relative;
  overflow: hidden;
  background: #000;
  min-height: calc(100vh - var(--header-height));
  height: calc(100vh - var(--header-height));
  scroll-snap-align: start;
  scroll-snap-stop: always;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}
.feed-card:hover {
  /* no transform — full viewport card */
}

.feed-card-thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.feed-card-thumb[data-preview] { cursor: pointer; }

/* Gradient overlay — stronger for readability */
.feed-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.5) 25%,
    transparent 55%
  );
  pointer-events: none;
}

/* Current card indicator (dot on the side) */
.feed-card-progress {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 6px;
  z-index: 3;
}

/* Duration badge */
.feed-card-duration {
  position: absolute; top: var(--sp-md); left: var(--sp-md);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-primary);
  z-index: 2;
}

/* HD badge */
.feed-card-quality {
  position: absolute; top: var(--sp-md); right: var(--sp-md);
  background: var(--neon-pink);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}

/* ---------- Video Grid ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 8px;
  max-width: var(--content-max);
  margin: 0 auto;
  box-sizing: border-box;
}
@media (min-width: 540px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .video-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .video-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1400px) { .video-grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Video Card (compact) ---------- */
.video-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast);
}
.video-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-pink);
}
.video-card-thumb-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.video-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.video-card:hover .video-card-thumb {
  transform: scale(1.05);
}
.video-card-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.video-card:hover .video-card-preview.is-playing {
  opacity: 1;
}
.video-card-duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.8);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  z-index: 2;
}
.video-card-quality {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--neon-pink);
  padding: 1px 4px;
  border-radius: 3px;
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}
.video-card-quality.q4k {
  background: var(--neon-cyan);
  color: var(--bg-dark);
}
.video-card-body {
  padding: 6px 8px 8px;
}
.video-card-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  line-height: 1.25;
  margin-bottom: 3px;
  transition: color var(--tr-fast);
}
.video-card-title:hover {
  color: var(--neon-pink);
}
.video-card-meta {
  display: flex;
  gap: 8px;
  font-size: 0.6rem;
  color: var(--text-muted);
  align-items: center;
  flex-wrap: wrap;
}
.video-card-meta span {
  display: flex;
  align-items: center;
  gap: 2px;
}
.video-card-meta .meta-rating {
  color: var(--success);
  font-weight: 600;
}

/* ---------- Video Overlay ---------- */
.video-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-void);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.video-overlay.open {
  display: block;
}
.video-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
}
.video-overlay-back {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  transition: background var(--tr-fast), color var(--tr-fast);
}
.video-overlay-back:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}
.video-overlay-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: var(--radius-md);
  transition: background var(--tr-fast), color var(--tr-fast);
}
.video-overlay-close:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}
.video-overlay-body {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 40px;
}
.video-overlay-body .main-content {
  padding: 0;
}
.video-overlay-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
}

/* Legacy feed-card support for other pages */
.feed-card-meta {
  display: flex; gap: var(--sp-md);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}
.feed-card-meta span { display: flex; align-items: center; gap: 3px; }
.feed-card-tags {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: var(--sp-sm);
}
.feed-card-tag {
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  font-size: 0.6rem;
  color: var(--neon-cyan);
  text-decoration: none;
  transition: background var(--tr-fast);
}
.feed-card-tag:hover {
  background: var(--neon-cyan-dim);
  color: var(--neon-cyan);
}

/* Card info — positioned at bottom left (feed card legacy) */
.feed-card-info {
  position: absolute; bottom: 0; left: 0; right: 70px;
  padding: 20px 16px 24px;
  z-index: 2;
}
.feed-card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
  letter-spacing: 0.02em;
}

/* ---------- Grid Layout (categories, models, etc.) ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-md);
  padding: var(--sp-md);
}

.grid-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  transition: transform var(--tr-base), box-shadow var(--tr-base);
}
.grid-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-cyan);
}
.grid-card-img {
  width: 100%; aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform var(--tr-slow);
}
.grid-card:hover .grid-card-img { transform: scale(1.06); }

.grid-card-body {
  padding: var(--sp-md);
}
.grid-card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: var(--sp-xs);
}
.grid-card-count {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* Avatar card (models) */
.avatar-card {
  display: flex; flex-direction: column; align-items: center;
  padding: var(--sp-xl) var(--sp-md);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  text-align: center;
  text-decoration: none;
  transition: transform var(--tr-base), box-shadow var(--tr-base), border-color var(--tr-base);
  border: 1px solid transparent;
}
.avatar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-purple);
  border-color: var(--neon-purple);
}
.avatar-card-img {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  margin-bottom: var(--sp-md);
  transition: border-color var(--tr-base), box-shadow var(--tr-base);
}
.avatar-card:hover .avatar-card-img {
  border-color: var(--neon-purple);
  box-shadow: var(--shadow-glow-purple);
}
.avatar-card-name {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.avatar-card-stat {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ---------- Video Page ---------- */
.player-section {
  background: #000;
  width: 100%;
  overflow: hidden;
}
.player-wrapper {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
}
.player-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
}

.video-info {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: var(--sp-xl) var(--sp-lg);
}
.embed-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.video-title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-md);
  text-transform: none;
  letter-spacing: 0;
}
.video-stats {
  display: flex; flex-wrap: wrap; gap: var(--sp-lg);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-lg);
}
.video-stats span { display: flex; align-items: center; gap: 4px; }
.video-stats svg { width: 14px; height: 14px; }

/* Rating bar */
.rating-bar {
  display: flex; align-items: center; gap: var(--sp-md);
}
.rating-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all var(--tr-fast);
}
.rating-btn.like {
  background: var(--bg-card);
  color: var(--text-secondary);
}
.rating-btn.like:hover, .rating-btn.like.active {
  background: rgba(0, 230, 118, 0.15);
  color: var(--success);
}
.rating-btn.dislike {
  background: var(--bg-card);
  color: var(--text-secondary);
}
.rating-btn.dislike:hover, .rating-btn.dislike.active {
  background: rgba(255, 23, 68, 0.15);
  color: var(--danger);
}
.rating-btn svg { width: 18px; height: 18px; }
.rating-bar-fill {
  flex: 1;
  height: 4px;
  background: var(--bg-card);
  border-radius: 2px;
  overflow: hidden;
}
.rating-bar-positive {
  height: 100%;
  background: linear-gradient(90deg, var(--success), var(--neon-cyan));
  border-radius: 2px;
}

/* Action bar */
.action-bar {
  display: flex; gap: var(--sp-sm); flex-wrap: wrap;
  padding: var(--sp-lg) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--sp-lg);
}
.action-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--tr-fast);
}
.action-btn svg { width: 16px; height: 16px; }
.action-btn:hover {
  background: var(--bg-card-hover);
  color: var(--neon-cyan);
}

/* Tags row */
.tags-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: var(--sp-lg);
}
.tag-pill {
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  color: var(--neon-cyan);
  text-decoration: none;
  transition: all var(--tr-fast);
}
.tag-pill:hover {
  border-color: var(--neon-cyan);
  background: var(--neon-cyan-dim);
  box-shadow: 0 0 10px var(--neon-cyan-dim);
  color: var(--neon-cyan);
}

/* Related videos (horizontal scroll) */
.related-section {
  padding: var(--sp-xl) 0;
}
.section-title {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-lg);
  display: flex; align-items: center; gap: var(--sp-sm);
}
.section-title::before {
  content: '';
  width: 4px; height: 24px;
  background: var(--neon-pink);
  border-radius: 2px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-top: calc(var(--sp-lg) * -1 + var(--sp-xs));
  margin-bottom: var(--sp-lg);
  padding-left: var(--sp-md);
}

/* ---------- Members Search ---------- */
.members-search {
  margin-bottom: var(--sp-lg);
}
.members-search .members-search-form {
  max-width: 500px;
  height: 48px;
}
.members-search .members-search-form input {
  font-size: var(--fs-md);
}

.related-scroll {
  display: flex;
  gap: var(--sp-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-sm);
  scrollbar-width: none;
}
.related-scroll::-webkit-scrollbar { display: none; }
.related-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  text-decoration: none;
}
.related-card-thumb {
  width: 100%; aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-sm);
  transition: transform var(--tr-base);
}
.related-card:hover .related-card-thumb { transform: scale(1.04); }
.related-card-title {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- Tag Cloud ---------- */
.tag-cloud {
  display: flex; flex-wrap: wrap; gap: var(--sp-sm);
  justify-content: center;
  padding: var(--sp-xl);
  max-width: var(--content-max);
  margin: 0 auto;
}
.tag-cloud-item {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 500;
  transition: all var(--tr-base);
}
.tag-cloud-item:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-2px);
}
.tag-cloud-item.size-lg { font-size: var(--fs-xl); color: var(--neon-pink); border-color: var(--neon-pink-dim); }
.tag-cloud-item.size-md { font-size: var(--fs-lg); }
.tag-cloud-item.size-sm { font-size: var(--fs-sm); }
.tag-cloud-item.size-xs { font-size: var(--fs-xs); color: var(--text-muted); }

/* Tag list (alphabetical) */
.tag-list {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--sp-lg) var(--sp-xl);
}
.tag-list-letter {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--neon-pink);
  text-transform: uppercase;
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-top: var(--sp-md);
}
.tag-list-items {
  display: flex; flex-wrap: wrap; gap: var(--sp-sm);
  padding: var(--sp-sm) 0;
}
.tag-list-item {
  padding: 4px 14px;
  background: var(--bg-card);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  color: var(--neon-cyan);
  text-decoration: none;
  transition: all var(--tr-fast);
}
.tag-list-item:hover {
  background: var(--neon-cyan-dim);
  box-shadow: 0 0 10px var(--neon-cyan-dim);
}
.tag-list-item span { color: var(--text-muted); margin-left: 4px; font-size: var(--fs-xs); }

/* Alpha filter */
.alpha-filter {
  display: flex; flex-wrap: wrap; gap: 4px;
  justify-content: center;
  padding: var(--sp-md) var(--sp-lg);
  margin-bottom: var(--sp-lg);
}
.alpha-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--tr-fast);
}
.alpha-btn:hover, .alpha-btn.active {
  color: var(--neon-pink);
  background: var(--neon-pink-dim);
}

/* ---------- Search Page ---------- */
.search-hero {
  padding: var(--sp-3xl) var(--sp-lg);
  text-align: center;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-void) 100%);
}
.search-hero h1 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-xl);
}
.search-hero h1 span { color: var(--neon-pink); }
.search-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}
.search-form:focus-within {
  border-color: var(--neon-pink);
  box-shadow: var(--shadow-glow-pink);
}
.search-form input {
  flex: 1;
  background: transparent; border: none;
  padding: 14px 24px;
  font-size: var(--fs-md);
  outline: none;
  color: var(--text-primary);
}
.search-form input::placeholder { color: var(--text-muted); }
.search-form button {
  padding: 14px 24px;
  background: var(--neon-pink);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background var(--tr-fast);
}
.search-form button:hover { background: #ff4d90; }

.similar-searches {
  max-width: 600px;
  margin: var(--sp-lg) auto 0;
  display: flex; flex-wrap: wrap; gap: var(--sp-sm);
  justify-content: center;
}
.similar-searches a {
  padding: 4px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--tr-fast);
}
.similar-searches a:hover {
  color: var(--neon-cyan);
  background: var(--neon-cyan-dim);
}

/* ---------- Auth Page ---------- */
.auth-wrapper {
  min-height: calc(100vh - var(--header-height));
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-2xl) var(--sp-lg);
  background:
    radial-gradient(ellipse at 20% 50%, var(--neon-purple-dim) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, var(--neon-pink-dim) 0%, transparent 50%),
    var(--bg-void);
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--sp-2xl);
  box-shadow: var(--shadow-card);
}
.auth-tabs {
  display: flex; gap: 0;
  margin-bottom: var(--sp-xl);
  background: var(--bg-card);
  border-radius: var(--radius-pill);
  padding: 3px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: all var(--tr-fast);
}
.auth-tab:hover { color: var(--text-secondary); }
.auth-tab.active {
  background: var(--neon-pink);
  color: #fff;
  box-shadow: 0 0 14px var(--neon-pink-dim);
}
.auth-form { display: none; }
.auth-form.active { display: block; }

.form-group { margin-bottom: var(--sp-lg); }
.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-sm);
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--fs-base);
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
  outline: none;
}
.form-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan-dim);
}
.form-input::placeholder { color: var(--text-muted); }

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--neon-pink);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all var(--tr-base);
}
.form-submit:hover {
  background: #ff4d90;
  box-shadow: var(--shadow-glow-pink);
}

/* ---------- Login Modal ---------- */
.login-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.login-modal-overlay.open {
  display: flex;
}
.login-modal {
  width: 100%; max-width: 460px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--sp-2xl);
  position: relative;
  box-shadow: 0 0 40px rgba(255,0,85,0.15);
  margin: var(--sp-lg);
}
.login-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text-secondary);
  font-size: 28px; cursor: pointer; line-height: 1;
  z-index: 1;
}
.login-modal-close:hover { color: var(--text-primary); }
.login-modal-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-xl);
}
.auth-links {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  margin-top: var(--sp-md);
}
.auth-links a {
  color: var(--neon-pink);
  font-size: var(--fs-sm);
  text-decoration: none;
}
.auth-links a:hover { text-decoration: underline; }
.auth-separator {
  text-align: center;
  margin-top: var(--sp-xl);
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--border-color);
}
.auth-separator p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: var(--sp-md);
}
.btn-block { display: block; width: 100%; text-align: center; padding: 12px; }

/* ---------- Legal Pages ---------- */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--sp-3xl) var(--sp-lg);
}
.legal-page h1 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-2xl);
  text-align: center;
}
.legal-page h1 span { color: var(--neon-pink); }
.legal-page h2 {
  font-size: var(--fs-xl);
  color: var(--neon-cyan);
  margin: var(--sp-2xl) 0 var(--sp-md);
  text-transform: none;
}
.legal-page p, .legal-page li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-md);
}
.legal-page ul { padding-left: var(--sp-xl); }
.legal-page a { color: var(--neon-pink); }
.legal-page a:hover { text-decoration: underline; }

/* ---------- Model Profile ---------- */
.model-hero {
  position: relative;
  padding: var(--sp-3xl) var(--sp-lg);
  display: flex; align-items: center; gap: var(--sp-2xl);
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-card) 100%);
  border-bottom: 1px solid var(--border-color);
}
.model-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--neon-purple);
  box-shadow: var(--shadow-glow-purple);
  flex-shrink: 0;
}
.model-name {
  font-size: var(--fs-3xl);
}
.model-stats {
  display: flex; gap: var(--sp-xl);
  margin-top: var(--sp-md);
}
.model-stat {
  text-align: center;
}
.model-stat-value {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--neon-cyan);
}
.model-stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ---------- Category Hero ---------- */
.category-hero {
  position: relative;
  width: 100%;
  max-height: 280px;
  overflow: hidden;
}
.category-hero-cover {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.category-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--sp-2xl) var(--sp-xl) var(--sp-xl);
  background: linear-gradient(to top, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.6) 60%, transparent 100%);
}
.category-hero-title {
  font-size: var(--fs-3xl);
  text-transform: uppercase;
}
.category-hero-stats {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  margin-top: var(--sp-sm);
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--neon-cyan);
}
.category-hero-stats svg {
  color: var(--text-muted);
}
.category-hero-desc {
  margin-top: var(--sp-sm);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  max-width: 600px;
}

/* ---------- Tag Hero ---------- */
.tag-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-3xl) var(--sp-lg) var(--sp-2xl);
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-card) 100%);
  border-bottom: 1px solid var(--border-color);
}
.tag-hero-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--neon-pink-dim);
  border-radius: var(--radius-xl);
  margin-bottom: var(--sp-lg);
}
.tag-hero-icon svg {
  width: 32px; height: 32px;
  color: var(--neon-pink);
}
.tag-hero-name {
  font-size: var(--fs-3xl);
  text-transform: capitalize;
}
.tag-hero-stats {
  display: flex;
  gap: var(--sp-lg);
  margin-top: var(--sp-md);
}
.tag-hero-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--neon-cyan);
}
.tag-hero-count svg {
  color: var(--text-muted);
}

/* ---------- Channel Hero ---------- */
.channel-hero {
  position: relative;
  width: 100%;
}
.channel-hero-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.channel-hero-body {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-xl);
  padding: 0 var(--sp-xl) var(--sp-xl);
  margin-top: -50px;
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}
.channel-hero-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-void);
  box-shadow: var(--shadow-glow-purple);
  flex-shrink: 0;
}
.channel-hero-info { flex: 1; min-width: 0; }
.channel-hero-name {
  font-size: var(--fs-2xl);
  margin-bottom: 4px;
}
.channel-hero-stats {
  display: flex;
  gap: var(--sp-lg);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-sm);
}
.channel-hero-stats span { color: var(--neon-cyan); font-weight: 600; }
.channel-hero-desc {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-top: var(--sp-sm);
  max-width: 600px;
}

/* ---------- Playlist Hero ---------- */
.playlist-hero {
  padding: var(--sp-2xl) var(--sp-xl);
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-card) 100%);
  border-bottom: 1px solid var(--border-color);
  max-width: var(--content-max);
  margin: 0 auto;
}
.playlist-hero-title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-sm);
}
.playlist-hero-creator {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}
.playlist-hero-creator img {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.playlist-hero-creator span {
  color: var(--neon-cyan);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.playlist-hero-stats {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.playlist-hero-desc {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  margin-top: var(--sp-md);
  max-width: 600px;
}

/* ---------- Favourites Hero ---------- */
.fav-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-3xl) var(--sp-lg) var(--sp-2xl);
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-card) 100%);
  border-bottom: 1px solid var(--border-color);
}
.fav-hero-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--neon-pink-dim);
  border-radius: var(--radius-xl);
  margin-bottom: var(--sp-lg);
}
.fav-hero-icon svg {
  width: 32px; height: 32px;
  color: var(--neon-pink);
}

/* ---------- Dashboard (Profile) ---------- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
  padding: var(--sp-lg);
  max-width: var(--content-max);
  margin: 0 auto;
}
.dashboard-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-2xl) var(--sp-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--tr-fast);
}
.dashboard-card:hover {
  border-color: var(--neon-pink);
  box-shadow: 0 0 20px rgba(255, 45, 120, 0.15);
  transform: translateY(-2px);
}
.dashboard-card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--neon-pink-dim);
  border-radius: var(--radius-xl);
}
.dashboard-card-icon svg {
  width: 24px; height: 24px;
  color: var(--neon-pink);
}
.dashboard-card-value {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--neon-cyan);
}
.dashboard-card-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Upload Form ---------- */
.upload-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--sp-3xl) var(--sp-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--tr-fast);
  margin-bottom: var(--sp-xl);
}
.upload-dropzone:hover {
  border-color: var(--neon-pink);
  background: var(--neon-pink-dim);
}
.upload-dropzone-icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--sp-lg);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border-radius: 50%;
}
.upload-dropzone-icon svg {
  width: 32px; height: 32px;
  color: var(--neon-pink);
}
.upload-dropzone-text {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-xs);
}
.upload-dropzone-hint {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.upload-dropzone-hint a {
  color: var(--neon-cyan);
}

/* ---------- Member Card (members grid) ---------- */
.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-xl) var(--sp-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--tr-fast);
}
.member-card:hover {
  border-color: var(--neon-purple);
  box-shadow: var(--shadow-glow-purple);
  transform: translateY(-2px);
}
.member-card-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  margin-bottom: var(--sp-md);
}
.member-card-name {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.member-card-meta {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ---------- Quick Links (profile) ---------- */
.quick-links {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--sp-lg) var(--sp-xl);
}
.quick-links-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-sm);
}
.quick-links-list a {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all var(--tr-fast);
}
.quick-links-list a:hover {
  color: var(--neon-pink);
  border-color: var(--neon-pink);
  background: var(--neon-pink-dim);
}
.quick-links-list a svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}

/* ---------- Page Header (generic) ---------- */
.page-header {
  padding: var(--sp-2xl) var(--sp-lg);
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-void) 100%);
  text-align: center;
}
.page-header h1 {
  font-size: var(--fs-3xl);
}
.page-header h1 span { color: var(--neon-pink); }
.page-header p {
  color: var(--text-muted);
  margin-top: var(--sp-sm);
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-xs);
  padding: var(--sp-xl);
}
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 var(--sp-sm);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--tr-fast);
}
.pagination a:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}
.pagination .active {
  background: var(--neon-pink);
  color: #fff;
  box-shadow: 0 0 14px var(--neon-pink-dim);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: var(--sp-2xl) var(--sp-lg);
  text-align: center;
}
.footer-links {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-lg);
}
.footer-links a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--tr-fast);
}
.footer-links a:hover { color: var(--neon-pink); }
.footer-copy {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ---------- Age Verification Popup ---------- */
.age-popup {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.age-popup-card {
  max-width: 400px; width: 90%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--sp-2xl);
  text-align: center;
}
.age-popup-card h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-md);
}
.age-popup-card p {
  color: var(--text-secondary);
  margin-bottom: var(--sp-xl);
  font-size: var(--fs-sm);
}
.age-popup-btns {
  display: flex; gap: var(--sp-md); justify-content: center;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 10px var(--neon-pink-glow); }
  50% { box-shadow: 0 0 25px var(--neon-pink-glow), 0 0 50px rgba(255, 45, 120, 0.15); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}
.animate-in:nth-child(1) { animation-delay: 0s; }
.animate-in:nth-child(2) { animation-delay: 0.05s; }
.animate-in:nth-child(3) { animation-delay: 0.1s; }
.animate-in:nth-child(4) { animation-delay: 0.1s; }
.animate-in:nth-child(5) { animation-delay: 0.15s; }
.animate-in:nth-child(6) { animation-delay: 0.15s; }
.animate-in:nth-child(7) { animation-delay: 0.2s; }
.animate-in:nth-child(8) { animation-delay: 0.2s; }

/* Speed lines decoration */
.speed-lines {
  position: fixed;
  top: 0; right: 0;
  width: 300px; height: 300px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    var(--neon-pink) 8px,
    var(--neon-pink) 9px
  );
}

/* ---------- Sidebar Layout ---------- */

.main-with-sidebar {
  display: flex;
  gap: var(--sp-xl);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

.content-primary {
  flex: 1;
  min-width: 0;
}

.content-sidebar {
  width: 280px;
  flex-shrink: 0;
  padding-top: var(--sp-lg);
}

.desktop-only {
  display: none;
}

.sidebar-block {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  margin-bottom: var(--sp-lg);
  border: 1px solid var(--border-color);
}

.sidebar-block .sidebar-title {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--neon-cyan);
  margin-bottom: var(--sp-sm);
  padding-bottom: var(--sp-xs);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.sidebar-trending {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
}

.sidebar-trending .drawer-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-card-hover);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: var(--fs-xs);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.sidebar-trending .drawer-tag:hover {
  background: var(--neon-pink);
  color: var(--text-primary);
}

/* Sidebar categories override inline styles from global block */
.sidebar-block .sidebar-section {
  margin-bottom: 0 !important;
}

.sidebar-block .sidebar-list a:hover span:first-child {
  color: var(--neon-cyan);
}

/* ---------- Responsive ---------- */

/* Mobile */
@media (max-width: 767px) {
  .header-nav, .header-auth { display: none; }
  .lang-switcher { display: none; }
  .bottom-nav { display: block; }
  .site-footer { display: none; }

  body { padding-bottom: var(--bottom-nav-height); }

  .feed {
    height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
  }
  .feed-card {
    height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
  }
  .feed-wrapper { max-width: 100%; }

  .sort-bar { top: var(--header-height); }
  .header-search { max-width: none; flex: 1; }

  .model-hero { flex-direction: column; text-align: center; padding: var(--sp-2xl) var(--sp-lg); }
  .model-name { font-size: var(--fs-2xl); }
  .model-stats { justify-content: center; }

  .player-wrapper { aspect-ratio: 16 / 9; }
  .player-section { width: 100%; overflow: hidden; }
  .player-wrapper { width: 100%; }
  .video-info { width: 100%; padding: var(--sp-lg) var(--sp-md); }
  .video-title { font-size: var(--fs-xl); word-break: break-word; }
  .action-bar { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .related-section { width: 100%; overflow: hidden; }
  .main-content { width: 100%; overflow-x: hidden; }

  .page-header h1 { font-size: var(--fs-2xl); }
  .search-hero h1 { font-size: var(--fs-2xl); }
  .legal-page h1 { font-size: var(--fs-2xl); }

  .tag-cloud { padding: var(--sp-md); }

  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-links-list { grid-template-columns: 1fr; }
  .channel-hero-body { flex-direction: column; align-items: center; text-align: center; margin-top: -40px; }
  .channel-hero-avatar { width: 80px; height: 80px; }
  .channel-hero-stats { justify-content: center; flex-wrap: wrap; }
  .playlist-hero { padding: var(--sp-xl) var(--sp-lg); }
  .category-hero-title { font-size: var(--fs-2xl); }

  .main-with-sidebar { flex-direction: column; padding: 0; width: 100%; overflow-x: hidden; }
  .content-primary { width: 100%; overflow-x: hidden; }
  .video-grid { width: 100%; }
  .sort-bar { width: 100%; box-sizing: border-box; }
}

/* Tablet */
@media (min-width: 768px) {
  .feed-wrapper { max-width: 480px; }

  .grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: var(--content-max);
    margin: 0 auto;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .feed-wrapper { max-width: 520px; }

  .grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .related-card { flex: 0 0 220px; }

  .desktop-only { display: block; }

  .main-with-sidebar .content-primary .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large desktop */
@media (min-width: 1400px) {
  .grid { grid-template-columns: repeat(5, 1fr); }

  .main-with-sidebar .content-primary .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Main content offset for fixed header */
.main-content {
  padding-top: var(--header-height);
}

/* Feed page — immersive mode */
.page-feed .main-content { padding-top: var(--header-height); }

/* Screen reader only - visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* Breadcrumbs */
.breadcrumbs { padding: 8px 0; margin-bottom: 8px; }
.breadcrumb-list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-size: 13px; }
.breadcrumb-item + .breadcrumb-item::before { content: "›"; padding: 0 6px; color: #666; }
.breadcrumb-item a { color: #7ab; text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: #999; }

/* Pagination jump */
.pagination-jump { display: inline-flex; align-items: center; gap: 4px; margin-left: 12px; font-size: 13px; color: #999; }
.pagination-input { width: 50px; padding: 2px 4px; text-align: center; background: #1a1a2e; border: 1px solid #333; color: #fff; border-radius: 4px; font-size: 13px; }

/* Top Characters */
.top-characters-block { margin-bottom: 24px; }
.top-characters-list { display: flex; flex-wrap: wrap; gap: 8px; }
.top-char-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--bg-card); border-radius: 8px; text-decoration: none; color: var(--text-primary); transition: background 0.2s; flex: 1 1 calc(50% - 4px); min-width: 200px; }
.top-char-item:hover { background: var(--bg-card-hover); }
.top-char-rank { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-lg); color: var(--accent); min-width: 28px; }
.top-char-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.top-char-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #000; font-size: var(--fs-md); }
.top-char-name { flex: 1; font-weight: 500; }
.top-char-count { font-size: var(--fs-sm); color: var(--text-muted); }

/* Alphabet navigation - bottom center */
.alphabet-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: var(--sp-lg) var(--sp-md);
  margin-top: var(--sp-lg);
}
.alphabet-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--tr-base), color var(--tr-base), box-shadow var(--tr-base);
}
.alphabet-nav a:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}
.alphabet-nav a.active {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
}

/* Grid card overlay style for categories */
.grid-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-lg) var(--sp-md) var(--sp-md);
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}
.grid-card-overlay .grid-card-title {
  margin-bottom: 2px;
}
.grid-card-overlay .grid-card-count {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.7);
}

/* Category placeholder when no image */
.grid-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 480px) {
  .alphabet-nav a {
    min-width: 30px;
    height: 30px;
    font-size: var(--fs-xs);
  }
}

/* === Auth Pages (login/signup) === */
.auth-page {
  max-width: 480px;
  margin: 40px auto;
  padding: 30px;
  background: var(--bg-card, #1a1e2e);
  border-radius: var(--radius-lg, 12px);
}
.auth-title {
  text-align: center;
  margin-bottom: 24px;
  font-family: var(--font-heading);
  text-transform: uppercase;
}
.auth-page form { max-width: 100%; }
.auth-page input[type="text"],
.auth-page input[type="password"],
.auth-page input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: var(--bg-surface, #0d1117);
  border: 1px solid var(--border, #2d333b);
  border-radius: var(--radius-md, 8px);
  color: var(--text-primary, #fff);
  font-size: var(--fs-base, 14px);
  box-sizing: border-box;
}
.auth-page input[type="text"]:focus,
.auth-page input[type="password"]:focus,
.auth-page input[type="email"]:focus {
  border-color: var(--neon-pink, #ff2d55);
  outline: none;
}
.auth-page input[type="submit"],
.auth-page button[type="submit"] {
  width: 100%;
  padding: 14px;
  background: var(--neon-pink, #ff2d55);
  color: #fff;
  border: none;
  border-radius: var(--radius-md, 8px);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-base, 14px);
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
}
.auth-page input[type="submit"]:hover,
.auth-page button[type="submit"]:hover {
  opacity: 0.9;
}
.auth-page label {
  display: block;
  color: var(--text-muted, #8b949e);
  font-size: var(--fs-xs, 12px);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}
.auth-page a {
  color: var(--neon-pink, #ff2d55);
  text-decoration: none;
}
.auth-page a:hover { text-decoration: underline; }

/* ---------- Category Group Filter Pills ---------- */
.group-filter-bar{max-width:var(--content-max);margin:0 auto;padding:var(--sp-sm) var(--sp-lg) 0;box-sizing:border-box}
.group-pill{display:inline-block;padding:8px 20px;font-family:var(--font-heading);font-size:var(--fs-sm);font-weight:600;color:var(--text-muted);letter-spacing:.04em;border-radius:var(--radius-pill);border:1px solid var(--border-color);white-space:nowrap;transition:all var(--tr-fast);text-decoration:none}
.group-pill:hover{color:var(--text-secondary);background:var(--bg-card);border-color:var(--text-muted)}
.group-pill.active{color:#fff;background:var(--neon-purple);border-color:var(--neon-purple);box-shadow:0 0 14px rgba(168,85,247,.3)}
