/* ============================================
   FM Radio World - AI-Themed Saffron Design
   Contemporary Glassmorphism Dark Theme
   ============================================ */

:root {
    --bg-main: #0C0F1A;
    --bg-sidebar: rgba(17, 24, 39, 0.88);
    --bg-card: rgba(26, 31, 46, 0.65);
    --bg-card-hover: rgba(34, 40, 56, 0.75);
    --bg-surface: #0E1220;
    --bg-input: rgba(28, 32, 48, 0.7);
    --bg-player: rgba(17, 24, 39, 0.92);
    --text-primary: #F0ECE3;
    --text-secondary: #9B9590;
    --text-muted: #5C5550;
    --accent: #FF8C00;
    --accent-hover: #FFA726;
    --accent-glow: rgba(255, 140, 0, 0.35);
    --accent-glow-soft: rgba(255, 140, 0, 0.08);
    --accent-glow-med: rgba(255, 140, 0, 0.14);
    --accent-gradient: linear-gradient(135deg, #FF8C00, #FFA726);
    --accent-gradient-vivid: linear-gradient(135deg, #FF6F00, #FFB300);
    --glass-bg: rgba(26, 31, 46, 0.55);
    --glass-border: rgba(255, 180, 100, 0.1);
    --glass-blur: blur(20px);
    --teal: #FFB74D;
    --blue: #42A5F5;
    --pink: #FF7043;
    --orange: #FF9800;
    --purple: #CE93D8;
    --red: #EF5350;
    --gold: #FFB300;
    --coral: #FF7043;
    --border: rgba(255, 180, 100, 0.06);
    --border-light: rgba(255, 180, 100, 0.12);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50%;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 240px;
    --player-height: 72px;
    --topbar-height: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-text, .section-title, .hero-stat-value {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2A2520; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3A352F; }

/* ========== Sidebar ========== */
.sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--glass-border);
    display: flex; flex-direction: column;
    z-index: 100; transition: var(--transition);
}

.sidebar-header { padding: 24px 20px 20px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 30px; color: var(--accent); filter: drop-shadow(0 0 8px var(--accent-glow)); }
.logo-text { font-size: 22px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.5px; }
.sidebar-close { display: none; color: var(--text-secondary); padding: 4px; }

.sidebar-nav { flex: 1; padding: 4px 12px; overflow-y: auto; overflow-x: visible; }

.nav-item {
    display: flex; align-items: center; gap: 14px;
    padding: 11px 16px; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 14px; font-weight: 500;
    transition: var(--transition); margin-bottom: 2px;
    position: relative;
}
.nav-item:hover { color: var(--text-primary); background: rgba(255, 140, 0, 0.04); }
.nav-item.active { color: var(--accent); background: var(--accent-glow-soft); }
.nav-item.active::before {
    content: '';
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 60%;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px var(--accent-glow);
}
.nav-item .material-icons-round { font-size: 20px; }
.nav-divider { height: 1px; background: var(--border); margin: 12px 16px; }

.sidebar-footer { padding: 12px 16px 16px; border-top: 1px solid var(--border); flex-shrink: 0; position: relative; z-index: 10; }

.country-selector {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-input); border-radius: var(--radius-sm);
    padding: 8px 12px; border: 1px solid var(--border);
    backdrop-filter: blur(12px);
}
.country-selector select { flex: 1; background: none; border: none; color: var(--text-primary); font-size: 13px; font-family: inherit; outline: none; cursor: pointer; -webkit-appearance: menulist; appearance: menulist; min-height: 28px; }
.country-selector select option { background: #1A1F2E; color: var(--text-primary); }
.country-selector .material-icons-round { font-size: 18px; color: var(--text-muted); }

/* ========== Main Content ========== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding-bottom: calc(var(--player-height) + 20px);
    position: relative;
}
.main-content::before {
    content: '';
    position: fixed; inset: 0;
    background-image: radial-gradient(rgba(255, 140, 0, 0.018) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

.topbar {
    position: sticky; top: 0; z-index: 50;
    height: var(--topbar-height);
    display: flex; align-items: center; gap: 16px;
    padding: 0 28px;
    background: rgba(12, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.menu-toggle { display: none; color: var(--text-secondary); padding: 8px; border-radius: var(--radius-sm); }
.menu-toggle:hover { background: rgba(255, 140, 0, 0.06); }

.topbar-search {
    flex: 1; max-width: 500px;
    display: flex; align-items: center; gap: 10px;
    padding: 9px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    cursor: pointer; transition: var(--transition);
}
.topbar-search:hover { border-color: rgba(255, 140, 0, 0.2); box-shadow: 0 0 20px rgba(255, 140, 0, 0.04); }
.topbar-search .material-icons-round { font-size: 20px; color: var(--text-muted); }
.topbar-search span:last-child { color: var(--text-muted); font-size: 14px; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-full);
    color: var(--text-secondary); transition: var(--transition);
}
.icon-btn:hover { background: rgba(255, 140, 0, 0.08); color: var(--text-primary); }

/* ========== Page Content ========== */
.page-content { padding: 28px; position: relative; z-index: 1; }
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 6px; }
.page-header p { color: var(--text-secondary); font-size: 14px; }

