
:root {
  --ink: #f7fbff;
  --muted: #8190a8;
  --line: rgba(126, 163, 201, 0.25);
  --panel: rgba(10, 20, 34, 0.8);
  --lime: #b7ff3c;
  --cyan: #24d6ff;
  --background: #03070d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; width: 100%; max-width: 100%; overscroll-behavior-x: none; }
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  background: var(--background);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

html { scroll-behavior: smooth; }
button, input, .station-card, .player-panel { -webkit-tap-highlight-color: transparent; }
button { transition: color .22s ease, background-color .22s ease, border-color .22s ease, transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease; }

.radio-shell {
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow: visible;
  isolation: isolate;
  background:
    linear-gradient(rgba(56, 113, 163, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 113, 163, .025) 1px, transparent 1px),
    radial-gradient(circle at 50% -10%, rgba(26, 79, 132, .26), transparent 38%),
    #03070d;
  background-size: 48px 48px, 48px 48px, auto, auto;
}

.radio-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 32%, rgba(0, 0, 0, .58) 100%);
  z-index: -1;
}

.ambient { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .12; pointer-events: none; z-index: -1; }
.ambient-one { width: 430px; height: 430px; background: var(--cyan); left: -230px; top: 170px; }
.ambient-two { width: 110px; height: 390px; background: var(--lime); right: 0; top: 340px; }
.page-width { width: min(1460px, calc(100% - 64px)); margin-inline: auto; }

