:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #eef2ff;
    --surface-dark: #111827;
    --text: #111827;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #4f46e5;
    --brand-2: #0891b2;
    --brand-soft: #eef2ff;
    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, .07);
    --shadow-lg: 0 22px 60px rgba(15, 23, 42, .16);
    --radius: 22px;
    --player-h: 92px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    padding-bottom: env(safe-area-inset-bottom);
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.shell { width: min(1180px, calc(100% - 28px)); margin-inline: auto; }
.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; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 9999; background: #fff; color: #000; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(245, 247, 251, .9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, .8);
}
.header-inner { min-height: 72px; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; }
.brand { display: inline-flex; flex: 1 1 auto; align-items: center; gap: 11px; color: inherit; text-decoration: none; min-width: 0; }
.brand-mark {
    width: 42px; height: 42px; flex: 0 0 42px; border-radius: 14px; display: grid; place-items: center;
    color: #fff; font-weight: 900; font-size: 20px;
    background: linear-gradient(135deg, var(--brand), #22d3ee);
    box-shadow: 0 8px 20px rgba(79, 70, 229, .25);
}
.brand-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-size: 16px; letter-spacing: -.01em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.header-actions { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.icon-text-btn, .primary-small {
    min-height: 40px; border-radius: 12px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 800; cursor: pointer;
}
.icon-text-btn { display: inline-flex; align-items: center; gap: 7px; }
.icon-text-btn > span:first-child { color: #f59e0b; font-size: 18px; }
.badge-count { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px; background: #eef2ff; color: var(--brand); font-size: 11px; }
.primary-small { border-color: transparent; background: var(--surface-dark); color: #fff; }
.desktop-label { display: none; }

.menu-toggle > span:first-child { color: var(--text); font-size: 20px; line-height: 1; }
.category-menu-panel {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 95;
    width: min(330px, calc(100vw - 28px)); max-height: min(70vh, 620px); overflow-y: auto;
    padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
    box-shadow: var(--shadow-lg); overscroll-behavior: contain;
}
.category-menu-panel button {
    width: 100%; min-height: 42px; padding: 9px 11px; border: 0; border-radius: 11px;
    background: transparent; color: var(--text); text-align: left; font-size: 13px; font-weight: 780; cursor: pointer;
}
.category-menu-panel button:hover, .category-menu-panel button:focus-visible { background: var(--surface-soft); outline: none; }
.menu-group-title { display: block; padding: 10px 11px 5px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

.main-shell { padding-top: 24px; padding-bottom: 44px; }
.hero {
    position: relative; overflow: hidden;
    display: grid; gap: 22px;
    border-radius: 28px; padding: 28px 20px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(34, 211, 238, .38), transparent 32%),
        radial-gradient(circle at 10% 90%, rgba(99, 102, 241, .4), transparent 36%),
        linear-gradient(135deg, #0b1020 0%, #17203a 100%);
    box-shadow: var(--shadow-lg);
}
.hero::after { content: ""; position: absolute; width: 220px; height: 220px; right: -80px; bottom: -100px; border-radius: 50%; border: 42px solid rgba(255,255,255,.035); }
.hero-copy, .search-panel { position: relative; z-index: 1; min-width: 0; }
.eyebrow, .section-kicker { margin: 0 0 8px; color: #818cf8; font-size: 11px; line-height: 1; font-weight: 900; letter-spacing: .13em; }
.hero .eyebrow { color: #67e8f9; }
.hero h1 { margin: 0; max-width: 720px; font-size: clamp(30px, 7vw, 54px); line-height: 1.03; letter-spacing: -.045em; }
.hero-text { margin: 15px 0 0; max-width: 720px; color: #cbd5e1; line-height: 1.6; font-size: 15px; }
.search-panel { align-self: end; }
.search-box { height: 54px; display: flex; align-items: center; gap: 9px; border-radius: 17px; background: #fff; padding: 0 13px; color: #64748b; box-shadow: 0 10px 30px rgba(0,0,0,.14); }
.search-box > span { font-size: 25px; transform: rotate(-16deg); line-height: 1; }
.search-box input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; background: transparent; color: #0f172a; font-size: 15px; }
.search-box input::placeholder { color: #94a3b8; }
.clear-search { border: 0; background: transparent; color: #64748b; width: 34px; height: 34px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.quick-links { display: flex; flex-wrap: wrap; gap: 7px; overflow: visible; padding: 11px 1px 1px; }
.quick-links button { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: #e2e8f0; border-radius: 999px; padding: 8px 11px; font-size: 12px; font-weight: 750; cursor: pointer; }

.notice { margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; font-size: 13px; }
.radio-section { scroll-margin-top: 92px; margin-top: 34px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin: 0 2px 14px; }
.section-heading h2 { margin: 0; font-size: clamp(22px, 5vw, 30px); line-height: 1.1; letter-spacing: -.025em; }
.section-description { max-width: 720px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.section-count { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-weight: 800; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; }

.radio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.radio-card {
    min-width: 0; min-height: 164px; position: relative;
    display: flex; flex-direction: column; align-items: stretch;
    border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 13px;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.radio-card.is-playing { border-color: rgba(79,70,229,.55); box-shadow: 0 12px 30px rgba(79,70,229,.16); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.station-logo {
    width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; overflow: hidden;
    display: grid; place-items: center; background: linear-gradient(135deg,#e0e7ff,#cffafe); color: #312e81; font-size: 13px; font-weight: 900;
    border: 1px solid #e0e7ff;
}
.station-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.favorite-btn { width: 35px; height: 35px; border: 0; border-radius: 11px; background: #f8fafc; color: #94a3b8; font-size: 21px; line-height: 1; cursor: pointer; }
.favorite-btn.active { color: #f59e0b; background: #fffbeb; }
.station-name { margin: 11px 0 0; font-size: 14px; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; }
.station-meta { margin: 5px 0 11px; color: var(--muted); font-size: 10.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.favorite-sort-hint { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
#favoritesGrid .radio-card { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#favoritesGrid.is-reordering { cursor: grabbing; }
#favoritesGrid .radio-card.favorite-drag-source { visibility: hidden; }
.favorite-drag-ghost {
    position: fixed !important; margin: 0 !important; z-index: 1000 !important; pointer-events: none !important;
    opacity: .94; transform: scale(1.018); border-color: var(--brand) !important;
    box-shadow: 0 22px 46px rgba(15,23,42,.28) !important; transition: none !important;
}
.favorite-reorder-handle {
    position: absolute; top: 11px; left: 50%; transform: translateX(-50%); z-index: 5;
    width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 10px;
    display: grid; place-items: center; background: rgba(255,255,255,.94); color: #94a3b8;
    box-shadow: 0 4px 12px rgba(15,23,42,.08); cursor: grab; touch-action: none;
    -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.favorite-reorder-handle:active, .favorite-reorder-handle[aria-grabbed="true"] { cursor: grabbing; color: var(--brand); border-color: rgba(79,70,229,.35); background: var(--brand-soft); }
.favorite-reorder-handle span { pointer-events: none; font-size: 19px; line-height: 1; transform: translateY(-1px); }
.card-actions { margin-top: auto; display: flex; gap: 8px; align-items: center; }
.play-card-btn { flex: 1; min-width: 0; height: 39px; border: 0; border-radius: 12px; background: #eef2ff; color: #3730a3; font-weight: 900; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.radio-card.is-playing .play-card-btn { background: var(--surface-dark); color: #fff; }
.homepage-link { flex: 0 0 39px; width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 900; }

.show-more-btn { width: 100%; margin-top: 11px; min-height: 43px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: #334155; font-weight: 850; cursor: pointer; }
.collapsible-grid:not(.expanded) .radio-card:nth-child(n+3) { display: none; }
.empty-state { grid-column: 1 / -1; border: 1px dashed #cbd5e1; color: var(--muted); border-radius: 16px; padding: 22px; text-align: center; background: rgba(255,255,255,.55); font-size: 13px; }
.skeleton { min-height: 164px; border-radius: 18px; background: linear-gradient(90deg,#eef2f7 25%,#f8fafc 37%,#eef2f7 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { 0% { background-position: 100% 0 } 100% { background-position: 0 0 } }

.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; flex-direction: column; gap: 12px; }
.site-footer strong { font-size: 14px; }
.site-footer p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.footer-note { max-width: 560px; }
.listener-status { margin-top: 11px; display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--text); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.listener-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.12); }
.listener-status.is-unavailable { color: var(--muted); }
.listener-status.is-unavailable .listener-dot { background: #94a3b8; box-shadow: none; }

.player-shell {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    background: rgba(11,16,32,.97); color: #fff; border-top: 1px solid #2b3655;
    box-shadow: 0 -18px 50px rgba(2,6,23,.3);
    padding-bottom: env(safe-area-inset-bottom);
}
body.player-open { padding-bottom: calc(var(--player-visible-h, var(--player-h)) + 28px + env(safe-area-inset-bottom)); }
.player-inner { min-height: var(--player-h); display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; padding-top: 9px; padding-bottom: 9px; }
.now-playing { min-width: 0; display: flex; align-items: center; gap: 10px; }
.player-logo { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg,#6366f1,#22d3ee); color: #fff; font-size: 12px; font-weight: 900; }
.player-logo img { width: 100%; height: 100%; object-fit: cover; }
.player-copy { min-width: 0; display: flex; flex-direction: column; }
.live-label { color: #67e8f9; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.live-label i { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #22c55e; margin-right: 3px; box-shadow: 0 0 0 4px rgba(34,197,94,.12); }
.player-copy strong { margin-top: 4px; max-width: 100%; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-copy small { margin-top: 3px; color: #94a3b8; max-width: 100%; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-controls { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: center; gap: 12px; }
.round-control, .main-play, .close-player { border: 0; color: #fff; cursor: pointer; }
.round-control { width: 38px; height: 38px; border-radius: 50%; background: #222c46; font-size: 18px; }
.eq-control {
    min-width: 52px; height: 38px; padding: 0 10px; border: 1px solid #34415f; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    background: #222c46; color: #dbeafe; font-size: 11px; font-weight: 900; letter-spacing: .03em;
    cursor: pointer; transition: background .18s ease, border-color .18s ease, opacity .18s ease, transform .18s ease;
}
.eq-control-icon { font-size: 16px; line-height: 1; transform: rotate(90deg); }
.eq-control.available:not(:disabled) { background: #29345a; border-color: #6678c8; color: #eef2ff; }
.eq-control.available:not(:disabled):hover { transform: translateY(-1px); background: #33417a; }
.eq-control.active { background: linear-gradient(135deg,#4f46e5,#0891b2) !important; border-color: rgba(255,255,255,.45) !important; color: #fff !important; box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.eq-control:disabled { background: #151d30; border-color: #273149; color: #64748b; cursor: not-allowed; opacity: .58; }
.eq-control.checking:disabled { opacity: .78; }
.main-play { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0f172a; font-size: 19px; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.main-play span { margin-left: 2px; }
.main-play.playing span { margin-left: 0; }
.player-side { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 8px; }
.volume-wrap { display: none; align-items: center; gap: 8px; color: #94a3b8; }
.volume-wrap input { width: 90px; accent-color: #818cf8; }
.close-player { width: 34px; height: 34px; border-radius: 10px; background: transparent; color: #94a3b8; font-size: 23px; }


.eq-panel {
    position: fixed; left: 0; right: 0;
    bottom: calc(var(--player-visible-h, var(--player-h)) + env(safe-area-inset-bottom));
    z-index: 118; max-height: min(62vh, 520px); overflow-y: auto;
    background: rgba(255,255,255,.985); color: var(--text);
    border-top: 1px solid var(--line); box-shadow: 0 -16px 44px rgba(2,6,23,.18);
    overscroll-behavior: contain;
}
.eq-panel-inner { padding-top: 15px; padding-bottom: 16px; }
.eq-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.eq-panel-copy { min-width: 0; display: flex; flex-direction: column; }
.eq-kicker { margin: 0 0 3px; color: var(--brand); font-size: 9px; font-weight: 950; letter-spacing: .13em; }
.eq-panel-copy strong { font-size: 17px; letter-spacing: -.02em; }
.eq-panel-copy small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.eq-panel-actions { display: flex; align-items: center; gap: 9px; }
.eq-close { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--muted); font-size: 21px; cursor: pointer; }
.eq-power { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-size: 11px; font-weight: 900; cursor: pointer; user-select: none; }
.eq-power input { position: absolute; opacity: 0; pointer-events: none; }
.eq-power-track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #cbd5e1; transition: background .18s ease; }
.eq-power-track i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(15,23,42,.28); transition: transform .18s ease; }
.eq-power input:checked + .eq-power-track { background: #4f46e5; }
.eq-power input:checked + .eq-power-track i { transform: translateX(16px); }
.eq-power:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.eq-presets { margin-top: 13px; display: flex; gap: 7px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; }
.eq-presets button { flex: 0 0 auto; min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 850; cursor: pointer; }
.eq-presets button.active { background: var(--surface-dark); border-color: var(--surface-dark); color: #fff; }
.eq-presets button:disabled { opacity: .45; cursor: not-allowed; }
.eq-bands { margin-top: 13px; display: grid; grid-auto-flow: column; grid-auto-columns: 48px; justify-content: start; gap: 5px; overflow-x: auto; padding: 4px 2px 7px; scrollbar-width: thin; }
.eq-band { min-width: 48px; display: grid; grid-template-rows: 20px 122px 18px; justify-items: center; align-items: center; gap: 4px; color: var(--muted); font-size: 9px; font-weight: 850; }
.eq-band-value { color: var(--text); font-size: 9px; font-variant-numeric: tabular-nums; }
.eq-band input[type="range"] { width: 112px; height: 28px; margin: 0; transform: rotate(-90deg); accent-color: #4f46e5; cursor: ns-resize; }
.eq-band input:disabled { opacity: .42; cursor: not-allowed; }
.eq-band-frequency { font-size: 9px; }
.eq-note { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
body.eq-open .scroll-top { opacity: 0; pointer-events: none; }


.scroll-top {
    position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 135;
    width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.35); border-radius: 18px;
    display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
    box-shadow: 0 14px 30px rgba(15,23,42,.24), inset 0 1px 0 rgba(255,255,255,.24);
    font-size: 24px; font-weight: 900; line-height: 1; cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, bottom .2s ease;
}
.scroll-top:hover { transform: translateY(-2px); box-shadow: 0 17px 34px rgba(15,23,42,.28), inset 0 1px 0 rgba(255,255,255,.28); }
.scroll-top:active { transform: translateY(0) scale(.95); }
body.player-open .scroll-top { bottom: calc(var(--player-visible-h, var(--player-h)) + 20px + env(safe-area-inset-bottom)); }

.modal-backdrop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: end center; padding: 14px; background: rgba(2,6,23,.62); backdrop-filter: blur(5px); }
.modal { position: relative; width: min(100%, 520px); background: #fff; color: #0f172a; border-radius: 24px; padding: 25px 20px 20px; box-shadow: var(--shadow-lg); }
.modal h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.modal ol { margin: 18px 0 22px; padding-left: 21px; color: #475569; line-height: 1.55; font-size: 14px; }
.modal li + li { margin-top: 8px; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f5f9; color: #334155; font-size: 22px; cursor: pointer; }
.primary-wide { width: 100%; min-height: 46px; border: 0; border-radius: 14px; background: var(--surface-dark); color: #fff; font-weight: 900; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: calc(var(--player-h) + 22px + env(safe-area-inset-bottom)); z-index: 250; transform: translateX(-50%); width: min(90vw, 430px); padding: 12px 14px; border-radius: 13px; background: #0f172a; color: #fff; box-shadow: var(--shadow-lg); text-align: center; font-size: 12px; font-weight: 700; }
body:not(.player-open) .toast { bottom: calc(22px + env(safe-area-inset-bottom)); }

@media (max-width: 520px) {
    .player-controls { gap: 9px; }
    .eq-control { min-width: 49px; padding-inline: 8px; }
    .eq-panel { max-height: min(58vh, 470px); }
    .eq-panel-inner { width: min(100% - 24px, 1180px); }
    .eq-panel-copy strong { font-size: 15px; }
    .eq-power > span:last-child { display: none; }
    .scroll-top { right: 12px; width: 48px; height: 48px; border-radius: 16px; font-size: 22px; }
    .header-inner { gap: 8px; }
    .header-actions { gap: 6px; }
    .icon-text-btn, .primary-small { min-height: 38px; padding-inline: 9px; }
    .brand-copy small { display: none; }
    .brand-copy strong { font-size: 14px; white-space: nowrap; }
}

@media (max-width: 370px) {
    .brand-copy { display: none; }
}

@media (hover:hover) {
    .radio-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(15,23,42,.11); }
    .play-card-btn:hover { background: #e0e7ff; }
    .quick-links button:hover { background: rgba(255,255,255,.12); }
}

@media (min-width: 600px) {
    .desktop-label { display: inline; }
    .info-strip { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

@media (min-width: 768px) {
    .shell { width: min(1180px, calc(100% - 48px)); }
    .main-shell { padding-top: 32px; }
    .hero { grid-template-columns: minmax(0,1.3fr) minmax(320px,.7fr); align-items: end; padding: 38px; min-height: 330px; }
    .hero-text { font-size: 16px; }
    .radio-section { margin-top: 42px; }
    .radio-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
    .radio-card { min-height: 184px; padding: 16px; border-radius: 20px; }
    .station-logo { width: 56px; height: 56px; flex-basis: 56px; border-radius: 16px; }
    .station-name { font-size: 15px; margin-top: 13px; }
    .station-meta { font-size: 11px; }
    .collapsible-grid:not(.expanded) .radio-card:nth-child(n) { display: flex; }
    .collapsible-grid:not(.expanded) .radio-card:nth-child(n+5) { display: none; }
    .show-more-btn { width: auto; min-width: 150px; padding-inline: 18px; }
    .player-inner { min-height: 76px; grid-template-columns: minmax(230px,1fr) auto minmax(230px,1fr); }
    .player-controls { grid-column: 2; grid-row: 1; }
    .player-side { grid-column: 3; grid-row: 1; justify-content: flex-end; }
    .volume-wrap { display: flex; }
    :root { --player-h: 76px; }
    .modal-backdrop { place-items: center; }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #080d18;
        --surface: #121a2b;
        --surface-soft: #18213a;
        --text: #edf2ff;
        --muted: #9ba8c3;
        --line: #27324a;
        --brand-soft: #1d2448;
        --shadow-sm: 0 8px 24px rgba(0,0,0,.2);
    }
    .site-header { background: rgba(8,13,24,.88); border-color: rgba(39,50,74,.8); }
    .icon-text-btn { background: #121a2b; }
    .badge-count, .play-card-btn { background: #1d2448; color: #a5b4fc; }
    .favorite-btn { background: #1a2337; }
    .favorite-reorder-handle { background: rgba(18,26,43,.96); color: #7f8ca6; border-color: #2b3852; }
    .favorite-reorder-handle:active, .favorite-reorder-handle[aria-grabbed="true"] { background: #1d2448; color: #a5b4fc; border-color: #465680; }
    .favorite-btn.active { background: #332b19; }
    .homepage-link { color: #9ba8c3; }
    .notice { background: #3b2815; border-color: #70461c; color: #fdba74; }
    .site-footer { background: #0d1422; }
    .modal { background: #121a2b; color: #edf2ff; }
    .modal ol { color: #b8c2d8; }
    .modal-close { background: #202a3f; color: #dbeafe; }
    .eq-panel { background: rgba(13,20,34,.985); border-color: #27324a; }
    .eq-close, .eq-presets button { background: #18213a; border-color: #2b3852; }
    .eq-power-track { background: #334155; }
    .skeleton { background: linear-gradient(90deg,#121a2b 25%,#1b2539 37%,#121a2b 63%); background-size:400% 100%; }
    .empty-state { background: rgba(18,26,43,.65); border-color:#34415c; }
}