.section { margin-bottom: 36px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-title { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }

.see-all { color: var(--text-secondary); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px; transition: var(--transition); }
.see-all:hover { color: var(--accent); }

/* ========== Station Cards ========== */
.stations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 18px; }

.station-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    cursor: pointer; transition: var(--transition);
    overflow: hidden; position: relative;
}
.station-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(255, 140, 0, 0.1), 0 0 0 1px rgba(255, 140, 0, 0.12);
    background: var(--bg-card-hover);
}

.station-card-img {
    width: 100%; aspect-ratio: 1;
    overflow: hidden; position: relative;
    background: #1C2030;
}
.station-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.station-card:hover .station-card-img img { transform: scale(1.05); }

.play-overlay {
    position: absolute; bottom: 8px; right: 8px;
    width: 44px; height: 44px;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(8px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px var(--accent-glow);
}
.station-card:hover .play-overlay { opacity: 1; transform: translateY(0); }
.play-overlay .material-icons-round { font-size: 24px; color: #000; }

.station-card-body { padding: 12px 14px 14px; }
.station-card-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.station-card-meta { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Horizontal Scroll */
.stations-scroll { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.stations-scroll::-webkit-scrollbar { height: 0; }
.stations-scroll .station-card { min-width: 185px; max-width: 185px; scroll-snap-align: start; flex-shrink: 0; }

/* ========== Category Cards ========== */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

.category-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: var(--radius); cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}
.category-card:hover { background: var(--bg-card-hover); border-color: rgba(255, 140, 0, 0.18); box-shadow: 0 4px 20px rgba(255, 140, 0, 0.06); }

.category-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0; overflow: hidden;
}
.category-icon img { width: 100%; height: 100%; border-radius: var(--radius-sm); object-fit: cover; }
.category-info h3 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.category-info p { font-size: 12px; color: var(--text-muted); }

.cat-teal .category-icon { background: rgba(255, 183, 77, 0.12); color: var(--teal); }
.cat-blue .category-icon { background: rgba(66, 165, 245, 0.12); color: var(--blue); }
.cat-pink .category-icon { background: rgba(255, 112, 67, 0.12); color: var(--pink); }
.cat-green .category-icon { background: rgba(255, 140, 0, 0.12); color: var(--accent); }
.cat-orange .category-icon { background: rgba(255, 152, 0, 0.15); color: var(--orange); }
.cat-purple .category-icon { background: rgba(206, 147, 216, 0.12); color: var(--purple); }

/* ========== Hero Banner ========== */
.hero-banner {
    border-radius: var(--radius-xl); padding: 40px 36px;
    margin-bottom: 32px; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #2A1800 0%, #0C0F1A 40%, #1A1040 100%);
    border: 1px solid var(--glass-border);
}
.hero-banner::before {
    content: ''; position: absolute; top: -60%; right: -15%;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, transparent 70%);
}
.hero-banner::after {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 140, 0, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
.hero-banner h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; position: relative; z-index: 1; }
.hero-banner p { font-size: 15px; color: var(--text-secondary); margin-bottom: 24px; position: relative; z-index: 1; }
.hero-stats { display: flex; gap: 36px; position: relative; z-index: 1; }
.hero-stat { text-align: center; }
.hero-stat-value { font-size: 24px; font-weight: 800; color: var(--accent); text-shadow: 0 0 20px var(--accent-glow); }
.hero-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 2px; }

