:root {
    --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --page-grad: radial-gradient(130% 120% at 70% 15%, #18082e 0%, #0a030f 40%, #030108 70%, #000000 100%);

    --glass-bg: rgba(255, 255, 255, 0.065);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(40px) saturate(130%);

    --pill-bg: rgba(255, 255, 255, 0.08);
    --pill-border: rgba(255, 255, 255, 0.1);

    --text: #f5f3ff;
    --text-muted: #b8aede;
    --text-faint: #8d83b8;

    --accent: #a78bfa;
    --accent-2: #7c3aed;
    --danger: #f87171;
    --live: #f87171;

    --radius-panel: 34px;
    --radius-art: 24px;
    --radius-pill: 999px;
    --radius-row: 16px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font-base);
    color: var(--text);
    background: #000;
    position: relative;
    overflow-x: hidden;
}

a {
    color: var(--accent);
}

button {
    font-family: inherit;
}

button:focus-visible,
input:focus-visible,
[role="option"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Background decor: animated blur orbs */

.bg-decor {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--page-grad);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.3;
    animation: orbfloat 26s ease-in-out infinite;
}

.orb-1 {
    width: 420px;
    height: 420px;
    background: #7c3aed;
    top: -120px;
    right: -80px;
}

.orb-2 {
    width: 360px;
    height: 360px;
    background: #db2777;
    top: 38%;
    right: 6%;
    animation-delay: -9s;
}

.orb-3 {
    width: 360px;
    height: 360px;
    background: #4c1d95;
    bottom: -140px;
    left: 4%;
    animation-delay: -18s;
}

@keyframes orbfloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.12); }
}

/* Shared nav */

.home-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
}

.home-logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.home-logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.home-nav-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.home-nav-fav {
    border-color: var(--glass-border);
    border-radius: 50%;
    background: var(--pill-bg);
}

.home-nav-fav:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
}

.home-nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-nav-fav {
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    justify-content: center;
}

.home-nav-fav svg {
    width: 18px;
    height: 18px;
}

.home-nav-fav:hover {
    color: #f472b6;
}

.lang-switcher {
    position: relative;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.7rem;
    cursor: default;
    border: none;
    border-radius: 0;
    background: transparent;
}

.lang-current {
    display: block;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: rgba(30, 12, 60, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.35rem 0;
    min-width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    backdrop-filter: blur(20px);
    white-space: nowrap;
    z-index: 100;
}

.lang-switcher:hover .lang-dropdown,
.lang-switcher.is-open .lang-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.lang-alt {
    display: block;
    padding: 0.35rem 0.8rem;
    color: inherit;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: background 0.12s;
}

.lang-alt:hover {
    background: rgba(255, 255, 255, 0.08);
}

.home-nav-theme {
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    border: none;
    border-radius: 0;
    background: transparent;
    line-height: 0;
    -webkit-appearance: none;
    appearance: none;
}

/* Shared footer */

.home-footer {
    text-align: center;
    padding: 2rem 1.5rem 3rem;
    font-size: 0.8rem;
    color: var(--text-faint);
}

.footer-links {
    margin-bottom: 0.6rem;
}

.footer-link {
    background: none;
    border: none;
    font: inherit;
    font-size: inherit;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
}

.footer-link:hover {
    color: var(--accent);
}

.footer-sep {
    margin: 0 0.4rem;
    color: var(--text-faint);
}

.home-footer a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.home-footer a:hover {
    color: var(--accent);
}

/* Legal modal */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 1.5rem;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-panel {
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    background: rgba(18, 8, 40, 0.95);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: modalSlideUp 0.25s ease;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    color: var(--text);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: color 0.15s;
}

.modal-close:hover {
    color: var(--accent);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.modal-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 1.2rem 0 0.4rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    margin: 0 0 0.7rem;
}

.modal-body ul {
    margin: 0 0 0.7rem;
    padding-left: 1.2rem;
}

.modal-body li {
    margin-bottom: 0.3rem;
}

.modal-body strong {
    color: var(--text);
}

/* Layout */

.app-shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

.app-layout {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-panel);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 0 0.5px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.13);
    padding: 22px;
}

.player-panel {
    flex: 1 1 420px;
    max-width: 460px;
}

.list-panel {
    flex: 1 1 360px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    max-height: 600px;
    
}

/* Extension CTA */

.ext-cta-section {
    flex-basis: 100%;
    text-align: center;
    padding: 1.5rem 0 0;
}

.ext-coming {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.8rem;
}

