@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root {
  color-scheme: light;
  --page: #F5F8F6;
  --surface: #ffffff;
  --surface-soft: #EDF4F1;
  --surface-strong: #DFECE7;
  --ink: #16302F;
  --muted: #657975;
  --line: #D8E5DF;
  --teal: #0C7771;
  --teal-bright: #29A89B;
  --teal-soft: #E0F3EF;
  --navy: #15343C;
  --navy-2: #1B4A4A;
  --amber: #E2A94C;
  --amber-soft: #FBF0D8;
  --danger: #bb534d;
  --focus: #D9962D;
  --shadow: 0 18px 54px rgba(20, 50, 52, .09);
  --radius: 20px;
  font-size: 16px;
}
[data-theme="aurora"] {
  color-scheme: light;
  --page: #F2F5FB; --surface: #FFFFFF; --surface-soft: #F1F2FA; --surface-strong: #E7E9F4;
  --ink: #222943; --muted: #707792; --line: #DADDED; --teal: #5E6FE8; --teal-bright: #8492FF;
  --teal-soft: #EAEDFF; --navy: #3D497A; --navy-2: #586BB2; --amber: #F07091; --amber-soft: #FFF0F3;
  --danger: #BD4F69; --focus: #5E6FE8; --shadow: 0 18px 54px rgba(44, 53, 103, .1);
}
[data-theme="sunset"] {
  color-scheme: light;
  --page: #FFF6EC; --surface: #FFFCF8; --surface-soft: #FFF0E2; --surface-strong: #F7E4D2;
  --ink: #432D26; --muted: #80695E; --line: #ECD8C8; --teal: #C85D3A; --teal-bright: #E17A50;
  --teal-soft: #FDE8DE; --navy: #57352C; --navy-2: #834835; --amber: #EAAA3C; --amber-soft: #FFF0D0;
  --danger: #B3483D; --focus: #C85D3A; --shadow: 0 18px 54px rgba(101, 56, 36, .11);
}
[data-theme="midnight-signal"] {
  color-scheme: dark;
  --page: #0C1720; --surface: #121F2A; --surface-soft: #172B36; --surface-strong: #213A47;
  --ink: #E9F3F4; --muted: #9AB1BB; --line: #2D4552; --teal: #28D4C2; --teal-bright: #65E8DA;
  --teal-soft: #123B3B; --navy: #112A3E; --navy-2: #19445A; --amber: #FFC45A; --amber-soft: #42351F;
  --danger: #FF897B; --focus: #FFD18A; --shadow: 0 18px 54px rgba(0, 0, 0, .36);
}
[data-theme="aurora-night"] {
  color-scheme: dark;
  --page: #10122C; --surface: #191C3A; --surface-soft: #22264A; --surface-strong: #2E315E;
  --ink: #F0F0FA; --muted: #AAAED0; --line: #373B64; --teal: #9486FF; --teal-bright: #B2A6FF;
  --teal-soft: #2C2850; --navy: #29284F; --navy-2: #433B75; --amber: #47E4CA; --amber-soft: #143D41;
  --danger: #FF8CAE; --focus: #C0B8FF; --shadow: 0 18px 54px rgba(5, 6, 28, .38);
}
[data-theme="afterglow"] {
  color-scheme: dark;
  --page: #20171D; --surface: #2C2029; --surface-soft: #372630; --surface-strong: #4A313C;
  --ink: #FFF0F4; --muted: #C5A8B1; --line: #543945; --teal: #FF78A5; --teal-bright: #FF9CBA;
  --teal-soft: #4A2A3A; --navy: #462631; --navy-2: #663145; --amber: #FFB65F; --amber-soft: #4D3728;
  --danger: #FF9388; --focus: #FFD183; --shadow: 0 18px 54px rgba(0, 0, 0, .32);
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1rem/1.5 "DM Sans", "Segoe UI", system-ui, sans-serif; transition: background-color .2s ease, color .2s ease; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled, select:disabled { opacity: .55; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.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; }
.app-shell { max-width: 1440px; margin: 0 auto; padding: 26px 38px 30px; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.brand-lockup { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark { width: 48px; height: 48px; flex: 0 0 auto; }
.brand-copy h1 { margin: 0; font: 800 1.18rem/1.2 "Manrope", "DM Sans", sans-serif; letter-spacing: -.035em; }
.clock { margin-top: 3px; color: var(--muted); font-size: .78rem; }
.top-tools { display: flex; align-items: center; gap: 8px; }
.language-select, select, input[type="text"], input[type="search"] { min-width: 0; border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; background: var(--surface); color: var(--ink); outline: none; }
.language-select { padding-block: 9px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; min-height: 42px; padding: 9px 14px; font-weight: 700; font-size: .88rem; transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { color: #f7fffc; background: var(--teal); box-shadow: 0 7px 17px rgba(8, 126, 121, .17); }
.button-primary:hover { background: #066e69; box-shadow: 0 9px 22px rgba(8, 126, 121, .22); }
.button-soft { color: var(--ink); background: var(--surface-soft); border-color: var(--line); }
.button-soft:hover { border-color: var(--teal); background: var(--teal-soft); }
.button-control { color: var(--ink); background: var(--surface); border-color: var(--line); }
.button-control:hover { color: var(--teal); border-color: var(--teal); background: var(--teal-soft); }
.button-small { min-height: 34px; padding: 6px 10px; border-radius: 9px; font-size: .78rem; }
.size-button { width: 42px; min-width: 42px; padding-inline: 6px; }
.hover-speech-button { min-height: 38px; padding: 7px 10px; font-size: .75rem; white-space: nowrap; }
.hover-speech-button svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.hover-speech-button[aria-pressed="true"] { color: var(--teal); border-color: color-mix(in srgb, var(--teal) 55%, var(--line)); }
.theme-picker { position: relative; }
.theme-button { min-height: 38px; padding: 7px 11px; }
.theme-button svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: var(--teal); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.theme-panel { position: absolute; z-index: 80; top: calc(100% + 10px); inset-inline-end: 0; width: min(390px, calc(100vw - 26px)); padding: 15px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--surface); box-shadow: 0 22px 55px rgba(8, 28, 36, .22); }
.theme-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.theme-panel-heading strong { font: 700 .95rem/1.3 "Manrope", "DM Sans", sans-serif; }
.theme-panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: .73rem; }
.theme-close { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--surface-soft); }
.theme-close svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.theme-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.theme-choice { display: grid; gap: 7px; min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface-soft); text-align: start; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.theme-choice:hover { transform: translateY(-1px); border-color: var(--teal); }
.theme-choice[aria-pressed="true"] { border-color: var(--teal); box-shadow: 0 0 0 2px color-mix(in srgb, var(--teal) 20%, transparent); }
.theme-swatches { display: flex; align-items: center; gap: 6px; min-height: 30px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--swatch-base); }
.theme-swatches i { width: 13px; height: 13px; border: 1px solid rgba(100, 100, 100, .12); border-radius: 50%; background: var(--swatch-primary); }
.theme-swatches i:nth-child(2) { background: var(--swatch-accent); }
.theme-swatches i:nth-child(3) { width: 22px; border-radius: 5px; background: linear-gradient(135deg, var(--swatch-primary), var(--swatch-accent)); }
.theme-choice-copy { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.theme-choice-copy strong { overflow: hidden; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.theme-choice-copy small { flex: 0 0 auto; color: var(--muted); font-size: .58rem; font-weight: 800; letter-spacing: .06em; }
.intro-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 182px; overflow: hidden; padding: 30px 34px; border-radius: 25px; color: #f5fbf8; background: radial-gradient(ellipse at 78% 0%, rgba(39, 153, 139, .42), transparent 44%), linear-gradient(112deg, #10252d 3%, #153940 61%, #18524f 100%); box-shadow: var(--shadow); }
.intro-bar::after { position: absolute; inset-inline-end: 38%; bottom: -78px; width: 270px; height: 150px; border: 1px solid rgba(175, 231, 214, .12); border-radius: 50%; content: ""; transform: rotate(-22deg); box-shadow: 0 -16px 0 -15px rgba(175,231,214,.18), 0 -32px 0 -31px rgba(175,231,214,.12); pointer-events: none; }
.intro-copy, .weather-panel { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.intro-bar .eyebrow { color: #8ee0d0; }
.intro-copy h2 { margin: 0; font: 700 clamp(1.8rem, 3vw, 2.8rem)/1.12 "Manrope", "DM Sans", sans-serif; letter-spacing: -.05em; }
.intro-subtitle { margin: 10px 0 0; color: rgba(244, 252, 248, .74); font-size: .96rem; }
.weather-panel { display: flex; align-items: center; gap: 13px; width: min(365px, 38%); min-width: 275px; padding: 17px 19px; border: 1px solid rgba(239, 255, 248, .13); border-radius: 17px; background: rgba(4, 24, 28, .37); box-shadow: inset 0 1px rgba(255,255,255,.07); backdrop-filter: blur(9px); }
.weather-icon-wrap { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 auto; border-radius: 16px; color: var(--amber); background: rgba(239, 185, 87, .13); }
.weather-icon-wrap svg { width: 38px; height: 38px; }
.weather-copy { min-width: 0; flex: 1; }
.weather-kicker { color: rgba(244,252,248,.64); font-size: .68rem; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; }
.weather-city { margin-top: 3px; overflow: hidden; color: #f7fbf9; font-size: 1rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.weather-condition { min-height: 18px; color: rgba(244,252,248,.75); font-size: .76rem; }
.weather-local-time { min-height: 14px; margin-top: 3px; color: rgba(244,252,248,.62); font-size: .66rem; font-variant-numeric: tabular-nums; }
.weather-temp { align-self: flex-start; color: #fff; font: 700 1.55rem/1.2 "Manrope", sans-serif; letter-spacing: -.05em; white-space: nowrap; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(320px, .83fr); align-items: start; gap: 22px; margin-top: 24px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.discovery-card { min-width: 0; padding: 25px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-heading .eyebrow { margin-bottom: 4px; }
.section-heading h2 { margin: 0; font: 700 1.38rem/1.25 "Manrope", "DM Sans", sans-serif; letter-spacing: -.035em; }
.live-badge, .signal-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface-soft); font-size: .69rem; font-weight: 700; white-space: nowrap; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #26a97d; box-shadow: 0 0 0 3px rgba(38,169,125,.12); }
.search-area { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); }
.location-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { color: var(--muted); font-size: .75rem; font-weight: 700; }
.field input, .field select, .country-picker { width: 100%; }
.field select, .field input { height: 44px; }
.city-search-controls { display: flex; align-items: center; gap: 6px; min-width: 0; }
.city-search-controls input { flex: 1; min-width: 0; width: 100%; }
.location-button { width: 44px; min-width: 44px; min-height: 44px; padding: 8px; color: var(--teal); }
.location-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.country-picker { position: relative; }
.select-like { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--surface); text-align: start; }
.select-like:hover { border-color: var(--teal); }
.select-like #cname { overflow: hidden; flex: 1; text-overflow: ellipsis; white-space: nowrap; }
.flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; }
.chevron { color: var(--muted); font-size: 1rem; }
.country-popover { position: absolute; z-index: 20; inset-inline: 0; top: calc(100% + 7px); padding: 9px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 18px 40px rgba(11, 39, 43, .2); }
.country-popover input { width: 100%; margin-bottom: 6px; }
#clist { max-height: 255px; overflow-y: auto; list-style: none; margin: 0; padding: 0; }
.copt { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 36px; padding: 6px 8px; border: 0; border-radius: 8px; color: var(--ink); background: transparent; text-align: start; font-size: .82rem; }
.copt:hover, .copt:focus-visible { background: var(--teal-soft); }
.station-search-row { display: flex; align-items: end; gap: 10px; margin-top: 13px; }
.station-search-field { flex: 1; }
.search-input-wrap { position: relative; }
.search-input-wrap input { width: 100%; padding-inline-start: 39px; }
.search-glyph { position: absolute; top: 50%; inset-inline-start: 13px; width: 13px; height: 13px; border: 2px solid currentColor; border-radius: 50%; color: var(--muted); transform: translateY(-60%); pointer-events: none; }
.search-glyph::after { position: absolute; width: 6px; height: 2px; inset-inline-end: -5px; bottom: -2px; border-radius: 2px; background: currentColor; content: ""; transform: rotate(45deg); }
.search-button { position: relative; min-width: 104px; }
.search-button .search-glyph { position: relative; inset: auto; width: 12px; height: 12px; color: currentColor; transform: none; }
.search-button .search-glyph::after { width: 5px; }
.search-tip { margin: 10px 0 0; color: var(--muted); font-size: .74rem; }
.station-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 21px 0 12px; }
.tabs { display: inline-flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
[role="tab"] { padding: 8px 11px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: .79rem; font-weight: 700; }
[role="tab"][aria-selected="true"] { color: #fff; background: var(--navy); box-shadow: 0 3px 7px rgba(14,38,43,.16); }
.library-actions { display: flex; gap: 6px; }
#list { display: flex; flex-direction: column; gap: 6px; height: min(45vh, 440px); min-height: 230px; overflow: auto; margin: 0; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); list-style: none; }
.item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 63px; padding: 10px 12px; border: 1px solid transparent; border-radius: 11px; color: var(--ink); background: var(--surface); text-align: start; transition: border-color .15s ease, transform .15s ease, background .15s ease; }
.item:hover { border-color: var(--line); transform: translateX(2px); }
[dir="rtl"] .item:hover { transform: translateX(-2px); }
.item[aria-current="true"] { border-color: rgba(8,126,121,.44); background: var(--teal-soft); }
.item .flag { width: 28px; height: 20px; }
.item span:not(.flag) { min-width: 0; }
.item strong { display: block; overflow: hidden; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.item small { display: block; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.empty-result { display: grid; place-items: center; flex: 1; min-height: 190px; padding: 24px; color: var(--muted); text-align: center; font-size: .88rem; }
.listening-column { min-width: 0; }
.player-card { position: sticky; top: 16px; isolation: isolate; overflow: hidden; padding: 23px; }
.player-card::before { position: absolute; z-index: 0; top: 0; inset-inline-start: 7%; width: 34%; height: 3px; border-radius: 999px; background: linear-gradient(90deg, transparent, var(--teal), var(--amber), transparent); box-shadow: 0 0 12px var(--teal); content: ""; opacity: 0; pointer-events: none; }
.player-card[data-state="playing"]::before { opacity: .9; animation: streaming-sweep 3.8s ease-in-out infinite alternate; }
.player-card > * { position: relative; z-index: 1; }
@keyframes streaming-sweep { from { inset-inline-start: 7%; opacity: .48; } to { inset-inline-start: 59%; opacity: 1; } }
.player-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.player-heading .eyebrow { margin: 0; }
.signal-pill { padding: 5px 8px; font-size: .65rem; }
.signal-bars { display: inline-flex; align-items: end; gap: 2px; height: 12px; }
.signal-bars i { width: 3px; border-radius: 4px; background: var(--teal); }
.signal-bars i:nth-child(1) { height: 5px; }
.signal-bars i:nth-child(2) { height: 9px; }
.signal-bars i:nth-child(3) { height: 12px; }
#player[data-state="playing"] .signal-bars i { transform-origin: bottom; box-shadow: 0 0 7px color-mix(in srgb, var(--teal) 70%, transparent); animation: signal-bounce .9s ease-in-out infinite alternate; }
#player[data-state="playing"] .signal-bars i:nth-child(2) { animation-delay: .2s; }
#player[data-state="playing"] .signal-bars i:nth-child(3) { animation-delay: .4s; }
@keyframes signal-bounce { from { transform: scaleY(.55); opacity: .68; } to { transform: scaleY(1); opacity: 1; } }
.now-playing-card { display: flex; align-items: center; gap: 14px; margin: 20px 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(120deg, var(--surface-soft), var(--surface)); }
.record-art { position: relative; display: grid; place-items: center; width: 68px; height: 68px; flex: 0 0 auto; border: 1px solid rgba(54,196,176,.55); border-radius: 50%; background: repeating-radial-gradient(circle at 50%, #14292e 0 2px, #1c3c40 3px 4px, #10252d 5px 7px); box-shadow: 0 8px 17px rgba(9,32,37,.22); animation: record-spin 11s linear infinite; animation-play-state: paused; }
#player:has(audio) .record-art { animation-play-state: paused; }
.record-label { width: 20px; height: 20px; border: 4px solid var(--amber); border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 0 5px rgba(239,185,87,.12); }
@keyframes record-spin { to { transform: rotate(360deg); } }
[data-state="playing"] .record-art { animation-play-state: running; }
#player[data-state="playing"] .record-art { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--teal) 44%, transparent)); }
.now-playing-copy { min-width: 0; flex: 1; }
.now-playing-label { color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
#np { overflow: hidden; margin-top: 3px; font: 700 1rem/1.35 "Manrope", sans-serif; letter-spacing: -.025em; text-overflow: ellipsis; }
#status { min-height: 18px; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: .73rem; text-overflow: ellipsis; }
.tuner-dial { min-width: 0; margin: -2px 0 16px; padding: 12px 13px 10px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(135deg, color-mix(in srgb, var(--teal-soft) 45%, var(--surface)), var(--surface)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.tuner-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tuner-label { color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.tuner-value { color: var(--amber); font: 800 .78rem/1.2 "IBM Plex Mono", "Courier New", monospace; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.tuner-dial[data-mode="fm"] .tuner-value { color: var(--teal); }
.tuner-track { position: relative; height: 22px; margin: 9px 2px 0; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 9%); direction: ltr; }
.tuner-track::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 1px; background: linear-gradient(90deg, var(--teal), var(--amber)); content: ""; opacity: .55; }
.tuner-needle { position: absolute; z-index: 1; bottom: 0; left: var(--dial-position, 50%); width: 2px; height: 20px; border-radius: 2px 2px 0 0; background: var(--amber); box-shadow: 0 0 9px color-mix(in srgb, var(--amber) 78%, transparent); transform: translateX(-50%); transition: left .42s cubic-bezier(.2,.75,.25,1); }
.tuner-needle::before { position: absolute; top: -2px; left: 50%; width: 6px; height: 6px; border: 1px solid var(--surface); border-radius: 50%; background: var(--amber); content: ""; transform: translateX(-50%); }
.tuner-dial:not([data-mode="fm"]) .tuner-needle { opacity: 0; }
.tuner-ticks { position: relative; height: 13px; color: var(--muted); font: 500 .57rem/1 "IBM Plex Mono", "Courier New", monospace; font-variant-numeric: tabular-nums; direction: ltr; }
.tuner-ticks span { position: absolute; top: 4px; left: var(--mark); transform: translateX(-50%); }
.tuner-ticks span:first-child { transform: none; }
.tuner-ticks span:last-child { transform: translateX(-100%); }
.tuner-caption { overflow: hidden; color: var(--muted); font-size: .65rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.transport-controls { display: flex; align-items: center; justify-content: center; gap: 8px; }
.transport-controls .button { min-height: 42px; }
.button-icon { width: 42px; min-width: 42px; padding: 8px; font-size: 0; }
#bPrev::before { content: "◀"; font-size: .78rem; }
#bNext::before { content: "▶"; font-size: .78rem; }
#bPlay::before { content: "▶"; font-size: .72rem; }
#bStop::before { content: "■"; font-size: .68rem; }
#bFav::before { content: "✦"; color: var(--amber); font-size: .8rem; }
#bPlay { min-width: 90px; }
#bStop { min-width: 66px; }
.favorite-button { min-width: 42px; padding-inline: 10px; color: var(--ink); }
.volume-control { display: flex; align-items: center; gap: 9px; margin-top: 18px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.volume-glyph { color: var(--teal); font-size: 1.15rem; }
#vol { width: 100%; height: 5px; accent-color: var(--teal); }
.voice-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; margin-top: 17px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.voice-copy { display: flex; flex-direction: column; gap: 2px; min-width: 130px; flex: 1; }
.voice-copy strong { font-size: .79rem; }
.voice-copy span { color: var(--muted); font-size: .68rem; }
.voice-controls { display: flex; gap: 5px; }
#heard { width: 100%; color: var(--muted); font-size: .72rem; }
.timer-details { margin-top: 15px; border-top: 1px solid var(--line); padding-top: 13px; }
.timer-details summary { color: var(--ink); cursor: pointer; font-size: .81rem; font-weight: 700; }
.timer-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; }
.timer-controls input[type="text"] { max-width: 120px; height: 35px; padding: 7px 9px; font-size: .78rem; }
.daily-toggle { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .73rem; }
.daily-toggle input { accent-color: var(--teal); }
.timer-status { margin-top: 8px; color: var(--muted); font-size: .72rem; }
.listening-note { margin: 12px 6px 0; color: var(--muted); font-size: .74rem; text-align: center; }
.site-footer { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; color: var(--muted); font-size: .72rem; }
.footer-mark { width: 20px; height: 20px; opacity: .8; }
.gate { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 22px; background: radial-gradient(ellipse at 70% 22%, rgba(39,153,139,.35), transparent 44%), linear-gradient(135deg, #0d2027, #153c40 72%, #18524f); }
.gate-card { display: flex; flex-direction: column; align-items: center; width: min(460px, 100%); padding: 42px 34px; border: 1px solid rgba(255,255,255,.15); border-radius: 24px; color: #f5fbf8; background: rgba(7, 24, 29, .62); box-shadow: 0 25px 80px rgba(0,0,0,.28); text-align: center; backdrop-filter: blur(12px); }
.gate-mark { width: 72px; height: 72px; margin-bottom: 18px; }
.gate-card .eyebrow { color: #8ee0d0; }
.gate-card h1 { margin: 0; font: 800 2rem/1.15 "Manrope", sans-serif; letter-spacing: -.05em; }
.gate-copy { max-width: 330px; margin: 12px 0 23px; color: rgba(244,252,248,.75); }
.gate-start { min-width: 150px; min-height: 48px; color: #112a30; background: var(--amber); box-shadow: 0 8px 22px rgba(239,185,87,.22); }
.gate-start:hover { background: #f4c66f; }
.gate-hint { margin: 18px 0 0; color: rgba(244,252,248,.55); font-size: .72rem; }
[dir="rtl"] body { font-family: "DM Sans", "Segoe UI", sans-serif; }
[dir="rtl"] .intro-copy, [dir="rtl"] .section-heading, [dir="rtl"] .field, [dir="rtl"] .now-playing-copy { text-align: right; }
[dir="rtl"] .search-input-wrap input { padding-inline: 39px 13px; }
[dir="rtl"] .volume-control { direction: rtl; }
@media (max-width: 1050px) {
  .app-shell { padding-inline: 24px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 15px; }
  .discovery-card, .player-card { padding: 19px; }
  .intro-bar { padding: 25px; }
}
@media (max-width: 820px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .listening-column { display: contents; }
  .player-card { position: static; }
  .intro-bar { align-items: flex-start; flex-direction: column; }
  .weather-panel { width: 100%; min-width: 0; max-width: 430px; }
}
@media (max-width: 560px) {
  .app-shell { padding: 17px 13px 22px; }
  .masthead { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 16px; }
  .top-tools { flex-wrap: wrap; width: 100%; }
  .top-tools .language-select { flex: 1; }
  .intro-bar { gap: 18px; min-height: 0; padding: 22px 18px; border-radius: 19px; }
  .intro-copy h2 { font-size: 1.75rem; }
  .weather-panel { padding: 12px; }
  .dashboard-grid { gap: 14px; margin-top: 14px; }
  .discovery-card, .player-card { padding: 15px; border-radius: 17px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .location-fields { grid-template-columns: 1fr; }
  .station-search-row { align-items: stretch; flex-direction: column; }
  .search-button { width: 100%; }
  .station-toolbar { align-items: flex-start; flex-direction: column; }
  .tabs { width: 100%; justify-content: space-between; }
  [role="tab"] { flex: 1; padding-inline: 5px; }
  .library-actions { width: 100%; }
  .library-actions .button { flex: 1; }
  #list { height: 330px; }
  .player-heading { align-items: flex-start; flex-direction: column; }
  .transport-controls { flex-wrap: wrap; }
  .favorite-button { flex: 1; }
  .voice-panel { align-items: flex-start; }
  .gate-card { padding: 32px 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
