/* ============================================
   RADIO — Premium Black & White High Contrast
   Fonts: Syne (display) + Space Grotesk (body)
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --bg-primary: #000000;
    --bg-secondary: #0A0A0A;
    --bg-card: #111111;
    --bg-card-hover: #1A1A1A;
    --bg-elevated: #161616;
    --bg-input: #0D0D0D;
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --text-muted: #666666;
    --text-dim: #444444;
    --border: #1E1E1E;
    --border-hover: #333333;
    --accent: #FFFFFF;
    --accent-soft: rgba(255,255,255,0.08);
    --accent-medium: rgba(255,255,255,0.12);
    --accent-strong: rgba(255,255,255,0.18);
    --shadow: 0 4px 24px rgba(0,0,0,0.6);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.8);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --sidebar-width: 68px;
    --np-width: 280px;
    --font-display: 'Syne', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme */
.light {
    --bg-primary: #FAFAFA;
    --bg-secondary: #F0F0F0;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F5F5F5;
    --bg-elevated: #FFFFFF;
    --bg-input: #F0F0F0;
    --text-primary: #0A0A0A;
    --text-secondary: #333333;
    --text-muted: #888888;
    --text-dim: #BBBBBB;
    --border: #E0E0E0;
    --border-hover: #CCCCCC;
    --accent: #000000;
    --accent-soft: rgba(0,0,0,0.05);
    --accent-medium: rgba(0,0,0,0.08);
    --accent-strong: rgba(0,0,0,0.12);
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

::-webkit-scrollbar { width: 0; height: 0; }
* { scrollbar-width: none; }

.hidden { display: none !important; }

/* --- Splash Screen --- */
.splash {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    overflow: hidden;
    animation: splashFade 0.6s ease 2.2s forwards;
}

.light .splash { background: #fff; }

@keyframes splashFade {
    to { opacity: 0; pointer-events: none; }
}

.splash-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.splash-logo {
    position: relative;
    margin-bottom: 40px;
    animation: splashLogoIn 0.8s ease 0.2s both;
}

@keyframes splashLogoIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.splash-logo-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 128px;
    height: 128px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(255,255,255,0.12);
}

.splash-logo-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fff 0%, #999 50%, #333 100%);
    z-index: 0;
}

.splash-logo-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.splash-logo-text {
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.06em;
    color: #000;
    font-size: 180%;
    text-shadow: 0 4px 4px rgba(0,0,0,0.2);
}

.splash-bars {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 3px;
    margin-top: 4px;
    justify-content: center;
    width: 100%;
    position: absolute;
    bottom: 18px;
}

.splash-bar {
    width: 3px;
    background: #000;
    border-radius: 4px;
    animation: splashBarAnim 1.2s ease-in-out infinite alternate;
}

.splash-bar:nth-child(1) { height: 14px; animation-delay: 0s; }
.splash-bar:nth-child(2) { height: 10px; animation-delay: 0.15s; }
.splash-bar:nth-child(3) { height: 7px; animation-delay: 0.3s; }

@keyframes splashBarAnim {
    from { transform: scaleY(1); }
    to { transform: scaleY(1.6); }
}

.splash-title-wrap {
    text-align: center;
    animation: splashTextIn 0.8s ease 0.5s both;
}

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

.splash-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.05em;
    font-size: 2.5rem;
    color: #fff;
}

.light .splash-title { color: #000; }

.splash-sub {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: splashSubIn 0.8s ease 0.7s both;
}

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

.splash-tagline {
    font-family: var(--font-body);
    color: #ccc;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.light .splash-tagline { color: #555; }

.splash-divider {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #888, transparent);
    border-radius: 2px;
}

.splash-muted {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    opacity: 0.8;
}

.splash-loader {
    position: absolute;
    bottom: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: splashSubIn 0.8s ease 0.9s both;
}

.splash-dots {
    display: flex;
    gap: 6px;
}

.splash-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: splashDot 1.4s ease-in-out infinite;
}

.light .splash-dot { background: #000; }

.splash-dot:nth-child(2) { animation-delay: 0.2s; }
.splash-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes splashDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

.splash-load-text {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #666;
}

/* --- App Layout --- */
.app {
    display: flex;
    height: 100vh;
    width: 100vw;
    background: var(--bg-primary);
    animation: appIn 0.5s ease 2.4s both;
}

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

/* --- Sidebar Rail --- */
.sidebar-rail {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    background: var(--bg-primary);
    border-right: 1px solid var(--border);
    z-index: 20;
}

.sidebar-logo {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(255,255,255,0.08);
    transition: var(--transition);
    flex-shrink: 0;
}

.sidebar-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(255,255,255,0.14);
}

.logo-bg, .logo-bg-small {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fff 0%, #aaa 50%, #444 100%);
    z-index: 0;
}

.logo-glass {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.logo-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.15);
    transform: rotate(45deg);
    filter: blur(16px);
    z-index: 1;
    pointer-events: none;
}

