/* Tube CMS — "midnight" theme: dark tube-site look, magenta/purple scheme matched to the site logo. */

:root {
  --bg: #0d0a13;            /* page background (purple-tinted near-black) */
  --panel: #171221;         /* cards, header, panels */
  --panel-2: #231a31;       /* inputs, chips, hovers */
  --line: #2f2544;          /* hairline borders */
  --text: #eceef4;
  --muted: #9a90ad;
  --accent: #ee2bd6;        /* hot magenta from the logo */
  --accent-hover: #ff6fe6;
  --accent-soft: #f759de;   /* lighter magenta (search button) */
  --accent-text: #2b0a24;
  --link: #f9a8e8;
  --radius: 6px;
  --radius-lg: 10px;
  --max-w: 1360px;
}
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('/assets/fonts/orbitron-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300 700; /* variable font — covers the range */
  font-display: swap;
  src: url('/assets/fonts/fredoka-latin.woff2') format('woff2');
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 14px; }
.muted { color: var(--muted); font-size: 0.9em; }
.error { color: #ff5c5c; }
h1, h2, h3 { letter-spacing: -0.01em; }

/* Gamer wordmark — LEWD in glowing magenta + LEVEL in icy white, arcade-lean */
.wordmark {
  display: inline-flex; align-items: baseline; gap: 3px;
  font-family: 'Orbitron', system-ui, sans-serif; font-weight: 900;
  font-size: 1.35rem; letter-spacing: 0.02em; text-decoration: none;
  transform: skewX(-5deg); line-height: 1;
  white-space: nowrap;
}
.wordmark span { display: inline-block; }
.wm-lewd {
  color: var(--accent);
  text-shadow: 0 0 14px rgba(238, 43, 214, 0.8), 0 0 34px rgba(238, 43, 214, 0.4);
}
.wm-level {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(167, 139, 250, 0.65), 0 2px 0 rgba(0, 0, 0, 0.6);
}
.wordmark:hover .wm-lewd { text-shadow: 0 0 20px rgba(238, 43, 214, 1), 0 0 44px rgba(238, 43, 214, 0.6); }
.wordmark:hover .wm-level { text-shadow: 0 0 18px rgba(167, 139, 250, 0.9); }

/* ===== Header ===== */
.site-header {
  background: var(--panel); border-bottom: 2px solid var(--accent);
  position: sticky; top: 0; z-index: 20;
}
.header-inner {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; max-width: var(--max-w); margin: 0 auto;
}
.logo {
  font-size: 1.55rem; font-weight: 900; letter-spacing: -0.04em;
  color: var(--accent); text-transform: uppercase; white-space: nowrap;
}
.logo:hover { text-decoration: none; color: var(--accent-hover); }
/* Logo with animated glow + phone-screen glow overlay */
.logo-wrap { position: relative; display: inline-block; line-height: 0; animation: logo-glow 3.2s ease-in-out infinite; }
.logo-header .logo-img { height: 64px; margin: -4px 0; }
.logo-footer .logo-img { height: 120px; }
.logo-img { width: auto; display: block; filter: drop-shadow(0 2px 12px rgba(238, 43, 214, 0.3)); }
.logo-screen {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: screen-glow 2.6s ease-in-out infinite; pointer-events: none;
}
.logo-ear {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; will-change: transform;
}
/* Twitchy ear wiggle — mostly idle, then a quick flick. Ears move in opposite phase. */
.logo-ear-left  { animation: ear-twitch-left 4.2s ease-in-out infinite; }
.logo-ear-right { animation: ear-twitch-right 4.2s ease-in-out infinite; }
@keyframes ear-twitch-left {
  0%, 58%, 100% { transform: rotate(0deg); }
  62% { transform: rotate(-5deg); }
  68% { transform: rotate(2.5deg); }
  74% { transform: rotate(-2deg); }
  80% { transform: rotate(0deg); }
}
@keyframes ear-twitch-right {
  0%, 63%, 100% { transform: rotate(0deg); }
  67% { transform: rotate(5deg); }
  73% { transform: rotate(-2.5deg); }
  79% { transform: rotate(2deg); }
  85% { transform: rotate(0deg); }
}
@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(238, 43, 214, 0.35)) drop-shadow(0 0 22px rgba(238, 43, 214, 0.18)); }
  50%      { filter: drop-shadow(0 0 18px rgba(238, 43, 214, 0.75)) drop-shadow(0 0 42px rgba(238, 43, 214, 0.45)); }
}
@keyframes screen-glow {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-wrap, .logo-screen, .logo-ear { animation: none; }
}
/* Search — fun rounded font + animated glow */
.search-form { display: flex; flex: 1; min-width: 240px; max-width: 640px; }
.search-form input {
  flex: 1; background: var(--panel-2); border: 1px solid var(--line); border-right: 0;
  color: var(--text); padding: 10px 16px; border-radius: var(--radius) 0 0 var(--radius);
  outline: none; font-size: 1.02rem;
  font-family: 'Fredoka', system-ui, sans-serif; font-weight: 500; letter-spacing: 0.01em;
  animation: search-glow 3.2s ease-in-out infinite;
  transition: border-color 0.15s ease;
}
.search-form input::placeholder { color: var(--muted); font-weight: 400; }
.search-form input:focus {
  border-color: var(--accent);
  animation: search-glow 1.6s ease-in-out infinite;
}
.search-form button {
  background: var(--accent-soft); color: var(--accent-text); border: 0; padding: 10px 22px;
  border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-weight: 600;
  font-family: 'Fredoka', system-ui, sans-serif; font-size: 0.98rem;
}
.search-form button:hover { background: var(--accent-hover); }
@keyframes search-glow {
  0%, 100% { box-shadow: 0 0 6px rgba(238, 43, 214, 0.12), inset 0 0 6px rgba(238, 43, 214, 0.05); }
  50%      { box-shadow: 0 0 16px rgba(238, 43, 214, 0.4), inset 0 0 10px rgba(238, 43, 214, 0.12); }
}
.header-nav { display: flex; gap: 14px; align-items: center; margin-left: auto; }
/* Classy animated partner pill */
.partner-pill {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(238, 43, 214, 0.4);
  background: linear-gradient(180deg, rgba(238, 43, 214, 0.13), rgba(238, 43, 214, 0.04));
  color: var(--text); text-decoration: none;
  box-shadow: 0 0 12px rgba(238, 43, 214, 0.15);
  animation: pp-glow 3.2s ease-in-out infinite;
  transition: transform 0.15s ease;
}
.partner-pill:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(238, 43, 214, 0.45);
  border-color: rgba(238, 43, 214, 0.75);
}
@keyframes pp-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(238, 43, 214, 0.12); border-color: rgba(238, 43, 214, 0.32); }
  50%      { box-shadow: 0 0 20px rgba(238, 43, 214, 0.38); border-color: rgba(238, 43, 214, 0.65); }
}
.pp-emoji { display: inline-block; font-size: 1.05rem; animation: pp-sway 4s ease-in-out infinite; }
@keyframes pp-sway {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50%      { transform: rotate(7deg) translateY(-1px) scale(1.1); }
}
.pp-text {
  font-weight: 700; font-size: 0.88rem; letter-spacing: 0.02em;
  background: linear-gradient(90deg, #ffffff 0%, var(--accent) 35%, #ffffff 55%, var(--accent) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: pp-shimmer 5.5s linear infinite;
}
@keyframes pp-shimmer {
  0%   { background-position: 220% 0; }
  100% { background-position: -220% 0; }
}
.pp-arrow { color: var(--muted); font-size: 0.78rem; transition: transform 0.15s ease, color 0.15s ease; }
.partner-pill:hover .pp-arrow { color: var(--accent); transform: translate(1px, -1px); }
/* animated stars twinkling around the pill's border */
.pp-star {
  position: absolute; left: var(--sx, 50%); top: var(--sy, -10px);
  color: #ffe9a8; text-shadow: 0 0 6px rgba(255, 224, 130, 0.9), 0 0 12px rgba(238, 43, 214, 0.5);
  font-size: 11px; pointer-events: none; line-height: 1;
  opacity: 0; animation: pp-twinkle 2.6s ease-in-out infinite; animation-delay: var(--d, 0s);
}
@keyframes pp-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  50%      { opacity: 1; transform: scale(1.15) rotate(20deg); }
}
.nav-link:hover { color: var(--text); text-decoration: none; }
.btn-link { background: none; border: 0; cursor: pointer; font: inherit; padding: 0; }
.inline-form { display: inline; }

