@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:ital,opsz,wght@1,9..144,500&display=swap');

:root {
  --ink: #242321;
  --muted: #77736d;
  --orange: #e95d2a;
  --paper: #f4f1ec;
  --line: rgba(49, 46, 42, 0.13);
  --body-background: radial-gradient(circle at 58% 35%, rgba(255,255,255,.9), transparent 34%), linear-gradient(135deg, #ece9e3 0%, #f7f5f1 48%, #e8e4dd 100%);
  --surface: rgba(255,255,255,.66);
  --surface-hover: rgba(255,255,255,.45);
  --surface-solid: #fff;
  --key-background: #f3f0ea;
  --button-background: rgba(255,255,255,.3);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #f1eee8;
  --muted: #aaa59d;
  --paper: #171716;
  --line: rgba(255, 255, 255, 0.12);
  --body-background: radial-gradient(circle at 58% 35%, rgba(66,62,57,.5), transparent 34%), linear-gradient(135deg, #171716 0%, #242220 48%, #121211 100%);
  --surface: rgba(42,40,37,.75);
  --surface-hover: rgba(255,255,255,.07);
  --surface-solid: #302e2b;
  --key-background: #262421;
  --button-background: rgba(255,255,255,.05);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--body-background);
  font-family: "DM Sans", sans-serif;
  transition: color .25s, background .25s;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
:root[data-theme="dark"] body::before { mix-blend-mode: soft-light; opacity: .12; }

button, input { font: inherit; }
button { color: inherit; }
.app-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; position: relative; z-index: 2; }

.topbar {
  height: 90px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand { color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 700; display: flex; gap: 11px; align-items: center; letter-spacing: -.5px; }
.brand-dot { color: var(--orange); }
.brand-mark { display: flex; gap: 2px; height: 19px; align-items: end; }
.brand-mark i { display: block; width: 3px; border-radius: 2px; background: var(--orange); }
.brand-mark i:nth-child(1) { height: 9px; }
.brand-mark i:nth-child(2) { height: 19px; }
.brand-mark i:nth-child(3) { height: 13px; }
.tagline { color: #9a968f; font-size: 11px; letter-spacing: 2.8px; text-transform: uppercase; }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 9px; }
.theme-toggle { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--button-background); cursor: pointer; transition: .2s; }
.theme-toggle:hover { background: var(--surface-solid); transform: translateY(-1px); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.theme-toggle .sun-icon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
:root[data-theme="dark"] .theme-toggle .moon-icon { display: none; }
.favorites-button { border: 1px solid var(--line); background: var(--button-background); border-radius: 999px; padding: 10px 16px; font-size: 12px; font-weight: 600; cursor: pointer; transition: .2s; }
.favorites-button span { color: var(--orange); margin-right: 6px; }
.favorites-button:hover { background: var(--surface-solid); transform: translateY(-1px); }

.hero { min-height: calc(100vh - 90px); display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(410px, .96fr); gap: clamp(48px, 8vw, 110px); align-items: center; padding: 54px 0 70px; }
.intro { max-width: 560px; }
.eyebrow { color: var(--orange); font-size: 10px; letter-spacing: 3.4px; text-transform: uppercase; font-weight: 700; margin: 0 0 18px; }
h1 { font-size: clamp(44px, 5vw, 66px); letter-spacing: -3.2px; line-height: .99; margin: 0; font-weight: 600; }
h1 em { font-family: "Fraunces", serif; font-weight: 500; color: var(--orange); }
.lede { max-width: 490px; color: var(--muted); line-height: 1.65; margin: 24px 0 28px; font-size: 14px; }

.search { height: 55px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; display: flex; align-items: center; padding: 0 16px; box-shadow: 0 12px 35px rgba(0,0,0,.08); transition: .2s; }
.search:focus-within { background: var(--surface-solid); border-color: rgba(233,93,42,.45); box-shadow: 0 12px 35px rgba(0,0,0,.13); }
.search svg { width: 18px; fill: none; stroke: #77736d; stroke-width: 1.8; }
.search input { flex: 1; height: 100%; border: 0; outline: 0; background: none; padding: 0 13px; font-size: 13px; color: var(--ink); }
.search kbd { color: var(--muted); font-size: 11px; border: 1px solid var(--line); padding: 3px 7px; border-radius: 4px; background: var(--key-background); }

.categories { display: flex; gap: 8px; margin: 18px 0 24px; }
.category { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; background: transparent; font-size: 11px; cursor: pointer; transition: .2s; }
.category:hover, .category.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.results-heading { display: flex; justify-content: space-between; color: #77736d; font-size: 10px; letter-spacing: 1.7px; text-transform: uppercase; border-bottom: 1px solid var(--line); padding: 0 4px 10px; }
.live-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); margin-right: 8px; box-shadow: 0 0 0 4px rgba(233,93,42,.1); }
.station-list { max-height: 228px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c8c3bb transparent; }
.station { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; text-align: left; padding: 10px 5px; cursor: pointer; transition: .2s; }
.station:hover, .station.active { padding-left: 10px; background: var(--surface-hover); }
.station.active { box-shadow: inset 2px 0 var(--orange); }
.station-image { width: 38px; height: 38px; border-radius: 5px; background: #dedad2; object-fit: cover; }
/* Stand-in for stations that publish no artwork, tinted by --tile-hue so each
   station keeps a consistent color. */
.station-initial { display: grid; place-items: center; font-size: 15px; font-weight: 700; color: hsl(var(--tile-hue) 58% 30%); background: hsl(var(--tile-hue) 46% 82%); }
:root[data-theme="dark"] .station-initial { color: hsl(var(--tile-hue) 55% 82%); background: hsl(var(--tile-hue) 30% 26%); }
.station-copy { min-width: 0; }
.station-name { display: block; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.station-meta { display: block; color: #97928b; font-size: 9px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.station-play { width: 25px; height: 25px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 8px; color: var(--orange); }
.empty { padding: 30px 8px; color: var(--muted); font-size: 12px; text-align: center; }
.loading-state { height: 90px; display: flex; justify-content: center; align-items: center; gap: 5px; }
.loading-state span { width: 4px; height: 16px; background: var(--orange); animation: load .8s ease-in-out infinite alternate; }
.loading-state span:nth-child(2) { animation-delay: .2s; }.loading-state span:nth-child(3) { animation-delay: .4s; }

.player-stage { position: relative; display: flex; flex-direction: column; align-items: center; }
.ipod { width: 350px; height: 572px; border-radius: 51px; padding: 25px 25px 19px; position: relative; background: linear-gradient(145deg, #fcfcfc 0%, #e5e6e6 42%, #f9f9f8 75%, #d8dadb 100%); box-shadow: -20px 30px 50px rgba(49,44,37,.2), inset 2px 2px 2px #fff, inset -3px -3px 5px rgba(53,53,53,.22); border: 1px solid rgba(97,97,97,.25); }
.ipod::after { content: ""; position: absolute; inset: 4px; border-radius: 47px; border: 1px solid rgba(255,255,255,.75); pointer-events: none; }
.ipod-top { position: absolute; top: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.ipod-top span:first-child { width: 28px; height: 3px; border-radius: 5px; background: #b8b9b9; box-shadow: inset 0 1px 2px #777; }
.ipod-top span:last-child { width: 4px; height: 4px; border-radius: 50%; background: #acadae; }
.screen { height: 296px; border-radius: 27px; padding: 16px 17px 13px; background: linear-gradient(155deg, #1e2020, #090a0a 68%, #181a19); box-shadow: inset 0 2px 8px #000, 0 1px 0 #fff; color: #fff; position: relative; overflow: hidden; }
.screen::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.1), transparent 28%); pointer-events: none; }
.screen-status { height: 13px; display: flex; justify-content: space-between; align-items: center; font-size: 7px; position: relative; z-index: 1; }
.on-air { font-size: 6px; letter-spacing: 1.2px; color: #b4b7b4; }
.on-air i { width: 4px; height: 4px; display: inline-block; border-radius: 50%; background: var(--orange); margin-right: 4px; }
.battery { width: 14px; height: 7px; border: 1px solid #a5a7a5; border-radius: 2px; padding: 1px; position: relative; }
.battery::after { content: ""; position: absolute; width: 1px; height: 3px; top: 1px; right: -3px; background: #a5a7a5; }
.battery i { display: block; width: 80%; height: 100%; background: #e7e7e4; }
.art-wrap { width: 132px; height: 132px; margin: 10px auto 8px; position: relative; }
.art { width: 100%; height: 100%; border-radius: 3px; background: radial-gradient(circle at 60% 30%, #f99057, #d6461f 38%, #35211d 100%); background-size: cover; background-position: center; display: grid; place-items: center; box-shadow: 0 9px 18px rgba(0,0,0,.45); }
.art-fallback { height: 55px; display: flex; gap: 5px; align-items: center; }
.art.has-image .art-fallback { display: none; }
.art-fallback i { width: 5px; height: 28px; border-radius: 3px; background: rgba(255,255,255,.82); }
.art-fallback i:nth-child(2) { height: 50px; }.art-fallback i:nth-child(3) { height: 38px; }.art-fallback i:nth-child(4) { height: 45px; }.art-fallback i:nth-child(5) { height: 22px; }
.heart { position: absolute; right: -10px; bottom: -9px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #f5f3ef; color: var(--orange); cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,.35); font-size: 16px; }
.heart.active { background: var(--orange); color: #fff; }
.track-info { text-align: center; }
.track-info p { font-size: 6px; letter-spacing: 1.5px; color: var(--orange); margin: 0 0 4px; font-weight: 700; }
.track-info h2 { margin: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-info span { color: #8f9390; font-size: 7px; display: block; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter { position: absolute; left: 18px; right: 18px; bottom: 12px; height: 19px; display: flex; justify-content: center; align-items: end; gap: 3px; }
.meter i { width: 2px; height: 4px; background: #676a68; transition: .2s; }
.ipod.playing .meter i { background: var(--orange); animation: meter .65s ease-in-out infinite alternate; }
.meter i:nth-child(2n) { animation-delay: -.3s!important; }.meter i:nth-child(3n) { animation-delay: -.5s!important; }

.wheel { width: 238px; height: 238px; border-radius: 50%; position: relative; margin: 15px auto 0; background: linear-gradient(145deg, #e2e2e0, #fff); box-shadow: inset 1px 1px 5px rgba(0,0,0,.13), 0 1px 1px #fff; }
.wheel::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px solid rgba(123,123,123,.12); }
.wheel-label { border: 0; background: none; position: absolute; z-index: 2; cursor: pointer; color: #9a9b9b; font-size: 10px; font-weight: 700; }
.wheel-label:hover { color: var(--orange); }
.menu-button { left: 50%; top: 22px; transform: translateX(-50%); letter-spacing: .5px; }
.previous { left: 25px; top: 50%; transform: translateY(-50%); font-size: 9px; }.next { right: 25px; top: 50%; transform: translateY(-50%); font-size: 9px; }
.volume-toggle { left: 50%; bottom: 21px; transform: translateX(-50%); font-size: 20px; font-weight: 400; }
.play-button { width: 96px; height: 96px; border-radius: 50%; border: 1px solid rgba(101,101,101,.2); position: absolute; z-index: 3; top: 50%; left: 50%; transform: translate(-50%, -50%); background: linear-gradient(145deg, #f8f8f7, #d7d8d7); box-shadow: 1px 2px 5px rgba(0,0,0,.15), inset 1px 1px 2px #fff; cursor: pointer; }
.play-button span { display: block; width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 16px solid #777; margin: auto; transform: translateX(2px); }
.ipod.playing .play-button span { width: 14px; height: 18px; border: 0; border-left: 5px solid #777; border-right: 5px solid #777; transform: none; }
.volume-bar { position: absolute; z-index: 4; opacity: 0; pointer-events: none; transition: .2s; width: 150px; bottom: -39px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; color: #8f8f8d; font-size: 10px; }
.volume-bar.visible { opacity: 1; pointer-events: auto; }
.volume-bar input { accent-color: var(--orange); width: 115px; height: 3px; }
.dock-slot { width: 45px; height: 4px; background: #b4b5b5; border-radius: 4px; box-shadow: inset 0 1px 2px #777; margin: 8px auto 0; }
.hint { color: #9a968f; font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; margin: 21px 0 0; }
.signal { position: absolute; border: 1px solid rgba(233,93,42,.15); border-radius: 50%; width: 540px; height: 540px; top: 18px; z-index: -1; }
.signal-two { width: 650px; height: 650px; top: -36px; opacity: .5; }
.ambient { position: fixed; border-radius: 50%; filter: blur(5px); pointer-events: none; }
.ambient-one { width: 300px; height: 300px; right: -130px; top: 20%; background: rgba(232,91,42,.08); }
.ambient-two { width: 260px; height: 260px; left: -150px; bottom: -80px; background: rgba(71,117,126,.1); }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 20px); opacity: 0; z-index: 20; background: #242321; color: #fff; border-radius: 999px; padding: 10px 18px; font-size: 11px; transition: .25s; pointer-events: none; }
:root[data-theme="dark"] .toast { background: #f1eee8; color: #242321; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

.site-footer {
  display: grid;
  grid-template-columns: minmax(250px, 1.8fr) repeat(3, minmax(120px, 1fr));
  gap: 44px;
  padding: 58px 0 24px;
  border-top: 1px solid var(--line);
}
.footer-intro p { max-width: 280px; margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-group p { margin: 2px 0 9px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.footer-group a, .footer-bottom a { color: var(--ink); font-size: 11px; text-decoration: none; transition: color .2s; }
.footer-group a:hover, .footer-bottom a:hover { color: var(--orange); }
.footer-bottom { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .6px; text-transform: uppercase; }
.footer-bottom div { display: flex; gap: 20px; }
.footer-bottom a { color: var(--muted); font-size: inherit; }
.footer-bottom > span:last-child { justify-self: end; }

.back-home { justify-self: end; color: var(--ink); font-size: 11px; font-weight: 600; text-decoration: none; }
.back-home:hover { color: var(--orange); }
.legal-content { width: min(720px, 100%); margin: 0 auto; padding: 88px 0 100px; }
.legal-content h1 { margin-bottom: 12px; }
.legal-content .legal-updated { margin: 0 0 45px; color: var(--muted); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }
.legal-content > p:not(.eyebrow, .legal-updated) { color: var(--muted); font-size: 14px; line-height: 1.8; }
.legal-content h2 { margin: 40px 0 10px; font-size: 18px; letter-spacing: -.3px; }
.legal-content a { color: var(--orange); }
.legal-footer { display: flex; justify-content: space-between; align-items: center; padding: 22px 0 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .6px; text-transform: uppercase; }
.legal-footer nav { display: flex; gap: 20px; }
.legal-footer a { color: var(--muted); text-decoration: none; }
.legal-footer a:hover, .legal-footer a[aria-current="page"] { color: var(--orange); }

@keyframes load { to { height: 5px; opacity: .45; } }
@keyframes meter { from { height: 3px; } to { height: 17px; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 42px; }
  .intro { max-width: none; }
  .player-stage { grid-row: 1; }
  .ipod { transform: scale(.9); margin: -25px 0; }
  .tagline { display: none; }.topbar { grid-template-columns: 1fr 1fr; }
  .site-footer { grid-template-columns: 1.5fr repeat(3, 1fr); gap: 28px; }
}

@media (max-width: 520px) {
  .app-shell { width: min(100% - 28px, 460px); }
  .topbar { height: 72px; }
  .header-actions { gap: 6px; }
  .theme-toggle { width: 34px; height: 34px; }
  .favorites-button { padding: 8px 11px; font-size: 10px; }
  .hero { gap: 48px; padding-top: 28px; }
  .ipod { transform: scale(.82); margin: -50px 0; }
  h1 { font-size: 43px; letter-spacing: -2.4px; }
  .categories { overflow-x: auto; padding-bottom: 3px; }
  .category { white-space: nowrap; }
  .legal-shell .topbar { grid-template-columns: 1fr auto; }
  .legal-shell .tagline { display: none; }
  .legal-content { padding: 58px 0 70px; }
  .legal-content h1 { font-size: 42px; }
  .site-footer { grid-template-columns: 1fr 1fr; gap: 38px 24px; padding-top: 44px; }
  .footer-intro { grid-column: 1 / -1; }
  .footer-bottom { grid-template-columns: 1fr auto; row-gap: 14px; }
  .footer-bottom > span:last-child { grid-column: 1 / -1; justify-self: start; }
}

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