/* ============================================================
   Radios — dark teal design system
   ============================================================ */

:root {
  --bg0: #07090d;
  --bg1: #0b1017;
  --bg2: #101823;
  --bg3: #16202c;
  --border: #1d2a38;
  --border-2: #26374a;
  --text: #e8eef5;
  --text-2: #93a1b0;
  --text-3: #5d6b7a;
  --accent: #2dd4bf;
  --accent-2: #22d3ee;
  --accent-dim: rgba(45, 212, 191, 0.14);
  --accent-border: rgba(45, 212, 191, 0.38);
  --danger: #f87171;
  --gradient: linear-gradient(135deg, #2dd4bf, #22d3ee);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --topbar-h: 60px;
  --player-h: 74px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg0);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 420px at 85% -10%, rgba(45, 212, 191, 0.07), transparent 60%),
    radial-gradient(700px 380px at -10% 0%, rgba(34, 211, 238, 0.05), transparent 55%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(45, 212, 191, 0.3); }

/* ---------------------------------------- equalizer / brand */

.eq {
  display: inline-flex;
  gap: 2.5px;
  align-items: flex-end;
  height: 18px;
}
.eq > span {
  width: 3px;
  border-radius: 2px;
  background: var(--gradient);
  transform-origin: bottom;
  animation: eq-bounce 1.05s ease-in-out infinite;
}
.eq > span:nth-child(1) { height: 45%; animation-delay: -0.9s; }
.eq > span:nth-child(2) { height: 90%; animation-delay: -0.45s; }
.eq > span:nth-child(3) { height: 65%; animation-delay: -0.7s; }
.eq > span:nth-child(4) { height: 100%; animation-delay: -0.2s; }
.eq > span:nth-child(5) { height: 55%; animation-delay: -0.6s; }
@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}
.eq.paused > span { animation-play-state: paused; transform: scaleY(0.35); }

/* ---------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--topbar-h);
  padding: 0 22px;
  background: rgba(7, 9, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-eq { height: 22px; }
.brand-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--text); background: var(--bg3); }
.nav a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.topbar-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 260px;
  padding: 7px 13px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.15s, width 0.2s;
}
.topbar-search:focus-within { border-color: var(--accent-border); width: 320px; }
.topbar-search .icon { width: 16px; height: 16px; color: var(--text-3); flex-shrink: 0; }
.topbar-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}
.topbar-search input::placeholder { color: var(--text-3); }

/* ---------------------------------------- layout */

.view {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 22px calc(var(--player-h) + 46px);
  min-height: 60vh;
  outline: none;
}

.section { margin-bottom: 38px; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.section-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-head .icon { width: 19px; height: 19px; color: var(--accent); }
.section-head .more {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-3);
}
.section-head .more:hover { color: var(--accent); }

.footer {
  position: fixed;
  bottom: var(--player-h);
  left: 0;
  right: 0;
  z-index: 40;
  padding: 10px 22px;
  background: rgba(7, 9, 13, 0.9);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-2);
  flex-wrap: wrap;
}
.footer .mini-eq { height: 12px; gap: 2px; }
.footer .mini-eq > span { width: 2px; }
.footer-dim { color: var(--text-3); }
.footer-dim a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 46px 40px;
  margin-bottom: 40px;
  background:
    radial-gradient(600px 260px at 90% -30%, rgba(45, 212, 191, 0.16), transparent 65%),
    radial-gradient(500px 240px at 5% 130%, rgba(34, 211, 238, 0.1), transparent 60%),
    var(--bg1);
}
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4.4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.22;
}
.hero h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { margin: 0 0 22px; color: var(--text-2); font-size: 16px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }

.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.stat b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 12.5px; color: var(--text-3); }

/* ---------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--bg2);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
  user-select: none;
}
.btn:hover { border-color: var(--accent-border); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 17px; height: 17px; }
.btn-primary {
  background: var(--gradient);
  border: none;
  color: #04211d;
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(45, 212, 191, 0.35); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.icon-btn:hover { color: var(--text); background: var(--bg3); }
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn.on { color: var(--accent); }

.play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--gradient);
  color: #04211d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(45, 212, 191, 0.3);
  transition: transform 0.12s, box-shadow 0.15s;
  flex-shrink: 0;
}
.play-btn:hover { transform: scale(1.06); }
.play-btn:active { transform: scale(0.98); }
.play-btn .icon { width: 21px; height: 21px; }
.play-btn.sm { width: 38px; height: 38px; box-shadow: none; }
.play-btn.sm .icon { width: 17px; height: 17px; }

/* ---------------------------------------- chips */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--accent-border); transform: translateY(-1px); }
.chip b { color: var(--text-3); font-weight: 500; margin-left: 4px; font-size: 12px; }
.chip.on { background: var(--accent-dim); border-color: var(--accent-border); color: var(--accent); }