.logo-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
    z-index: 1;
}

.logo-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: ringPulse 4s ease-in-out infinite;
}

.logo-ring-2 {
    border-width: 1px;
    animation-delay: 0.5s;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1.3); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 0.6; }
}

.logo-content, .header-logo-small {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.06em;
    color: #000;
    font-size: 130%;
    text-shadow: 0 3px 3px rgba(0,0,0,0.2);
}

.header-logo-small {
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    font-size: 14px;
    color: #000;
    letter-spacing: -0.04em;
}

.header-logo-small span {
    position: relative;
    z-index: 2;
}

.logo-bars {
    display: flex;
    gap: 2px;
    margin-top: 2px;
}

.logo-bar {
    width: 2px;
    background: #000;
    border-radius: 4px;
    animation: barAnim 0.8s ease-in-out infinite alternate;
}

.logo-bar:nth-child(1) { height: 8px; }
.logo-bar:nth-child(2) { height: 6px; animation-delay: 0.1s; }
.logo-bar:nth-child(3) { height: 4px; animation-delay: 0.2s; }

@keyframes barAnim {
    from { transform: scaleY(1); }
    to { transform: scaleY(1.4); }
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-btn:hover {
    color: var(--text-primary);
    background: var(--accent-soft);
}

.nav-btn.active {
    color: var(--text-primary);
}

.nav-btn.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}

/* --- Main Viewport --- */
.main-viewport {
    flex: 1;
    height: 100vh;
    overflow: hidden;
    min-width: 0;
}

.main-scroll {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding: 24px 16px 0;
}

@media (min-width: 768px) {
    .main-scroll { padding: 24px 24px 0; }
}
@media (min-width: 1024px) {
    .main-scroll { padding: 28px 32px 0; }
}

/* --- Header --- */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo-small {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.header-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.05em;
    font-size: 1.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-date, .header-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.header-sep {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.theme-toggle {
    background: var(--accent-soft);
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--accent-medium);
    border-color: var(--border-hover);
}

.icon-moon { display: none; }
.light .icon-sun { display: none; }
.light .icon-moon { display: block; }

/* --- Section Headers --- */
.section-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.station-count {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.08em;
}

/* --- Genre Pills --- */
.genre-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 20px;
    margin-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.genre-pills::-webkit-scrollbar { display: none; }

.genre-pill {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.genre-pill:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--accent-soft);
}

.genre-pill.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: 600;
}

.light .genre-pill.active {
    color: #fff;
}

/* --- Stations Grid --- */
.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .stations-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
}

/* --- Station Card --- */
.station-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.station-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-soft), transparent);
    opacity: 0;
    transition: var(--transition);
}

.station-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.station-card:hover::before {
    opacity: 1;
}

.station-card.playing {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 1px var(--text-primary), var(--shadow);
}

.station-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.station-emoji {
    font-size: 1.4rem;
    line-height: 1;
}

.station-live {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 100px;
    background: var(--text-primary);
    color: var(--bg-primary);
    animation: livePulse 2s ease-in-out infinite;
}

.light .station-live {
    background: var(--bg-primary);
    color: var(--text-primary);
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.station-live-dot {
    width: 4px;
    height: 4px;
    background: #FF3B30;
    border-radius: 50%;
    animation: liveDot 1.5s ease-in-out infinite;
}

.light .station-live-dot { background: #FF3B30; }

@keyframes liveDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.station-info {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.station-freq {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.station-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    line-height: 1.3;
}

.station-card-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
    gap: 6px;
    margin-top: auto;
}

.station-action {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.station-action:hover {
    color: var(--text-primary);
    background: var(--accent-soft);
}

.station-action.favorited svg {
    fill: var(--text-primary);
    color: var(--text-primary);
}

/* --- See All Button --- */
.see-all-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.see-all-btn {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    background: none;
    border: 1px solid var(--border);
    padding: 12px 32px;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
}

.see-all-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--accent-soft);
}

/* --- Now Playing Sidebar --- */
.now-playing {
    width: var(--np-width);
    min-width: var(--np-width);
    height: 100vh;
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px 24px;
    gap: 8px;
    z-index: 20;
    overflow-y: auto;
}

.np-icon {
    opacity: 0.4;
    margin-bottom: 12px;
}

.np-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.np-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 16px;
}

