/* ═══════════════════════════════════════════════
   WEBRADIO LEOMAX V2.1
   Mode Clair / Sombre + AdSense 728x90
   ═══════════════════════════════════════════════ */

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

/* ═══════════════════════════════════════════════
   THÈME SOMBRE (défaut)
   ═══════════════════════════════════════════════ */
:root,
[data-theme="dark"] {
    --bg-body:          #0F172A;
    --bg-dark:          #1E293B;
    --bg-card:          #1E293B;
    --bg-card-hover:    #253349;
    --bg-input:         #0F172A;
    --bg-header:        rgba(30, 41, 59, 0.92);

    --primary:          #2563EB;
    --primary-hover:    #1D4ED8;
    --primary-glow:     rgba(37, 99, 235, 0.25);

    --text-light:       #F8FAFC;
    --text-muted:       #9CA3AF;
    --text-dim:         #64748B;

    --border:           #334155;
    --border-light:     #475569;

    --success:          #22C55E;
    --warning:          #F59E0B;
    --danger:           #EF4444;

    --shadow:           0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg:        0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow:      0 4px 16px rgba(37, 99, 235, 0.15);

    --radius:           16px;
    --radius-sm:        10px;
    --radius-xs:        6px;

    --transition:       0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font:             'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --ad-bg:            #162032;
    --ad-border:        #253349;
    --ad-label:         #475569;
}

/* ═══════════════════════════════════════════════
   THÈME CLAIR
   ═══════════════════════════════════════════════ */
[data-theme="light"] {
    --bg-body:          #F1F5F9;
    --bg-dark:          #FFFFFF;
    --bg-card:          #FFFFFF;
    --bg-card-hover:    #F8FAFC;
    --bg-input:         #F1F5F9;
    --bg-header:        rgba(255, 255, 255, 0.92);

    --primary:          #2563EB;
    --primary-hover:    #1D4ED8;
    --primary-glow:     rgba(37, 99, 235, 0.15);

    --text-light:       #0F172A;
    --text-muted:       #64748B;
    --text-dim:         #94A3B8;

    --border:           #E2E8F0;
    --border-light:     #CBD5E1;

    --shadow:           0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg:        0 8px 40px rgba(0, 0, 0, 0.1);
    --shadow-glow:      0 4px 16px rgba(37, 99, 235, 0.1);

    --ad-bg:            #F8FAFC;
    --ad-border:        #E2E8F0;
    --ad-label:         #CBD5E1;
}

/* ═══════════════════════════════════════════════
   TRANSITIONS THÈME
   ═══════════════════════════════════════════════ */
body,
.main-header,
.station-card,
.player,
.search-input,
.filter-select,
.search-btn,
.tab,
.nav-link,
.load-more-btn,
.filter-fav-btn,
.ad-wrapper {
    transition:
        background-color 0.4s ease,
        color 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

/* ═══════════════════════════════════════════════
   BASE
   ═══════════════════════════════════════════════ */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 120px;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

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

a:hover {
    color: var(--primary-hover);
}

/* ═══════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════ */

.main-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.logo-title {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.02em;
}

.logo-sub {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

/* ── Bouton thème ── */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.04);
}

.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-glow);
    transform: rotate(15deg);
}

.theme-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover .theme-icon {
    transform: rotate(30deg);
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--text-light);
    border-color: var(--primary);
    background: var(--primary-glow);
}

/* ═══════════════════════════════════════════════
   HERO / RECHERCHE
   ═══════════════════════════════════════════════ */

.hero {
    padding: 48px 0 32px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-body) 100%);
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.search-box {
    display: flex;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto 24px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: var(--text-dim);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 14px 44px 14px 48px;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 1rem;
    font-family: var(--font);
    transition: all var(--transition);
    outline: none;
}

[data-theme="light"] .search-input {
    background: var(--bg-card);
    border-color: var(--border);
}

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

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.clear-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all var(--transition);
}

