:root {
  --bg: #f1a10e;
  --text: #1d1d1b;
  --player: #232323;
  --muted: #c7c7c7;
  --accent: #23a6f0;
  --danger: #ff5252;
  --surface: #1b1b1b;
  --focus: #ffffff;
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body {
  height: 100%;
}
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.site-header {
  display: flex;
  justify-content: center;
  background: var(--bg);
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem;
  width: 100%;
  max-width: 64rem;
}
.logo {
  display: block;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  width: 52%;
  height: auto;
}
.brand .site-title {
  margin: 0;
  font-size: 1.5rem;
}
.brand .site-tagline {
  margin: 0.15rem 0 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.main {
  display: flex;
  justify-content: center;
  padding: 0.75rem;
}
.player-section {
  width: 100%;
  max-width: 48rem;
  background: var(--player);
  border-radius: var(--radius);
  padding: 1rem;
  color: #000000;
}

.player-section { margin-bottom: 2rem; }

/* iframe-player removed; reverting to native audio controls */

.metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
  justify-content: center;
  overflow: hidden;
}
.metadata .stream-title {
  font-weight: 600;
  font-size: 1.015625rem;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #ffffff;
}
.metadata .stream-meta { color: #ffffff; }

.metadata .stream-title.marquee { display: inline-block; white-space: nowrap; animation: marquee 12s linear infinite; }

.player-status {
  display: none;
  margin: 0.75rem 0;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: #2a2a2a;
  color: #fff;
}
.player-status.show {
  display: block;
}


/* Controls */
.player-controls {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
}

.btn {
  appearance: none;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}
.btn:hover { border-color: var(--text); }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #00131e;
}
.btn.link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.progress {
  grid-column: 2 / -2;
  display: flex;
  align-items: center;
}
.time {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  color: #000000;
}
.time-label {
  font-variant-numeric: tabular-nums;
}
.time-sep {
  color: #777;
}

.volume { width: 100%; }
input[type="range"] {
  width: 100%;
  height: 2rem;
  background: transparent;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: #333;
  border-radius: 4px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5px;
  background: #000000;
  border-radius: 50%;
  border: none;
}
input[type="range"]::-moz-range-track {
  height: 6px;
  background: #333;
  border-radius: 4px;
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #000000;
  border-radius: 50%;
  border: none;
}

.social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}
.social-link {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #3a3a3a;
  background: transparent;
}
.social-link:hover {
  color: var(--text);
  border-color: #5a6d7a;
}

.footer {
  display: flex;
  justify-content: center;
  padding: 1.25rem;
  color: var(--text);
  background: var(--bg);
}



.construction {
  display: block;
  padding: 1rem;
  color: var(--text);
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  margin: 2rem auto;
  text-align: center;
  width: 100%;
}

/* Accessibility: focus styles */
:focus-visible {
  outline: 2px dashed var(--focus);
  outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .header-content { padding: 0.375rem; }
  .player-section { padding: 0.75rem; }
  .volume { width: 100%; }
  .metadata .stream-title { font-size: 1.21875rem; display: inline-block; white-space: nowrap; animation: marquee 12s linear infinite; }
  .logo { width: 78%; }
}
@keyframes marquee { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
.player-section .btn {
  color: #000000;
  border-color: #000000;
}
.iframe-player { width: 100%; }
.iframe-player iframe { display: block; width: 100%; height: 110px; border: none; }