.ext-cta-row {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.ext-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.8rem;
    border-radius: 5px;
    background: var(--glass-bg);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: default;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.ext-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* Player top section (artwork + info) */

.player-top {
    display: block;
}

/* Player top bar */

.player-topbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    row-gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    border-radius: var(--radius-pill);
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    line-height: 1.2;
}

.flag {
    font-size: 1.05em;
    line-height: 1;
}

/* Country picker */

.country-picker {
    position: relative;
}

.country-trigger {
    cursor: pointer;
    font: inherit;
}

.fav-picker-icon {
    width: 16px;
    height: 16px;
    display: block;
}

.country-trigger .chevron {
    width: 14px;
    height: 14px;
    margin-left: 0.1rem;
    transition: transform 0.2s ease;
}

.country-picker.is-open .chevron {
    transform: rotate(180deg);
}

.country-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    margin: 0;
    padding: 6px;
    min-width: 200px;
    max-height: 240px;
    overflow-y: auto;
    list-style: none;
    background: rgba(12, 6, 22, 0.96);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
}

.country-list[hidden] {
    display: none;
}

.country-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.country-list li:hover,
.country-list li.is-active {
    background: rgba(255, 255, 255, 0.1);
}

/* Expandable search field */

.search-box {
    display: flex;
    align-items: center;
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    border-radius: var(--radius-pill);
    overflow: hidden;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.search-box:focus-within {
    border-color: var(--accent);
}

.search-toggle {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
}

.search-toggle svg {
    width: 17px;
    height: 17px;
}

.search-toggle:hover {
    color: var(--accent);
}

.search-input {
    width: 0;
    min-width: 0;
    padding: 0;
    border: none;
    background: none;
    color: var(--text);
    font: inherit;
    opacity: 0;
    transition: width 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
}

.search-box.is-open .search-input {
    width: 150px;
    opacity: 1;
    padding: 0 0.8rem 0 0;
    text-transform: uppercase;
}

.search-input::placeholder {
    color: var(--text-faint);
}

.search-input:focus {
    outline: none;
}

/* Live badge */

.live-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    border-radius: var(--radius-pill);
    padding: 0.45rem 0.85rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--text-faint);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live);
    opacity: 0.35;
}

.live-badge.is-live {
    color: var(--live);
}

.live-badge.is-live .live-dot {
    opacity: 1;
    animation: livepulse 1.6s ease-in-out infinite;
}

@keyframes livepulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.55); }
    50% { box-shadow: 0 0 0 6px rgba(248, 113, 113, 0); }
}

/* Album art */

.album-art {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-art);
    overflow: hidden;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, var(--art-color-1, var(--accent)), var(--art-color-2, var(--accent-2)));
}

.album-favicon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-initials {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-logo-fallback {
    height: auto;
    display: block;
    opacity: 0.85;
}

.like-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 8, 38, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: color 0.15s ease, transform 0.15s ease;
}

.like-btn svg {
    width: 18px;
    height: 18px;
}

.like-btn:hover {
    transform: scale(1.06);
}

.like-btn.is-liked {
    color: #f472b6;
}

.like-btn.is-liked svg path {
    fill: currentColor;
}

/* Station info */

.station-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 18px;
}

.station-text {
    min-width: 0;
}

.station-name {
    margin: 0 0 0.2rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-meta {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    word-break: break-word;
}

.station-hint {
    margin: 0.3rem 0 0;
    font-size: 0.75rem;
    color: var(--text-faint);
}

/* Equalizer */

.equalizer {
    position: relative;
    height: 52px;
    margin-bottom: 10px;
    overflow: hidden;
}

.equalizer canvas {
    display: block;
}

@keyframes eqbar {
    0%, 100% { transform: scaleY(0.12); }
    50% { transform: scaleY(1); }
}

/* Elapsed time */

.time-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* Playback controls */

.controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 18px;
}

.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.control-btn svg {
    width: 35px;
    height: 35px;
}

.control-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.play-btn {
    width: 100px;
    height: 100px;
    background: linear-gradient(140deg, #f472b6, #db2777);
    box-shadow: 0 14px 34px -10px rgba(219, 39, 119, 0.65);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.play-btn svg {
    width: 60px;
    height: 60px;
}

.play-btn .icon-play  { display: block; }
.play-btn .icon-pause { display: none; }
.play-btn .icon-sad   { display: none; }
.play-btn.is-playing .icon-play  { display: none; }
.play-btn.is-playing .icon-pause { display: block; }
.play-btn.is-error .icon-play { display: none; }
.play-btn.is-error .icon-sad  { display: block; }
.play-btn.is-error {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    opacity: 0.7;
}

.play-btn.is-buffering {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.play-btn.is-streaming {
    background: linear-gradient(140deg, var(--accent), var(--accent-2));
    box-shadow: 0 14px 34px -10px rgba(124, 58, 237, 0.75);
}

.play-btn:hover:not(:disabled) {
    filter: brightness(1.08);
}

.play-btn:disabled {
    opacity: 0.45;
}

/* Volume */

.volume-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.volume-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-muted);
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--volume-pct, 80%), rgba(255, 255, 255, 0.15) var(--volume-pct, 80%), rgba(255, 255, 255, 0.15) 100%);
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.volume-slider::-moz-range-progress {
    height: 4px;
    border-radius: 2px;
    background: var(--accent);
}

