/* Blind Reel — extras: light theme, header controls, music dock, background FX, explore */

/* ---------- Light theme ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f1e6;
  --bg-soft: #efe9dc;
  --panel: #fffdf8;
  --panel-2: #f3ede0;
  --text: #1c1a16;
  --text-soft: #3a362e;
  --muted: #5f5b50;
  --muted-2: #6b675b;
  --line: rgba(28, 26, 22, 0.16);
  --line-soft: rgba(28, 26, 22, 0.09);
  --amber: #a86a00;
  --amber-soft: rgba(168, 106, 0, 0.14);
  --coral: #d2481f;
  --mint: #0f8a76;
  --lilac: #6a4fd1;
  --sky: #1d78b8;
  --rose: #c43f7a;
}
:root[data-theme="light"] body {
  background:
    radial-gradient(1200px 800px at 78% -8%, rgba(245, 196, 81, 0.28), transparent 62%),
    radial-gradient(900px 700px at -12% 42%, rgba(127, 231, 212, 0.18), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
:root[data-theme="light"] body::after { display: none; }
:root[data-theme="light"] .grain { opacity: 0.25; mix-blend-mode: multiply; }
:root[data-theme="light"] .site-header::before {
  background: linear-gradient(180deg, rgba(246, 241, 230, 0.97) 0%, rgba(246, 241, 230, 0.82) 62%, transparent 100%);
}
:root[data-theme="light"] .site-header.is-scrolled .header-inner,
:root[data-theme="light"] .filter-shell,
:root[data-theme="light"] .toast,
:root[data-theme="light"] .to-top,
:root[data-theme="light"] .music-btn,
:root[data-theme="light"] .music-panel {
  background: rgba(255, 253, 248, 0.94);
  color: var(--text);
}
:root[data-theme="light"] .card,
:root[data-theme="light"] .card-live,
:root[data-theme="light"] .card-skeleton,
:root[data-theme="light"] .card:hover,
:root[data-theme="light"] .card.is-revealed {
  background: linear-gradient(180deg, #fffdf8, #f6f0e3);
  box-shadow: 0 10px 30px rgba(60, 40, 0, 0.08);
}
:root[data-theme="light"] .cta-card {
  background: linear-gradient(135deg, #fffdf8 0%, #f1e8d2 72%);
}
:root[data-theme="light"] .poster-chip { background: rgba(255, 253, 248, 0.9); color: var(--text); }
:root[data-theme="light"] .btn-primary,
:root[data-theme="light"] .reveal-btn:hover,
:root[data-theme="light"] .card.is-revealed .reveal-btn { color: #fff; }
:root[data-theme="light"] ::selection { color: #fff; }

/* ---------- Header controls ---------- */
.lang-seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-seg button {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
}
.lang-seg button[aria-pressed="true"] { background: var(--amber); color: #0a0b0e; }
:root[data-theme="light"] .lang-seg button[aria-pressed="true"] { color: #fff; }
.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
}
.icon-btn:hover, .lang-seg button:hover { color: var(--amber); border-color: var(--amber); }
.header-actions { gap: 8px; }
@media (max-width: 900px) {
  .header-progress { display: none; }
}
@media (max-width: 560px) {
  .header-actions { gap: 6px; }
  .lang-seg button { min-width: 32px; padding: 0 7px; font-size: 12px; }
  #headerSurprise span { display: none; }
}

/* ---------- Music dock ---------- */
.music-dock {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: calc(100vw - 90px);
}
.music-dock .music-btn { position: static; }
.music-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(12, 14, 19, 0.92);
  backdrop-filter: blur(14px);
}
.mp-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}
.mp-text { font-size: 12px; font-weight: 700; }
.mp-btn:hover { border-color: var(--amber); color: var(--amber); }
.mp-btn[aria-pressed="false"].mp-text { opacity: 0.6; }
#mpVol { width: 96px; accent-color: var(--amber); }

/* ---------- Background FX ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.fx-off .bg-fx, .fx-off .marquee-track, .fx-off .grain { animation-play-state: paused; }
.fx-off .bg-fx { display: none; }

.greeting {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
}

/* ---------- Explore ---------- */
.explore { padding: 72px 0 24px; }
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.ex-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease var(--d, 0ms), transform 0.6s var(--ease) var(--d, 0ms), border-color 0.25s ease, box-shadow 0.25s ease;
}
.ex-card.in { opacity: 1; transform: none; }
.ex-card:hover { border-color: var(--amber); transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18); }
.ex-ico { font-size: 28px; animation: ex-float 4s ease-in-out infinite; }
.ex-card h3 { font-family: var(--serif); font-size: 20px; }
.ex-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
@keyframes ex-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

[data-lang="H"] body, [data-lang="EH"] body { line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
  .ex-ico { animation: none; }
  .ex-card { transition: none; opacity: 1; transform: none; }
}
