/* ─────────────────────────────────────────────────────────────────────────
   MEIGETSU — 明月
   Design system: black → hydrangea-blue glass (dark)
───────────────────────────────────────────────────────────────────────── */

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

:root {
  --bg: #05060a;
  --surface: rgba(20, 24, 38, 0.55);
  --surface-strong: rgba(22, 26, 42, 0.8);
  --surface-border: rgba(150, 180, 235, 0.16);
  --surface-hover: rgba(255, 255, 255, 0.07);

  --hydrangea: #8fb4ee;
  --hydrangea-deep: #5f86d9;
  --violet-mist: #b7ace0;

  --ink: #f2f5fb;
  --ink-soft: #b7c4de;
  --ink-faint: #7686a3;
  --ink-deep: #131a2c;

  /* only for the Blue Archive easter egg, never used elsewhere */
  --halo-blue: #bcdcff;

  /* the "secondary" gradient: white → hydrangea blue, used on
     headings, active states, and button fills */
  --grad-wb: linear-gradient(135deg, #ffffff 0%, #d3e2fb 32%, #8fb4ee 68%, #5f86d9 100%);

  --glass: var(--surface);
  --glass-strong: var(--surface-strong);
  --glass-border: var(--surface-border);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(95, 134, 217, 0.16), transparent 60%),
    radial-gradient(1000px 700px at 100% 5%, rgba(143, 180, 238, 0.10), transparent 55%),
    radial-gradient(800px 550px at 50% 110%, rgba(183, 172, 224, 0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--hydrangea); color: var(--ink-deep); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(143, 180, 238, 0.3); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(143, 180, 238, 0.5); }

/* Gradient text utility — the "secondary" white → hydrangea treatment
   used on headings and the brand wordmark. */
.text-gradient {
  background: var(--grad-wb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hydrangea petal-cluster watermark: soft glowing orbs against black,
   evoking a hydrangea head without drawing a literal flower. */
.hydrangea-field {
  position: absolute;
  inset: 0;
  height: 900px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.floret {
  position: absolute;
  width: 200px;
  height: 200px;
  opacity: 0.55;
  filter: blur(0.5px);
}
.floret::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent 40%),
    radial-gradient(circle at 70% 25%, rgba(143,180,238,0.55), transparent 42%),
    radial-gradient(circle at 25% 70%, rgba(95,134,217,0.5), transparent 42%),
    radial-gradient(circle at 75% 72%, rgba(183,172,224,0.4), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(143,180,238,0.35), transparent 55%);
  filter: blur(22px);
}

/* Layout shell */
.shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* Glass surfaces */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid rgba(143, 180, 238, 0.14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  flex-shrink: 0;
}

/* The actual "明月" emblem artwork, sized down into the navbar. */
.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.brand-name .jp {
  font-weight: 500;
  color: var(--hydrangea);
  font-size: 13px;
  opacity: 0.85;
  -webkit-text-fill-color: initial;
  background: none;
}

/* Bocchi the Rock easter egg: a hair strand + clip draping over the "M",
   like a stray lock of hair pinned back. A fan-only detail. */
.bocchi-mark {
  position: absolute;
  top: -7px;
  left: -28px;
  width: 46px;
  height: auto;
  transform-origin: bottom left;
  transform: rotate(-9deg);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
  z-index: 1;
}
.brand:hover .bocchi-mark { transform: rotate(-9deg) translateY(-2px) rotate(5deg); }

.nav-links { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: var(--surface-hover); color: var(--ink); }
.nav-link.active { background: var(--grad-wb); color: var(--ink-deep); font-weight: 700; }

/* Big, centered, YouTube-style search bar — takes up the middle of the
   navbar instead of being squeezed off to one side. */
.search-form {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  max-width: 640px;
  margin: 0 20px;
}
.search-input {
  width: 100%;
  padding: 13px 20px 13px 46px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.search-input:focus { border-color: var(--hydrangea); background: rgba(255,255,255,0.08); }
.search-input::placeholder { color: var(--ink-faint); }

/* Blue Archive hint: Shiroko's Terror Halo, used as the search glyph
   and reused as the site's loading indicator. Sensei will know. */
.search-icon {
  position: absolute;
  left: 15px;
  width: 18px;
  height: 18px;
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(143, 180, 238, 0.55));
  opacity: 0.92;
}

/* Search autocomplete dropdown */
.search-suggest {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 420px;
  overflow-y: auto;
  background: var(--surface-strong);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  z-index: 60;
  padding: 6px;
}
.search-suggest.open { display: block; }
.search-suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.search-suggest-item:hover { background: var(--surface-hover); }
.search-suggest-item img {
  width: 40px; height: 56px; object-fit: cover; border-radius: 6px; flex-shrink: 0;
  background: #10141f;
}
.ss-title { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.ss-meta { display: block; font-size: 11px; color: var(--ink-faint); margin-top: 2px; }
.search-suggest-empty { padding: 14px; font-size: 13px; color: var(--ink-faint); text-align: center; }

.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--surface-hover);
  border: 1px solid var(--surface-border);
  color: var(--hydrangea);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 16px;
  flex-direction: column;
  gap: 4px;
}
.mobile-panel.open { display: flex; }

/* Halo loading spinner — same halo motif, spinning */
.halo-spinner-img {
  width: 42px;
  height: 42px;
  animation: halo-spin 1.6s linear infinite;
  filter: drop-shadow(0 0 6px rgba(143, 180, 238, 0.5));
}
.halo-spinner-img.sm { width: 20px; height: 20px; }
@keyframes halo-spin { to { transform: rotate(360deg); } }
.loading-wrap { display: flex; align-items: center; justify-content: center; padding: 80px 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn-primary {
  background: var(--grad-wb);
  color: var(--ink-deep);
  box-shadow: 0 6px 22px rgba(143, 180, 238, 0.28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(143, 180, 238, 0.4); }
.btn-ghost {
  background: var(--surface-hover);
  color: var(--ink);
  border: 1px solid var(--surface-border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* Hero / Spotlight */
.hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  margin-top: 24px;
  border: 1px solid var(--surface-border);
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transform: scale(1);
  transition: transform 7.5s ease-out;
}
.hero-slide.active img { transform: scale(1.08); }
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(3,4,8,0.94) 0%, rgba(5,6,12,0.4) 55%, rgba(8,10,18,0.15) 100%),
    linear-gradient(100deg, rgba(3,4,8,0.6) 0%, transparent 55%);
}
.hero-content {
  position: relative;
  z-index: 3;
  padding: 40px 44px;
  max-width: 620px;
  color: #fff;
  animation: hero-content-in 0.65s ease both;
}
@keyframes hero-content-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 6px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.hero-title-jp { font-size: 15px; font-weight: 400; opacity: 0.75; margin-bottom: 14px; }
.hero-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; opacity: 0.9; margin-bottom: 14px; flex-wrap: wrap; }
.hero-synopsis {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.88;
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-actions { display: flex; gap: 12px; }

.hero-dots { position: absolute; z-index: 4; right: 32px; bottom: 28px; display: flex; gap: 6px; }
.hero-dot { width: 22px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.25); cursor: pointer; transition: background 0.2s, width 0.2s; border: none; }
.hero-dot.active { background: var(--hydrangea); width: 32px; }

/* Pill / badge */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.pill-sub { background: rgba(95, 134, 217, 0.9); color: #fff; }
.pill-dub { background: rgba(183,172,224,0.9); color: #fff; }
.pill-score { background: rgba(255,255,255,0.9); color: var(--ink-deep); }
.pill-outline { border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.08); color: #fff; }

/* Section header */
.section { margin-top: 52px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.section-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title .floret-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--hydrangea) 70%);
  box-shadow: 0 0 0 3px rgba(143, 180, 238, 0.18);
  flex-shrink: 0;
}
.section-link { font-size: 13px; font-weight: 600; color: var(--hydrangea); display: flex; align-items: center; gap: 4px; }
.section-link:hover { text-decoration: underline; }

/* Tabs */
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-hover); border: 1px solid var(--surface-border); flex-wrap: wrap; }
.tab { padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; border: none; background: transparent; }
.tab.active { background: var(--grad-wb); color: var(--ink-deep); }

