/* ============================================================
   FischRadio — core.css
   Design tokens, resets and small atoms.
   ============================================================ */

:root {
  color-scheme: dark;
  --f-bg: #171717;
  --f-surface: #121212;
  --f-surface-2: #0f0f0f;
  --f-accent: #e8e3d8;
  --f-heading: #efeee7;
  --f-muted: #9ca3af;
  --f-muted-2: #a6a6a6;
  --f-border: rgba(255, 255, 255, 0.1);
  --f-border-2: rgba(255, 255, 255, 0.2);
  --f-header-h: 241px;
  --f-header-collapsed: 65px;
  --f-player-bar: 48px;
  --f-page-max: 1280px;
  --f-radius-lg: 16px;
  --f-radius-md: 8px;
}

html { scroll-padding-top: 90px; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background: var(--f-bg);
  color: #fff;
  font-family: "Google Sans", "Product Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body * { font-family: inherit; }

button, a, [role="button"], input, select, textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--f-accent);
  outline-offset: 3px;
}
button:disabled { opacity: 0.35; cursor: default; }
button:active:not(:disabled) { transform: translateY(1px); }
h1, h2, h3 { text-wrap: balance; }
[hidden] { display: none !important; }
.no-border { border: 0; background: transparent; padding: 0; }

/* Wordmark --------------------------------------------------- */
.fisch-wordmark {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--f-accent);
  text-transform: uppercase;
}

/* Buttons ---------------------------------------------------- */
.fisch-btn,
.fisch-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--f-radius-md);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.fisch-btn { background: var(--f-accent); color: #171717; }
.fisch-btn:hover { background: #f4f1e9; }
.fisch-btn-secondary { border-color: var(--f-border-2); background: transparent; color: var(--f-accent); }
.fisch-btn-secondary:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.05); }
.fisch-btn iconify-icon, .fisch-btn-secondary iconify-icon { font-size: 16px; }

.fisch-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius-md);
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  font-size: 14px;
  transition: background-color 180ms ease;
}
.fisch-icon-btn:hover { background: rgba(255, 255, 255, 0.1); }

/* Marquee ---------------------------------------------------- */
.marquee { overflow: hidden; white-space: nowrap; position: relative; }
.marquee-inner { display: inline-block; }
.marquee.is-overflowing .marquee-inner {
  animation: fisch-marquee 12s linear infinite;
  animation-delay: 1s;
  padding-left: 100%;
}
@keyframes fisch-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* Volume slider --------------------------------------------- */
.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  outline: none;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.volume-slider::-moz-range-thumb {
  width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; cursor: pointer;
}

/* Hamburger -------------------------------------------------- */
.hamburger-line {
  position: absolute; left: 50%;
  width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease, bottom 0.3s ease;
}
#mobileMenuBtn.open .hamburger-line.top-2 { top: 50%; transform: translate(-50%, -50%) rotate(45deg); }
#mobileMenuBtn.open .hamburger-line.bottom-2 { bottom: 50%; transform: translate(-50%, 50%) rotate(-45deg); }
#mobileMenuBtn.open .hamburger-line.top-1\/2 { opacity: 0; }

/* Mobile menu ------------------------------------------------ */
#mobileMenu.open { transform: translateX(0); }
#mobileMenuBackdrop.open { opacity: 1; pointer-events: auto; }

.mobile-link {
  display: flex; align-items: center; gap: 0.75rem;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  opacity: 0;
  transform: translateX(16px);
}
.mobile-link:hover, .mobile-link:active { background: rgba(255, 255, 255, 0.06); color: #fff; }
#mobileMenu.open .mobile-link {
  animation: fisch-mobile-link-in 0.35s ease forwards;
  animation-delay: calc(80ms + var(--i, 0) * 45ms);
}
@keyframes fisch-mobile-link-in { to { opacity: 1; transform: translateX(0); } }

/* States ----------------------------------------------------- */
#likeDJ.liked #likeIcon { color: #ff4d6d; }
#playPauseBtn.playing { color: var(--f-accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