/* Visualizer */
.np-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 40px;
    margin: 16px 0 24px;
}

.viz-bar {
    width: 4px;
    background: var(--text-primary);
    border-radius: 4px;
    animation: vizBar 0.6s ease-in-out infinite alternate;
}

.viz-bar:nth-child(1) { height: 12px; animation-delay: 0s; }
.viz-bar:nth-child(2) { height: 24px; animation-delay: 0.1s; }
.viz-bar:nth-child(3) { height: 36px; animation-delay: 0.2s; }
.viz-bar:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.viz-bar:nth-child(5) { height: 28px; animation-delay: 0.15s; }

@keyframes vizBar {
    from { transform: scaleY(0.4); }
    to { transform: scaleY(1); }
}

/* Controls */
.np-progress {
    width: 100%;
    height: 3px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.np-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--text-primary);
    border-radius: 4px;
    animation: progressAnim 8s linear infinite;
}

@keyframes progressAnim {
    from { width: 0%; }
    to { width: 100%; }
}

.np-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.np-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.np-btn:hover {
    color: var(--text-primary);
    background: var(--accent-soft);
}

.play-btn {
    width: 52px;
    height: 52px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.light .play-btn {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}

.light .play-btn:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.np-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    color: var(--text-muted);
}

.np-volume-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    background: var(--border);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.np-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.np-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.np-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--text-primary);
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

/* --- Search --- */
.search-container {
    margin-bottom: 20px;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    transition: var(--transition);
}

.search-input-wrap:focus-within {
    border-color: var(--border-hover);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-input-wrap svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
}

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

.search-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.search-clear:hover { color: var(--text-primary); }

/* --- Empty State --- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    gap: 12px;
}

.empty-state p {
    font-size: 0.9rem;
    font-weight: 500;
}

.empty-sub {
    font-size: 0.8rem !important;
    color: var(--text-dim) !important;
}

/* --- Settings --- */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: var(--bg-card);
}

.settings-info h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.settings-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.settings-btn {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.settings-btn:hover {
    border-color: var(--border-hover);
    background: var(--accent-soft);
}

.settings-btn.danger {
    color: #FF3B30;
    border-color: rgba(255,59,48,0.2);
}

.settings-btn.danger:hover {
    background: rgba(255,59,48,0.08);
    border-color: rgba(255,59,48,0.4);
}

.volume-slider {
    width: 100px;
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    background: var(--border);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--text-primary);
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

/* --- Footer --- */
.app-footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border);
    margin-top: 24px;
}

.footer-top {
    margin-bottom: 32px;
}

.footer-heading {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-link {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.footer-link:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--accent-soft);
}

.footer-bottom {
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* --- Modal --- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    width: 90%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.modal-content h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.modal-content > p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.share-link-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.share-link-wrap input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.82rem;
    outline: none;
}

.share-link-wrap button {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--text-primary);
    color: var(--bg-primary);
    cursor: pointer;
    transition: var(--transition);
}

.light .share-link-wrap button {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.share-link-wrap button:hover {
    opacity: 0.85;
}

.modal-close {
    width: 100%;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.82rem;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--accent-soft);
    color: var(--text-primary);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
        --np-width: 0px;
    }

    .sidebar-rail {
        display: none;
    }

    .now-playing {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        min-width: 100%;
        height: auto;
        border-left: none;
        border-top: 1px solid var(--border);
        padding: 16px 20px;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        z-index: 50;
    }

    .np-icon { display: none; }
    .np-visualizer { margin: 0; height: 24px; }
    .viz-bar { width: 3px; }
    .np-controls { flex: 1; }
    .np-progress { margin-bottom: 8px; }
    .np-buttons { margin-bottom: 0; gap: 10px; }
    .play-btn { width: 40px; height: 40px; }
    .np-volume { display: none; }
    .np-sub { display: none; }
    .np-title { font-size: 0.85rem; }

    .stations-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }

    .main-scroll {
        padding-bottom: 120px;
    }

    .app-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-date, .header-sep, .header-time {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .stations-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .station-card { padding: 12px; }
    .station-name { font-size: 0.85rem; }
    .genre-pill { padding: 6px 14px; font-size: 0.78rem; }
}

/* --- Page transitions --- */
.page {
    animation: pageIn 0.3s ease;
}

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

/* --- Station card stagger --- */
.station-card {
    animation: cardIn 0.4s ease both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}