.clear-btn:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.1);
}

.search-btn {
    padding: 14px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.search-btn:active {
    transform: translateY(0);
}

/* ── Filtres ── */
.filters {
    display: flex;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 140px;
    max-width: 200px;
}

.filter-group label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.filter-select {
    padding: 10px 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.85rem;
    font-family: var(--font);
    cursor: pointer;
    outline: none;
    transition: all var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239CA3AF' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    /* Empêcher le texte trop long de déborder */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

[data-theme="light"] .filter-select {
    background-color: var(--bg-card);
}

.filter-select:focus {
    border-color: var(--primary);
}

.filter-fav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-fav-btn:hover,
.filter-fav-btn.active {
    border-color: var(--warning);
    color: var(--warning);
    background: rgba(245, 158, 11, 0.08);
}

.fav-icon {
    font-size: 1.1rem;
}

.fav-count {
    background: var(--border);
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.filter-fav-btn.active .fav-count {
    background: rgba(245, 158, 11, 0.2);
}

/* ═══════════════════════════════════════════════
   FILTRES RESPONSIVE — MOBILE
   ═══════════════════════════════════════════════ */

@media (max-width: 768px) {
    .filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        max-width: 100%;
        padding: 0;
    }

    .filter-group {
        min-width: 0;
        max-width: none;
        flex: none;
        width: 100%;
    }

    .filter-group label {
        font-size: 0.7rem;
    }

    .filter-select {
        width: 100%;
        padding: 10px 32px 10px 12px;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    .filter-fav-btn {
        grid-column: 1 / -1;
        justify-content: center;
        padding: 12px 16px;
        border-radius: 8px;
    }
}

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

    .filter-select {
        padding: 12px 32px 12px 14px;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .filter-group label {
        font-size: 0.68rem;
        margin-left: 2px;
    }

    .filter-fav-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
}

/* ═══════════════════════════════════════════════
   ONGLETS
   ═══════════════════════════════════════════════ */

.quick-tabs {
    padding: 16px 0 0;
}

.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: -1px;
}

.tab:hover {
    color: var(--text-light);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ═══════════════════════════════════════════════
   RÉSULTATS
   ═══════════════════════════════════════════════ */

.main-content {
    padding: 24px 0 48px;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.results-title {
    font-size: 1.3rem;
    font-weight: 600;
}

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

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

/* ── Carte station ── */
.station-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

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

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

.station-favicon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-body);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.station-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.station-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.station-meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

.station-tags {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.station-tag {
    padding: 2px 8px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

[data-theme="light"] .station-tag {
    background: rgba(37, 99, 235, 0.08);
}

.station-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 2;
}

.station-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.station-play-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

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

.station-fav-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.station-fav-btn:hover {
    color: var(--warning);
    transform: scale(1.2);
}

.station-fav-btn.is-fav {
    color: var(--warning);
}

.station-card.playing .station-name::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    margin-left: 8px;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Loading */
.loading {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}

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

/* No Results */
.no-results {
    text-align: center;
    padding: 64px 20px;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.no-results-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.no-results-hint {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Load More */
.load-more {
    text-align: center;
    padding: 32px 0;
}

.load-more-btn {
    padding: 12px 32px;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
}

.load-more-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37, 99, 235, 0.06);
}

/* ═══════════════════════════════════════════════
   PLAYER
   ═══════════════════════════════════════════════ */

.player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    z-index: 1000;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.35s ease-out;
}

[data-theme="light"] .player {
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.player-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.player-favicon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    background: var(--bg-body);
    flex-shrink: 0;
}

.player-details {
    min-width: 0;
}

.player-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-size: 1.2rem;
}

[data-theme="light"] .player-btn {
    background: rgba(0, 0, 0, 0.05);
}

.player-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .player-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.play-pause-btn {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
}

.play-pause-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.ctrl-icon {
    width: 20px;
    height: 20px;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

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

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

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

.volume-value {
    font-size: 0.75rem;
    color: var(--text-dim);
    min-width: 32px;
    text-align: right;
}

.player-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fav-btn {
    color: var(--text-dim);
}

.fav-btn:hover {
    color: var(--warning);
}

.fav-btn.is-fav {
    color: var(--warning);
}

.close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.player-status {
    height: 3px;
    background: var(--border);
    overflow: hidden;
}

.player-status-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s;
    border-radius: 2px;
}

.player-status-bar.loading {
    width: 100%;
    animation: loading-bar 2s ease-in-out infinite;
    background: linear-gradient(90deg, var(--primary) 0%, #60A5FA 50%, var(--primary) 100%);
    background-size: 200% 100%;
}

@keyframes loading-bar {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.player-status-bar.connected {
    width: 100%;
    background: var(--success);
}

/* ═══════════════════════════════════════════════
   GOOGLE ADSENSE — 728x90 Leaderboard centré
   ═══════════════════════════════════════════════ */

.ad-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.ad-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 728px;
    max-width: 100%;
}

.ad-label {
    display: block;
    font-size: 0.6rem;
    color: var(--ad-label);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font);
    text-align: center;
}

.ad-header {
    background: var(--ad-bg);
    border-bottom: 1px solid var(--ad-border);
    padding: 16px 0;
}

.ad-middle {
    padding: 24px 0;
    margin: 16px 0;
    background: var(--ad-bg);
    border: 1px solid var(--ad-border);
    border-radius: var(--radius);
    grid-column: 1 / -1;
}

.ad-middle .ad-wrapper {
    padding: 12px 0;
}

.ad-footer {
    background: var(--ad-bg);
    border-top: 1px solid var(--ad-border);
    padding: 16px 0;
    margin-top: 32px;
}

.ad-above-player {
    position: fixed;
    bottom: 80px;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--ad-bg);
    border-top: 1px solid var(--ad-border);
    padding: 8px 0;
}

.ad-above-player .ad-wrapper {
    padding: 8px 0;
}

.ad-above-player .ad-label {
    display: none;
}

/* Mobile : cacher les 728x90 (trop large) */
@media (max-width: 767px) {
    .ad-wrapper {
        display: none;
    }

    .ad-header,
    .ad-middle,
    .ad-footer,
    .ad-above-player {
        display: none !important;
    }
}

.ad-container ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

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

    .search-box {
        flex-direction: column;
    }

    .search-btn {
        padding: 12px;
    }

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

    .station-card {
        padding: 16px;
    }

    .player-inner {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 16px;
    }

    .player-info {
        order: 1;
        flex: 1 1 60%;
    }

    .player-controls {
        order: 2;
    }

    .player-volume {
        order: 4;
        flex: 1 1 100%;
    }

    .volume-slider {
        flex: 1;
    }

    .player-actions {
        order: 3;
    }

    .player-favicon {
        width: 40px;
        height: 40px;
    }

    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab {
        white-space: nowrap;
        padding: 10px 14px;
        font-size: 0.82rem;
    }

    body {
        padding-bottom: 140px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 32px 0 24px;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-desc {
        font-size: 0.9rem;
    }

    .station-favicon {
        width: 44px;
        height: 44px;
    }

    .station-play-btn {
        width: 38px;
        height: 38px;
    }

    .header-actions {
        gap: 8px;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* Print */
@media print {
    .player,
    .ad-wrapper,
    .ad-above-player {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════
   MODAL DÉTAIL RADIO
   ═══════════════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease-out;
    overflow-y: auto;
}

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

.modal-container {
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
    animation: slideUpModal 0.35s ease-out;
    box-shadow: var(--shadow-lg);
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Bouton fermer ── */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 10;
}

[data-theme="light"] .modal-close {
    background: rgba(0, 0, 0, 0.04);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border-color: var(--danger);
}

/* ── Header ── */
.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.modal-station-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.modal-favicon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-body);
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.modal-station-info {
    min-width: 0;
}

.modal-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 4px;
    line-height: 1.3;
    word-break: break-word;
}

.modal-location {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.modal-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.modal-status.online {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
}

.modal-status.offline {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-dot 1.5s infinite;
}

.modal-status.offline .status-dot {
    animation: none;
}

/* ── Actions ── */
.modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.modal-play-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
}

.modal-play-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.modal-play-icon {
    width: 18px;
    height: 18px;
}

.modal-play-btn.playing {
    background: var(--success);
}

.modal-fav-btn,
.modal-share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-size: 1.3rem;
}

[data-theme="light"] .modal-fav-btn,
[data-theme="light"] .modal-share-btn {
    background: rgba(0, 0, 0, 0.04);
}

.modal-fav-btn:hover {
    color: var(--warning);
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

.modal-fav-btn.is-fav {
    color: var(--warning);
    border-color: var(--warning);
}

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

.modal-share-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-glow);
}