/* ========== Player Bar ========== */
.player-bar {
    position: fixed; bottom: 0; left: var(--sidebar-width); right: 0;
    height: var(--player-height);
    background: var(--bg-player);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--glass-border);
    z-index: 90; transition: var(--transition);
}
.player-bar-inner { height: 100%; display: flex; align-items: center; padding: 0 20px; gap: 16px; }
.player-info { display: flex; align-items: center; gap: 12px; min-width: 200px; flex: 1; }
.player-thumb { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; background: var(--bg-input); }
.player-details { display: flex; flex-direction: column; overflow: hidden; }
.player-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-meta { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-controls { display: flex; align-items: center; gap: 6px; }

.player-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-full); color: var(--text-secondary); transition: var(--transition);
}
.player-btn:hover { color: var(--text-primary); }
.player-btn-main {
    width: 42px; height: 42px;
    background: var(--accent-gradient);
    color: #000 !important;
    border-radius: var(--radius-full);
    box-shadow: 0 0 16px var(--accent-glow);
}
.player-btn-main:hover { background: var(--accent-hover); transform: scale(1.04); box-shadow: 0 0 24px var(--accent-glow); }
.player-btn-main .material-icons-round { font-size: 26px; }

.player-extras { display: flex; align-items: center; gap: 10px; }
.volume-control { display: flex; align-items: center; gap: 6px; }
.volume-icon { font-size: 20px; color: var(--text-muted); cursor: pointer; }

.volume-slider, .full-player-volume input[type="range"] {
    -webkit-appearance: none; height: 4px; background: #2A2520; border-radius: 2px; outline: none;
}
.volume-slider { width: 100px; }
.volume-slider::-webkit-slider-thumb, .full-player-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); cursor: pointer;
    box-shadow: 0 0 6px var(--accent-glow);
}

.player-loading { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.loading-bar { height: 100%; background: var(--accent-gradient); animation: loadingPulse 1.5s ease-in-out infinite; border-radius: 0 3px 3px 0; }
@keyframes loadingPulse { 0% { width: 0; } 50% { width: 70%; } 100% { width: 100%; opacity: 0; } }

/* ========== Full Player ========== */
.full-player { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.full-player-bg { position: absolute; inset: 0; background: var(--bg-main); background-size: cover; background-position: center; filter: blur(60px) brightness(0.25); }
.full-player-bg::after { content: ''; position: absolute; inset: 0; background: rgba(12, 15, 26, 0.75); }
.full-player-content { position: relative; z-index: 1; text-align: center; max-width: 400px; width: 100%; padding: 20px; }
.full-player-close { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-full); color: var(--text-secondary); background: rgba(255, 140, 0, 0.06); backdrop-filter: blur(12px); }
.full-player-artwork { width: 260px; height: 260px; margin: 0 auto 28px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 140, 0, 0.08); position: relative; }
.full-player-artwork img { width: 100%; height: 100%; object-fit: cover; }

.equalizer-bars { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.equalizer-bars span { width: 4px; background: var(--accent); border-radius: 2px; animation: eqBar 0.8s ease-in-out infinite alternate; }
.equalizer-bars.paused span { animation-play-state: paused; height: 4px !important; }
.equalizer-bars span:nth-child(1) { animation-delay: 0s; }
.equalizer-bars span:nth-child(2) { animation-delay: 0.15s; }
.equalizer-bars span:nth-child(3) { animation-delay: 0.3s; }
.equalizer-bars span:nth-child(4) { animation-delay: 0.45s; }
.equalizer-bars span:nth-child(5) { animation-delay: 0.6s; }
@keyframes eqBar { 0% { height: 4px; } 100% { height: 28px; } }

.full-player-info h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.full-player-info p { color: var(--text-secondary); font-size: 14px; }
.full-player-country { margin-top: 2px; color: var(--text-muted) !important; font-size: 13px !important; }
.full-player-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 28px 0; }

.fp-btn { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-full); color: var(--text-secondary); transition: var(--transition); }
.fp-btn:hover { color: var(--text-primary); }
.fp-btn-main { width: 60px; height: 60px; background: var(--accent-gradient); color: #000 !important; box-shadow: 0 4px 24px var(--accent-glow); }
.fp-btn-main:hover { background: var(--accent-hover); box-shadow: 0 4px 32px var(--accent-glow); }
.fp-btn-main .material-icons-round { font-size: 34px; }

.full-player-volume { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 24px; }
.full-player-volume .material-icons-round { font-size: 20px; color: var(--text-muted); }
.full-player-volume input[type="range"] { width: 200px; }

.full-player-actions { display: flex; justify-content: center; gap: 20px; }
.fp-action-btn { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-full); color: var(--text-secondary); background: rgba(255, 140, 0, 0.06); backdrop-filter: blur(12px); transition: var(--transition); }
.fp-action-btn:hover { color: var(--text-primary); background: rgba(255, 140, 0, 0.12); }