/* Rails */
.rail { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.rail::-webkit-scrollbar { height: 6px; }

/* Anime cards */
.card {
  position: relative;
  flex: 0 0 168px;
  width: 168px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: 0 4px 18px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: block;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(0,0,0,0.6); border-color: rgba(143,180,238,0.4); }
.card-thumb { position: relative; aspect-ratio: 2/3; overflow: hidden; background: #10141f; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.card:hover .card-thumb img { transform: scale(1.08); }
.card-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: rgba(0,0,0,0.5);
}
.card-progress-fill {
  height: 100%;
  background: var(--grad-wb);
}
.card-badges { position: absolute; top: 7px; left: 7px; display: flex; gap: 4px; }
.card-type {
  position: absolute; top: 7px; right: 7px;
  background: rgba(0,0,0,0.6); color: #fff; font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 999px; backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.12);
}
.card-body { padding: 10px 11px 12px; }
.card-title {
  font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px;
}
.card-sub { font-size: 11px; color: var(--ink-faint); margin-top: 4px; font-family: var(--font-mono); }

.rank-tag {
  position: absolute; top: 0; left: 0; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--ink-deep);
  background: var(--grad-wb);
  border-radius: 0 0 12px 0; z-index: 2;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }

/* Genre chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--surface-hover); border: 1px solid var(--surface-border);
  color: var(--ink-soft); cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { border-color: var(--hydrangea); color: var(--ink); }
.chip.active { background: var(--grad-wb); color: var(--ink-deep); border-color: transparent; }

/* Footer */
.footer {
  margin-top: 80px; padding: 36px 32px 44px; border-top: 1px solid var(--surface-border);
  text-align: center; color: var(--ink-faint); font-size: 12.5px; position: relative; z-index: 1;
}
.footer .brand-name { font-size: 15px; justify-content: center; }
.footer p { margin-top: 8px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* Anime detail page */
.detail-banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 300px; }
.detail-banner img { width: 100%; height: 300px; object-fit: cover; filter: blur(1px) brightness(0.5); }
.detail-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; margin-top: -140px; position: relative; z-index: 2; padding: 0 8px; }
.detail-poster {
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: 0 16px 44px rgba(0,0,0,0.7), 0 0 0 1px rgba(143,180,238,0.3);
  border: 3px solid var(--bg);
}
.detail-poster img { aspect-ratio: 2/3; object-fit: cover; }
.detail-info { padding-top: 150px; }
.detail-title { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--ink); }
.detail-title-jp { color: var(--ink-faint); font-size: 14px; margin-top: 2px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.detail-synopsis { font-size: 14px; line-height: 1.75; color: var(--ink-soft); max-width: 760px; }
.info-table { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13px; margin-top: 16px; }
.info-table dt { color: var(--ink-faint); font-weight: 600; }
.info-table dd { color: var(--ink); }

.ep-browser-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.ep-browser-controls select.plain-input { flex: 0 0 auto; min-width: 130px; }
.ep-browser-controls input.plain-input { flex: 1; }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.ep-btn {
  padding: 9px 6px; border-radius: var(--radius-sm); background: var(--surface-hover);
  border: 1px solid var(--surface-border); text-align: center; font-family: var(--font-mono);
  font-size: 13px; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: all 0.15s; display: block;
}
.ep-btn:hover { border-color: var(--hydrangea); color: var(--ink); background: rgba(255,255,255,0.1); }
.ep-btn.active { background: var(--grad-wb); color: var(--ink-deep); border-color: transparent; }

/* Watch page */
.watch-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.player-wrap { position: relative; border-radius: var(--radius-md); overflow: hidden; background: #000; aspect-ratio: 16/9; box-shadow: var(--glass-shadow); border: 1px solid var(--surface-border); }
.player-wrap video { width: 100%; height: 100%; }
.player-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(3,4,8,0.7); color: var(--ink-soft); font-size: 13px; flex-direction: column; gap: 12px; text-align: center; padding: 20px;
}
.skip-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  cursor: pointer;
  background: rgba(8,10,18,0.78);
  backdrop-filter: blur(8px);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
}
.skip-btn-bar {
  width: 100%;
  min-width: 110px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,0.16);
  overflow: hidden;
  display: block;
}
.skip-btn-bar-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--hydrangea);
  border-radius: 3px;
}