/* ── Section title ── */
.modal-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* ── Info grid ── */
.modal-details {
    margin-bottom: 24px;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.modal-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    background: var(--bg-body);
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
}

[data-theme="light"] .modal-info-item {
    background: var(--bg-input);
}

.info-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

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

/* ── Tags ── */
.modal-tags-section {
    margin-bottom: 24px;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.modal-tag {
    padding: 5px 14px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.modal-tag:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: var(--primary);
}

/* ── Homepage ── */
.modal-homepage-section {
    margin-bottom: 24px;
}

.modal-homepage-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
    word-break: break-all;
}

.modal-homepage-link:hover {
    border-color: var(--primary);
    background: var(--primary-glow);
}

/* ── Map ── */
.modal-map-section {
    margin-bottom: 24px;
}

.modal-map-preview {
    display: block;
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.modal-map-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    filter: brightness(0.9);
    transition: filter var(--transition);
}

.modal-map-preview:hover .modal-map-img {
    filter: brightness(1);
}

.modal-map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-size: 0.82rem;
    font-weight: 500;
    text-align: center;
}

/* ── Similaires ── */
.modal-similar-section {
    margin-bottom: 8px;
}

.modal-similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.similar-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

[data-theme="light"] .similar-card {
    background: var(--bg-input);
}