/* ========== Search ========== */
.search-container { max-width: 640px; margin: 0 auto; }
.search-box { display: flex; align-items: center; gap: 12px; background: var(--glass-bg); backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 12px 18px; margin-bottom: 24px; transition: var(--transition); }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow-soft), 0 0 24px rgba(255, 140, 0, 0.06); }
.search-box .material-icons-round { font-size: 22px; color: var(--text-muted); }
.search-box input { flex: 1; background: none; border: none; color: var(--text-primary); font-size: 15px; font-family: inherit; outline: none; }
.search-box input::placeholder { color: var(--text-muted); }
.search-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.search-tag { padding: 6px 14px; background: var(--glass-bg); backdrop-filter: blur(8px); border-radius: 20px; font-size: 13px; color: var(--text-secondary); cursor: pointer; transition: var(--transition); border: 1px solid var(--glass-border); }
.search-tag:hover { background: var(--accent-glow-soft); border-color: var(--accent); color: var(--accent); }

/* ========== Station List ========== */
.station-list { display: flex; flex-direction: column; gap: 4px; }
.station-list-item { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); }
.station-list-item:hover { background: rgba(255, 140, 0, 0.04); }
.station-list-item.playing { background: var(--accent-glow-soft); }
.station-list-img { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; background: var(--bg-input); flex-shrink: 0; }
.station-list-info { flex: 1; min-width: 0; }
.station-list-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.station-list-meta { font-size: 12px; color: var(--text-muted); }
.station-list-actions { display: flex; align-items: center; gap: 4px; }
.station-list-actions .icon-btn { width: 34px; height: 34px; }

/* ========== Form ========== */
.feedback-form { max-width: 560px; margin: 0 auto; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }
.form-control { width: 100%; padding: 11px 14px; background: var(--glass-bg); backdrop-filter: blur(8px); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); color: var(--text-primary); font-size: 14px; font-family: inherit; outline: none; transition: var(--transition); }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow-soft); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { cursor: pointer; }
select.form-control option { background: #1A1F2E; }

/* ========== Buttons ========== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 24px; font-size: 14px; font-weight: 600; border-radius: var(--radius-sm); transition: var(--transition); cursor: pointer; border: none; }
.btn-primary { background: var(--accent-gradient); color: #000; }
.btn-primary:hover { box-shadow: 0 4px 16px var(--accent-glow), 0 0 0 1px var(--accent); transform: translateY(-1px); }
.btn-secondary { background: var(--glass-bg); color: var(--text-primary); border: 1px solid var(--glass-border); padding: 10px 20px; font-size: 14px; font-weight: 500; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); backdrop-filter: blur(8px); }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: rgba(255, 140, 0, 0.15); }
.btn-text { background: none; border: none; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 8px; }

/* ========== Pagination ========== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 28px; }
.pagination button, .pagination a button { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--glass-bg); color: var(--text-secondary); font-size: 14px; font-weight: 500; cursor: pointer; border: 1px solid var(--glass-border); transition: var(--transition); }
.pagination button:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.pagination button.active { background: var(--accent-gradient); color: #000; border-color: var(--accent); box-shadow: 0 2px 10px var(--accent-glow); }
.pagination button:disabled { opacity: 0.3; cursor: not-allowed; }

/* ========== States ========== */
.loading-spinner { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; color: var(--text-muted); gap: 16px; }
.spinner { width: 36px; height: 36px; border: 3px solid #2A2520; border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .material-icons-round { font-size: 56px; margin-bottom: 16px; opacity: 0.25; }
.empty-state h3 { font-size: 17px; margin-bottom: 6px; color: var(--text-secondary); }

/* ========== Modal ========== */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); }
.modal-content { position: relative; background: rgba(17, 24, 39, 0.92); backdrop-filter: blur(24px); border-radius: var(--radius-lg); padding: 28px; max-width: 380px; width: 90%; box-shadow: var(--shadow-lg); border: 1px solid var(--glass-border); }
.modal-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 18px; text-align: center; }
.sleep-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.sleep-opt { padding: 10px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; color: var(--text-primary); cursor: pointer; transition: var(--transition); }
.sleep-opt:hover { background: var(--accent-glow-med); border-color: var(--accent); }
.sleep-timer-display { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; background: var(--accent-glow-soft); border-radius: var(--radius-sm); margin-bottom: 14px; }
#sleepCountdown { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ========== Toast ========== */
.toast { position: fixed; bottom: calc(var(--player-height) + 20px); left: 50%; transform: translateX(-50%) translateY(100px); padding: 10px 20px; background: rgba(17, 24, 39, 0.92); backdrop-filter: blur(16px); color: var(--text-primary); border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg); border: 1px solid var(--glass-border); border-left: 3px solid var(--accent); z-index: 400; opacity: 0; transition: all 0.3s ease; pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ========== Tabs ========== */
.tabs { display: flex; gap: 4px; background: var(--glass-bg); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 24px; overflow-x: auto; border: 1px solid var(--glass-border); }
.tab { padding: 9px 18px; font-size: 13px; font-weight: 600; color: var(--text-muted); border-radius: 6px; cursor: pointer; white-space: nowrap; transition: var(--transition); }
.tab:hover { color: var(--text-secondary); }
.tab.active { background: var(--accent-gradient); color: #000; box-shadow: 0 2px 8px var(--accent-glow); }

/* ========== Nearby ========== */
.nearby-prompt { text-align: center; padding: 60px 20px; }
.nearby-prompt .material-icons-round { font-size: 56px; color: var(--accent); margin-bottom: 16px; filter: drop-shadow(0 0 12px var(--accent-glow)); }
.nearby-prompt p { color: var(--text-secondary); margin-bottom: 20px; font-size: 14px; }
.favorites-empty { text-align: center; padding: 80px 20px; }
.favorites-empty .material-icons-round { font-size: 72px; color: var(--accent); opacity: 0.25; margin-bottom: 20px; }

.fav-active { color: var(--coral) !important; }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .sidebar-close { display: flex; }
    .menu-toggle { display: flex; }
    .main-content { margin-left: 0; }
    .player-bar { left: 0; }
    .volume-control { display: none; }
}
@media (max-width: 768px) {
    .page-content { padding: 20px 16px; }
    .topbar { padding: 0 16px; }
    .hero-banner { padding: 28px 24px; }
    .hero-banner h1 { font-size: 22px; }
    .hero-stats { gap: 24px; }
    .stations-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
    .categories-grid { grid-template-columns: 1fr; }
    .full-player-artwork { width: 200px; height: 200px; }
}
@media (max-width: 480px) {
    .stations-grid { grid-template-columns: repeat(2, 1fr); }
    .topbar-search span:last-child { display: none; }
    .player-info { min-width: 120px; }
    .player-details .player-meta { display: none; }
}