/* ── Custom video controls ── */
.custom-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 18px 14px 10px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.custom-controls.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.seek-track {
  position: relative;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  margin-bottom: 10px;
  touch-action: none;
}
.seek-track:hover { height: 7px; }
.seek-buffered {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%; background: rgba(255,255,255,0.32); border-radius: 3px;
}
.seek-segment {
  position: absolute; top: 0; bottom: 0;
  display: none;
  border-radius: 3px;
}
.seek-segment.intro { background: rgba(143,180,238,0.55); }
.seek-segment.outro { background: rgba(228,104,95,0.55); }
.seek-played {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%; background: var(--hydrangea); border-radius: 3px;
}
.seek-handle {
  position: absolute; top: 50%; left: 0%;
  width: 13px; height: 13px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(143,180,238,0.35);
  transform: translate(-50%, -50%);
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ctrl-btn {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
}
.ctrl-btn:hover { background: rgba(255,255,255,0.14); }
.ctrl-btn svg { width: 20px; height: 20px; }
.time-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #e8edf7;
  margin-left: 4px;
  white-space: nowrap;
}
.ctrl-spacer { flex: 1; }

.server-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.shortcuts-hint {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--ink-faint);
  text-align: center;
}
.shortcuts-hint kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--surface-hover);
  border: 1px solid var(--surface-border);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-soft);
}
.server-btn { padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface-hover); border: 1px solid var(--surface-border); cursor: pointer; color: var(--ink-soft); }
.server-btn.active { background: var(--grad-wb); color: var(--ink-deep); border-color: transparent; }
.ep-sidebar { max-height: 640px; overflow-y: auto; padding: 12px; border-radius: var(--radius-md); }
.ep-list-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; color: var(--ink-soft); }
.ep-list-item:hover { background: var(--surface-hover); }
.ep-list-item.active { background: var(--grad-wb); color: var(--ink-deep); }
.ep-num {
  width: 30px; height: 30px; border-radius: 8px; background: rgba(143,180,238,0.14);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-mono);
  font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.ep-list-item.active .ep-num { background: rgba(19,26,44,0.2); }

