/* ========================================
   Blue Radio — Design System
   ======================================== */

/* --- CSS Variables (Design Tokens) --- */
:root {
    --blue: #2950aa;
    --blue-light: #3a6fd8;
    --blue-dark: #1e3d7a;
    --blue-glow: rgba(41, 80, 170, 0.25);
    --blue-muted: rgba(41, 80, 170, 0.08);
    --black: #000000;
    --white: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f4f6fa;
    --bg: var(--bg-secondary);
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --text-primary: #1a1a2e;
    --text-secondary: #5a5a7a;
    --text-muted: #8a8aa0;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(41, 80, 170, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(41, 80, 170, 0.12);
    --radius-sm: 20px;
    --radius-md: 20px;
    --radius-lg: 20px;
    --radius-xl: 20px;
    --radius-full: 20px;
    --transition-fast: 0.12s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    --font: 'Alexandria', sans-serif;
    --header-height: 72px;
    --container-max: 1600px;

    /* Theme-aware sidebar/topbar vars */
    --sidebar-bg: #ffffff;
    --sidebar-border: rgba(0, 0, 0, 0.06);
    --topbar-bg: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] {
    --bg-primary: #0f1014;
    --bg-secondary: #16171b;
    --bg: var(--bg-secondary);
    --bg-card: #1e1f24;
    --bg-glass: rgba(15, 16, 20, 0.75);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --blue-glow: rgba(59, 130, 246, 0.3);
    --blue-muted: rgba(59, 130, 246, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.7);
    --border-glow: rgba(59, 130, 246, 0.4);

    --sidebar-bg: #121317;
    --sidebar-border: rgba(255, 255, 255, 0.06);
    --topbar-bg: rgba(15, 16, 20, 0.85);

    color-scheme: dark;
}