.volume-slider::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.15);
}

.volume-value {
    width: 2.4ch;
    flex-shrink: 0;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* Station list */

.list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 12px;
}

.list-header-left {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
}

.list-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.list-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.station-list-wrap {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    margin: 0 -22px;
    padding: 0 22px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade-top, 0px), #000 calc(100% - var(--fade-bottom, 28px)), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade-top, 0px), #000 calc(100% - var(--fade-bottom, 28px)), transparent 100%);
}

.station-list-wrap::-webkit-scrollbar {
    width: 6px;
}

.station-list-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.station-list-wrap::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.station-list {
    list-style: none;
    margin: 0;
    padding: 2px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.country-group-header {
    padding: 0.6rem 0.5rem 0.2rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-faint);
    letter-spacing: 0.04em;
}

.country-group-header:not(:first-child) {
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1rem;
}

.station-list .status {
    padding: 2rem 0.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.list-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.list-spinner {
    width: 28px;
    height: 28px;
    border: 2.5px solid rgba(167,139,250,0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.list-retry {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2.5rem 0.5rem;
    text-align: center;
}

.list-retry p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.retry-btn {
    padding: 0.45rem 1.2rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    background: var(--pill-bg);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.retry-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--accent);
}

.station-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-row);
    padding: 0.55rem 0.75rem;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.station-row:hover {
    background: rgba(255, 255, 255, 0.09);
}

.station-row.is-current {
    background: rgba(167, 139, 250, 0.18);
    border-color: rgba(167, 139, 250, 0.45);
}

.station-row .thumb {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, var(--thumb-color-1, var(--accent)), var(--thumb-color-2, var(--accent-2)));
    font-size: 0.85rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
}

.station-row .thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.station-row .info {
    flex: 1;
    min-width: 0;
}

.station-row .name {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-row .meta {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-eq {
    display: none;
    align-items: center;
    gap: 2px;
    height: 16px;
    flex-shrink: 0;
}

.station-row.is-current .row-eq {
    display: flex;
}

.row-eq span {
    width: 3px;
    height: 100%;
    border-radius: 1px;
    background: var(--accent);
    transform: scaleY(0.3);
    animation: eqbar 0.9s ease-in-out infinite;
    animation-play-state: paused;
}

.station-list.is-playing .row-eq span {
    animation-play-state: running;
}

.fav-indicator {
    display: none;
    flex-shrink: 0;
    color: #f472b6;
    margin-right: 2px;
}

.fav-indicator svg {
    width: 14px;
    height: 14px;
    display: block;
}

.has-favorite .fav-indicator {
    display: block;
}

.station-row.is-current .fav-indicator {
    display: none;
}

/* Responsive */

@media (max-width: 860px) {
    .app-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .player-panel {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        flex: none;
    }

    .list-panel {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        flex: none;
    }

    .station-list-wrap {
        max-height: 55vh;
    }

    /* Compact player: thumbnail left, info right */

    .player-top {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 14px;
    }

    .player-top .album-art {
        width: 100px;
        height: 100px;
        aspect-ratio: auto;
        flex-shrink: 0;
        margin-bottom: 0;
        border-radius: 14px;
    }

    .player-top .album-initials {
        font-size: 2rem;
    }

    .player-top .station-info {
        flex: 1;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        margin-bottom: 0;
    }

    .player-top .station-name {
        font-size: 1.85rem;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .play-btn {
        width: 100px;
        height: 100px;
    }

    .play-btn svg {
        width: 40px;
        height: 40px;
    }

    .controls-row {
        gap: 1.2rem;
    }

    .like-btn { top: 5px; right: 5px; width: 25px; height: 25px; }
}

@media (max-width: 480px) {
    .app-shell {
        padding: 1.5rem 1rem 2rem;
    }

    .panel {
        padding: 16px;
        border-radius: 24px;
    }

    .controls-row {
        gap: 1rem;
    }

    .live-badge span:last-child {
        display: none;
    }

    .search-box.is-open .search-input {
        width: 110px;
    }
}
