/* ============================================
   BRDY FM — Cosy Jazz Radio
   Dark, warm, late-night design system
   ============================================ */

:root {
  --bg: #0c0a09;
  --bg-elevated: #141110;
  --bg-card: #1a1614;
  --bg-card-hover: #221c19;
  --bg-input: #120f0e;
  --border: rgba(201, 162, 39, 0.12);
  --border-strong: rgba(201, 162, 39, 0.28);
  --text: #f0e6d3;
  --text-muted: #a89880;
  --text-dim: #6b5f50;
  --gold: #c9a227;
  --gold-soft: #d4b45a;
  --gold-dim: rgba(201, 162, 39, 0.15);
  --amber: #e8b86d;
  --cream: #e8dcc4;
  --rose: #c4785a;
  --success: #7a9e6f;
  --danger: #c45a5a;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(201, 162, 39, 0.08);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --header-h: 72px;
  --player-h: 88px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  padding-bottom: calc(var(--player-h) + 24px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---- Ambient glow ---- */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}

.ambient__glow--1 {
  width: 520px;
  height: 520px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.35), transparent 70%);
}

.ambient__glow--2 {
  width: 420px;
  height: 420px;
  bottom: 10%;
  left: -120px;
  background: radial-gradient(circle, rgba(166, 100, 70, 0.25), transparent 70%);
}

.ambient__glow--3 {
  width: 300px;
  height: 300px;
  top: 45%;
  left: 40%;
  background: radial-gradient(circle, rgba(100, 70, 50, 0.2), transparent 70%);
}

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(18px);
  background: rgba(12, 10, 9, 0.78);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo__mark {
  width: 40px;
  height: 40px;
  color: var(--gold);
  display: grid;
  place-items: center;
}