.similar-card:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}

.similar-favicon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-dark);
    flex-shrink: 0;
}

.similar-info {
    min-width: 0;
}

.similar-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-meta {
    font-size: 0.7rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Loading dans modal ── */
.modal-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    display: none;
}

.modal-loading .spinner {
    margin: 0 auto 12px;
}

/* ═══════════════════════════════════════════════
   TOAST NOTIFICATION
   ═══════════════════════════════════════════════ */

.toast {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-light);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font);
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    animation: toastIn 0.3s ease-out forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.toast.hiding {
    animation: toastOut 0.3s ease-in forwards;
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* ═══════════════════════════════════════════════
   MODAL RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
        align-items: flex-start;
    }

    .modal-container {
        max-height: none;
    }

    .modal-content {
        padding: 20px;
        border-radius: var(--radius-sm);
    }

    .modal-header {
        flex-direction: column;
        gap: 16px;
    }

    .modal-favicon {
        width: 64px;
        height: 64px;
    }

    .modal-name {
        font-size: 1.2rem;
    }

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

    .modal-similar-grid {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        width: 100%;
    }

    .modal-play-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 16px;
    }

    .modal-station-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .modal-actions {
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════
   PWA — BANNIÈRE D'INSTALLATION
   ═══════════════════════════════════════════════ */

.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    z-index: 1500;
    animation: slideUp 0.4s ease-out;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .install-banner {
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
}

.install-banner-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.install-banner-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.install-banner-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.install-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.install-banner-text strong {
    font-size: 0.95rem;
    color: var(--text-light);
}

.install-banner-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.install-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.install-btn {
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
}

.install-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.install-dismiss {
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
}

.install-dismiss:hover {
    color: var(--text-light);
    border-color: var(--border-light);
}

/* Bouton installer dans le header */
.install-header-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

[data-theme="light"] .install-header-btn {
    background: rgba(0, 0, 0, 0.04);
}

.install-header-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-glow);
}