/* Forms (filter/search page) */
.filter-panel { padding: 20px; border-radius: var(--radius-md); }
.filter-group { margin-bottom: 18px; }
.filter-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 8px; display: block; }
select.plain-input, input.plain-input {
  width: 100%; padding: 9px 12px; border-radius: var(--radius-sm); border: 1px solid var(--surface-border);
  background: rgba(255,255,255,0.05); color: var(--ink); font-size: 13px; outline: none;
}
select.plain-input:focus, input.plain-input:focus { border-color: var(--hydrangea); background: rgba(255,255,255,0.08); }
select.plain-input option { background: #0b0d14; color: var(--ink); }

/* Collapsible ("minimized") filter panel */
.filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}
.filter-toggle .chev { transition: transform 0.2s ease; color: var(--hydrangea); }
.filter-toggle.open .chev { transform: rotate(180deg); }
.filter-body { display: none; margin-top: 16px; }
.filter-body.open { display: block; }
.filter-summary { font-size: 12px; color: var(--ink-faint); margin-top: 6px; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-faint); }

/* Team grid on the About page */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; }
.team-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding-bottom: 20px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
.team-banner {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: linear-gradient(135deg, rgba(143,180,238,0.16), rgba(183,172,224,0.10));
  overflow: hidden;
  position: relative;
}
.team-banner img, .team-banner video {
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.team-avatar-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  margin: -46px auto 10px;
  z-index: 2;
}
.team-avatar {
  width: 92px; height: 92px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--surface);
  background: #10141f;
}
.team-avatar.flipped { transform: scaleX(-1); }
.team-status-dot {
  position: absolute; bottom: 2px; right: 2px; width: 16px; height: 16px;
  border-radius: 50%; border: 3px solid var(--surface);
  background: #4b5568;
}
.team-status-dot.online { background: #43b581; }
.team-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.team-role { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.team-quote {
  font-size: 12px;
  font-style: italic;
  color: var(--ink-faint);
  margin-top: 8px;
  min-height: 16px;
  padding: 0 6px;
}

.page-head { padding: 36px 0 8px; }
.page-title { font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.page-sub { color: var(--ink-faint); font-size: 14px; margin-top: 4px; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 32px 0; }

.search-page-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; margin-top: 20px; align-items: start; }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .detail-layout { grid-template-columns: 1fr; margin-top: -80px; }
  .detail-info { padding-top: 0; margin-top: 16px; }
  .watch-layout { grid-template-columns: 1fr; }
  .search-page-layout { grid-template-columns: 1fr; }
  .hero-title { font-size: 28px; }
  .search-form { margin: 0 12px; }
}
@media (max-width: 560px) {
  .shell { padding: 0 16px; }
  .navbar { padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