.logo__mark svg {
  width: 36px;
  height: 36px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo__name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.logo__tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.nav {
  display: flex;
  gap: 4px;
}

.nav__link {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav__link:hover {
  color: var(--text);
  background: var(--gold-dim);
}

.nav__link.is-active {
  color: var(--bg);
  background: var(--gold);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header__menu {
  display: none;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s, transform 0.15s;
}

.icon-btn:hover {
  color: var(--gold);
  background: var(--gold-dim);
}

.icon-btn:active {
  transform: scale(0.94);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn.is-active {
  color: var(--rose);
}

.icon-btn.is-active svg {
  fill: var(--rose);
  stroke: var(--rose);
}

/* Mobile nav */
.mobile-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 49;
  display: flex;
  flex-direction: column;
  padding: 12px 16px 16px;
  background: rgba(18, 14, 12, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav__link {
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.mobile-nav__link.is-active,
.mobile-nav__link:hover {
  color: var(--gold);
  background: var(--gold-dim);
}

/* ---- Main ---- */
.main {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.view[hidden] {
  display: none !important;
}

.view.is-active {
  animation: fadeUp 0.45s var(--ease);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- Hero ---- */
.hero {
  padding: 28px 0 40px;
  max-width: 640px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--gold-dim);
  color: var(--gold-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 0 rgba(196, 120, 90, 0.5);
  animation: pulse 1.8s ease infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(196, 120, 90, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(196, 120, 90, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(196, 120, 90, 0);
  }
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 16px;
}

.hero__title em {
  font-style: italic;
  color: var(--gold);
}

.hero__sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 28px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #1a1208;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.25);
}

.btn--primary:hover {
  filter: brightness(1.06);
}

.btn--ghost {
  border: 1px solid var(--border-strong);
  color: var(--cream);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

.text-link {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 500;
}

.text-link:hover {
  color: var(--gold-soft);
  text-decoration: underline;
}

/* ---- Now playing card ---- */
.now-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 22px;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(145deg, var(--bg-card), #1f1915);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), var(--shadow-glow);
  margin-bottom: 48px;
  align-items: center;
}

.now-card__art {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #2a221c, #15110e);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.now-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.now-card__art-placeholder {
  color: var(--gold);
  opacity: 0.55;
}

.now-card__art-placeholder svg {
  width: 48px;
  height: 48px;
}

.eq {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  opacity: 0;
  transition: opacity 0.3s;
}

.eq.is-playing {
  opacity: 1;
}

.eq span {
  width: 3px;
  border-radius: 2px;
  background: var(--gold);
  height: 30%;
  animation: eq 0.8s ease-in-out infinite alternate;
}

.eq span:nth-child(1) { animation-delay: 0s; }
.eq span:nth-child(2) { animation-delay: 0.15s; height: 50%; }
.eq span:nth-child(3) { animation-delay: 0.3s; height: 80%; }
.eq span:nth-child(4) { animation-delay: 0.1s; height: 45%; }
.eq span:nth-child(5) { animation-delay: 0.25s; height: 60%; }

@keyframes eq {
  from { height: 20%; }
  to { height: 100%; }
}

body.is-playing .eq.is-playing span {
  animation-play-state: running;
}

.now-card__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
  font-weight: 600;
}

.now-card__title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
  line-height: 1.2;
}

.now-card__meta {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.now-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-dim);
  color: var(--gold-soft);
  font-size: 0.75rem;
  font-weight: 500;
}

/* ---- Sections ---- */
.section {
  margin-bottom: 48px;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section__title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--cream);
}

.page-head {
  margin-bottom: 28px;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 8px;
}

.page-sub {
  color: var(--text-muted);
  max-width: 520px;
}

/* ---- Station cards ---- */
.station-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.station-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.station-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.station-card.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.3), var(--shadow-glow);
}

.station-card__top {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.station-card__art {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, #2c241e, #16120f);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--gold);
  opacity: 0.9;
}

.station-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.station-card__art svg {
  width: 28px;
  height: 28px;
  opacity: 0.6;
}

.station-card__meta {
  flex: 1;
  min-width: 0;
}

.station-card__name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-card__genre {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.station-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.station-card__play {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--gold-dim);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
}

.station-card__play:hover {
  background: var(--gold);
  color: #1a1208;
}

.station-card.is-active .station-card__play {
  background: var(--gold);
  color: #1a1208;
}

.station-card__fav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.station-card__fav:hover {
  color: var(--rose);
  border-color: rgba(196, 120, 90, 0.4);
}

.station-card__fav.is-active {
  color: var(--rose);
  border-color: rgba(196, 120, 90, 0.5);
  background: rgba(196, 120, 90, 0.12);
}

.station-card__fav.is-active svg {
  fill: currentColor;
}

.station-card__fav svg {
  width: 18px;
  height: 18px;
}

/* ---- Moods ---- */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.mood-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: left;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}

.mood-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--mood) 18%, transparent), transparent 60%);
  pointer-events: none;
}

.mood-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--mood) 50%, transparent);
  background: var(--bg-card-hover);
}

.mood-card__icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.mood-card__name {
  font-weight: 600;
  color: var(--cream);
  position: relative;
}

.mood-card__desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  position: relative;
}

/* ---- Toolbar / search ---- */
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  max-width: 420px;
  transition: border-color 0.2s;
}

.search:focus-within {
  border-color: var(--border-strong);
}

.search svg {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
}

.search input::placeholder {
  color: var(--text-dim);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.chip:hover {
  border-color: var(--border-strong);
  color: var(--cream);
}

.chip.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1208;
}

/* ---- Schedule ---- */
.schedule-day {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gold-dim);
  border: 1px solid var(--border-strong);
  color: var(--gold-soft);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.schedule-item.is-now {
  border-color: var(--gold);
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.1), var(--bg-card));
}

.schedule-item__time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--gold);
  font-size: 0.95rem;
}

.schedule-item__title {
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 2px;
}

.schedule-item__desc {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.schedule-item__badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gold);
  color: #1a1208;
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.about-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.about-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--cream);
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-muted);
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---- Empty / skeleton ---- */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state--card {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empty-state__icon {
  font-size: 2rem;
  color: var(--rose);
  opacity: 0.7;
  margin-bottom: 4px;
}

.empty-state h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--cream);
}