.tag {
  display: inline-block;
  max-width: 100%;
  padding: 2px 9px;
  border-radius: 6px;
  background: var(--bg3);
  color: var(--text-3);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}
.tag:hover { color: var(--text-2); }

/* ---------------------------------------- grids & station cards */

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.grid.podcasts { grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); }

.station-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.station-card:hover {
  border-color: var(--accent-border);
  background: var(--bg3);
  transform: translateY(-2px);
}
.station-card.playing { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-border); }

.art {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art .fallback {
  font-weight: 800;
  font-size: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.art.lg { width: 64px; height: 64px; border-radius: 12px; }
.art.square { border-radius: 14px; }

.station-card .body { min-width: 0; flex: 1; }
.station-card .name {
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.station-card .meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
}
.station-card .meta .sep::before { content: "·"; margin: 0 2px; color: var(--border-2); }
.station-card .meta .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  flex-shrink: 0;
}
.badge {
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--bg3);
  font-size: 11px;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.badge.hls { color: var(--accent-2); border-color: rgba(34, 211, 238, 0.3); }

.station-card .actions {
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s;
}
.station-card:hover .actions { opacity: 1; }
.station-card .actions .icon-btn { width: 32px; height: 32px; }
.station-card .actions .icon-btn .icon { width: 17px; height: 17px; }
.station-card .actions .icon-btn.on { opacity: 1; }
.station-card .actions .icon-btn.faved { opacity: 1; color: var(--accent); }

/* podcast card */
.podcast-card {
  display: block;
  border-radius: 14px;
  padding: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.podcast-card:hover { border-color: var(--accent-border); transform: translateY(-3px); background: var(--bg3); }
.podcast-card .art { width: 100%; aspect-ratio: 1; height: auto; border-radius: 10px; margin-bottom: 10px; }
.podcast-card .name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
}
.podcast-card .author {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* country tiles */
.country-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.country-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.country-tile:hover { border-color: var(--accent-border); background: var(--bg3); }
.country-tile .flag { font-size: 21px; line-height: 1; }
.country-tile .cname { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.country-tile .ccount { font-size: 11.5px; color: var(--text-3); }

/* ---------------------------------------- filter bar */

.filterbar {
  position: sticky;
  top: var(--topbar-h);
  z-index: 50;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 18px;
  background: rgba(11, 16, 23, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.filterbar .search {
  flex: 1 1 200px;
  min-width: 170px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.filterbar .search:focus-within { border-color: var(--accent-border); }
.filterbar .search .icon { width: 15px; height: 15px; color: var(--text-3); }
.filterbar .search input {
  width: 100%;
  border: none;
  outline: none;
  background: none;
  color: var(--text);
  font-size: 14px;
}

select.input {
  appearance: none;
  padding: 8px 32px 8px 13px;
  background: var(--bg2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a1b0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 13.5px;
  cursor: pointer;
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
select.input:focus { outline: none; border-color: var(--accent-border); }
select.input option { background: var(--bg1); }

.result-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--text-3);
  font-size: 13.5px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}
.pagination .page-info { font-size: 13.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ---------------------------------------- tabs */

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 20px;
}
.tabs button {
  border: none;
  background: transparent;
  color: var(--text-2);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.tabs button:hover { color: var(--text); }
.tabs button.on { background: var(--bg3); color: var(--accent); }

/* ---------------------------------------- podcast header & episodes */

.detail-hero {
  display: flex;
  gap: 22px;
  padding: 24px;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.detail-hero .art { width: 148px; height: 148px; border-radius: 16px; }
.detail-hero .info { flex: 1; min-width: 240px; }
.detail-hero h1 { margin: 4px 0 6px; font-size: 25px; line-height: 1.25; }
.detail-hero .sub { color: var(--text-2); font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.detail-hero .desc {
  margin: 12px 0 16px;
  color: var(--text-2);
  font-size: 13.8px;
  max-width: 720px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.episode-list { display: flex; flex-direction: column; gap: 8px; }
.episode {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.episode:hover { border-color: var(--accent-border); background: var(--bg3); }
.episode.playing { border-color: var(--accent); }
.episode .e-main { flex: 1; min-width: 0; }
.episode .e-title {
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.episode .e-sub {
  font-size: 12.5px;
  color: var(--text-3);
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
}
.episode .e-dur {
  flex: none;
  font-size: 12.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------- history rows */

.history-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.history-row .time { font-size: 12px; color: var(--text-3); width: 64px; flex-shrink: 0; }
.history-row .title { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-row .sub { font-size: 12px; color: var(--text-3); }

/* ---------------------------------------- player bar */

.player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 70;
  height: var(--player-h);
  background: rgba(7, 9, 13, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
.player-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  cursor: pointer;
}
.player-progress-fill {
  height: 100%;
  width: 0;
  background: var(--gradient);
  border-radius: 0 2px 2px 0;
  transition: width 0.25s linear;
}
.player-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}
.player-info { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1.2; }
.player-artwork {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.player-artwork img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.player-artwork .eq { position: absolute; }
.player-meta { min-width: 0; }
.player-title {
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-sub {
  font-size: 12.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-sub .err { color: var(--danger); }

.player-center { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.player-right { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; min-width: 0; }
.vol { display: flex; align-items: center; gap: 8px; }

input[type="range"]#player-vol {
  width: 90px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ---------------------------------------- modal */

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 6, 9, 0.7);
  backdrop-filter: blur(6px);
}
.modal-root[hidden] { display: none; } /* hidden attr must win over display:flex */
.modal {
  width: min(560px, 100%);
  max-height: min(82vh, 720px);
  overflow-y: auto;
  background: var(--bg1);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow);
  animation: modal-in 0.18s ease-out;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.modal .modal-close {
  position: sticky;
  float: right;
  top: 0;
  margin: -8px -8px 0 0;
}
.modal h2 { margin: 0 0 4px; font-size: 21px; line-height: 1.3; }
.modal .modal-sub { color: var(--text-2); font-size: 13.5px; margin-bottom: 18px; }
.kv { display: grid; grid-template-columns: 84px 1fr; gap: 7px 14px; font-size: 13.5px; margin: 16px 0; }
.kv dt { color: var(--text-3); margin: 0; }
.kv dd { margin: 0; color: var(--text); word-break: break-word; }

/* ---------------------------------------- toast */

.toast-root {
  position: fixed;
  bottom: calc(var(--player-h) + 18px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  padding: 10px 20px;
  background: var(--bg3);
  border: 1px solid var(--border-2);
  color: var(--text);
  border-radius: 999px;
  font-size: 13.5px;
  box-shadow: var(--shadow);
  animation: toast-in 0.2s ease-out;
}
.toast.err { border-color: rgba(248, 113, 113, 0.4); color: var(--danger); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------------------------------------- skeletons & empty */

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(147, 161, 176, 0.07), transparent);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
.skeleton.s-card { height: 77px; }
.skeleton.s-art { aspect-ratio: 1; border-radius: 14px; }
.skeleton.s-row { height: 66px; }

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
}
.empty .icon { width: 44px; height: 44px; margin-bottom: 12px; color: var(--border-2); }
.empty h3 { margin: 0 0 6px; color: var(--text-2); font-size: 16px; }
.empty p { margin: 0 0 18px; font-size: 13.5px; }

.loading-hint {
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  padding: 14px 0;
}

/* ---------------------------------------- responsive */

@media (max-width: 860px) {
  .topbar { gap: 10px; padding: 0 14px; }
  .topbar-search { display: none; }
  .nav { gap: 0; }
  .view { padding: 18px 14px calc(var(--player-h) + 46px); }
  .hero { padding: 30px 22px; }
  .hero-stats { gap: 18px; }
  .player-right .vol { display: none; }
  .player-inner { padding: 0 12px; gap: 8px; }
  .detail-hero .art { width: 110px; height: 110px; }
  .grid { grid-template-columns: 1fr; }
  .footer { display: none; }
}

@media (max-width: 480px) {
  .brand-name { display: none; }
  .grid.podcasts { grid-template-columns: repeat(3, 1fr); }
  .podcast-card { padding: 8px; }
  .station-card .actions { display: none; }
}