/* --- Layout Theme Overrides --- */
[data-theme="dark"] .sidebar { background: var(--sidebar-bg); border-color: var(--sidebar-border); }
[data-theme="dark"] .content-topbar { background: var(--topbar-bg); border-color: var(--sidebar-border); }
[data-theme="dark"] .mobile-topbar { background: var(--topbar-bg); border-color: var(--sidebar-border); }
[data-theme="dark"] .sidebar-tile { background: #1a1b21; border-color: rgba(255, 255, 255, 0.05); }
[data-theme="dark"] .topbar-search-input { background: #1a1b21; border-color: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .search-dropdown { background: #1a1b21; border-color: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .station-card { background: #1a1b21; border-color: rgba(255, 255, 255, 0.04); }
[data-theme="dark"] .floating-player { background: rgba(22, 23, 27, 0.95); border-color: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .hero-overlay { background: linear-gradient(180deg, rgba(15, 16, 20, 0.3) 0%, rgba(15, 16, 20, 0.95) 100%); }
[data-theme="dark"] .station-fav-btn { background: rgba(30, 31, 38, 0.92); color: #64748b; }
[data-theme="dark"] .legal-nav-card { background: #1a1b21; border-color: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .legal-nav-item:hover { background: #121317; }
[data-theme="dark"] .legal-updated { background: #121317; }
[data-theme="dark"] .info-card-icon { background: var(--blue-muted); }
[data-theme="dark"] .notif-dropdown { background: #1a1b21; border-color: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .notif-item { border-color: rgba(255, 255, 255, 0.05); }
[data-theme="dark"] .notif-item:hover { background: rgba(255, 255, 255, 0.03); }
[data-theme="dark"] .notif-detail-modal { background: #1a1b21; border-color: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .notif-detail-hero { background: linear-gradient(135deg, #1e1f24 0%, #16171b 100%); border-bottom-color: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .notif-detail-short { border-bottom-color: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .notif-item-logo img, [data-theme="dark"] .notif-item-icon-only { border-color: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .notif-item-flag-badge, [data-theme="dark"] .notif-detail-flag-badge, [data-theme="dark"] .notif-detail-icon-badge { border-color: #1a1b21; background: #2a2b31; }
[data-theme="dark"] .legal-info-table { background: #1a1b21; }
[data-theme="dark"] .info-row { border-color: rgba(255, 255, 255, 0.05); }
[data-theme="dark"] .legal-audio-disclaimer { background: #1a1b21; border-left-color: var(--blue-light); }
[data-theme="dark"] .legal-feature-item { background: #1a1b21; border-color: rgba(255, 255, 255, 0.06); }
[data-theme="dark"] .feature-icon { background: #121317; }
[data-theme="dark"] .legal-header-minimal { background: var(--bg-primary); }
[data-theme="dark"] .section-legal-main { background: var(--bg-primary); }
[data-theme="dark"] .topbar-search-input:focus { background: #1f2027; border-color: var(--blue-light); }

/* Transition for theme switch */
body {
    transition: background-color 0.15s ease, color 0.15s ease;
}
.sidebar, .content-topbar, .station-card, .floating-player, .auth-modal, .sidebar-tile, .notif-dropdown, .notif-detail-modal {
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font);
    color: inherit;
}

input,
textarea {
    font-family: var(--font);
    border: none;
    outline: none;
}

/* --- Utility --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--blue-light), var(--blue), #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.8;
    }
}

/* --- PJAX Fluid Transitions (Optimized) --- */
.pjax-loader {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--blue-light), #6c63ff);
    z-index: 9999;
    transition: width 0.3s ease-out, opacity 0.15s ease;
    box-shadow: 0 0 10px var(--blue-glow);
    pointer-events: none;
    width: 0;
    opacity: 0;
}
.pjax-loader.loading {
    opacity: 1;
    width: 80%;
}
.pjax-loader.complete {
    width: 100%;
    opacity: 0;
}

#pjax-container {
    transition: opacity 0.15s ease;
}
#pjax-container.pjax-fading {
    opacity: 0;
}


@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes barAnim {

    0%,
    100% {
        height: 8px;
    }

    50% {
        height: var(--bar-height, 40px);
    }
}

/* ========================================
   SHARED LOGO STYLES
   ======================================== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
}

.logo-icon {
    font-size: 32px;
    color: var(--blue);
    filter: drop-shadow(0 0 8px var(--blue-glow));
}

.logo-text {
    color: var(--text-primary);
}

.logo-highlight {
    color: var(--blue);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 70vh;
    /* Reduced height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 24px 40px;
    /* Reduced vertical padding */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(41, 80, 170, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(108, 99, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(41, 80, 170, 0.04) 0%, transparent 50%);
    animation: float 8s ease-in-out infinite;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.85) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    /* Reduced gap slightly */
    align-items: center;
    width: 100%;
    max-width: 1400px;
    /* Larger max grid width to reduce side white space */
}

.hero-content {
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: var(--blue-muted);
    border: 1px solid var(--border-glow);
    color: var(--blue-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 28px;
    animation: pulse 2.5s ease-in-out infinite;
}

.hero-badge .material-icons {
    font-size: 16px;
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 0 36px 0;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    justify-content: flex-start;
    gap: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--blue-light);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4/5;
    border-radius: var(--radius-xl);
    padding: 12px;
}

.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-xl) - 8px);
    box-shadow: var(--shadow-md);
}

.hero-floating-element {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    animation: float 6s ease-in-out infinite;
    z-index: 3;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
}

.card-1 {
    top: 40px;
    left: -30px;
    animation-delay: 0.1s;
    box-shadow: var(--shadow-md);
}

.card-2 {
    bottom: 60px;
    right: -30px;
    animation-delay: 0.3s;
    box-shadow: var(--shadow-md);
}

.floating-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blue-light);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-icon .material-icons {
    font-size: 20px;
}

.floating-text {
    display: flex;
    flex-direction: column;
}

.floating-text strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.floating-text span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 36px auto;
    }

    .hero-actions,
    .hero-stats {
        justify-content: center;
    }

    .card-1 {
        left: 10px;
    }

    .card-2 {
        right: 10px;
    }
}

/* Hero Visualizer */
.hero-visualizer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 80px;
    padding-bottom: 20px;
    z-index: 1;
    opacity: 0.25;
}

.visualizer-bar {
    width: 4px;
    height: 8px;
    background: var(--blue-light);
    border-radius: 8px;
    animation: barAnim 1.2s ease-in-out infinite;
}

.visualizer-bar:nth-child(1) {
    --bar-height: 24px;
    animation-delay: 0s;
}

.visualizer-bar:nth-child(2) {
    --bar-height: 40px;
    animation-delay: 0.1s;
}

.visualizer-bar:nth-child(3) {
    --bar-height: 30px;
    animation-delay: 0.2s;
}

.visualizer-bar:nth-child(4) {
    --bar-height: 52px;
    animation-delay: 0.3s;
}

.visualizer-bar:nth-child(5) {
    --bar-height: 36px;
    animation-delay: 0.4s;
}

.visualizer-bar:nth-child(6) {
    --bar-height: 60px;
    animation-delay: 0.15s;
}

.visualizer-bar:nth-child(7) {
    --bar-height: 44px;
    animation-delay: 0.25s;
}

.visualizer-bar:nth-child(8) {
    --bar-height: 28px;
    animation-delay: 0.35s;
}

.visualizer-bar:nth-child(9) {
    --bar-height: 48px;
    animation-delay: 0.05s;
}

.visualizer-bar:nth-child(10) {
    --bar-height: 32px;
    animation-delay: 0.45s;
}

.visualizer-bar:nth-child(11) {
    --bar-height: 20px;
    animation-delay: 0.5s;
}

.visualizer-bar:nth-child(12) {
    --bar-height: 38px;
    animation-delay: 0.55s;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition-smooth);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn .material-icons {
    font-size: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: var(--white);
    box-shadow: 0 4px 20px var(--blue-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(41, 80, 170, 0.5);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--blue-muted);
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 80px 0;
    position: relative;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-header {
    text-align: left;
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: var(--blue-muted);
    color: var(--blue-light);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.section-tag .material-icons {
    font-size: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 0px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0;
}

.section-footer {
    text-align: center;
    margin-top: 48px;
}

/* ========================================
   STATIONS GRID
   ======================================== */
.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

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

.station-card {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    padding: 12px;
    transition: all var(--transition-smooth);
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.station-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}

.station-card-image {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: var(--bg-secondary);
}

.station-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.station-card:hover .station-card-image img {
    transform: scale(1.08);
}

.station-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-fast);
}

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

.station-play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(41, 80, 170, 0.4);
    transition: all var(--transition-spring);
    transform: scale(0.8);
    border: none;
    cursor: pointer;
}

