@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=IBM+Plex+Mono:wght@500;600&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  /*
    Radio Centro visual skin.
    Contrast checks:
    - white on primary: 9.12:1
    - white on secondary: 5.78:1
    - ink on accent: 9.84:1
    - muted on paper: 6.26:1
  */

  --color-radio-primary: #124b78;
  --color-radio-primary-dark: #08263e;
  --color-radio-secondary: #c9162a;
  --color-radio-secondary-dark: #8f0f1e;
  --color-radio-accent: #f2b705;
  --color-radio-accent-dark: #8a5a00;

  --color-radio-ink: #101820;
  --color-radio-muted: #526273;
  --color-radio-paper: #ffffff;
  --color-radio-surface: #f5f8fb;
  --color-radio-surface-alt: #eef4f9;
  --color-radio-border: #d8e2ea;
  --color-radio-night: #061a2b;
  --color-radio-live: #c9162a;

  --font-radio-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-radio-body: 'Source Sans 3', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-radio-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --focus-ring: 0 0 0 3px rgba(242, 183, 5, 0.42);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-radio-surface);
  color: var(--color-radio-ink);
  font-family: var(--font-radio-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.font-display {
  font-family: var(--font-radio-display);
  letter-spacing: 0;
  text-wrap: balance;
}

a {
  color: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

::selection {
  background: var(--color-radio-accent);
  color: var(--color-radio-ink);
}

.radio-surface {
  background: var(--color-radio-paper);
  border: 1px solid var(--color-radio-border);
}

.radio-live-badge {
  background: var(--color-radio-live);
  color: var(--color-radio-paper);
  font-family: var(--font-radio-mono);
  font-weight: 600;
  letter-spacing: 0;
}

.radio-accent-text {
  color: var(--color-radio-accent-dark);
}

.radio-player-gradient {
  background:
    linear-gradient(135deg, rgba(18, 75, 120, 0.96), rgba(6, 26, 43, 0.98)),
    var(--color-radio-night);
  color: var(--color-radio-paper);
}

.radio-player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 226, 234, 0.95);
  border-radius: var(--radius-radio, 0.5rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 251, 0.96)),
    var(--color-radio-paper);
  box-shadow: 0 30px 90px rgba(6, 26, 43, 0.28);
  padding: 1.25rem;
}

.radio-player-card::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -80px;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(201, 22, 42, 0.18), rgba(201, 22, 42, 0));
  pointer-events: none;
}

.radio-play-button {
  position: relative;
  display: grid;
  width: 6.5rem;
  height: 6.5rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 34%),
    var(--color-radio-secondary);
  box-shadow:
    0 18px 45px rgba(201, 22, 42, 0.28),
    inset 0 -8px 18px rgba(143, 15, 30, 0.32);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.radio-play-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 22px 54px rgba(201, 22, 42, 0.34),
    inset 0 -8px 18px rgba(143, 15, 30, 0.36);
}

.radio-play-button:disabled {
  background: #7898b0;
  box-shadow: none;
}

.radio-play-icon {
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  border-top: 1.05rem solid transparent;
  border-bottom: 1.05rem solid transparent;
  border-left: 1.55rem solid var(--color-radio-paper);
}

.radio-play-button.is-playing .radio-play-icon {
  width: 1.55rem;
  height: 2.05rem;
  margin-left: 0;
  border: 0;
  background:
    linear-gradient(90deg, var(--color-radio-paper) 0 36%, transparent 36% 64%, var(--color-radio-paper) 64% 100%);
}

.radio-signal {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  align-items: end;
  min-height: 4.75rem;
  gap: 0.35rem;
  border-radius: 0.5rem;
  background:
    linear-gradient(180deg, rgba(18, 75, 120, 0.06), rgba(18, 75, 120, 0.02)),
    repeating-linear-gradient(90deg, rgba(18, 75, 120, 0.08) 0 1px, transparent 1px 12px);
  padding: 0.9rem;
}

.radio-signal span {
  display: block;
  height: 38%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--color-radio-accent), var(--color-radio-secondary));
  animation: radio-meter 1.5s ease-in-out infinite;
}

.radio-signal span:nth-child(2) { height: 68%; animation-delay: 90ms; }
.radio-signal span:nth-child(3) { height: 46%; animation-delay: 180ms; }
.radio-signal span:nth-child(4) { height: 86%; animation-delay: 270ms; }
.radio-signal span:nth-child(5) { height: 54%; animation-delay: 360ms; }
.radio-signal span:nth-child(6) { height: 72%; animation-delay: 450ms; }
.radio-signal span:nth-child(7) { height: 42%; animation-delay: 540ms; }
.radio-signal span:nth-child(8) { height: 62%; animation-delay: 630ms; }
.radio-signal span:nth-child(9) { height: 50%; animation-delay: 720ms; }

@keyframes radio-meter {
  0%,
  100% {
    transform: scaleY(0.72);
    opacity: 0.72;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.radio-volume {
  accent-color: var(--color-radio-secondary);
}

.news-card {
  min-height: 13.5rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 75, 120, 0.45);
  box-shadow: 0 24px 60px rgba(6, 26, 43, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