.install-header-btn svg {
    width: 20px;
    height: 20px;
}

/* ═══════════════════════════════════════════════
   PWA — BANNIÈRE HORS-LIGNE
   ═══════════════════════════════════════════════ */

.offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

.offline-banner-inner {
    background: var(--warning);
    color: #000;
    text-align: center;
    padding: 8px 20px;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: var(--font);
}

/* ═══════════════════════════════════════════════
   PWA — STANDALONE MODE (quand installé)
   ═══════════════════════════════════════════════ */

/* Quand l'app est en mode standalone, cacher le lien retour */
@media (display-mode: standalone) {
    .nav-link {
        display: none;
    }

    /* Ajouter du padding en haut pour le notch iOS */
    .main-header {
        padding-top: max(16px, env(safe-area-inset-top));
    }

    /* Padding en bas pour le geste iOS */
    .player {
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }

    body {
        padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
    }

    /* Cacher la bannière d'installation */
    .install-banner,
    .install-header-btn {
        display: none !important;
    }
}

/* ── Responsive PWA ── */
@media (max-width: 768px) {
    .install-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .install-banner-info {
        flex-direction: column;
    }

    .install-banner-actions {
        width: 100%;
        justify-content: center;
    }

    .install-btn {
        flex: 1;
    }
}

/* ═══════════════════════════════════════════════
   ÉGALISEUR VISUEL ANIMÉ
   ═══════════════════════════════════════════════ */

/* ── Égaliseur principal (player) ── */
.equalizer {
    display: flex;
    align-items: center;
    padding: 0 8px;
    flex-shrink: 0;
}

.eq-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 32px;
    padding: 4px 0;
}

.eq-bar {
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(
        to top,
        var(--primary) 0%,
        #60A5FA 50%,
        #93C5FD 100%
    );
    animation: eq-dance 0.8s ease-in-out infinite alternate;
    animation-delay: var(--eq-delay, 0s);
    transform-origin: bottom;
    will-change: transform;
}

.eq-bar:nth-child(1) { height: 60%; }
.eq-bar:nth-child(2) { height: 85%; }
.eq-bar:nth-child(3) { height: 45%; }
.eq-bar:nth-child(4) { height: 95%; }
.eq-bar:nth-child(5) { height: 55%; }
.eq-bar:nth-child(6) { height: 75%; }
.eq-bar:nth-child(7) { height: 40%; }
.eq-bar:nth-child(8) { height: 90%; }
.eq-bar:nth-child(9) { height: 50%; }

@keyframes eq-dance {
    0% {
        transform: scaleY(0.2);
    }
    25% {
        transform: scaleY(0.8);
    }
    50% {
        transform: scaleY(0.4);
    }
    75% {
        transform: scaleY(1);
    }
    100% {
        transform: scaleY(0.3);
    }
}

/* Pause : barres figées en bas */
.equalizer.paused .eq-bar {
    animation-play-state: paused;
    transform: scaleY(0.15);
    transition: transform 0.4s ease;
}

/* ── Petit égaliseur sur le favicon du player ── */
.player-favicon-wrapper {
    position: relative;
    flex-shrink: 0;
}

.eq-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.eq-bars-small {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.eq-bar-s {
    width: 3px;
    border-radius: 1.5px;
    background: white;
    animation: eq-dance-small 0.7s ease-in-out infinite alternate;
    transform-origin: bottom;
}

.eq-bar-s:nth-child(1) { height: 50%; animation-delay: 0s; }
.eq-bar-s:nth-child(2) { height: 80%; animation-delay: 0.15s; }
.eq-bar-s:nth-child(3) { height: 40%; animation-delay: 0.3s; }

@keyframes eq-dance-small {
    0%   { transform: scaleY(0.3); }
    50%  { transform: scaleY(1); }
    100% { transform: scaleY(0.5); }
}

.eq-overlay.paused .eq-bar-s {
    animation-play-state: paused;
    transform: scaleY(0.2);
}

/* ── Égaliseur sur les cartes (station en lecture) ── */
.station-card.playing .station-favicon-wrapper {
    position: relative;
}

.station-eq-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    animation: fadeIn 0.3s ease-out;
}