.station-play-btn .material-icons {
    font-size: 32px;
}

.station-card:hover .station-play-btn {
    transform: scale(1);
}

.station-play-btn:hover {
    background: var(--blue-light);
    transform: scale(1.1) !important;
}

.station-card-body {
    padding: 12px 4px 4px 4px;
}

.station-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-card-category {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.station-card-category .material-icons {
    font-size: 16px;
    color: var(--text-muted);
}

.station-card.playing {
    border-color: var(--blue-glow);
    box-shadow: 0 10px 30px var(--blue-glow);
}

.station-card.playing .station-card-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.4);
}

.station-card.playing .station-play-btn {
    background: var(--blue);
    animation: pulse 2s ease-in-out infinite;
    transform: scale(1);
}

/* ---- Station Card Flag Badge (on image) ---- */
.station-card-flag-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.station-card:hover .station-card-flag-badge {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.station-card-flag-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.station-card-flag-emoji {
    font-size: 1.1rem;
    line-height: 1;
}

/* ---- Play count badge (popular page) ---- */
.station-play-count-badge {
    display: none !important;

    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(230, 81, 0, 0.9), rgba(255, 152, 0, 0.85));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(230, 81, 0, 0.4);
    pointer-events: none;
    transition: opacity var(--transition-fast);
}


/* ---- Station Card Body layout ---- */
.station-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.station-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 8px;
}

.station-card-category {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    padding: 4px 8px;
    background: var(--bg-secondary);
    border-radius: 10px;
    white-space: nowrap;
}

.station-card-category .material-icons {
    font-size: 14px;
    color: var(--text-muted);
}

.station-card-country-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

/* ========================================
   CATEGORIES GRID
   ======================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.categories-grid-full {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 20px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cat-gradient, linear-gradient(135deg, var(--blue-dark), var(--bg-secondary)));
    opacity: 0.9;
    transition: opacity var(--transition-smooth);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.1);
}

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

.category-card-icon {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: transform var(--transition-spring);
}

.category-card:hover .category-card-icon {
    transform: scale(1.1);
}

.category-card-icon .material-icons {
    font-size: 28px;
    color: var(--white);
}

.category-card-name {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.category-card-count {
    position: relative;
    z-index: 1;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
}

/* ========================================
   PAGE HEADER (Sub-pages)
   ======================================== */
