/* Debatube preview — premium dark theme, mobile-first */
:root {
  --bg: #050A1C;
  --bg-elev: #0A1228;
  --bg-card: #10182E;
  --bg-chip: #182038;
  --bg-chip-on: #243056;
  --bg-soft: #0B1224;
  --line: rgba(200, 220, 255, 0.10);
  --line-strong: rgba(200, 220, 255, 0.18);
  --text: #F4F0EA;
  --text-muted: #9AA3B8;
  --text-dim: #6E7690;
  --red: #E60012;
  --red-soft: rgba(230, 0, 18, 0.16);
  --blue: #3A6CFF;
  --blue-hover: #4B7AFF;
  --blue-press: #2A5AE8;
  --gold: #E0C075;
  --gold-soft: rgba(224, 192, 117, 0.16);
  --ok: #7DCEA0;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --header-h: 58px;
  --font: Outfit, "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "Barlow Condensed", Outfit, "Noto Sans SC", "Noto Sans TC", sans-serif;
  --shadow-sheet: 0 24px 80px rgba(0, 0, 0, 0.55);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html[lang="ja"] { --font: "Noto Sans JP", Outfit, "Hiragino Sans", sans-serif; }
html[lang="ko"] { --font: "Noto Sans KR", Outfit, "Apple SD Gothic Neo", sans-serif; }
html[lang="zh-Hans"] { --font: "Noto Sans SC", Outfit, "PingFang SC", "Hiragino Sans GB", sans-serif; }
html[lang="zh-Hant"] { --font: "Noto Sans TC", Outfit, "PingFang TC", "Microsoft JhengHei", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-synthesis: none; }
html { height: 100%; }
body {
  min-height: 100%;
  line-height: 1.55;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(40, 80, 200, 0.22), transparent 55%),
    radial-gradient(800px 500px at 100% 0%, rgba(230, 0, 18, 0.08), transparent 45%),
    var(--bg);
}
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -40px; z-index: 80;
  background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { top: calc(var(--safe-top) + 8px); }

.app { max-width: 1180px; margin: 0 auto; padding-bottom: calc(28px + var(--safe-bottom)); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  padding-top: var(--safe-top);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 12px;
  min-height: var(--header-h);
  padding: 8px 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px; flex: 0 0 auto;
}
.brand-mark { width: 40px; height: 28px; border-radius: 7px; flex: 0 0 auto; }
.brand-name {
  font-weight: 600; font-size: 1.15rem; letter-spacing: 0.01em;
  line-height: 1;
  color: #E60012;
}
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.search-form {
  display: none; /* shown from 720px; compact on mobile via expanding later */
  align-items: center; gap: 8px;
  flex: 1 1 auto; max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0 6px 0 14px;
  min-height: 40px;
}
.search-form:focus-within { border-color: var(--line-strong); }
.search-icon { color: var(--text-dim); display: flex; }
.search-form input {
  flex: 1; border: 0; background: transparent; outline: none;
  min-width: 0; padding: 8px 0; color: var(--text);
}
.search-form input::placeholder { color: var(--text-dim); }
.search-clear {
  color: var(--text-muted); font-size: 0.8rem; padding: 6px 10px;
  min-height: 32px; border-radius: var(--radius-pill);
}
.search-clear:hover { color: var(--text); }

.icon-btn, .text-btn {
  min-height: 40px; min-width: 40px;
  border-radius: var(--radius-pill);
  color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover, .text-btn:hover { background: var(--bg-card); }
.text-btn { padding: 0 14px; font-weight: 500; font-size: 0.92rem; }
.lang-wrap { position: relative; }
.lang-btn {
  border: 1px solid var(--line);
  background: var(--bg-card);
  width: 40px;
}
.lang-code { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  margin: 0; padding: 6px;
  list-style: none; min-width: 160px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-sheet);
  z-index: 50;
}
.lang-menu li {
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
  font-size: 0.92rem;
}
.lang-menu li:hover, .lang-menu li:focus { background: var(--bg-chip); }
.lang-menu li[aria-selected="true"] { color: var(--gold); }

/* Banner */
.preview-banner {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 14px 16px 0;
  padding: 12px 14px;
  background: linear-gradient(90deg, var(--red-soft), var(--gold-soft));
  border: 1px solid rgba(212, 180, 131, 0.22);
  border-radius: 14px;
}
.preview-pill {
  flex: 0 0 auto;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212, 180, 131, 0.45);
  padding: 4px 8px; border-radius: var(--radius-pill);
  line-height: 1.2;
}
.preview-banner p { color: var(--text-muted); font-size: 0.88rem; }

/* Primary nav */
.primary-nav {
  display: flex; gap: 6px; padding: 14px 16px 0;
  position: sticky; top: calc(var(--header-h) + var(--safe-top));
  z-index: 30;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 92%, transparent), var(--bg) 80%);
}
.nav-tab {
  flex: 1; text-align: center;
  min-height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-weight: 500;
}
.nav-tab.is-active {
  background: var(--text);
  color: #111;
  border-color: var(--text);
}

