:root{
  --accent: #ffcc00;
  --accent-dark: #d4a300;
  --text: #0044cc;
  --bg: #fff8dc;
  --max-width: 1100px;
  --cover-max: 400px;
  --cover-mobile: 300px;
}

/* Reset / base */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: #222;
  -webkit-font-smoothing:antialiased;
}

/* HEADER */
.site-header {
  background: var(--accent);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
}
.brand { text-decoration: none; color: inherit; flex: 1 1 auto; text-align: center; display: block; }
.brand h1 { margin: 0; font-size: 1.6em; color: var(--text); font-weight: 700; line-height: 1.05; }

/* Menu toggle */
.menu-toggle {
  background: none;
  border: none;
  font-size: 1.6em;
  cursor: pointer;
  color: #333;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  position: absolute;
  right: 12px;
  top: 10px;
  z-index: 1300;
}

/* Navigation */
.site-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  position: absolute;
  right: 12px;
  top: 60px;
  background: var(--accent);
  flex-direction: column;
  width: 220px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.site-nav a { display: block; padding: 10px 12px; text-decoration: none; color: #333; font-weight: 700; text-align: center; }
.site-nav.active { max-height: 400px; }

/* Desktop nav */
@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .site-nav { position: static; flex-direction: row; width: auto; max-height: none; background: transparent; box-shadow: none; }
  .site-nav a { padding: 0 10px; color: #333; }
  .site-header { justify-content: space-between; padding: 12px 24px; }
  .brand { text-align: left; flex: 0 1 auto; }
}

/* MAIN grid */
.radio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: var(--max-width);
  margin: 16px auto;
}

/* CARD */
.radio-card {
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* COVER responsive square using aspect-ratio */
.radio-card .cover {
  width: 100%;
  max-width: var(--cover-max);
  aspect-ratio: 1 / 1;
  margin: 0 auto 12px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
}

/* Image inside cover */
.radio-card .cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Now playing and audio */
.now-playing { font-size: 0.95em; color: #333; margin-bottom: 8px; }
audio { width: 100%; margin-top: 8px; }

/* Footer */
.site-footer { background: var(--accent); padding: 14px 10px; margin-top: 20px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; text-align: center; color: #222; }

/* Responsive adjustments */
@media (max-width: 1200px) {
  :root { --cover-max: 350px; }
}
@media (max-width: 900px) {
  .radio-grid { grid-template-columns: 1fr; padding: 12px; }
  :root { --cover-max: 320px; }
}
@media (max-width: 700px) {
  :root { --cover-max: var(--cover-mobile); }
  .brand h1 { font-size: 1.2em; }
  .site-nav { right: 8px; width: 200px; top: 56px; }
}

.radio-card,
.radio-card .cover,
.radio-card .cover img {
  background-color: transparent !important;
}