/* ========== Site Footer ========== */
.site-footer {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--glass-border);
    padding: 48px 28px 24px;
    margin-top: 48px;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}
.footer-brand .logo {
    margin-bottom: 12px;
}
.footer-brand p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 300px;
}
.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-primary);
    margin-bottom: 14px;
}
.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 5px 0;
    transition: var(--transition);
}
.footer-col a:hover {
    color: var(--accent);
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}
.footer-bottom-links {
    display: flex;
    gap: 18px;
}
.footer-bottom-links a {
    font-size: 12px;
    color: var(--text-muted);
    transition: var(--transition);
}
.footer-bottom-links a:hover {
    color: var(--accent);
}

/* ========== Legal / Static Pages ========== */
.legal-content {
    max-width: 780px;
    margin: 0 auto;
}
.legal-content h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}
.legal-content .legal-updated {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 28px;
}
.legal-content h2 {
    font-size: 19px;
    font-weight: 700;
    margin: 28px 0 10px;
    color: var(--text-primary);
}
.legal-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 8px;
    color: var(--text-primary);
}
.legal-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
}
.legal-content ul, .legal-content ol {
    padding-left: 22px;
    margin-bottom: 14px;
}
.legal-content li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 6px;
}
.legal-content a {
    color: var(--accent);
}
.legal-content a:hover {
    text-decoration: underline;
}

/* About page cards */
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin: 24px 0;
}
.about-feature {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 22px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}
.about-feature:hover {
    border-color: rgba(255, 140, 0, 0.18);
    box-shadow: 0 4px 20px rgba(255, 140, 0, 0.06);
}
.about-feature .material-icons-round {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 12px;
    filter: drop-shadow(0 0 6px var(--accent-glow));
}
.about-feature h3 {
    margin: 0 0 6px;
    font-size: 15px;
}
.about-feature p {
    margin: 0;
    font-size: 13px;
}

/* Contact form on contact page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin-top: 24px;
}
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 18px;
    border: 1px solid var(--glass-border);
    margin-bottom: 14px;
    transition: var(--transition);
}
.contact-info-card:hover {
    border-color: rgba(255, 140, 0, 0.15);
}
.contact-info-card .material-icons-round {
    font-size: 24px;
    color: var(--accent);
    margin-top: 2px;
}
.contact-info-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}
.contact-info-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.35s ease forwards; opacity: 0; }