.empty-state .btn {
  margin-top: 10px;
}

.skeleton-row {
  display: contents;
}

.skeleton {
  height: 140px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--bg-card) 25%, #24201c 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- Player bar ---- */
.player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--player-h);
  background: rgba(14, 11, 10, 0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.player__progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(201, 162, 39, 0.1);
  overflow: hidden;
}

.player__progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 0.3s linear;
}

body.is-playing .player__progress-fill {
  animation: progressSweep 2.5s linear infinite;
  width: 40%;
}

@keyframes progressSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.player__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.player__inner--simple {
  grid-template-columns: 1fr auto 1fr;
}

/* ---- Comments ---- */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.comment-form__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comment-form__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.comment-form__input,
.comment-form__textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}

.comment-form__input:focus,
.comment-form__textarea:focus {
  border-color: var(--border-strong);
}

.comment-form__textarea {
  min-height: 110px;
  line-height: 1.5;
}

.comment-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.comment-form__hint {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.comments-list,
.comments-preview__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-card {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.comment-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #1a1208;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  flex-shrink: 0;
}

.comment-card__name {
  font-weight: 600;
  color: var(--cream);
  line-height: 1.2;
}

.comment-card__time {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.comment-card__text {
  color: var(--text-muted);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.comments-preview__empty {
  color: var(--text-muted);
  padding: 8px 0;
}

.comments-preview__empty .text-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.player__track {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player__art {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xs);
  background: linear-gradient(145deg, #2a221c, #15110e);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  color: var(--gold);
}

.player__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player__art svg {
  width: 22px;
  height: 22px;
  opacity: 0.6;
}

.player__info {
  min-width: 0;
}

.player__title {
  font-weight: 600;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
}

.player__sub {
  font-size: 0.8rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player__fav {
  flex-shrink: 0;
}

.player__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #1a1208;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 18px rgba(201, 162, 39, 0.3);
  transition: transform 0.15s, filter 0.2s;
}

.play-btn:hover {
  filter: brightness(1.08);
}

.play-btn:active {
  transform: scale(0.95);
}

.play-btn svg {
  width: 22px;
  height: 22px;
}

.play-btn .icon-play {
  margin-left: 2px;
}

.player__volume {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.player__volume input[type="range"] {
  width: 100px;
  accent-color: var(--gold);
  cursor: pointer;
}

.player__vol-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  width: 36px;
  font-variant-numeric: tabular-nums;
}

.player__status {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  white-space: nowrap;
}

.player__status.is-visible {
  opacity: 1;
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: calc(var(--player-h) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 80;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s var(--ease);
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast[hidden] {
  display: block !important;
  visibility: hidden;
}

.toast.is-visible[hidden] {
  visibility: visible;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .header__menu {
    display: grid;
  }

  .player__inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    padding: 10px 14px 12px;
    height: auto;
    min-height: var(--player-h);
  }

  .player__track {
    grid-column: 1;
    grid-row: 1;
  }

  .player__controls {
    grid-column: 2;
    grid-row: 1;
  }

  .player__volume {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
  }

  .player__volume input[type="range"] {
    width: 140px;
  }

  body {
    --player-h: 118px;
  }

  .now-card {
    grid-template-columns: 100px 1fr;
  }

  .now-card__art {
    width: 100px;
    height: 100px;
  }

  .schedule-item {
    grid-template-columns: 72px 1fr;
  }

  .schedule-item__badge {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .main {
    padding: 20px 16px 40px;
  }

  .hero {
    padding-top: 12px;
  }

  .now-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .now-card__art {
    margin: 0 auto;
  }

  .now-card__tags {
    justify-content: center;
  }

  .player__fav {
    display: none;
  }

  .player__vol-label {
    display: none;
  }

  .logo__tag {
    display: none;
  }
}

/* Focus visible for a11y */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

button:focus:not(:focus-visible) {
  outline: none;
}