.site-header { height: 94px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: #fff; font-size: 29px; line-height: 1; font-weight: 760; letter-spacing: -1.4px; text-decoration: none; }
.brand-dot { color: var(--lime); font-weight: 670; }
.brand-mark { width: 58px; height: 50px; display: flex; align-items: center; justify-content: center; gap: 4px; position: relative; }
.brand-mark::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); bottom: 0; box-shadow: 0 -43px 0 var(--lime); }
.brand-mark i { width: 5px; border-radius: 99px; background: linear-gradient(180deg, var(--lime), var(--cyan)); box-shadow: 0 0 13px rgba(36, 214, 255, .3); }
.header-actions { display: flex; align-items: center; gap: 10px; color: #aab6c6; }
.live-link { border: 0; background: transparent; color: inherit; height: 42px; display: inline-flex; gap: 9px; align-items: center; padding: 0 17px; font-size: 14px; cursor: pointer; }
.live-link { color: #eef4fa; border-right: 1px solid rgba(255,255,255,.12); }
.live-link i, .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(183,255,60,.08), 0 0 12px rgba(183,255,60,.7); }
.download-app-button { height: 42px; display: inline-flex; align-items: center; gap: 9px; padding: 0 15px; border: 1px solid rgba(36,214,255,.28); border-radius: 12px; background: linear-gradient(135deg, rgba(15,37,55,.92), rgba(8,20,33,.92)); color: #eaf7ff; text-decoration: none; font-size: 12px; font-weight: 760; box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 24px rgba(0,0,0,.16); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease; }
.download-app-button svg { width: 17px; height: 17px; fill: var(--cyan); filter: drop-shadow(0 0 7px rgba(36,214,255,.26)); }
.download-copy { display: flex; flex-direction: column; justify-content: center; line-height: 1; }
.download-total { min-width: 72px; margin-top: 4px; color: #718399; font-size: 8px; font-weight: 560; letter-spacing: .01em; }
.download-app-button::after { content: "↓"; color: var(--lime); font-size: 13px; font-weight: 900; }
.download-app-button:hover { color: white; border-color: rgba(183,255,60,.58); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 28px rgba(0,0,0,.22), 0 0 18px rgba(36,214,255,.07); }
.download-app-button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.round-button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(12,22,36,.72); cursor: pointer; font-size: 17px; }
.round-button:hover { border-color: var(--cyan); color: var(--cyan); }
.about-popover { position: absolute; right: 32px; top: 78px; z-index: 30; width: min(360px, calc(100% - 32px)); padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: rgba(7,16,28,.97); box-shadow: 0 20px 70px rgba(0,0,0,.5); backdrop-filter: blur(22px); }
.about-popover strong { font-size: 15px; }
.about-popover p { color: #8393a7; font-size: 11px; line-height: 1.7; margin: 8px 0 12px; }
.about-popover button { border: 1px solid #35506a; border-radius: 8px; background: #102035; color: #d8e4ee; padding: 7px 11px; cursor: pointer; font-size: 10px; }

.player-wrap { position: sticky; top: 8px; margin-top: 10px; z-index: 20; }
.player-orbit { position: absolute; width: 82%; height: 130%; left: 9%; top: -15%; border-radius: 50%; background: radial-gradient(ellipse, rgba(36,214,255,.11), transparent 65%); filter: blur(20px); pointer-events: none; }
.player-panel {
  min-height: 164px;
  display: grid;
  grid-template-columns: 60px minmax(245px, .9fr) 210px minmax(280px, 1.15fr) 215px 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(80, 154, 219, .48);
  background: linear-gradient(105deg, rgba(9,19,33,.94), rgba(5,12,22,.88));
  box-shadow: 0 22px 70px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.04), 0 0 40px rgba(36,214,255,.04);
  backdrop-filter: blur(24px);
  cursor: grab;
  touch-action: pan-y;
}
.player-panel:active { cursor: grabbing; }
.player-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(36,214,255,.025) 48%, transparent); }
.edge-button { align-self: stretch; border: 0; background: rgba(12,26,43,.65); color: var(--cyan); font-size: 46px; font-weight: 200; cursor: pointer; border-right: 1px solid rgba(100,151,199,.2); position: relative; z-index: 1; }
.edge-button.right { border-right: 0; border-left: 1px solid rgba(100,151,199,.2); }
.edge-button:hover { background: rgba(25,55,82,.75); }
.now-playing { display: flex; align-items: center; gap: 18px; padding: 22px 20px; min-width: 0; }
.station-emblem { width: 70px; aspect-ratio: 1; flex: 0 0 auto; border-radius: 22px; display: grid; place-items: center; position: relative; overflow: hidden; color: #07111b; font-weight: 850; letter-spacing: -1px; background: linear-gradient(145deg, var(--accent, #4edcff), var(--accent-2, #6a81ff)); box-shadow: 0 12px 28px color-mix(in srgb, var(--accent, #4edcff) 18%, transparent), inset 0 1px 0 rgba(255,255,255,.5); }
.station-emblem::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,.46); border-radius: 17px; }
.station-emblem::after { content: ""; position: absolute; width: 34px; height: 24px; border-block: 3px solid rgba(5,15,25,.54); border-radius: 50%; }
.station-emblem span { position: relative; z-index: 1; font-size: 13px; }
.station-emblem img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; background: #fff; }
.hero-emblem { width: 92px; border-radius: 50%; box-shadow: 0 0 0 6px rgba(255,157,22,.08), 0 0 40px rgba(255,116,21,.28); }
.hero-emblem::before { border-radius: 50%; }
.emblem-pulse { position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(255,167,25,.24); animation: pulse-ring 2.4s ease-out infinite; }
.eyebrow { font-size: 9px; font-weight: 800; letter-spacing: 1.65px; color: #74869d; }
.now-copy h1 { margin: 7px 0 6px; font-size: 31px; line-height: 1; letter-spacing: -1.1px; white-space: nowrap; }
.now-copy p { margin: 0; color: #a2afbf; font-size: 12px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.now-copy p .live-dot { display: inline-block; }
.now-copy p b { font-weight: 400; color: #3d4b5f; }
.transport { display: flex; justify-content: center; align-items: center; gap: 12px; }
.transport button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: #eaf3fb; cursor: pointer; font-size: 16px; }
.transport .main-play { width: 75px; height: 75px; border: 2px solid var(--lime); border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.1), rgba(9,17,27,.8)); box-shadow: 0 0 0 7px rgba(183,255,60,.035), 0 0 25px rgba(183,255,60,.16); font-size: 21px; }
.player-panel.is-buffering .main-play { border-color: var(--cyan); }
.transport button:hover { color: var(--lime); transform: scale(1.04); }
.play-symbol { font-size: 16px; transform: translateX(1px); }
.play-symbol.pause { font-size: 20px; font-weight: 850; transform: none; letter-spacing: -3px; padding-right: 3px; }
.loading-ring { width: 22px; height: 22px; border: 2px solid rgba(36,214,255,.25); border-top-color: var(--cyan); border-radius: 50%; animation: spin .72s linear infinite; }
.wave-area { padding: 16px 22px; border-inline: 1px solid rgba(112,154,192,.14); min-width: 0; }
.wave-bars { height: 66px; display: flex; align-items: center; gap: 3px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.wave-bars i { flex: 1 0 3px; max-width: 4px; min-height: 8px; border-radius: 9px; background: linear-gradient(180deg, #b7ff3c 0%, #55eaff 42%, #168dcc 100%); opacity: calc(.42 + var(--energy, .18) * .58); transform: scaleY(var(--energy, .18)); transform-origin: center; will-change: transform, opacity; transition: transform 80ms linear, opacity 120ms ease; box-shadow: 0 0 calc(2px + var(--energy, .18) * 8px) rgba(36,214,255,.24); }
.player-panel.is-buffering .wave-bars i { background: linear-gradient(180deg, #77f5ff, #168dcc); }
.wave-line { height: 3px; margin-top: 4px; background: #19344a; border-radius: 9px; position: relative; overflow: visible; }
.wave-line span { display: block; width: 68%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--lime)); box-shadow: 0 0 10px rgba(183,255,60,.25); }
.wave-line span::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--lime); position: absolute; top: -4px; left: calc(68% - 5px); box-shadow: 0 0 12px rgba(183,255,60,.6); }
.wave-meta { display: flex; align-items: center; justify-content: space-between; font-size: 8px; letter-spacing: 1.25px; color: #62758c; margin-top: 10px; }
.wave-meta b { border: 1px solid #354b62; border-radius: 4px; padding: 2px 5px; font-size: 8px; color: #91a5b9; }
.volume-area { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 0 18px; color: #c8d3dd; }
.volume-area input { appearance: none; width: 112px; height: 32px; border-radius: 9px; background: linear-gradient(90deg, var(--cyan) 0 var(--volume, 72%), #27394c var(--volume, 72%)) center / 100% 4px no-repeat; cursor: pointer; touch-action: pan-x; }
.volume-area input::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; background: white; border: 2px solid #b8f7ff; border-radius: 50%; box-shadow: 0 0 12px rgba(255,255,255,.45); }
.volume-area input::-moz-range-thumb { width: 14px; height: 14px; background: white; border: 2px solid #b8f7ff; border-radius: 50%; box-shadow: 0 0 12px rgba(255,255,255,.45); }
.volume-area button { border: 0; background: transparent; cursor: pointer; }
.volume-area .mute-button { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(80,154,219,.36); border-radius: 50%; background: rgba(7,18,31,.84); font-size: 16px; line-height: 1; }
.volume-area .mute-button:hover { border-color: var(--cyan); background: rgba(18,48,68,.92); }
.desktop-ad-banner[hidden] { display: none; }
.desktop-ad-banner {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  padding: 5px 8px;
  border: 1px solid rgba(80,154,219,.26);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(10,24,39,.96), rgba(6,16,28,.94));
  box-shadow: 0 8px 26px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.025);
  transition: opacity .22s ease, transform .22s ease, border-color .22s ease;
}
.desktop-ad-banner::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, rgba(36,214,255,.035), transparent 38%, rgba(183,255,60,.025)); }
.desktop-ad-banner.is-switching { opacity: .2; transform: translateY(2px); }
.desktop-ad-image { width: 38px; height: 38px; flex: 0 0 38px; position: relative; z-index: 1; object-fit: cover; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: #0b1a29; }
.desktop-ad-link { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; color: #eef7ff; text-decoration: none; }
.desktop-ad-label { flex: 0 0 auto; padding: 3px 6px; border: 1px solid rgba(183,255,60,.28); border-radius: 99px; color: var(--lime); font-size: 7px; font-weight: 800; letter-spacing: .75px; text-transform: uppercase; }
.desktop-ad-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.desktop-ad-copy strong, .desktop-ad-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desktop-ad-copy strong { color: #edf7ff; font-size: 11px; line-height: 1.2; }
.desktop-ad-copy small { color: #7f93aa; font-size: 9px; line-height: 1.2; }
.desktop-ad-action { flex: 0 0 auto; color: var(--cyan); font-size: 9px; font-weight: 750; white-space: nowrap; }
.desktop-ad-link:hover .desktop-ad-action { color: var(--lime); }
.desktop-ad-position { flex: 0 0 auto; position: relative; z-index: 1; color: #526982; font-size: 8px; }
.desktop-ad-close { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; position: relative; z-index: 2; padding: 0; border: 0; border-radius: 50%; background: rgba(22,40,59,.72); color: #7c8da1; cursor: pointer; font-size: 15px; line-height: 1; }
.desktop-ad-close[hidden] { display: none; }
.desktop-ad-close:hover { background: rgba(36,214,255,.12); color: #fff; }
.drag-hint { text-align: center; margin: 13px 0 24px; color: #526982; font-size: 12px; letter-spacing: .2px; }
.drag-hint span { color: #314f69; margin-inline: 10px; }

.directory-tools { display: flex; justify-content: space-between; gap: 26px; align-items: center; }
.search-box { height: 54px; width: min(540px, 47%); border-radius: 15px; border: 1px solid var(--line); background: rgba(8,17,29,.72); display: flex; align-items: center; padding: 0 16px 0 20px; gap: 15px; box-shadow: inset 0 1px 0 rgba(255,255,255,.02); }
.search-box:focus-within { border-color: rgba(36,214,255,.75); box-shadow: 0 0 0 4px rgba(36,214,255,.06); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #e9f2fa; font-size: 14px; }
.search-box input::placeholder { color: #64758b; }
.search-box kbd { color: #53657a; border: 1px solid #2a3a4c; padding: 4px 7px; border-radius: 6px; font-size: 10px; }
.clear-search { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #14243a; color: #9aabbc; cursor: pointer; }
.search-icon { width: 18px; height: 18px; border: 2px solid #dbe8f4; border-radius: 50%; position: relative; }
.search-icon::after { content: ""; width: 7px; height: 2px; background: #dbe8f4; position: absolute; right: -6px; bottom: -3px; transform: rotate(47deg); border-radius: 2px; }
.filter-tabs { display: flex; align-items: center; gap: 10px; }
.filter-tabs button { min-width: 104px; height: 46px; padding: 0 22px; border-radius: 99px; border: 1px solid var(--line); background: rgba(8,18,30,.7); color: #b1bdc9; cursor: pointer; font-size: 13px; transition: .18s ease; }
.filter-tabs button:hover { color: white; border-color: rgba(36,214,255,.45); }
.filter-tabs button.active { color: #071109; border-color: var(--lime); background: linear-gradient(135deg, #d0ff55, #9bed2b); box-shadow: 0 8px 28px rgba(183,255,60,.13); font-weight: 800; }
.section-title-row { display: flex; justify-content: space-between; align-items: end; margin: 30px 4px 17px; }
.section-kicker { color: var(--cyan); font-size: 9px; letter-spacing: 1.8px; font-weight: 800; }
.section-title-row h2 { margin: 6px 0 0; font-size: 24px; letter-spacing: -.6px; }
.station-count { color: #617389; font-size: 11px; padding-bottom: 2px; }
.station-count span { color: var(--lime); font-size: 8px; margin-right: 7px; }
.station-count.loading span { animation: blink 1s ease-in-out infinite; }
.station-count.fallback span { color: #ffb84c; }
.station-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 1fr; align-items: stretch; gap: 13px; }
.station-card { --accent: #24d6ff; --accent-2: #687bff; min-height: 178px; border: 1px solid rgba(111,153,190,.28); border-radius: 18px; background: linear-gradient(145deg, rgba(15,28,43,.9), rgba(7,15,26,.86)); position: relative; overflow: hidden; padding: 17px; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; transform: translateZ(0); transition: transform .34s cubic-bezier(.16,1,.3,1), border-color .28s ease, box-shadow .34s ease, background .28s ease; animation: card-enter .42s cubic-bezier(.16,1,.3,1) backwards; animation-delay: calc(var(--card-index, 0) * 18ms); }
.station-card *, .station-card img { user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.station-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(120deg, transparent 15%, rgba(255,255,255,.055) 48%, transparent 72%); transform: translateX(-45%); transition: opacity .28s ease, transform .55s cubic-bezier(.16,1,.3,1); }
.station-card:active { transform: translateY(-1px) scale(.985); transition-duration: .1s; }
.station-card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.station-card.active { border-color: rgba(183,255,60,.75); box-shadow: inset 0 0 0 1px rgba(183,255,60,.08), 0 0 28px rgba(183,255,60,.05); }
.station-card.is-unresolved .station-emblem { filter: saturate(.72); }
.card-glow { position: absolute; width: 120px; height: 120px; left: -50px; top: -55px; border-radius: 50%; background: var(--accent); filter: blur(60px); opacity: .12; transition: opacity .34s ease, transform .45s cubic-bezier(.16,1,.3,1); }
.station-card-top { display: flex; align-items: flex-start; justify-content: space-between; position: relative; }
.station-card .station-emblem { width: 61px; border-radius: 18px; }
.station-card .station-emblem::before { border-radius: 13px; }
.station-card-body { position: absolute; left: 17px; bottom: 17px; }
.station-card h3 { max-width: 150px; margin: 0 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; letter-spacing: -.2px; }
.station-card p { margin: 0 0 8px; color: #6d7e92; font-size: 9px; letter-spacing: .2px; }
.language-tag { display: inline-flex; align-items: center; height: 19px; border-radius: 5px; padding: 0 7px; font-size: 8px; font-weight: 850; color: #071109; background: var(--lime); }
.language-tag.tamil { background: #e477ff; }
.language-tag.english { background: #55ddff; }
.language-tag.german { background: #ffd65a; }
.language-tag.french { background: #ff8dc8; }
.language-tag.hungarian { background: #78efb0; }
.language-tag.dutch { background: #ff9a65; }
.card-play { position: absolute; right: 17px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--cyan); background: rgba(7,19,31,.7); color: white; cursor: pointer; display: grid; place-items: center; transition: .18s ease; }
.card-play:hover { color: #071109; background: var(--cyan); box-shadow: 0 0 20px rgba(36,214,255,.2); }
.active-label { position: absolute; right: 13px; top: 14px; color: var(--lime); font-size: 7px; font-weight: 850; letter-spacing: 1px; }
.active-label i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); margin-right: 4px; box-shadow: 0 0 8px rgba(183,255,60,.7); }
.site-footer { min-height: 92px; display: flex; align-items: center; justify-content: space-between; color: #405167; font-size: 10px; margin-top: 40px; border-top: 1px solid rgba(109,147,183,.12); }
.site-footer p { text-transform: uppercase; letter-spacing: 2px; font-size: 8px; }
.site-footer a { color: #6f8399; text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: var(--cyan); }
.site-footer a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.empty-state { min-height: 310px; border: 1px dashed rgba(111,153,190,.24); border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: rgba(8,17,29,.35); }
.empty-wave { transform: scale(.8); opacity: .7; }
.empty-state h3 { margin: 8px 0 4px; font-size: 20px; }
.empty-state p { margin: 0 0 17px; color: #718298; font-size: 12px; }
.empty-state button { border: 1px solid rgba(183,255,60,.6); border-radius: 99px; padding: 9px 16px; background: rgba(183,255,60,.08); color: var(--lime); cursor: pointer; font-size: 11px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translate(-50%, 24px); max-width: min(440px, calc(100% - 32px)); padding: 11px 16px; border: 1px solid rgba(36,214,255,.35); border-radius: 12px; background: rgba(6,16,28,.96); color: #dce8f2; box-shadow: 0 16px 50px rgba(0,0,0,.48); font-size: 11px; text-align: center; opacity: 0; visibility: hidden; transition: .22s ease; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

@keyframes pulse-ring { from { transform: scale(.88); opacity: .8; } to { transform: scale(1.24); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .3; } }
@keyframes card-enter { from { opacity: 0; transform: translateY(12px) scale(.975); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (hover: hover) and (pointer: fine) {
  .station-card:hover { transform: translateY(-5px) scale(1.012); border-color: color-mix(in srgb, var(--accent) 68%, transparent); box-shadow: 0 18px 48px rgba(0,0,0,.32), 0 0 24px color-mix(in srgb, var(--accent) 9%, transparent); }
  .station-card:hover::after { opacity: 1; transform: translateX(42%); }
  .station-card:hover .card-glow { opacity: .2; transform: scale(1.18); }
  .station-card:hover .card-play { color: #071109; background: var(--cyan); box-shadow: 0 0 22px rgba(36,214,255,.24); transform: scale(1.06); }
  .station-card:hover:active { transform: translateY(-1px) scale(.99); }
}

@media (max-width: 1240px) {
  .player-panel { grid-template-columns: 52px minmax(230px, 1fr) 170px minmax(240px, 1fr) 58px; }
  .volume-area { display: none; }
  .station-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filter-tabs button { min-width: 86px; padding: 0 17px; }
}

@media (max-width: 920px) {
  .page-width { width: min(100% - 34px, 760px); }
  .site-header { height: 80px; }
  .header-actions .live-link { display: none; }
  .download-app-button { width: 42px; padding: 0; justify-content: center; border-radius: 50%; position: relative; }
  .download-app-button .download-copy { display: none; }
  .download-app-button::after { width: 14px; height: 14px; display: grid; place-items: center; position: absolute; right: -2px; bottom: -2px; border: 2px solid #07101c; border-radius: 50%; background: var(--lime); color: #071109; font-size: 9px; line-height: 1; }
  .player-panel { min-height: 238px; grid-template-columns: 44px minmax(0, 1fr) 44px; grid-template-rows: 112px 78px 48px; }
  .edge-button { grid-row: 1 / 4; }
  .now-playing { grid-column: 2; justify-content: center; padding: 16px 8px; }
  .transport { grid-column: 2; grid-row: 2; }
  .wave-area { display: none; }
  .volume-area { display: flex; grid-column: 2; grid-row: 3; align-self: stretch; padding: 3px 8px 6px; gap: 10px; border-top: 1px solid rgba(112,154,192,.12); position: relative; z-index: 3; }
  .volume-area input { width: clamp(120px, 48vw, 210px); }
  .transport { position: relative; z-index: 2; }
  .transport > button:not(.main-play) { background: rgba(2,8,14,.72); border-radius: 50%; }
  .main-play { background: #08111d !important; }
  .directory-tools { flex-direction: column; align-items: stretch; }
  .search-box { width: 100%; }
  .filter-tabs { overflow-x: auto; padding-bottom: 3px; }
  .filter-tabs button { flex: 1 0 auto; }
  .station-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .ambient { display: none; }
  .page-width { width: calc(100% - 26px); }
  .brand { font-size: 23px; gap: 8px; }
  .brand-mark { width: 44px; transform: scale(.8); transform-origin: left center; margin-right: -6px; }
  .round-button { width: 39px; height: 39px; }
  .about-popover { right: 13px; top: 70px; }
  .player-wrap { width: calc(100% - 18px); max-width: calc(100vw - 18px); position: sticky; top: 8px; }
  .player-panel { min-height: 228px; border-radius: 22px; grid-template-columns: 38px minmax(0, 1fr) 38px; grid-template-rows: 104px 76px 48px; box-shadow: 0 18px 55px rgba(0,0,0,.58), 0 0 34px rgba(36,214,255,.07); }
  .now-playing { justify-content: flex-start; gap: 12px; padding-inline: 12px; }
  .hero-emblem { width: 70px; }
  .now-copy h1 { font-size: 25px; }
  .now-copy p { font-size: 10px; gap: 5px; }
  .eyebrow { font-size: 7px; }
  .edge-button { font-size: 35px; }
  .desktop-ad-banner { min-height: 48px; gap: 7px; padding: 5px 6px; border-radius: 11px; }
  .desktop-ad-image { width: 36px; height: 36px; flex-basis: 36px; }
  .desktop-ad-link { gap: 7px; }
  .desktop-ad-label { display: none; }
  .desktop-ad-copy strong { font-size: 10px; }
  .desktop-ad-copy small { font-size: 8px; }
  .desktop-ad-action { font-size: 8px; }
  .desktop-ad-position { display: none; }
  .drag-hint { margin-bottom: 19px; }
  .search-box kbd { display: none; }
  .section-title-row { margin-top: 25px; }
  .station-count { display: none; }
  .station-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .station-card { min-height: 160px; padding: 14px; }
  .station-card .station-emblem { width: 53px; }
  .station-card-body { left: 14px; bottom: 14px; }
  .card-play { right: 13px; bottom: 14px; width: 40px; height: 40px; }
  .site-footer { flex-direction: column; justify-content: center; gap: 7px; padding-block: 24px; text-align: center; }
  .site-footer p { margin: 0; }

  .player-wrap.is-compact {
    position: relative;
    top: auto;
    min-height: var(--player-slot-height, 266px);
    pointer-events: none;
  }
  .player-wrap.is-compact .player-orbit,
  .player-wrap.is-compact .drag-hint,
  .player-wrap.is-compact .desktop-ad-banner { display: none; }
  .player-wrap.is-compact .player-panel {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    left: 9px;
    right: 9px;
    z-index: 100;
    width: auto;
    height: 104px;
    min-height: 104px;
    grid-template-columns: minmax(0, 1fr) 64px;
    grid-template-rows: 66px 38px;
    border-radius: 18px;
    cursor: default;
    pointer-events: auto;
    box-shadow: 0 16px 44px rgba(0,0,0,.72), 0 0 0 1px rgba(36,214,255,.08);
    animation: compact-player-in .2s cubic-bezier(.2,.8,.2,1);
  }
  .player-wrap.is-compact .edge-button { display: none; }
  .player-wrap.is-compact .now-playing {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 9px 8px 7px 12px;
  }
  .player-wrap.is-compact .hero-emblem { width: 46px; border-radius: 15px; }
  .player-wrap.is-compact .station-emblem::before { inset: 5px; border-radius: 11px; }
  .player-wrap.is-compact .station-emblem::after { width: 24px; height: 17px; border-width: 2px 0; }
  .player-wrap.is-compact .now-copy { min-width: 0; }
  .player-wrap.is-compact .eyebrow { display: none; }
  .player-wrap.is-compact .now-copy h1 {
    margin: 0 0 5px;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.05;
    text-overflow: ellipsis;
  }
  .player-wrap.is-compact .now-copy p { overflow: hidden; font-size: 9px; text-overflow: ellipsis; }
  .player-wrap.is-compact .transport { grid-column: 2; grid-row: 1; gap: 0; }
  .player-wrap.is-compact .transport > button:not(.main-play) { display: none; }
  .player-wrap.is-compact .transport .main-play { width: 48px; height: 48px; font-size: 16px; }
  .player-wrap.is-compact .volume-area {
    grid-column: 1 / 3;
    grid-row: 2;
    width: 100%;
    padding: 0 13px 3px;
    gap: 9px;
  }
  .player-wrap.is-compact .volume-area .mute-button { width: 30px; height: 30px; font-size: 13px; }
  .player-wrap.is-compact .volume-area input { width: auto; min-width: 0; flex: 1; }
}

@media (max-width: 390px) {
  .station-grid { gap: 8px; }
  .station-card { min-height: 152px; }
}

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

@keyframes compact-player-in {
  from { opacity: .7; transform: translateY(-8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