/* ===== Hamburger + slide-out drawer ===== */
.hamburger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 38px; height: 38px; padding: 8px; background: transparent;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; flex-shrink: 0;
}
.hamburger span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: background 0.15s; }
.hamburger:hover span { background: var(--accent); }
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65); z-index: 50;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
body.menu-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 290px; max-width: 85vw;
  background: var(--panel); border-right: 1px solid var(--line);
  transform: translateX(-100%); transition: transform 0.25s ease;
  z-index: 60; overflow-y: auto; padding-bottom: 30px;
}
body.menu-open .drawer { transform: none; box-shadow: 8px 0 30px rgba(0, 0, 0, 0.5); }
.drawer-head {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel);
}
.drawer-logo img { height: 52px; display: block; animation: logo-glow 3.2s ease-in-out infinite; }
.drawer-logo { font-weight: 900; color: var(--accent); text-transform: uppercase; letter-spacing: -0.03em; }
.drawer-close {
  position: absolute; right: 10px; top: 14px;
  background: none; border: 1px solid var(--line); color: var(--muted); width: 34px; height: 34px;
  border-radius: var(--radius); cursor: pointer; font-size: 1.3rem; line-height: 1;
}

/* Drip separator — white liquid line with droplets that swell and drop */
.drip-separator { position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; pointer-events: none; }
.drip-separator::before {
  content: ''; position: absolute; top: 0; left: 4%; right: 4%; height: 3px;
  background: linear-gradient(90deg, transparent, #fff 30%, #fff 70%, transparent);
  border-radius: 3px; box-shadow: 0 0 7px rgba(255, 255, 255, 0.55);
}
/* The wet edge: dim liquid line + a bright sheen gliding along it */
.sheen {
  position: absolute; top: -1px; left: 0; width: 90px; height: 5px;
  background: linear-gradient(90deg, transparent, #ffffff 45%, #ffffff 55%, transparent);
  border-radius: 3px; filter: blur(1px);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
  opacity: 0.9;
  animation: sheen-sweep 5.5s ease-in-out infinite alternate;
}
@keyframes sheen-sweep {
  0%   { left: 2%; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: calc(98% - 90px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sheen { animation: none; left: 40%; opacity: 0.7; }
}

.site-header .drip-separator { left: 54px; right: auto; width: 190px; bottom: -4px; }
.drawer-close:hover { color: var(--text); border-color: var(--accent); }
.drawer-section { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.drawer-title {
  margin: 4px 8px 8px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 700;
}
.drawer-link {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text); padding: 9px 12px; border-radius: var(--radius); font-weight: 500;
}
.drawer-link:hover { background: var(--panel-2); color: var(--accent); text-decoration: none; }
/* Main nav links (before the niches section) — centered in the drawer */
.drawer-nav .drawer-link { justify-content: center; text-align: center; font-weight: 600; letter-spacing: 0.02em; }
.drawer-cat { font-size: 0.92rem; color: var(--muted); }
.drawer-cat:hover { color: var(--accent); }
.drawer-count {
  background: var(--panel-2); color: var(--muted); font-size: 0.72rem;
  padding: 1px 8px; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.drawer-cat:hover .drawer-count { background: var(--accent); color: var(--accent-text); }

/* Sort tabs — modern segmented pill bar */
.sort-tabs {
  display: flex; gap: 6px; margin: 10px 0 8px; padding: 5px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px;
  width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.sort-tabs::-webkit-scrollbar { display: none; }
.sort-tabs .chip {
  background: transparent; border: 1px solid transparent; color: var(--muted);
  padding: 7px 16px; font-size: 0.85rem; font-weight: 600; border-radius: 999px;
  white-space: nowrap; transition: all .18s ease;
}
.sort-tabs .chip:hover {
  color: var(--text); border-color: var(--accent); text-decoration: none;
  box-shadow: 0 0 14px rgba(238, 43, 214, .28);
  transform: translateY(-1px);
}
.sort-tabs .chip.active {
  background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
  color: #fff; border-color: transparent;
  animation: tab-pulse 2.8s ease-in-out infinite;
}
.sort-tabs .chip.active:hover { transform: translateY(-1px) scale(1.02); }
@keyframes tab-pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(238, 43, 214, .4); }
  50%      { box-shadow: 0 0 24px rgba(139, 92, 246, .55); }
}

/* Chips (tags, models) */
.tag-strip { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.chip {
  background: var(--panel-2); color: var(--text); padding: 5px 12px;
  border-radius: 999px; font-size: 0.82rem; border: 1px solid var(--line);
}
.chip:hover { background: var(--accent); color: var(--accent-text); text-decoration: none; border-color: var(--accent); }
.chip-model { border-color: var(--accent); color: var(--accent); }
.chip-model:hover { background: var(--accent); color: var(--accent-text); }
.model-strip { display: flex; align-items: center; gap: 8px; margin: 12px 0 2px; flex-wrap: wrap; }

/* Models directory — big cover cards */
.models-search { max-width: 480px; margin: 6px 0 18px; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 10px 0 30px; }
.model-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); display: block; color: var(--text);
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.model-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 8px 30px rgba(238, 43, 214, 0.15); }
.model-card-cover { position: relative; aspect-ratio: 4 / 5; background: var(--panel-2); overflow: hidden; }
.model-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.model-card:hover .model-card-cover img { transform: scale(1.06); }
.model-card-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 10, 14, 0.92) 100%);
}
.model-card-nameplate { position: absolute; left: 10px; right: 10px; bottom: 8px; }
.model-card-name {
  margin: 0 0 4px; font-size: 1.02rem; font-weight: 700; line-height: 1.2; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.model-card:hover .model-card-name { color: var(--accent); }
.model-card-meta { display: flex; gap: 10px; flex-wrap: wrap; color: #d5d8e2; font-size: 0.78rem; }
.model-card-meta span { display: inline-flex; align-items: center; gap: 3px; }

/* Model profile page */
.model-profile {
  display: flex; gap: 24px; margin: 20px 0 8px; padding: 22px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  align-items: flex-start; flex-wrap: wrap;
}
.model-photo {
  width: 260px; height: 260px; object-fit: cover; border-radius: 50%;
  border: 3px solid var(--accent);
  animation: photo-glow 3.2s ease-in-out infinite;
}
@keyframes photo-glow {
  0%, 100% { box-shadow: 0 0 14px rgba(238, 43, 214, 0.3), 0 0 30px rgba(238, 43, 214, 0.15); }
  50%      { box-shadow: 0 0 26px rgba(238, 43, 214, 0.65), 0 0 56px rgba(238, 43, 214, 0.35); }
}
.view-count { color: var(--accent); font-weight: 600; }
.model-info { flex: 1; min-width: 260px; }
.model-info h1 { margin: 4px 0 10px; font-size: 1.6rem; }
.model-stats { display: flex; gap: 22px; color: var(--muted); margin-bottom: 12px; }
.model-stats strong { color: var(--accent); font-size: 1.05rem; margin-right: 4px; }
.model-bio { color: #c9cdda; max-width: 720px; white-space: pre-line; }

/* ===== Page head ===== */
.page-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 18px 0 10px; gap: 12px; flex-wrap: wrap;
  position: relative;
}
/* Floating hearts rising behind the heading text only */
.page-head h1 { position: relative; z-index: 1; }
.floating-hearts { position: absolute; inset: -6px -80px -12px -80px; overflow: visible; pointer-events: none; z-index: -1; }
.heart {
  position: absolute; left: var(--l, 50%); bottom: 0;
  width: 14px; height: 14px; background: var(--accent); opacity: 0;
  transform: rotate(45deg) scale(var(--s, 1));
  animation: heart-float var(--t, 4s) linear infinite;
  animation-delay: var(--d, 0s);
}
.heart::before, .heart::after {
  content: ''; position: absolute; width: 14px; height: 14px;
  border-radius: 50%; background: var(--accent);
}
.heart::before { left: -7px; }
.heart::after { top: -7px; }
@keyframes heart-float {
  0%   { opacity: 0; transform: translate(0, 0) rotate(45deg) scale(var(--s, 1)); }
  12%  { opacity: 0.75; }
  85%  { opacity: 0.25; }
  100% { opacity: 0; transform: translate(var(--dx, 8px), -44px) rotate(45deg) scale(var(--s, 1)); }
}
@media (prefers-reduced-motion: reduce) {
  .heart { animation: none; opacity: 0; }
}
.page-head h1 {
  margin: 0; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.02em;
  border-left: 4px solid var(--accent); padding-left: 10px;
}
.page-head .muted { text-transform: none; letter-spacing: 0; }

/* ===== Video grid ===== */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px; margin: 10px 0 30px;
}
.card { background: transparent; border-radius: var(--radius); overflow: hidden; color: var(--text); display: block; }
.card:hover { text-decoration: none; }
.card:hover .card-title { color: var(--accent); }
.thumb { position: relative; aspect-ratio: 16/9; background: var(--panel-2); border-radius: var(--radius); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.badges { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; }
.duration, .badge-hd {
  background: rgba(0, 0, 0, 0.78); color: #fff; padding: 2px 7px; border-radius: 4px;
  font-size: 0.74rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.badge-hd { background: var(--accent); color: var(--accent-text); }
.card-body { padding: 8px 2px 4px; }
.card-title {
  margin: 0 0 4px; font-size: 0.92rem; font-weight: 600; line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.12s ease;
}
.card-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 0.78rem; }
.empty { text-align: center; padding: 70px 0; color: var(--muted); }

/* ===== Pagination ===== */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 26px 0 40px; flex-wrap: wrap; }
.page {
  background: var(--panel-2); padding: 7px 13px; border-radius: var(--radius);
  color: var(--text); font-weight: 600; font-size: 0.88rem;
}
.page:hover { text-decoration: none; background: var(--accent); color: var(--accent-text); }
.page.current { background: var(--accent); color: var(--accent-text); }
.dots { color: var(--muted); align-self: center; }

/* ===== Watch page ===== */
.watch-page .player {
  margin: 14px 0 0; background: #000; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16/9; max-height: 78vh; box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}
.player iframe, .player video { width: 100%; height: 100%; border: 0; display: block; }
.watch-meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-top: 14px; flex-wrap: wrap;
}
.watch-title { margin: 0 0 4px; font-size: 1.35rem; line-height: 1.3; }
.watch-sub { color: var(--muted); font-size: 0.88rem; }
.watch-sub a { color: var(--accent); }
/* Video layover ad overlay */
.watch-page .player-wrap { position: relative; margin: 16px 0 0; }
.player-ad-overlay {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 6, 10, 0.93);
  transition: opacity 0.45s ease;
}
.player-ad-overlay.hide { opacity: 0; pointer-events: none; }
.pad-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pad-top { display: flex; align-items: center; gap: 10px; width: 300px; }
.ad-tag {
  background: var(--accent); color: var(--accent-text); font-size: 0.65rem;
  font-weight: 800; padding: 2px 7px; border-radius: 4px; letter-spacing: 0.08em;
}
.ad-count {
  margin-left: auto; background: rgba(255, 255, 255, 0.12); color: #fff;
  padding: 2px 9px; border-radius: 999px; font-size: 0.78rem; font-variant-numeric: tabular-nums;
}
.ad-close {
  background: rgba(255, 255, 255, 0.1); border: 1px solid var(--line); color: #fff;
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1;
}
.ad-close:hover { background: var(--accent); color: var(--accent-text); }
.pad-frame { background: var(--panel); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); }
.pad-note { color: var(--muted); font-size: 0.72rem; }