.station-eq-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 24px;
}

.station-eq-bar {
    width: 3px;
    border-radius: 1.5px;
    background: white;
    animation: eq-dance-small 0.7s ease-in-out infinite alternate;
    transform-origin: bottom;
}

.station-eq-bar:nth-child(1) { height: 45%; animation-delay: 0s; }
.station-eq-bar:nth-child(2) { height: 80%; animation-delay: 0.2s; }
.station-eq-bar:nth-child(3) { height: 35%; animation-delay: 0.1s; }
.station-eq-bar:nth-child(4) { height: 65%; animation-delay: 0.3s; }

/* ── Grand égaliseur (modal détail) ── */
.modal-equalizer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    margin: -8px 0 16px 0;
    background: linear-gradient(
        180deg,
        rgba(37, 99, 235, 0.06) 0%,
        transparent 100%
    );
    border-radius: var(--radius-sm);
}

.eq-bars-large {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 48px;
    padding: 0 8px;
}

.eq-bar-l {
    width: 5px;
    border-radius: 2.5px;
    background: linear-gradient(
        to top,
        var(--primary) 0%,
        #60A5FA 40%,
        #93C5FD 70%,
        #BFDBFE 100%
    );
    animation: eq-dance-large 0.9s ease-in-out infinite alternate;
    animation-delay: var(--eq-delay, 0s);
    transform-origin: bottom;
    will-change: transform;
}

.eq-bar-l:nth-child(1)  { height: 55%; }
.eq-bar-l:nth-child(2)  { height: 80%; }
.eq-bar-l:nth-child(3)  { height: 40%; }
.eq-bar-l:nth-child(4)  { height: 95%; }
.eq-bar-l:nth-child(5)  { height: 60%; }
.eq-bar-l:nth-child(6)  { height: 75%; }
.eq-bar-l:nth-child(7)  { height: 35%; }
.eq-bar-l:nth-child(8)  { height: 90%; }
.eq-bar-l:nth-child(9)  { height: 50%; }
.eq-bar-l:nth-child(10) { height: 85%; }
.eq-bar-l:nth-child(11) { height: 45%; }
.eq-bar-l:nth-child(12) { height: 70%; }

@keyframes eq-dance-large {
    0% {
        transform: scaleY(0.15);
    }
    20% {
        transform: scaleY(0.9);
    }
    40% {
        transform: scaleY(0.3);
    }
    60% {
        transform: scaleY(1);
    }
    80% {
        transform: scaleY(0.5);
    }
    100% {
        transform: scaleY(0.2);
    }
}

.modal-equalizer.paused .eq-bar-l {
    animation-play-state: paused;
    transform: scaleY(0.1);
    transition: transform 0.5s ease;
}

.eq-label {
    font-size: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    opacity: 0.8;
}

/* ── Thème clair : ajustement des dégradés ── */
[data-theme="light"] .eq-bar {
    background: linear-gradient(
        to top,
        var(--primary) 0%,
        #3B82F6 50%,
        #60A5FA 100%
    );
}

[data-theme="light"] .eq-bar-l {
    background: linear-gradient(
        to top,
        var(--primary) 0%,
        #3B82F6 40%,
        #60A5FA 70%,
        #93C5FD 100%
    );
}