.main { padding: 8px 16px 0; }
.page-view { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.view-head {
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px 0 8px;
}
.view-kicker { font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.view-head h1 { font-family: var(--display); font-size: 2.15rem; letter-spacing: 0.02em; font-weight: 600; line-height: 1; }
.mode-toggle {
  display: flex; padding: 4px; gap: 4px;
  background: var(--bg-chip);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
}
.mode-btn {
  flex: 1; min-height: 40px; border-radius: var(--radius-pill);
  color: var(--text); font-weight: 600; font-size: 0.9rem;
  padding: 0 10px;
}
.mode-btn.is-active {
  background: #F4F0EA;
  color: #111;
  box-shadow: none;
}
html[data-theme="light"] .mode-toggle {
  background: #E8E1D4;
  border: 1px solid rgba(22, 20, 16, 0.35);
}
html[data-theme="light"] .mode-btn {
  color: #161410;
  font-weight: 600;
}
html[data-theme="light"] .mode-btn.is-active {
  background: #161410;
  color: #F7F4EE;
  box-shadow: none;
}

/* Globe */
.globe-stage {
  position: relative;
  margin: 4px calc(50% - 50vw) 8px;
  width: 100vw;
  height: min(86vw, 640px);
  min-height: 340px;
  border-radius: 0;
  overflow: hidden;
  background: #000;
  border: 0;
  box-shadow: none;
  touch-action: none;
  overscroll-behavior: none;
}
#globe-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 1;
  touch-action: none;
  overscroll-behavior: none;
}
.globe-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.globe-label {
  position: absolute; left: 0; top: 0;
  transform: translate3d(0, 0, 0) translate(-50%, -120%);
  will-change: transform;
  pointer-events: auto; cursor: pointer;
  white-space: nowrap;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(8, 14, 32, 0.55);
  border: 1px solid rgba(224, 192, 117, 0.28);
  padding: 6px 11px; border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.globe-label.has-videos { border-color: rgba(212, 180, 131, 0.55); color: var(--gold); }
.globe-label.is-active {
  background: var(--text); color: #111; border-color: var(--text);
}
.globe-hint {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-shadow: 0 2px 12px #000;
}

.region-results { padding: 8px 0 24px; }
.year-group { margin: 0 0 22px; }
.year-group h3 {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.year-group h3::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.region-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin: 6px 0 14px;
}
.region-head h2 { font-size: 1.35rem; }
.region-head p { color: var(--text-muted); font-size: 0.9rem; }
.empty-soft { color: var(--text-muted); padding: 28px 8px; text-align: center; }

/* Places (lectures) */
.places-list { display: flex; flex-direction: column; gap: 22px; padding: 8px 0 24px; }
.place-region h2 {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.school-block { margin-bottom: 16px; }
.school-block h3 { font-size: 1.05rem; margin-bottom: 10px; font-weight: 500; }

/* Video cards */
.video-grid, .year-group .video-grid, .school-block .video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.video-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
.video-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.thumb {
  position: relative; aspect-ratio: 16/9; background: #0A0B10; overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .duration {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0,0,0,0.72); color: #fff;
  font-size: 0.72rem; font-weight: 600;
  padding: 2px 6px; border-radius: 6px;
}
.thumb .progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,0.15);
}
.thumb .progress > span { display: block; height: 100%; background: var(--red); }
.card-body { padding: 12px 14px 14px; }
.card-title {
  font-size: 0.98rem; font-weight: 500; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
  margin-top: 6px; color: var(--text-muted); font-size: 0.8rem;
  display: flex; flex-wrap: wrap; gap: 6px 10px;
}
.pill {
  display: inline-flex; align-items: center;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 2px 8px; border-radius: var(--radius-pill);
  background: var(--bg-chip); color: var(--text-muted);
  text-transform: uppercase;
}

/* Continue watching */
.continue-row { padding: 4px 0 8px; }
.continue-row h2 {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 10px;
}
.continue-scroller {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.continue-scroller .video-card {
  min-width: min(260px, 78vw); scroll-snap-align: start;
}

.filter-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 0 14px;
}
.cta-open-filters {
  background: var(--blue); color: #fff; font-weight: 600;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(47, 107, 255, 0.28);
}
.cta-open-filters:hover { background: var(--blue-hover); }
.result-count { color: var(--text-muted); font-size: 0.88rem; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip-active {
  background: var(--bg-chip-on); color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 5px 10px; font-size: 0.8rem;
}

/* Watch */
.watch-view { padding-top: 12px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; color: var(--text-muted); font-weight: 500;
  margin-bottom: 10px;
}
.back-link:hover { color: var(--text); }
.player-shell {
  border-radius: 16px; overflow: hidden;
  background: #000; border: 1px solid var(--line);
}
.player-frame { position: relative; aspect-ratio: 16/9; }
.player-frame iframe, .player-frame #yt-player { position: absolute; inset: 0; width: 100%; height: 100%; }
.watch-meta { padding: 16px 2px 8px; }
.watch-meta h1 { font-size: 1.2rem; line-height: 1.4; font-weight: 500; }
.watch-meta .meta-row { margin-top: 8px; color: var(--text-muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.caption-note {
  margin-top: 8px; color: var(--text-dim); font-size: 0.82rem;
  border-top: 1px solid var(--line); padding-top: 12px;
}

.site-footer { padding: 28px 16px 16px; color: var(--text-dim); font-size: 0.8rem; }
.empty-state { padding: 48px 12px; text-align: center; color: var(--text-muted); }

/* Overlays */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, 0.62);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
.overlay[hidden] { display: none !important; }

/* Filters — in-page panel at the top of the results, not a bottom sheet */
.filters-slot { width: 100%; }
.filters-panel {
  width: 100%;
  margin: 0 0 16px;
  background: #0A0B10;
  border-radius: 16px;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.filters-panel[hidden] { display: none !important; }
.filters-topbar {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 54px; padding: 4px 8px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.filters-topbar h2 { text-align: center; font-size: 1rem; font-weight: 600; }
.topbar-link {
  min-height: 44px; padding: 0 14px;
  color: var(--text-muted); font-weight: 500; font-size: 0.95rem;
}
.topbar-link.is-accent { justify-self: end; color: var(--blue); font-weight: 600; }
.topbar-link:first-child { justify-self: start; }
.filters-body {
  flex: 1 1 auto; overflow-y: auto; padding: 8px 14px 16px;
  max-height: min(70vh, 640px);
  -webkit-overflow-scrolling: touch;
}
.filters-cta {
  flex: 0 0 auto;
  padding: 10px 14px calc(12px + var(--safe-bottom));
  background: var(--blue);
}
.cta-bar {
  width: 100%; min-height: 48px;
  color: #fff; font-weight: 700; font-size: 1.02rem;
  letter-spacing: 0.01em;
}
.filter-group {
  background: #12131A;
  border-radius: 16px;
  padding: 14px 14px 12px;
  margin: 10px 0;
  border: 1px solid var(--line);
}
.filter-group h3 {
  font-size: 0.95rem; font-weight: 600; margin-bottom: 10px;
}
.chip-search {
  width: 100%; min-height: 40px;
  background: #1A1C25; border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0 14px; outline: none; margin-bottom: 10px;
}
.chip-search::placeholder { color: var(--text-dim); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 0 12px;
  border-radius: var(--radius-pill);
  background: #1C1E28;
  border: 1px solid transparent;
  color: var(--text);
  font-size: 0.86rem; font-weight: 500;
}
.chip.is-on {
  background: #2A334C;
  border-color: #4C6FFF;
  color: #E8EEFF;
}
.show-more {
  display: inline-block; margin-top: 10px;
  color: var(--blue); font-size: 0.85rem; font-weight: 500;
  min-height: 32px;
}
.add-row {
  width: 100%; min-height: 44px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 500;
}
.adj-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.adj-tag {
  background: var(--bg-chip-on); border-radius: var(--radius-pill);
  padding: 6px 10px; font-size: 0.85rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.adj-tag button { color: var(--text-muted); min-width: 24px; min-height: 24px; }

/* Steppers */
.stepper-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 6px 0;
}
.stepper-row + .stepper-row { border-top: 1px solid var(--line); }
.stepper-label { font-size: 0.92rem; color: var(--text); }
.stepper {
  display: flex; align-items: center; gap: 8px;
}
.step-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #1A1C25;
  color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; line-height: 1;
}
.step-btn:active { background: #252836; }
.step-val {
  min-width: 2.4rem; text-align: center; font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.year-range {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 8px;
}
.year-box { text-align: center; }
.year-box .lbl { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 6px; }
.year-box .stepper { justify-content: center; }
.year-dash { color: var(--text-dim); padding-top: 18px; }

/* Login */
#login-overlay { align-items: center; padding: 20px; }
.login-sheet {
  width: min(420px, 100%);
  background: #12131A;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 28px 22px 22px;
  position: relative;
  box-shadow: var(--shadow-sheet);
}
.sheet-close {
  position: absolute; top: 10px; right: 10px;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.4rem; color: var(--text-muted);
}
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 8px; }
.login-brand h2 { font-size: 1.35rem; letter-spacing: 0.01em; }
.login-lead, .login-note { color: var(--text-muted); text-align: center; font-size: 0.9rem; }
.login-lead { margin: 8px 0 18px; }
.login-provider {
  width: 100%; min-height: 48px;
  border: 1px solid var(--line-strong);
  background: #1A1C25;
  border-radius: 14px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px; margin-bottom: 10px;
  font-weight: 500; opacity: 0.72; cursor: not-allowed;
}
.provider-icon {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff;
}
.provider-icon.google {
  background: conic-gradient(#EA4335 0 25%, #FBBC05 0 50%, #34A853 0 75%, #4285F4 0 100%);
}
.provider-icon.other { background: linear-gradient(135deg, #888, #444); }
.soon {
  margin-left: auto; font-size: 0.72rem; color: var(--gold);
  letter-spacing: 0.04em;
}
.login-divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-dim); font-size: 0.8rem; margin: 8px 0 12px;
}
.login-divider::before, .login-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.phone-form { display: flex; gap: 8px; margin-bottom: 14px; }
.phone-form input {
  flex: 1; min-height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #1A1C25;
  padding: 0 12px; opacity: 0.72;
}
.phone-submit {
  min-height: 44px; padding: 0 12px; border-radius: 12px;
  background: #2A2D38; color: var(--text-muted); font-weight: 500;
  cursor: not-allowed; opacity: 0.72; white-space: nowrap;
}
.login-note { font-size: 0.8rem; }

@media (min-width: 720px) {
  .header-inner { padding: 8px 24px; }
  .search-form { display: flex; }
  .preview-banner, .primary-nav { padding-left: 24px; padding-right: 24px; }
  .preview-banner { margin-left: 24px; margin-right: 24px; }
  .main { padding-left: 24px; padding-right: 24px; }
  .primary-nav { gap: 10px; }
  .nav-tab { flex: 0 0 auto; padding: 0 28px; }
  .view-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .view-head h1 { font-size: 2.1rem; }
  .mode-toggle { width: min(420px, 100%); }
  .video-grid, .year-group .video-grid, .school-block .video-grid { grid-template-columns: repeat(2, 1fr); }
  .globe-stage { height: 600px; }
  .filters-panel { max-width: none; }
}

@media (min-width: 1020px) {
  .video-grid, .year-group .video-grid, .school-block .video-grid { grid-template-columns: repeat(3, 1fr); }
  .globe-stage { height: 680px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-view, .video-card { animation: none; transition: none; }
}

@media (max-width: 719px) {
  .header-inner { flex-wrap: wrap; }
  .search-form { display: flex; flex: 1 1 100%; order: 5; max-width: none; }
}
#adj-form { display: flex; gap: 8px; margin-top: 10px; }
#adj-form .chip-search { margin: 0; }

/* Author display:flex rules must not override the hidden attribute. */
[hidden] { display: none !important; }


/* ---------- Homepage curtain ---------- */
body.is-home .preview-banner,
body.is-home .primary-nav,
body.is-home .site-footer,
body.is-home .search-form { display: none !important; }
body.is-home .app { max-width: none; padding-bottom: 0; }
body.is-home .main { padding: 0; }
body.is-home .site-header {
  border-bottom: 0;
  position: fixed; width: 100%;
}
body.is-home .atmosphere { opacity: 0; }

.atmosphere {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  width: 100%; height: 100%; opacity: 0.55;
}
.app { position: relative; z-index: 1; }
.overlay { position: fixed; inset: 0; z-index: 60; }

.scroll-cue {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--red); z-index: 70; pointer-events: none;
  box-shadow: 0 0 8px rgba(230,0,18,0.6);
}

.home-view { padding: 0 !important; }
.home-stage {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #070b18;
}
.home-room { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.home-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(230, 0, 18, 0.07), transparent 36%),
    radial-gradient(ellipse at 50% 100%, rgba(8, 12, 28, 0.85), transparent 52%),
    linear-gradient(180deg, #0a1020 0%, #070b16 48%, #05070f 100%);
}
.home-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 32%;
  background: linear-gradient(180deg, transparent, rgba(4, 6, 14, 0.88));
  pointer-events: none;
}
#home-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 2; touch-action: none; cursor: grab;
}
#home-canvas:active { cursor: grabbing; }
.home-wordmark {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  margin: 0;
  color: #E60012;
  font-family: "Great Vibes", "Segoe Script", cursive;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(88px, 20vw, 300px);
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(0,0,0,0.28),
    0 10px 32px rgba(0,0,0,0.5),
    0 0 48px rgba(230,0,18,0.28);
  user-select: none;
  white-space: nowrap;
}
.home-tooltip {
  position: absolute; z-index: 6; pointer-events: none;
  transform: translate(-50%, -140%);
  background: rgba(8,14,32,0.92);
  color: #F4F0EA;
  border: 1px solid rgba(224,192,117,0.45);
  padding: 8px 12px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 500;
  white-space: nowrap; max-width: 80vw;
  overflow: hidden; text-overflow: ellipsis;
  backdrop-filter: blur(10px);
  text-shadow: none;
}
.home-chrome {
  position: absolute; left: 0; right: 0; bottom: calc(18px + var(--safe-bottom));
  z-index: 5; text-align: center; padding: 0 16px;
  pointer-events: none;
}
.home-kicker {
  font-family: var(--display);
  letter-spacing: 0.16em; text-transform: uppercase;
  font-size: 0.78rem; color: var(--gold);
  text-shadow: 0 2px 16px #000;
}
.home-flick { color: #C6C0B4; font-size: 0.8rem; margin-top: 6px; text-shadow: 0 2px 12px #000; }
.home-enter { display: flex; justify-content: center; gap: 10px; margin-top: 14px; pointer-events: auto; flex-wrap: wrap; }
.home-enter-btn {
  pointer-events: auto;
  min-height: 42px; padding: 0 18px;
  display: inline-flex; align-items: center;
  border: 1px solid rgba(224,192,117,0.55);
  border-radius: 999px;
  color: #F4F0EA; font-weight: 500; font-size: 0.9rem;
  background: rgba(8,14,32,0.72);
  backdrop-filter: blur(8px);
}
.home-enter-btn:hover { border-color: #E0C075; color: #E0C075; }
.home-reset {
  pointer-events: auto; margin-top: 10px;
  color: var(--gold); border: 1px solid rgba(224,192,117,0.3);
}
@media (max-width: 719px) {
  .home-wordmark { font-size: clamp(72px, 24vw, 160px); top: 46%; }
}

/* Globe controls + frameless finishing */
#globe-canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.globe-hint {
  position: absolute; left: 16px; right: 16px; bottom: 10px;
  text-align: center; z-index: 3;
}
.globe-stage.is-fallback .fallback-regions {
  position: absolute; inset: auto 16px 64px;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  z-index: 4;
}

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin: 8px 0 16px; font-size: 0.88rem;
}
.breadcrumb button, .breadcrumb span { color: var(--text-muted); }
.breadcrumb button { min-height: 32px; padding: 0 8px; border-radius: 8px; }
.breadcrumb button:hover { color: var(--text); background: var(--bg-card); }
.breadcrumb .is-current { color: var(--gold); font-weight: 600; }

/* Places: flags and crests */
.place-region-head, .region-flag-btn {
  display: flex; align-items: center; gap: 10px;
  background: none; border: 0; color: inherit; padding: 0; margin-bottom: 12px;
  cursor: pointer; text-align: left;
}
.region-flag-btn { width: 100%; min-height: 44px; border-radius: 12px; padding: 6px 4px; }
.region-flag-btn:hover { background: rgba(224,192,117,0.06); }
.flag-row { display: flex; align-items: center; gap: 6px; }
.flag {
  width: 28px; height: 20px; object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
  flex: 0 0 auto;
}
.flag.is-interactive { transition: transform .2s ease, box-shadow .2s ease; }
.region-flag-btn:hover .flag.is-interactive,
.flag.is-interactive:hover { transform: translateY(-1px) scale(1.06); box-shadow: 0 4px 12px rgba(0,0,0,0.35); }
.place-region h2, .region-flag-btn h2 {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin: 0;
}
.school-block h3 {
  display: flex; align-items: center; gap: 10px;
}
.crest {
  width: 28px; height: 28px; object-fit: contain;
  flex: 0 0 auto; background: rgba(255,255,255,0.06);
  border-radius: 6px; padding: 2px;
}
.place-region.is-dim { opacity: 0.38; }
.places-toolbar { margin-bottom: 8px; }

/* Watch summary — visible at first glance */
.watch-summary {
  margin: 0 0 14px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(16,24,48,0.9), rgba(10,16,32,0.7));
  border: 1px solid var(--line);
  border-radius: 16px;
}
.watch-summary dl { margin: 0; display: grid; gap: 10px; }
.watch-summary dt {
  font-family: var(--display);
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 3px;
}
.watch-summary dd { margin: 0; font-size: 0.95rem; line-height: 1.45; }
.watch-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 12px 0 4px;
}
.watch-tab {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid rgba(224,192,117,0.35);
  color: var(--gold); font-weight: 500; font-size: 0.88rem;
}
.watch-tab .flag { width: 20px; height: 14px; }
/* Upload */
.upload-open { font-weight: 600; }
.upload-sheet .upload-form { display: flex; flex-direction: column; gap: 12px; text-align: left; margin: 8px 0 14px; }
.upload-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; color: var(--text-muted); }
.upload-form input, .upload-form select, .upload-form textarea {
  min-height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #1A1C25;
  padding: 8px 12px; color: var(--text); font: inherit;
}
.upload-form textarea { min-height: 84px; resize: vertical; }
.upload-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-file {
  border: 1px dashed var(--line-strong);
  border-radius: 14px; padding: 14px; cursor: pointer;
}
.upload-file em { font-style: normal; color: var(--text); display: block; margin-top: 4px; }
.upload-submit { width: 100%; margin-top: 4px; }
.form-error { color: #ff8b8b; font-size: 0.85rem; }
.upload-sep-note { color: var(--text-muted); margin: 0 0 16px; }
.uploads-list { display: grid; gap: 12px; }
.upload-card {
  background: var(--bg-card); border: 1px dashed rgba(224,192,117,0.35);
  border-radius: 16px; padding: 14px 16px;
}
.upload-card .pill { margin-bottom: 6px; }
.upload-card video { width: 100%; border-radius: 10px; margin-top: 10px; background: #000; }
#upload-see-mine, #thanks-uploads { display: inline-flex; justify-content: center; margin-top: 8px; }
#thanks-uploads { width: 100%; text-align: center; align-items: center; }

body.is-home .header-inner { padding-top: 10px; }

@media (min-width: 720px) {
  body.is-home .search-form { display: none !important; }
  .view-head h1 { font-size: 2.6rem; }
  .watch-summary { padding: 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .flag.is-interactive { transition: none; }
}

/* ---------- Light theme (default on first visit) ---------- */
html[data-theme="light"] {
  --bg: #F7F4EE;
  --bg-elev: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-chip: #EFEAE3;
  --bg-chip-on: #E7DCC8;
  --bg-soft: #F3EFE8;
  --line: rgba(22, 20, 16, 0.10);
  --line-strong: rgba(22, 20, 16, 0.18);
  --text: #161410;
  --text-muted: #5F5A53;
  --text-dim: #8A847A;
  --red: #E60012;
  --red-soft: rgba(230, 0, 18, 0.10);
  --blue: #2F5AE0;
  --blue-hover: #3A66F0;
  --blue-press: #244CC4;
  --gold: #8A6A22;
  --gold-soft: rgba(138, 106, 34, 0.12);
  --shadow-sheet: 0 24px 80px rgba(40, 30, 10, 0.16);
}
html[data-theme="light"] body {
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(230, 0, 18, 0.05), transparent 55%),
    radial-gradient(800px 500px at 100% 0%, rgba(138, 106, 34, 0.08), transparent 45%),
    var(--bg);
}
html[data-theme="light"] .nav-tab.is-active {
  background: #161410;
  color: #F7F4EE;
  border-color: #161410;
}
html[data-theme="light"] .globe-label.is-active {
  background: #161410;
  color: #F7F4EE;
  border-color: #161410;
}
html[data-theme="light"] .filters-panel,
html[data-theme="light"] .filter-group {
  background: #FFFdf8;
  border-color: var(--line);
}
html[data-theme="light"] .filters-panel { background: #F7F4EE; }
html[data-theme="light"] .chip { background: #EFEAE3; color: var(--text); }
html[data-theme="light"] .chip-search,
html[data-theme="light"] .phone-form input,
html[data-theme="light"] .upload-form input,
html[data-theme="light"] .upload-form select,
html[data-theme="light"] .upload-form textarea,
html[data-theme="light"] .login-provider {
  background: #fff;
  color: var(--text);
}
html[data-theme="light"] .login-sheet,
html[data-theme="light"] .upload-sheet {
  background: #FFFdf8;
}
html[data-theme="light"] .step-btn { background: #fff; }
html[data-theme="light"] .globe-hint { color: var(--text-muted); text-shadow: none; }
html[data-theme="light"] .watch-summary {
  background: linear-gradient(180deg, #fff, #F7F4EE);
}

/* Homepage is a fixed cinematic scene. Theme toggle does not recolor it. Brand lettering stays 正红. */
body.is-home .brand-name { color: #E60012; }
body.is-home .site-header,
html[data-theme="light"] body.is-home .site-header,
html[data-theme="dark"] body.is-home .site-header {
  background: linear-gradient(to bottom, rgba(5,10,28,0.72), transparent);
  border-bottom: 0;
}
body.is-home .text-btn,
body.is-home .lang-code,
body.is-home .theme-label,
html[data-theme="light"] body.is-home .text-btn,
html[data-theme="light"] body.is-home .lang-code,
html[data-theme="light"] body.is-home .theme-label {
  color: #F4F0EA;
}
body.is-home .site-header .text-btn:hover,
body.is-home .lang-btn:hover,
html[data-theme="light"] body.is-home .site-header .text-btn:hover,
html[data-theme="light"] body.is-home .lang-btn:hover {
  background: rgba(255,255,255,0.08);
}
body.is-home .lang-btn,
html[data-theme="light"] body.is-home .lang-btn {
  background: rgba(8, 14, 32, 0.45);
  border-color: rgba(255,255,255,0.16);
  color: #F4F0EA;
}
html[data-theme="light"] .home-stage { background: #070b18; }
html[data-theme="light"] .home-glow {
  background:
    radial-gradient(ellipse at 50% 46%, rgba(230, 0, 18, 0.07), transparent 36%),
    radial-gradient(ellipse at 50% 100%, rgba(8, 12, 28, 0.85), transparent 52%),
    linear-gradient(180deg, #0a1020 0%, #070b16 48%, #05070f 100%);
}
html[data-theme="light"] .home-floor {
  background: linear-gradient(180deg, transparent, rgba(4, 6, 14, 0.88));
}
html[data-theme="light"] .home-kicker {
  color: var(--gold);
  text-shadow: 0 2px 16px #000;
}
html[data-theme="light"] .home-flick {
  color: #C6C0B4;
  text-shadow: 0 2px 12px #000;
}
html[data-theme="light"] .home-enter-btn {
  color: #F4F0EA;
  background: rgba(8,14,32,0.72);
  border-color: rgba(224,192,117,0.55);
}
html[data-theme="light"] .home-enter-btn:hover {
  border-color: #E0C075;
  color: #E0C075;
}
html[data-theme="light"] .home-reset {
  color: var(--gold);
  border-color: rgba(224,192,117,0.3);
}
html[data-theme="light"] .home-tooltip {
  background: rgba(8,14,32,0.92);
  color: #F4F0EA;
  border-color: rgba(224,192,117,0.45);
}
html[data-theme="light"] .home-wordmark { color: #E60012; }

/* Globe page follows the site theme: dark = black ground + white particles; light = white ground + black particles. */
body.is-globe-page { background: #000 !important; }
body.is-globe-page .atmosphere { opacity: 0; }
body.is-globe-page .app { background: #000; }
body.is-globe-page .site-header {
  background: linear-gradient(to bottom, rgba(0,0,0,0.92), rgba(0,0,0,0.55));
  border-bottom-color: rgba(255,255,255,0.12);
  color: #F4F0EA;
}
body.is-globe-page .text-btn,
body.is-globe-page .lang-code,
body.is-globe-page .theme-label,
body.is-globe-page .search-form input,
body.is-globe-page .search-clear,
body.is-globe-page .search-icon {
  color: #F4F0EA;
}
body.is-globe-page .brand-name { color: #E60012; }
body.is-globe-page .search-form,
body.is-globe-page .lang-btn {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  color: #F4F0EA;
}
body.is-globe-page .preview-banner {
  background: #000;
  border-color: rgba(255,255,255,0.12);
  color: #C6C0B4;
}
body.is-globe-page .primary-nav {
  background: #000;
  border-color: rgba(255,255,255,0.12);
}
body.is-globe-page .nav-tab { color: #C6C0B4; }
body.is-globe-page .nav-tab.is-active {
  background: #F4F0EA;
  color: #111;
  border-color: #F4F0EA;
}
body.is-globe-page .view-kicker,
body.is-globe-page .view-head h1,
body.is-globe-page .mode-btn { color: #F4F0EA; }
body.is-globe-page .mode-toggle {
  background: #111;
  border-color: rgba(255,255,255,0.16);
}
body.is-globe-page .mode-btn.is-active {
  background: #F4F0EA;
  color: #111;
}
body.is-globe-page .globe-stage { background: #000; }
body.is-globe-page .globe-hint { color: #C6C0B4; text-shadow: none; }
body.is-globe-page .globe-label {
  color: #F4F0EA;
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255,255,255,0.28);
}
body.is-globe-page .globe-label.has-videos {
  color: #F4F0EA;
  border-color: rgba(224, 192, 117, 0.7);
}
body.is-globe-page .site-footer { color: #8A847A; background: #000; }

html[data-theme="light"] body.is-globe-page { background: #fff !important; }
html[data-theme="light"] body.is-globe-page .app,
html[data-theme="light"] body.is-globe-page .preview-banner,
html[data-theme="light"] body.is-globe-page .primary-nav,
html[data-theme="light"] body.is-globe-page .globe-stage,
html[data-theme="light"] body.is-globe-page .site-footer { background: #fff; }
html[data-theme="light"] body.is-globe-page .site-header {
  background: linear-gradient(to bottom, rgba(255,255,255,0.96), rgba(255,255,255,0.7));
  border-bottom-color: rgba(22,20,16,0.12);
  color: #161410;
}
html[data-theme="light"] body.is-globe-page .text-btn,
html[data-theme="light"] body.is-globe-page .lang-code,
html[data-theme="light"] body.is-globe-page .theme-label,
html[data-theme="light"] body.is-globe-page .search-form input,
html[data-theme="light"] body.is-globe-page .search-clear,
html[data-theme="light"] body.is-globe-page .search-icon,
html[data-theme="light"] body.is-globe-page .view-kicker,
html[data-theme="light"] body.is-globe-page .view-head h1,
html[data-theme="light"] body.is-globe-page .mode-btn,
html[data-theme="light"] body.is-globe-page .globe-hint,
html[data-theme="light"] body.is-globe-page .preview-banner,
html[data-theme="light"] body.is-globe-page .nav-tab,
html[data-theme="light"] body.is-globe-page .site-footer {
  color: #161410;
  text-shadow: none;
}
html[data-theme="light"] body.is-globe-page .brand-name { color: #E60012; }
html[data-theme="light"] body.is-globe-page .search-form,
html[data-theme="light"] body.is-globe-page .lang-btn {
  background: rgba(255,255,255,0.86);
  border-color: rgba(22,20,16,0.16);
  color: #161410;
}
html[data-theme="light"] body.is-globe-page .mode-toggle {
  background: #E8E1D4;
  border-color: rgba(22, 20, 16, 0.35);
  color: #161410;
}
html[data-theme="light"] body.is-globe-page .primary-nav,
html[data-theme="light"] body.is-globe-page .preview-banner {
  border-color: rgba(22,20,16,0.12);
}
html[data-theme="light"] body.is-globe-page .nav-tab.is-active,
html[data-theme="light"] body.is-globe-page .mode-btn.is-active {
  background: #161410;
  color: #fff;
  border-color: #161410;
}
html[data-theme="light"] body.is-globe-page .globe-label {
  color: #161410;
  background: rgba(255,255,255,0.86);
  border-color: rgba(22,20,16,0.28);
}
html[data-theme="light"] body.is-globe-page .globe-label.has-videos {
  color: #161410;
  border-color: rgba(138, 106, 34, 0.7);
}

/* Dedicated region view and tournament-series directory */
.region-view { padding: 8px 0 32px; }
.region-view .back-link { margin-bottom: 16px; }
.series-lead, .region-lead {
  color: var(--text-muted);
  margin: 0 0 18px;
  max-width: 40rem;
}
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.series-card {
  display: block;
  padding: 20px 18px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: border-color .2s ease, transform .2s ease;
}
.series-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.series-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}
.series-card p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.tournament-directory .back-link { margin-bottom: 16px; }

.globe-zoom {
  position: absolute;
  right: max(12px, var(--safe-bottom));
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
}
.globe-zoom-btn {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.35);
  color: #F4F0EA;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 500;
}
.globe-zoom-btn:hover { border-color: #fff; }

.watch-summary dd { color: var(--text); }
.watch-summary dd:empty,
.watch-summary .is-unstated { color: var(--text-muted); font-style: italic; }

.theme-btn { font-weight: 500; }
.theme-btn .theme-label { font-size: 0.82rem; }
@media (max-width: 719px) {
  .theme-btn .theme-label { /* keep short on mobile — still readable */ }
}

.year-label {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin: 8px 0 8px;
}

.watch-tab.is-external { text-decoration: none; }
.load-more-wrap { display: flex; justify-content: center; margin: 20px 0 8px; }
.load-more {
  min-height: 44px; padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(224,192,117,0.45);
  background: var(--bg-card);
  color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer;
}
.load-more:hover { border-color: var(--gold); color: var(--gold); }
.thumb-fallback {
  width: 100%; height: 100%;
  background:
    linear-gradient(180deg, rgba(22,20,16,0.08), rgba(22,20,16,0.2)),
    repeating-linear-gradient(-45deg, rgba(224,192,117,0.18) 0 8px, transparent 8px 16px);
}
#player-frame .archive-player,
#player-frame iframe.archive-player,
#player-frame video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000;
}

/* Region directory (lectures) */
.region-directory { display: grid; gap: 12px; padding: 8px 0 24px; }
.region-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 72px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--bg-card); color: inherit;
}
.region-card:hover { border-color: var(--line-strong); }
.region-card h2 { font-size: 1.15rem; margin: 0 0 4px; text-transform: none; letter-spacing: 0; color: inherit; }
.region-card p { margin: 0; color: var(--text-muted); font-size: 0.88rem; }
.region-card .flag-row { margin-right: 10px; }

/* Speakers */
.speakers-lead, .series-lead { color: var(--text-muted); margin: 4px 0 14px; }
.speaker-search { width: 100%; min-height: 44px; margin-bottom: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-card); color: var(--text); padding: 0 12px; font: inherit; }
.speaker-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
.speaker-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 58px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg-card); color: inherit;
}
.speaker-card:hover { border-color: var(--line-strong); }
.speaker-card h2 { font-size: 1.02rem; margin: 0; font-weight: 600; }
.speaker-card p { margin: 0; color: var(--text-muted); font-size: 0.85rem; }

/* Watch social + empty watch */
.watch-empty {
  padding: 28px 16px; text-align: center; color: var(--text-muted);
}
.player-frame.is-empty { aspect-ratio: auto; min-height: 0; background: transparent; }
.player-frame .watch-empty { position: relative; }
.watch-social { margin: 18px 0 28px; padding-top: 14px; border-top: 1px solid var(--line); }
.watch-social h2 { font-size: 1rem; margin: 0 0 10px; }
.rate-row, .social-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.rate-btn, .social-btn {
  min-height: 40px; padding: 0 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: var(--bg-card); color: var(--text); font: inherit; cursor: pointer;
}
.rate-btn.is-on, .social-btn.is-on { background: #161410; color: #F7F4EE; border-color: #161410; }
html[data-theme="dark"] .rate-btn.is-on, html[data-theme="dark"] .social-btn.is-on { background: #F4F0EA; color: #111; }
.comment-form { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 16px; }
.comment-form input, .comment-form textarea {
  border-radius: 12px; border: 1px solid var(--line); background: var(--bg-card); color: var(--text);
  padding: 10px 12px; font: inherit;
}
.comment-form textarea { min-height: 80px; resize: vertical; }
.comment-list { display: flex; flex-direction: column; gap: 10px; }
.comment-item { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card); }
.comment-item .who { font-weight: 600; font-size: 0.88rem; }
.comment-item .when { color: var(--text-muted); font-size: 0.78rem; margin-left: 8px; }
.local-note { color: var(--text-dim); font-size: 0.8rem; margin: 0 0 10px; }
.share-toast { color: var(--gold); font-size: 0.85rem; }

/* Leaderboard */
.leaderboard-list { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 24px; }
.board-row {
  display: grid; grid-template-columns: 2rem 1fr auto; gap: 10px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg-card); color: inherit;
}
.board-row .rank { font-weight: 700; color: var(--gold); }
.board-row .stat { color: var(--text-muted); font-size: 0.88rem; white-space: nowrap; }
.board-toggle { margin: 8px 0 16px; flex-wrap: wrap; width: 100%; max-width: none; }

@media (min-width: 720px) {
  .speaker-grid { grid-template-columns: repeat(2, 1fr); }
  .region-directory { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1020px) {
  .speaker-grid { grid-template-columns: repeat(3, 1fr); }
  .region-directory { grid-template-columns: repeat(3, 1fr); }
}
