* { box-sizing: border-box; }
:root {
  --bg: #070505;
  --sidebar: #0a0707;
  --panel: #130d0d;
  --card: #1a1010;
  --accent: #ff1744;
  --accent2: #ff5252;
  --text: #f5f0f0;
  --muted: #a89a9a;
  --border: #2a1414;
}
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  flex-shrink: 0;
}
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; font-weight: 800; font-size: 1.1rem; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.nav-section { margin-bottom: 20px; }
.nav-label { font-size: 0.7rem; text-transform: uppercase; color: var(--muted); letter-spacing: 1px; margin: 0 0 8px 8px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; color: var(--muted);
  font-size: 0.92rem; margin-bottom: 2px;
}
.nav-item:hover, .nav-item.active { background: var(--panel); color: var(--text); }
.nav-item.active { color: var(--accent); }
.main { flex: 1; padding: 28px 36px; max-width: 1200px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.topbar h1 { font-size: 1.6rem; margin: 0; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: var(--panel);
  font-size: 0.8rem; border: 1px solid var(--border);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.status-pill.online .dot { background: #39ff6a; }
.status-pill.offline .dot { background: #ff4757; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-chip img { width: 34px; height: 34px; border-radius: 50%; }
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: white; font-weight: 600; border: none; cursor: pointer;
}
.btn.secondary { background: var(--panel); color: var(--text); border: 1px solid var(--border); }
.section { margin-bottom: 36px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.section-head h2 { font-size: 1.15rem; margin: 0; }
.section-head .muted { color: var(--muted); font-size: 0.85rem; }
.card-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px; }
.card {
  background: var(--card); border-radius: 14px; padding: 14px; width: 160px; flex-shrink: 0;
  border: 1px solid var(--border);
}
.card .art {
  width: 100%; aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent2));
  margin-bottom: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; overflow: hidden;
}
.card .art img { width: 100%; height: 100%; object-fit: cover; }
.card .title { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sub { color: var(--muted); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list { background: var(--panel); border-radius: 14px; border: 1px solid var(--border); overflow: hidden; }
.list-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.list-row:last-child { border-bottom: none; }
.list-row .rank { width: 22px; color: var(--muted); font-size: 0.85rem; text-align: right; }
.list-row .thumb {
  width: 42px; height: 42px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent2));
  overflow: hidden; flex-shrink: 0;
}
.list-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-row .info { flex: 1; min-width: 0; }
.list-row .info .t { font-weight: 500; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .info .a { color: var(--muted); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .plays { color: var(--muted); font-size: 0.8rem; flex-shrink: 0; }
.empty { color: var(--muted); font-size: 0.9rem; padding: 24px; text-align: center; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.stat-card .num { font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.stat-card .lbl { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.hero {
  text-align: center; padding: 60px 20px; background: radial-gradient(circle at top, #2a1010, transparent 70%);
  border-radius: 20px; margin-bottom: 32px;
}
.banner {
  background: linear-gradient(90deg, #3a0d16, #1a0808); border: 1px solid var(--accent);
  color: var(--text); padding: 12px 20px; border-radius: 12px; margin-bottom: 20px; font-size: 0.9rem;
}
.player-bar {
  position: fixed; left: 220px; right: 0; bottom: 0; background: var(--sidebar);
  border-top: 1px solid var(--border); padding: 10px 24px; display: flex; align-items: center;
  gap: 16px; z-index: 50;
}
.player-bar .pb-thumb { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--card); }
.player-bar .pb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.player-bar .pb-info { width: 200px; flex-shrink: 0; }
.player-bar .pb-info .t { font-size: 0.85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar .pb-info .a { font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar .pb-controls { display: flex; align-items: center; gap: 10px; flex: 1; }
.player-bar button { background: none; border: none; color: var(--text); font-size: 1.1rem; cursor: pointer; }
.player-bar button:hover { color: var(--accent); }
.player-bar input[type=range] { accent-color: var(--accent); }
.pb-seek { flex: 1; display: flex; align-items: center; gap: 8px; }
.pb-seek span { font-size: 0.72rem; color: var(--muted); width: 36px; }
.search-box { display: flex; gap: 8px; margin-bottom: 20px; }
.search-box input {
  flex: 1; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); font-size: 0.95rem;
}
.search-result { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; }
.search-result:hover { background: var(--card); }
.hero h1 { font-size: 2.2rem; margin-bottom: 10px; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); margin-bottom: 24px; }

.pb-expand { margin-left: 4px; }

.fullscreen-player {
  position: fixed; inset: 0; z-index: 100; background: radial-gradient(circle at 50% 30%, #1a0a0a, #050303 75%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px;
}
.fs-close { position: absolute; top: 24px; right: 28px; font-size: 1.6rem; cursor: pointer; color: var(--muted); }
.fs-close:hover { color: var(--text); }
.fs-art { width: min(340px, 60vw); aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: 0 20px 60px rgba(255, 23, 68, 0.25); }
.fs-art img { width: 100%; height: 100%; object-fit: cover; }
.fs-title { font-size: 1.4rem; font-weight: 600; text-align: center; max-width: 500px; }
.fs-author { color: var(--muted); font-size: 1rem; }
.fs-adlabel {
  background: var(--accent); color: #1a0505; font-weight: 600; padding: 6px 16px; border-radius: 999px; font-size: 0.85rem;
}
.fs-controls { display: flex; align-items: center; gap: 24px; margin-top: 6px; }
.fs-controls button { background: none; border: none; color: var(--text); font-size: 1.8rem; cursor: pointer; }
.fs-controls button:hover { color: var(--accent); }
.fs-controls button:disabled { opacity: 0.3; cursor: not-allowed; }
.fs-seek { width: min(420px, 80vw); display: flex; align-items: center; gap: 10px; }
.fs-seek span { font-size: 0.78rem; color: var(--muted); width: 38px; }
.fs-premium-cta { color: var(--muted); font-size: 0.85rem; text-align: center; max-width: 400px; }
.fs-premium-cta a { color: var(--accent); }
