/* ============ Haus Radio — dark neon theme ============ */
:root {
  --bg: #04060b;
  --bg2: #0a0f18;
  --card: rgba(13, 20, 32, 0.72);
  --line: rgba(0, 229, 255, 0.14);
  --accent: #00e5ff;
  --accent-soft: rgba(0, 229, 255, 0.12);
  --text: #eaf6fa;
  --muted: #8b98ab;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(0, 229, 255, 0.07), transparent 60%),
    radial-gradient(900px 500px at 90% 110%, rgba(0, 229, 255, 0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background: rgba(4, 6, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 18px rgba(0,229,255,.35); }
.brand-name {
  font-weight: 800;
  letter-spacing: 0.28em;
  font-size: 15px;
  color: var(--text);
}

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 9px 15px;
  border-radius: 999px;
  transition: all .18s ease;
}
.nav-links a:hover { color: var(--text); background: var(--accent-soft); text-decoration: none; }
.nav-links a.active { color: #04121a; background: var(--accent); box-shadow: 0 0 16px rgba(0,229,255,.45); }
.nav-links a.download-link {
  border: 1px solid var(--line);
  color: var(--accent);
  margin-left: 6px;
}
.nav-links a.download-link:hover { background: var(--accent-soft); }

main { flex: 1; width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 64px 0 40px; }
.hero-logo {
  width: 132px; height: 132px; border-radius: 26px; object-fit: cover;
  box-shadow: 0 0 60px rgba(0,229,255,.35), 0 0 140px rgba(0,229,255,.12);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  background: linear-gradient(180deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline { color: var(--muted); margin-top: 12px; font-size: 16px; }

.live-pill {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 22px; padding: 9px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--accent-soft);
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.live-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: #5a6675; }
.live-pill.on .dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- player ---------- */
.player-section { padding: 10px 0 30px; }
.player-card {
  display: flex; gap: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 24px 70px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.player-art-wrap { position: relative; flex-shrink: 0; }
.player-art {
  width: 220px; height: 220px; border-radius: 14px; object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 0 34px rgba(0,229,255,.18);
  background: var(--bg2);
}
.eq {
  position: absolute; left: 12px; bottom: 12px;
  display: flex; align-items: flex-end; gap: 4px; height: 34px;
  opacity: .9;
}
.eq span { width: 5px; border-radius: 3px; background: var(--accent); height: 30%; box-shadow: 0 0 8px rgba(0,229,255,.8); }
.eq.playing span { animation: eq 0.9s ease-in-out infinite; }
.eq.playing span:nth-child(2) { animation-delay: .15s; }
.eq.playing span:nth-child(3) { animation-delay: .3s; }
.eq.playing span:nth-child(4) { animation-delay: .45s; }
.eq.playing span:nth-child(5) { animation-delay: .6s; }
@keyframes eq { 0%,100% { height: 25%; } 50% { height: 100%; } }

.player-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.np-label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.3em;
  color: var(--accent); margin-bottom: 8px;
}
.np-title { font-size: 26px; font-weight: 700; line-height: 1.25; }
.np-artist { color: var(--muted); font-size: 16px; margin-top: 4px; min-height: 22px; }

.progress { margin: 18px 0 6px; }
.progress-bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #00b8d4, var(--accent));
  box-shadow: 0 0 12px rgba(0,229,255,.7);
  transition: width 1s linear;
  border-radius: 4px;
}
.progress-times { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }

.controls { display: flex; align-items: center; gap: 22px; margin-top: 14px; flex-wrap: wrap; }
.play-btn {
  width: 76px; height: 76px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--accent); color: #04121a;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px rgba(0,229,255,.5);
  transition: transform .15s ease, box-shadow .15s ease;
}
.play-btn:hover { transform: scale(1.06); box-shadow: 0 0 44px rgba(0,229,255,.7); }
.play-btn:active { transform: scale(.97); }

.volume { display: flex; align-items: center; gap: 10px; }
.vol-icon { color: var(--muted); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 130px; height: 5px; border-radius: 4px; background: rgba(255,255,255,.14); outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px rgba(0,229,255,.8); cursor: pointer;
}
input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: none; border-radius: 50%; background: var(--accent); cursor: pointer; }

.quality { display: flex; gap: 6px; background: rgba(255,255,255,.05); padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.q-btn {
  border: none; background: transparent; color: var(--muted);
  font-size: 12px; font-weight: 700; padding: 7px 13px; border-radius: 999px; cursor: pointer;
}
.q-btn.active { background: var(--accent); color: #04121a; }

.player-meta { margin-top: 16px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sep { opacity: .5; }
.history-link { font-weight: 600; }

.player-error {
  margin-top: 14px; padding: 12px 16px; border-radius: 10px;
  background: rgba(255, 90, 90, 0.08); border: 1px solid rgba(255,90,90,.3);
  color: #ffb3b3; font-size: 13px; line-height: 1.5;
}

/* ---------- about ---------- */
.about { padding: 34px 6px 60px; max-width: 720px; }
.about h2 { font-size: 24px; letter-spacing: .06em; margin-bottom: 16px; }
.about p { color: var(--muted); line-height: 1.75; font-size: 15.5px; margin-bottom: 14px; }
.about-note { font-size: 14px; }

/* ---------- history page ---------- */
.page-head { text-align: center; padding: 56px 0 30px; }
.page-head h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 800; letter-spacing: .12em; text-indent: .12em; }

.history-wrap { max-width: 760px; margin: 0 auto 70px; }
.history-error {
  padding: 16px 20px; border-radius: 12px; margin-bottom: 18px;
  background: rgba(255,90,90,.07); border: 1px solid rgba(255,90,90,.3);
  color: #ffb3b3; font-size: 14px; line-height: 1.6;
}
.history-now { margin-bottom: 26px; }
.history-row {
  display: flex; align-items: center; gap: 16px;
  padding: 13px 16px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
  margin-bottom: 10px;
  transition: border-color .15s ease, transform .15s ease;
}
.history-row:hover { border-color: rgba(0,229,255,.4); transform: translateX(3px); }
.history-row.featured { border-color: rgba(0,229,255,.45); box-shadow: 0 0 26px rgba(0,229,255,.12); }
.h-art { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--bg2); flex-shrink: 0; }
.history-row.featured .h-art { width: 64px; height: 64px; }
.h-text { flex: 1; min-width: 0; }
.h-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-artist { color: var(--muted); font-size: 13.5px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-time { color: var(--muted); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); margin-right: 6px; animation: pulse 1.6s infinite; }

.history-loading { text-align: center; color: var(--muted); padding: 40px; font-size: 14px; }

/* ---------- footer ---------- */
footer {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  padding: 26px; color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--line);
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .nav { padding: 10px 14px; }
  .brand-name { display: none; }
  .nav-links a { padding: 8px 10px; font-size: 13px; }
  .player-card { flex-direction: column; padding: 22px; gap: 20px; }
  .player-art { width: 100%; height: auto; aspect-ratio: 1; }
  .np-title { font-size: 21px; }
  .hero { padding: 44px 0 28px; }
}