[data-theme="light"] .eq-overlay {
    background: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .station-eq-overlay {
    background: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .modal-equalizer {
    background: linear-gradient(
        180deg,
        rgba(37, 99, 235, 0.04) 0%,
        transparent 100%
    );
}

/* ── Lueur sous l'égaliseur du player ── */
.equalizer::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: var(--primary);
    filter: blur(8px);
    opacity: 0.3;
    border-radius: 50%;
    pointer-events: none;
}

.equalizer {
    position: relative;
}

.equalizer.paused::after {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* ── Animation douce d'apparition ── */
.equalizer,
.modal-equalizer,
.eq-overlay,
.station-eq-overlay {
    animation: eqFadeIn 0.4s ease-out;
}

@keyframes eqFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .equalizer {
        display: none;
    }

    .eq-bars-large {
        height: 36px;
        gap: 3px;
    }

    .eq-bar-l {
        width: 4px;
    }
}

@media (max-width: 480px) {
    .eq-bars-large {
        height: 28px;
        gap: 2px;
    }

    .eq-bar-l {
        width: 3px;
    }
}

/* ═══════════════════════════════════════════════
   CONCERTS & SPECTACLES
   ═══════════════════════════════════════════════ */

/* ── Onglet concerts ── */
.tab-concerts {
    color: var(--warning) !important;
}

.tab-concerts.active {
    color: var(--warning) !important;
    border-bottom-color: var(--warning) !important;
}

/* ── Section ── */
.concerts-section {
    padding: 24px 0 48px;
}

.concerts-header {
    text-align: center;
    margin-bottom: 24px;
}

.concerts-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.concerts-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ── Filtres concerts ── */
.concerts-filters {
    max-width: 900px;
    margin: 0 auto 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.concerts-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.concerts-search-box .search-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: var(--text-dim);
    pointer-events: none;
}

.concerts-search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 1rem;
    font-family: var(--font);
    transition: all var(--transition);
    outline: none;
}

[data-theme="light"] .concerts-search-input {
    background: var(--bg-card);
}

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

.concerts-search-input:focus {
    border-color: var(--warning);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.concerts-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

/* ── Résultats ── */
.concerts-results-header {
    margin-bottom: 16px;
}

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

/* ── Grille concerts ── */
.concerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* ── Carte concert ── */
.concert-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.concert-card:hover {
    border-color: var(--warning);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .concert-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.concert-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg-body);
}

.concert-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.concert-card:hover .concert-image {
    transform: scale(1.05);
}

.concert-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: white;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.concert-price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    background: var(--warning);
    color: #000;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.concert-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.concert-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.concert-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.concert-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.concert-meta-icon {
    flex-shrink: 0;
    font-size: 0.85rem;
}

.concert-description {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.concert-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.concert-reserve-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--warning);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    flex: 1;
    justify-content: center;
}

.concert-reserve-btn:hover {
    background: #D97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    color: #000;
}

.concert-merchant {
    font-size: 0.68rem;
    color: var(--text-dim);
    text-align: right;
    white-space: nowrap;
}

/* ── Image placeholder ── */
.concert-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-body) 100%);
    font-size: 3rem;
}

/* ── Mention affiliation ── */
.concerts-affiliation-notice {
    margin-top: 32px;
    padding: 12px 20px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
}

[data-theme="light"] .concerts-affiliation-notice {
    background: var(--bg-card);
}

.concerts-affiliation-notice strong {
    color: var(--text-muted);
}

/* ── Responsive concerts ── */
@media (max-width: 768px) {
    .concerts-filter-row {
        grid-template-columns: 1fr;
    }

    .concerts-grid {
        grid-template-columns: 1fr;
    }

    .concerts-title {
        font-size: 1.4rem;
    }

    .concert-image-wrapper {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .concerts-title {
        font-size: 1.2rem;
    }

    .concert-image-wrapper {
        height: 140px;
    }

    .concert-body {
        padding: 12px;
    }

    .concert-footer {
        padding: 10px 12px;
        flex-direction: column;
    }

    .concert-reserve-btn {
        width: 100%;
    }

    .concert-merchant {
        text-align: center;
    }
}