/* Up/down ranking buttons + emoji burst animation */
.action-row { display: flex; gap: 10px; }
.vote-btn {
  position: relative;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
  padding: 9px 20px; border-radius: 999px; cursor: pointer; font-size: 0.92rem;
  font-weight: 600; white-space: nowrap; transition: all 0.12s ease;
}
.vote-btn .vote-face { display: inline-block; transition: transform 0.15s ease; }
.vote-btn:hover { border-color: var(--accent); }
.vote-btn:hover .vote-face { transform: scale(1.25); }
.vote-btn.up:hover { color: var(--accent); }
.vote-btn.down:hover { color: #6ea8ff; }
.vote-btn.voted { opacity: 0.65; }
.vote-emoji {
  position: fixed; z-index: 90; pointer-events: none;
  animation: emoji-float 1.4s ease-out forwards;
}
@keyframes emoji-float {
  0%   { opacity: 0; transform: translateY(10px) scale(0.4) rotate(-10deg); }
  18%  { opacity: 1; transform: translateY(-12px) scale(1.3) rotate(6deg); }
  100% { opacity: 0; transform: translateY(-72px) scale(1) rotate(-8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .vote-emoji { animation: none; opacity: 0; }
}
.watch-desc { color: #b9bdcb; max-width: 860px; margin: 10px 0 0; }
.section-title {
  margin: 34px 0 8px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.03em;
  border-left: 4px solid var(--accent); padding-left: 10px;
}

/* Ad banner slot */
.ad-slot { display: flex; justify-content: center; margin: 18px 0; }
.ad-slot iframe { border-radius: var(--radius); }

/* Preview photo gallery */
.preview-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 12px 0 8px; }
.preview-thumb { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.preview-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.15s ease; }
.preview-thumb:hover { border-color: var(--accent); }
.preview-thumb:hover img { transform: scale(1.05); }

/* In-grid ad tile */
.ad-tile {
  display: flex; align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; min-height: 180px;
}
.ad-tile iframe { width: 100%; max-width: 300px; height: 250px; border: 0; }

/* Blog */
.blog-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.blog-card .card-title { -webkit-line-clamp: 3; }
.blog-excerpt { color: var(--muted); font-size: 0.85rem; margin: 4px 0 0; }
.post-article { max-width: 860px; margin: 20px auto 30px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 30px; }
.post-meta { margin-bottom: 8px; }
.post-body { color: #c9cdda; font-size: 1.02rem; line-height: 1.75; }
.post-body h2 { color: var(--text); margin: 26px 0 10px; border-left: 4px solid var(--accent); padding-left: 10px; font-size: 1.2rem; }
.post-body h3 { color: var(--text); margin: 20px 0 8px; font-size: 1.05rem; }
.post-body a { color: var(--accent); }
.post-body ul { padding-left: 22px; margin: 10px 0; }
.post-body li { margin: 6px 0; }
.post-body strong { color: var(--text); }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 44px;
  background: var(--panel); padding: 22px 0; color: var(--muted); font-size: 0.84rem;
}
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* ===== Admin ===== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; display: flex; flex-direction: column; }
.stat strong { font-size: 1.45rem; color: var(--accent); }
.stat span { color: var(--muted); font-size: 0.8rem; }
.admin-actions { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-text); padding: 9px 18px;
  border-radius: var(--radius); font-weight: 700; border: 0; cursor: pointer; font-size: 0.9rem;
}
.btn:hover { text-decoration: none; background: var(--accent-hover); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.admin-table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: 0.88rem; }
.admin-table th, .admin-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.admin-table th { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.05em; }
.row-actions { display: flex; gap: 10px; align-items: center; }
.link-danger { background: none; border: 0; color: #ff5c5c; cursor: pointer; padding: 0; font: inherit; }
.row-form { display: flex; gap: 8px; margin: 14px 0 20px; flex-wrap: wrap; }
.row-form input { flex: 1; min-width: 160px; }
.row-form input, .admin-form input, .admin-form textarea, .admin-form select {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  padding: 9px 12px; border-radius: var(--radius); font: inherit;
}
.row-form input:focus, .admin-form input:focus, .admin-form textarea:focus { outline: none; border-color: var(--accent); }
.admin-form { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin-bottom: 40px; }
.admin-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--muted); }
.admin-form textarea { resize: vertical; }
.feed-cell { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Mobile: header search hides — search lives in the drawer instead */
.drawer-search { display: flex; margin: 12px 12px 6px; }
.drawer-sep-slot { position: relative; height: 3px; margin: 0; }
.drawer-sep-slot .sheen { top: -1px; }
.drawer-search input { border-radius: var(--radius) 0 0 var(--radius); border: 1px solid var(--line); padding: 8px 12px; font-size: 0.9rem; }
.drawer-search button { border-radius: 0 var(--radius) var(--radius) 0; padding: 8px 14px; font-size: 0.85rem; }
@media (max-width: 760px) {
  .site-header .search-form { display: none; }
  /* header gets cramped on phones — mascot logo lives in the drawer instead */
  .site-header .logo { display: none; }
  .drawer-search input { padding: 7px 10px; font-size: 0.85rem; }
  .drawer-search button { padding: 7px 12px; font-size: 0.8rem; }
}
@media (max-width: 760px) {
  .site-header .search-form { display: none; }
}

/* ===== Login (modern) ===== */
.login-page {
  display: grid; place-items: center; min-height: 100vh; margin: 0;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(238, 43, 214, 0.10), transparent 60%),
    radial-gradient(800px 600px at 85% 90%, rgba(238, 43, 214, 0.08), transparent 60%),
    var(--bg);
  position: relative; overflow: hidden;
}
.login-bg-glow {
  position: fixed; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 43, 214, 0.13), transparent 70%);
  filter: blur(30px); pointer-events: none;
  top: -140px; right: -140px;
}
.login-card {
  position: relative; z-index: 2;
  background: var(--panel); padding: 36px 34px 26px; border-radius: var(--radius-lg);
  width: min(400px, 92vw); border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(238, 43, 214, 0.08);
  text-align: center;
}
.login-logo img { height: 78px; margin: 0 auto 6px; animation: logo-glow 3.2s ease-in-out infinite; }
.login-logo { display: block; margin-bottom: 4px; }
.login-card h1 { margin: 6px 0 6px; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.04em; }
.login-sub { color: var(--muted); font-size: 0.82rem; margin: 0 0 18px; line-height: 1.5; }
.login-error { background: rgba(255, 92, 92, 0.08); border: 1px solid rgba(255, 92, 92, 0.35); padding: 8px 10px; border-radius: var(--radius); font-size: 0.85rem; }
.login-label { display: block; text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 6px; font-weight: 700; }
.login-card input {
  width: 100%; margin-bottom: 16px; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  font-size: 1rem; letter-spacing: 0.2em; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.login-card input:focus { border-color: var(--accent); box-shadow: 0 0 14px rgba(238, 43, 214, 0.25); }
.login-card button {
  width: 100%; padding: 12px; border-radius: var(--radius); border: 0;
  background: var(--accent); color: var(--accent-text); font-weight: 700; cursor: pointer;
  font-size: 0.95rem; transition: background 0.15s, box-shadow 0.15s;
}
.login-card button:hover { background: var(--accent-hover); box-shadow: 0 0 18px rgba(238, 43, 214, 0.4); }
.login-foot {
  margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  color: var(--muted); font-size: 0.72rem;
}
.login-foot a { color: var(--muted); }
.login-foot a:hover { color: var(--accent); }

/* Analytics country bars */
.country-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 24px; }
.country-row { display: grid; grid-template-columns: 30px 90px 1fr 110px; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; }
.country-flag { font-size: 1.25rem; }
.country-name { font-weight: 600; font-size: 0.88rem; }
.country-bar { height: 8px; background: var(--panel-2); border-radius: 999px; overflow: hidden; }
.country-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-hover)); border-radius: 999px; }
.country-count { color: var(--muted); font-size: 0.8rem; text-align: right; font-variant-numeric: tabular-nums; }