.page-header {
    position: relative;
    padding: 60px 0 50px;
    text-align: center;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(41, 80, 170, 0.1) 0%, transparent 60%),
        var(--bg-primary);
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

/* ========================================
   FILTER BAR (Stations page)
   ======================================== */
.filter-bar {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    transition: border-color var(--transition-fast);
}

.search-box:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-muted);
}

.search-box .material-icons {
    color: var(--text-muted);
    font-size: 20px;
}

.search-input {
    flex: 1;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
}

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

.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chip .material-icons {
    font-size: 16px;
}

.chip:hover {
    color: var(--text-primary);
    background: var(--blue-muted);
    border-color: var(--border-glow);
}

.chip-active {
    color: var(--white);
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 0 12px var(--blue-glow);
}

.chip-active:hover {
    background: var(--blue-light);
}

.stations-count {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stations-count .material-icons {
    font-size: 18px;
    color: var(--blue-light);
}

.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results-icon {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.no-results p {
    color: var(--text-secondary);
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 16px;
}

.info-card {
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-smooth);
}

.info-card:hover {
    border-color: var(--border-glow);
    transform: translateX(4px);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--blue-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-card-icon .material-icons {
    font-size: 22px;
    color: var(--blue-light);
}

.info-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.info-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-form-wrapper {
    padding: 36px;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-subtitle {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-label .material-icons {
    font-size: 18px;
    color: var(--blue-light);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-muted);
    background: var(--bg-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    display: none;
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 6px;
    padding-left: 4px;
}

.form-group.error .form-input {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-group.error .form-error {
    display: block;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 64px;
    color: #22c55e;
    margin-bottom: 16px;
}

.form-success h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-secondary);
}

/* ========================================
   FOOTER
   ======================================== */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links-group h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links-group ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-group a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-links-group a:hover {
    color: var(--blue-light);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

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

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .category-card {
        min-height: 140px;
        padding: 24px 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .filter-bar {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stations-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

/* ========================================
   MENTIONS LÉGALES PAGE (MODERN)
   ======================================== */
.legal-header-minimal {
    padding: 100px 0 60px;
    background: var(--bg-primary);
}

.legal-hero-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.legal-hero-badge {
    background: var(--blue-muted);
    color: var(--blue-light);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.legal-updated {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.section-legal-main {
    padding: 0 0 100px;
    background: var(--bg-primary);
}

.legal-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: start;
}

/* Sidebar */
.legal-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.legal-nav-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.legal-nav-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legal-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.legal-nav-item span.material-icons {
    font-size: 20px;
    opacity: 0.7;
}

.legal-nav-item:hover {
    background: var(--bg-secondary);
    color: var(--blue);
}

.legal-nav-item.active {
    background: var(--blue-muted);
    color: var(--blue);
    font-weight: 600;
}

.legal-nav-item.active span.material-icons {
    opacity: 1;
}

.legal-support-card {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    color: var(--white);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.support-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.support-icon .material-icons {
    font-size: 32px;
    color: var(--white);
}

.legal-support-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.legal-support-card p {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Content Area */
.legal-content-area {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.legal-section {
    scroll-margin-top: 120px;
}

.legal-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.section-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--icon-color, #2950aa) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-icon .material-icons {
    font-size: 24px;
    color: var(--icon-color, #2950aa);
}

.legal-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.legal-section-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legal-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-text a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.legal-text a:hover {
    color: var(--blue-light);
}

/* Info Table */
.legal-info-table {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 8px;
    margin-top: 12px;
}

.info-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Glass Notice */
.legal-glass-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--blue-muted);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glow);
}

.legal-glass-notice .material-icons {
    color: var(--blue);
    font-size: 28px;
    margin-top: 2px;
}

.legal-glass-notice p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Disclaimer Block */
.legal-audio-disclaimer {
    background: #fafafc;
    border-left: 4px solid var(--blue);
    padding: 24px;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.disclaimer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.disclaimer-header .material-icons {
    color: var(--blue);
}

.legal-audio-disclaimer p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Feature Grid */
.legal-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 16px 0;
}

.legal-feature-item {
    padding: 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-smooth);
}

.legal-feature-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon .material-icons {
    color: var(--blue);
    font-size: 22px;
}

.feature-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Bullet List */
.legal-bullet-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 4px;
}

.legal-bullet-list li {
    position: relative;
    padding-left: 28px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.legal-bullet-list li::before {
    content: '\e5ca';
    font-family: 'Material Icons';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-size: 18px;
}

/* Responsive */
@media (max-width: 1100px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: static;
        order: 2;
    }

    .legal-nav-card {
        display: none; /* Hide sommary on mobile to simplify */
    }

    .legal-content-area {
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .legal-section-title {
        font-size: 1.5rem;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .legal-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════
   FAVORITES — Heart button on cards
   ═══════════════════════════════════════ */

.station-fav-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease, background 0.2s ease;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    padding: 0;
}

.station-fav-btn .material-icons {
    font-size: 17px;
    line-height: 1;
}

/* Show on card hover */
.station-card:hover .station-fav-btn {
    opacity: 1;
    transform: scale(1);
}

/* Active (favorited) — always visible + red */
.station-fav-btn.active {
    opacity: 1;
    transform: scale(1);
    color: #e53935;
    background: rgba(255, 255, 255, 0.95);
}

.station-fav-btn:hover {
    color: #e53935;
    background: #fff;
    transform: scale(1.12) !important;
}

/* Pop animation on toggle */
@keyframes favPop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.4);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.station-fav-btn.pop {
    animation: favPop 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* ── Player fav button ────────────────────────────── */
.floating-fav-btn {
    color: var(--text-muted, #94a3b8);
    transition: color 0.2s ease, transform 0.2s ease !important;
}

.floating-fav-btn:hover {
    color: #e53935 !important;
}

.floating-fav-btn.active {
    color: #e53935 !important;
}

.floating-fav-btn.active .material-icons,
.floating-fav-btn:hover .material-icons {
    color: #e53935;
}

/* ── Sidebar badge counter ───────────────────────── */
.sidebar-fav-badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    border-radius: 99px;
    background: #e53935;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
    flex-shrink: 0;
}

/* ── Fav mini toast ──────────────────────────────── */
.fav-toast {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: #1e293b;
    color: #fff;
    padding: 10px 18px;
    border-radius: 99px;
    font-size: 0.83rem;
    font-weight: 600;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
}

.fav-toast .material-icons {
    font-size: 16px;
}

.fav-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.fav-toast--add {
    background: #1e293b;
}

.fav-toast--add .material-icons {
    color: #e53935;
}

.fav-toast--remove {
    background: #374151;
}

/* ══════════════════════════════════════
   FAVORITES — Page
   ══════════════════════════════════════ */

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.section-header-left {
    flex: 1;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.section-title-icon {
    font-size: 1.6rem;
    color: #e53935;
}

.section-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.82rem;
    gap: 6px;
}

/* Empty state */
.fav-empty {
    text-align: center;
    padding: 80px 20px;
    max-width: 380px;
    margin: 0 auto;
}

.fav-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fce7f3, #fef2f2);
    border: 2px solid #fecdd3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.fav-empty-icon .material-icons {
    font-size: 38px;
    color: #f87171;
}

.fav-empty-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.fav-empty-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ========================================
   THEME BASED LOGO TOGGLE
   ======================================== */
html[data-theme="dark"] .logo-light {
    display: none !important;
}

html[data-theme="dark"] .logo-dark {
    display: block !important;
}

/* Specific to sidebar layout: */
html[data-theme="dark"] .sidebar-logo .logo-dark {
    display: block !important;
}

/* Specific to mobile topbar layout (it uses inline-block or flex) */
html[data-theme="dark"] .mobile-topbar .logo-dark {
    display: block !important;
}

/* If the logo-dark element isn't found, keep default behavior, but the above rules hide logo-light, so the site will fallback text or icon if none provided. */
.station-card-name-link {
    text-decoration: none;
    color: inherit;
}
.station-card-name-link:hover .station-card-name {
    color: var(--blue);
}

/* Background for specific pages */
body.page-stations,
body.page-categories,
body.page-populaires,
body.page-nouveautes {
    background: var(--bg-secondary);
}

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: auto;
    width: 450px;
    max-width: calc(100vw - 48px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.cookie-content {
    display: flex;
    gap: 16px;
}
.cookie-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-muted);
    color: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cookie-icon .material-icons {
    font-size: 24px;
}
.cookie-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}
.cookie-text a {
    color: var(--blue);
    font-weight: 600;
}
.cookie-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
@media (max-width: 600px) {
    .cookie-banner {
        bottom: 80px; /* Above floating player */
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
    }
}