:root {
  color-scheme: light;
  --bg: #f5eddf;
  --surface: #fcf6ea;
  --text: #171414;
  --muted: #68615d;
  --red: #d71920;
  --line: #ccbaa780;
  --heritage-band: url("assets/diaguita-band.svg");
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background: url("assets/paper-grain.svg"), radial-gradient(ellipse at 80% 44%, #e5caa330, transparent 56%), var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, a { -webkit-tap-highlight-color: transparent; }
button, a, input { outline-offset: 5px; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--red); }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: wait; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-shell { max-width: 1440px; min-height: 100svh; margin: auto; padding: 0 64px; display: flex; flex-direction: column; }
.site-header { position: relative; height: 98px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; }
.site-header::after, .site-footer::before {
  content: "";
  position: absolute;
  width: 100vw;
  left: calc((100% - 100vw) / 2);
  height: 28px;
  background: var(--heritage-band) repeat-x center / 160px 28px;
  pointer-events: none;
}
.site-header::after { bottom: -28px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--text); font-size: 15px; letter-spacing: 2px; font-weight: 400; }
.brand strong { font-weight: 750; }
.header-label { display: flex; align-items: center; gap: 9px; color: var(--text); font-size: 10px; letter-spacing: 2px; font-weight: 600; }
.signal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.radio-layout { width: 100%; max-width: 1170px; margin: 76px auto 48px; display: grid; grid-template-columns: minmax(0, 1fr) 480px 104px; gap: 28px; align-items: center; }
.intro { min-width: 0; padding-bottom: 25px; }
.eyebrow { display: flex; align-items: center; gap: 12px; letter-spacing: 2.4px; font-size: 10px; font-weight: 600; color: var(--text); margin: 0 0 30px; }
.eyebrow span { height: 2px; width: 32px; background: var(--red); }
.station-heading { font-size: clamp(26px, 2.6vw, 34px); font-weight: 650; letter-spacing: -1px; line-height: 1.2; margin: 0 0 18px; }
.hero-title { font-size: clamp(62px, 6.1vw, 88px); font-weight: 650; letter-spacing: -5px; line-height: 1.04; margin: 0; }
.hero-title em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--red); font-size: 1.14em; line-height: 1.12; letter-spacing: -5px; }
.intro-description { font-size: 17px; line-height: 1.9; color: var(--muted); margin: 30px 0 36px; letter-spacing: .05px; }
.listening-note { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); letter-spacing: .1px; }
.listening-note svg { width: 21px; height: 21px; color: var(--red); }
.player-scene { position: relative; min-width: 0; }
.radio-player { position: relative; background: var(--surface); border: 1px solid #bba084; border-radius: 20px; overflow: hidden; box-shadow: 0 18px 44px #71502d16, 0 2px 5px #71502d0a; }
.artwork {
  height: 330px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url("assets/paper-grain.svg"), radial-gradient(ellipse at 50% 52%, #f0dfc4, #f2e7d4 74%);
}
.artwork::before { content: ""; position: absolute; inset: 53px 0 24px; background: url("assets/diaguita-artwork.svg") repeat center / 184px 128px; opacity: .13; }
.artwork::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 14px; background: var(--heritage-band) repeat-x center / 80px 14px; }
.artwork-topline { position: absolute; z-index: 1; top: 23px; left: 25px; right: 25px; display: flex; align-items: center; justify-content: space-between; color: var(--text); font-size: 8px; font-weight: 600; letter-spacing: 1.7px; }
.station-number { color: var(--muted); letter-spacing: 1px; }
.station-logo { position: relative; width: 272px; height: 272px; object-fit: contain; filter: drop-shadow(0 10px 12px #6b402d21); margin-top: 8px; }
.player-body { padding: 27px 28px 0; }
.station-info { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.now-playing { flex: 1; min-width: 0; }
.now-playing h2, .now-playing .station-tagline { overflow-wrap: anywhere; }
.station-info .live-badge { flex-shrink: 0; align-self: flex-start; margin-top: 20px; }
.player-kicker { font-size: 9px; color: var(--muted); letter-spacing: 1.5px; font-weight: 600; margin: 0 0 9px; }
h2 { font-size: 27px; letter-spacing: -1px; font-weight: 650; margin: 0; }
.live-badge { display: flex; align-items: center; gap: 6px; border: 1px solid var(--text); color: #fffdf8; background: var(--text); border-radius: 5px; padding: 7px 8px; font-size: 9px; letter-spacing: 1px; font-weight: 650; white-space: nowrap; }
.live-badge span { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.station-tagline { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 9px 0 25px; }
.player-controls { display: flex; align-items: center; gap: 14px; margin-bottom: 25px; }
.play-button { width: 60px; height: 60px; border: 0; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--red); color: #fffdf8; box-shadow: 0 4px 18px #d7192020; transition: background .2s, transform .2s, box-shadow .2s; }
.play-button:hover { background: #a50d14; transform: scale(1.045); box-shadow: 0 4px 22px #d7192038; }
.play-button:active { transform: scale(.96); }
.play-button svg { width: 25px; height: 25px; margin-left: 2px; }
.play-button[aria-pressed="true"] svg { margin-left: 0; }
.play-label { display: flex; flex-direction: column; gap: 6px; }
.play-label > span:first-child { font-size: 13px; font-weight: 650; }
.play-label > span:last-child { font-size: 10px; color: var(--muted); white-space: nowrap; }
.volume-control { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.mute-button { border: 0; color: var(--text); background: transparent; padding: 7px; min-height: 36px; display: grid; place-items: center; border-radius: 8px; }
.mute-button:hover { color: var(--red); background: #d719200c; }
.mute-button svg { width: 18px; height: 18px; }
input[type="range"] { appearance: none; -webkit-appearance: none; width: 68px; height: 4px; border: 0; border-radius: 4px; cursor: pointer; background: linear-gradient(to right, var(--red) var(--volume), #d4c5b3 var(--volume)); margin: 0; }
input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--red); }
.player-status { border-top: 1px solid var(--line); min-height: 46px; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; line-height: 1.5; padding: 11px 0; }
.status-dot { width: 5px; height: 5px; background: #a89179; border-radius: 50%; flex-shrink: 0; }
.equalizer { height: 13px; display: flex; align-items: center; gap: 2px; margin-left: auto; }
.equalizer i { width: 2px; height: 3px; background: #a98c70; border-radius: 2px; }
.equalizer i:nth-child(2) { height: 9px; }
.equalizer i:nth-child(3) { height: 6px; }
.is-playing .equalizer i { background: var(--red); animation: equalize .9s ease-in-out infinite alternate; }
.is-playing .equalizer i:nth-child(2) { animation-delay: -.3s; }
.is-playing .equalizer i:nth-child(3) { animation-delay: -.7s; }
.is-playing .equalizer i:nth-child(4) { animation-delay: -.5s; }
.is-playing .status-dot { background: var(--red); }
.loading-spinner { display: none; width: 22px; height: 22px; border: 2px solid #ffffff60; border-top-color: white; border-radius: 50%; animation: spin .8s linear infinite; }
.is-loading .loading-spinner { display: block; }
.is-loading #play-icon { display: none; }
.below-player { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; letter-spacing: .1px; color: var(--muted); margin: 20px 0 0; }
.below-player > span { width: 20px; height: 1px; background: var(--red); }
.social-sidebar { align-self: center; padding-left: 18px; border-left: 1px solid var(--line); }
.social-sidebar h2 { font-size: 11px; line-height: 1.5; letter-spacing: .5px; }
.social-note { margin: 4px 0 18px; font-size: 10px; color: var(--muted); }
.social-list { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.social-placeholder { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; color: var(--muted); font-size: 10px; }
.social-placeholder svg { width: 22px; height: 22px; color: var(--text); }
.atacama-section { width: 100%; max-width: 1170px; margin: 0 auto 68px; padding-top: 22px; border-top: 1px solid var(--line); text-align: left; }
.atacama-section h2 { font-size: 16px; line-height: 1.5; letter-spacing: 0; }
.atacama-section p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.site-footer { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0 27px; flex-shrink: 0; color: var(--muted); font-size: 11px; letter-spacing: .1px; }
.site-footer::before { top: -28px; }
.site-footer p { margin: 0; }
.site-credit { text-align: center; line-height: 1.7; }
.site-credit a { color: var(--text); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.site-credit a:hover { color: var(--red); }
.footer-brand { font-size: 8px; letter-spacing: 1.6px; }
.noscript { position: fixed; bottom: 0; z-index: 2; background: #fcf6ea; color: #29231f; border-top: 1px solid #bba084; padding: 15px; margin: 0; width: 100%; text-align: center; font-size: 14px; }
.noscript a { color: var(--red); }
@keyframes equalize { from { transform: scaleY(.4); } to { transform: scaleY(1.6); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1440px) { .radio-layout { margin-top: 82px; margin-bottom: 52px; } }
@media (max-width: 1100px) {
  .site-shell { padding: 0 40px; }
  .radio-layout { grid-template-columns: minmax(0, 1fr) 380px 90px; gap: 22px; margin-top: 70px; margin-bottom: 44px; }
  .hero-title { font-size: clamp(50px, 5.9vw, 65px); letter-spacing: -3px; }
  .hero-title em { letter-spacing: -4px; }
  .social-sidebar { padding-left: 12px; }
  .artwork { height: 310px; }
  .station-logo { width: 252px; height: 252px; }
  .player-body { padding-left: 23px; padding-right: 23px; }
  .play-label > span:last-child { font-size: 9px; }
  input[type="range"] { width: 58px; }
}
@media (max-width: 850px) {
  .site-shell { padding: 0 28px; }
  .site-header { height: 86px; }
  .site-header::after, .site-footer::before { height: 22px; background-size: 126px 22px; }
  .site-header::after { bottom: -22px; }
  .site-footer::before { top: -22px; }
  .radio-layout { max-width: 480px; grid-template-columns: minmax(0, 1fr); gap: 34px; margin-top: 62px; margin-bottom: 38px; }
  .atacama-section { max-width: 100%; margin-bottom: 54px; }
  .atacama-section h2 { font-size: 15px; }
  .social-sidebar { width: 100%; border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; text-align: center; }
  .social-sidebar h2 { font-size: 12px; }
  .social-note { margin-bottom: 16px; }
  .social-list { flex-direction: row; justify-content: center; gap: clamp(20px, 6vw, 36px); }
  .social-placeholder { align-items: center; }
  .intro { padding: 0; text-align: center; }
  .eyebrow { justify-content: center; font-size: 9px; letter-spacing: 2px; margin-bottom: 22px; }
  .eyebrow span { width: 20px; }
  .station-heading { font-size: 28px; margin-bottom: 14px; }
  .hero-title { font-size: clamp(42px, 8.5vw, 64px); line-height: 1.08; letter-spacing: -2px; }
  .hero-title br:nth-of-type(2) { display: none; }
  .hero-title em { letter-spacing: -2.5px; }
  .intro-description { font-size: 14px; line-height: 1.8; margin: 20px 0 0; }
  .intro-description br { display: none; }
  .listening-note { display: none; }
  .artwork { height: 310px; }
  .station-logo { width: 252px; height: 252px; }
  .site-footer { flex-direction: column; gap: 8px; font-size: 11px; padding: 23px 0; text-align: center; }
  .footer-brand { display: none; }
  .header-label { font-size: 8px; letter-spacing: 1.2px; }
  .brand { font-size: 12px; letter-spacing: 1.5px; }
}
@media (max-width: 400px) {
  .site-shell { padding: 0 20px; }
  .site-header { height: 76px; }
  .radio-layout { margin-top: 54px; gap: 28px; }
  .station-heading { font-size: 26px; }
  .hero-title { font-size: 42px; }
  .eyebrow { margin-bottom: 19px; font-size: 8px; }
  .intro-description { font-size: 13px; max-width: 260px; margin: 18px auto 0; }
  .artwork { height: 275px; }
  .station-logo { width: 222px; height: 222px; }
  .player-body { padding: 23px 20px 0; }
  .player-controls { gap: 10px; }
  .play-button { width: 52px; height: 52px; }
  .play-label > span:first-child { font-size: 12px; }
  .play-label > span:last-child { font-size: 8px; }
  input[type="range"] { width: 43px; }
  .volume-control { gap: 3px; }
  .mute-button { padding: 6px; }
  .station-info h2 { font-size: 22px; letter-spacing: -.8px; }
  .player-kicker { font-size: 8px; letter-spacing: 1px; }
  .live-badge { font-size: 8px; padding: 6px; }
  .station-tagline { font-size: 11px; }
  .artwork-topline { left: 20px; right: 20px; }
  .below-player { font-size: 10px; }
  .player-status { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
