/**
 * Webradio Media v2 - Stylesheet
 * Couleurs : #1B213A (bleu nuit) / #ffffff (blanc) / #7DD3FC (accent bleu clair)
 */

:root {
    --primary: #1B213A;
    --primary-light: #2D3654;
    --primary-dark: #12172a;
    --accent: #7DD3FC;
    --accent-dark: #38BDF8;
    --white: #ffffff;
    --light-bg: #F8FAFC;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --success: #22C55E;
    --warning: #F59E0B;
    --error: #EF4444;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container-max: 1280px;
    --header-height: 70px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
}

/* Material Icons Text */
.material-icons-text {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 1.25em;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}
.section-icon {
    color: var(--accent);
    margin-right: 0.5rem;
}
.header-icon {
    color: var(--accent);
    margin-right: 0.75rem;
}
.pricing-features .check {
    color: var(--success);
    margin-right: 0.5rem;
}
.pricing-features .uncheck {
    color: var(--gray-400);
    margin-right: 0.5rem;
}
.sidebar-box h4 .material-icons-text {
    color: var(--accent);
    margin-right: 0.5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-sans); font-size: 1rem; line-height: 1.6; color: var(--gray-800); background: var(--white); }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
p a, .content a, .description a, .radio-description a, article a:not(.btn) { color: #1e3a8a; text-decoration: underline; }
p a:hover, .content a:hover, .description a:hover, .radio-description a:hover, article a:not(.btn):hover { color: #3b82f6; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* Header */
.header { background: var(--primary); position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); }
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo img { height: 40px; width: auto; }
.logo-text { font-size: 1.25rem; font-weight: 700; color: var(--white); }
.logo-text span { color: var(--accent); }

/* Desktop Nav */
.nav-desktop { display: none; }
@media (min-width: 1024px) { .nav-desktop { display: flex; align-items: center; gap: 2rem; } }
.nav-desktop > a { color: rgba(255,255,255,0.8); font-weight: 500; padding: 0.5rem 0; position: relative; }
.nav-desktop > a:hover, .nav-desktop > a.active { color: var(--white); }
.nav-desktop > a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent); transition: width var(--transition-base); }
.nav-desktop > a:hover::after, .nav-desktop > a.active::after { width: 100%; }

/* Dropdown Menu */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: color var(--transition-fast);
}
.nav-dropdown-toggle:hover { color: var(--white); }
.nav-dropdown-arrow { font-size: 1.25rem; transition: transform var(--transition-fast); }
.nav-dropdown:hover .nav-dropdown-arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: var(--white);
}
.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}
.nav-dropdown-menu a:hover {
    background: var(--gray-50);
    color: var(--primary);
}
.nav-dropdown-menu a .material-icons-text {
    color: var(--accent-dark);
    font-size: 1.25rem;
}

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-link-login, .nav-link-logout {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    display: none;
}
@media (min-width: 1024px) {
    .nav-link-login, .nav-link-logout { display: inline-block; }
}
.nav-link-login:hover, .nav-link-logout:hover { color: var(--white); }
.nav-link-logout { color: rgba(255,255,255,0.6); }

/* Mobile Toggle */
.mobile-toggle { display: flex; flex-direction: column; gap: 5px; padding: 0.5rem; cursor: pointer; }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }
.mobile-toggle span { width: 24px; height: 2px; background: var(--white); transition: all var(--transition-base); }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Offcanvas */
.offcanvas { position: fixed; top: 0; right: -100%; width: 300px; max-width: 85vw; height: 100vh; background: var(--primary); z-index: 2000; transition: right var(--transition-base); overflow-y: auto; box-shadow: var(--shadow-xl); }
.offcanvas.open { right: 0; }
.offcanvas-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.offcanvas-close { color: var(--white); font-size: 1.5rem; padding: 0.5rem; }
.offcanvas-nav { padding: 1rem 0; }
.offcanvas-nav a { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.5rem; color: rgba(255,255,255,0.8); font-weight: 500; border-left: 3px solid transparent; transition: all var(--transition-fast); }
.offcanvas-nav a:hover, .offcanvas-nav a.active { color: var(--white); background: rgba(255,255,255,0.05); border-left-color: var(--accent); }
.offcanvas-nav a .material-icons-text { color: var(--accent); font-size: 1.25rem; }
.offcanvas-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 0.75rem 1.5rem; }
.offcanvas-label { display: block; padding: 0.75rem 1.5rem 0.5rem; color: rgba(255,255,255,0.5); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.offcanvas-footer { padding: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1500; opacity: 0; visibility: hidden; transition: all var(--transition-base); }
.overlay.active { opacity: 1; visibility: visible; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-weight: 600; font-size: 0.9375rem; border-radius: var(--radius-md); transition: all var(--transition-fast); white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--primary); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--primary); color: var(--white); }
.btn-secondary:hover { background: var(--primary-light); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-account { background: var(--accent-dark); color: var(--white); padding: 0.5rem 1rem; border-radius: var(--radius-md); font-weight: 600; font-size: 0.875rem; }
.btn-account:hover { background: var(--accent); color: var(--primary); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--gray-100); }
.btn-outline-white { border: 2px solid var(--white); color: var(--white); background: transparent; }
.btn-outline-white:hover { background: var(--white); color: var(--primary); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { background: var(--primary); color: var(--white); padding: 4rem 0; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(125,211,252,0.15) 0%, transparent 70%); }
.hero-content { max-width: 600px; position: relative; z-index: 1; }
.hero-title { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
@media (min-width: 768px) { .hero { padding: 5rem 0; } .hero-title { font-size: 3.5rem; } }
.hero-title .text-gradient { background: linear-gradient(135deg, var(--accent) 0%, #A5F3FC 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.125rem; opacity: 0.9; margin-bottom: 2rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-visual { display: none; }
@media (min-width: 1024px) {
    .hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
    .hero-visual { display: block; }
    .hero-radio-cards { display: flex; gap: 1rem; justify-content: center; }
    .hero-radio-card { width: 120px; height: 120px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); animation: float 3s ease-in-out infinite; animation-delay: calc(var(--delay, 0) * 1s); }
    .hero-radio-card img { width: 100%; height: 100%; object-fit: cover; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Sections */
.section { padding: 4rem 0; }
.section-dark { background: var(--primary); color: var(--white); }
.section-light { background: var(--light-bg); }
.section-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-title { font-size: 1.5rem; font-weight: 700; }
.section-dark .section-title { color: var(--white); }
.section-link { color: var(--accent); font-weight: 500; }
.section-link:hover { text-decoration: underline; }
.text-center { text-align: center; }

/* Radio Grid */
.radio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .radio-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .radio-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.radio-grid-compact { gap: 0.75rem; }
@media (min-width: 640px) { .radio-grid-compact { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .radio-grid-compact { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1280px) { .radio-grid-compact { grid-template-columns: repeat(4, 1fr); } }
.radio-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--transition-base); }
.section-dark .radio-card { background: var(--primary-light); }
.radio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.radio-card-img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--gray-100); border-radius: var(--radius-lg); }
.radio-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform var(--transition-base); }
.radio-card:hover .radio-card-img img { transform: scale(1.05); }
.radio-card-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(27,33,58,0.6); opacity: 0; transition: opacity var(--transition-fast); }
.radio-card:hover .radio-card-play { opacity: 1; }
.radio-card-play svg { width: 48px; height: 48px; color: var(--white); }
.radio-card-info { padding: 1rem; }
.radio-card-info h3 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-card-info h3 a:hover { color: var(--accent); }
.section-dark .radio-card-info h3 { color: var(--white); }
.radio-card-genre { font-size: 0.8125rem; color: var(--gray-500); }
.section-dark .radio-card-genre { color: var(--gray-400); }

/* Radio Slider */
.radio-slider { position: relative; }
.radio-slider-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 0.5rem; }
.radio-slider-track::-webkit-scrollbar { display: none; }
.radio-slider-track .radio-card { flex: 0 0 160px; scroll-snap-align: start; }
@media (min-width: 768px) { .radio-slider-track .radio-card { flex: 0 0 200px; } }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--primary); box-shadow: var(--shadow-md); display: none; align-items: center; justify-content: center; z-index: 10; }
@media (min-width: 768px) { .slider-btn { display: flex; } }
.slider-btn:hover { background: var(--primary); color: var(--white); }
.slider-prev { left: -20px; }
.slider-next { right: -20px; }

/* Genre Grid */
.genre-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .genre-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .genre-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.genre-card { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; background: var(--primary); }
.genre-card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.5; transition: all var(--transition-base); }
.genre-card:hover .genre-card-bg { opacity: 0.7; transform: scale(1.05); }
.genre-card-content { position: relative; height: 100%; display: flex; align-items: flex-end; padding: 1rem; background: linear-gradient(to top, rgba(27,33,58,0.9) 0%, transparent 100%); }
.genre-card h3 { color: var(--white); font-size: 1rem; font-weight: 600; }

/* CTA */
.cta-section { background: var(--primary); color: var(--white); }
.cta-box { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .cta-box { grid-template-columns: 1fr auto; } }
.cta-content h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.75rem; }
.cta-content p { opacity: 0.9; margin-bottom: 1.5rem; max-width: 500px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-card { text-align: center; padding: 1.5rem; }
.feature-icon { width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: var(--radius-lg); background: var(--accent); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.875rem; color: var(--gray-500); }

/* Page Header */
.page-header { background: var(--primary); color: var(--white); padding: 2rem 0; }
.page-header h1 { font-size: 2rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.875rem; margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.5); }

/* Breadcrumb avec barre de fond */
.breadcrumb-nav { background: var(--primary); padding: 1rem 0; }
.breadcrumb-nav .container { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.875rem; }
.breadcrumb-nav a { color: rgba(255,255,255,0.8); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb-nav span { color: rgba(255,255,255,0.5); }
.breadcrumb-nav .material-icons-text { font-size: 1rem; color: rgba(255,255,255,0.4); }

/* Player Page */
.radio-player-layout { display: grid; gap: 2rem; padding: 2rem 0; }
@media (min-width: 1024px) { .radio-player-layout { grid-template-columns: 1fr 300px; } }
.player-main { background: var(--white); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.player-cover { position: relative; aspect-ratio: 16/9; background: var(--primary); }
@media (min-width: 768px) { .player-cover { aspect-ratio: 21/9; } }
.player-cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.player-cover-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2rem; }
.player-cover-logo { width: 120px; height: 120px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); }
.player-cover-logo img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.player-cover-info { color: var(--white); }
.player-cover-info h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.player-cover-info .genre-badge { display: inline-block; padding: 0.25rem 0.75rem; background: rgba(255,255,255,0.2); border-radius: var(--radius-full); font-size: 0.875rem; }
.player-controls { padding: 2rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.play-btn { width: 70px; height: 70px; border-radius: 50%; background: var(--accent); color: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); transition: all var(--transition-fast); }
.play-btn:hover { transform: scale(1.05); background: var(--accent-dark); }
.play-btn svg { width: 32px; height: 32px; margin-left: 4px; }
.volume-control { display: flex; align-items: center; gap: 0.75rem; flex: 1; max-width: 200px; }
.volume-control input[type="range"] { flex: 1; height: 6px; -webkit-appearance: none; background: var(--gray-200); border-radius: var(--radius-full); }
.volume-control input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); cursor: pointer; }
.player-actions { display: flex; gap: 0.5rem; margin-left: auto; }
.player-info { padding: 0 2rem 2rem; }
.player-info h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.player-info p { color: var(--gray-600); line-height: 1.7; }
.player-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-200); }
.player-meta-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--gray-600); }
.player-meta-item svg { color: var(--accent); }

/* Sidebar */
.sidebar-box { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.sidebar-box h4 { font-size: 1rem; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--gray-200); }
.similar-radio { display: flex; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--gray-100); }
.similar-radio:last-child { border-bottom: none; }
.similar-radio img { width: 50px; height: 50px; border-radius: var(--radius-md); object-fit: cover; }
.similar-radio-info h5 { font-size: 0.875rem; font-weight: 600; }
.similar-radio-info span { font-size: 0.75rem; color: var(--gray-500); }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.5rem; color: var(--gray-700); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--gray-300); border-radius: var(--radius-md); font-size: 1rem; font-family: inherit; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(125,211,252,0.2); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-error { color: var(--error); font-size: 0.875rem; margin-top: 0.25rem; }
.form-help { color: var(--gray-500); font-size: 0.875rem; margin-top: 0.25rem; }
.required { color: var(--error); }

/* Alerts */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-md); margin-bottom: 1rem; display: flex; align-items: flex-start; gap: 0.75rem; }
.alert-success { background: #DCFCE7; color: #166534; }
.alert-error { background: #FEE2E2; color: #991B1B; }
.alert-warning { background: #FEF3C7; color: #92400E; }

/* Auth */
.auth-section { min-height: calc(100vh - var(--header-height) - 200px); display: flex; align-items: center; justify-content: center; padding: 3rem 1rem; background: var(--light-bg); }
.auth-box { background: var(--white); border-radius: var(--radius-xl); padding: 2.5rem; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.auth-header p { color: var(--gray-500); }
.auth-footer { text-align: center; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-200); color: var(--gray-500); }
.auth-footer a { color: var(--accent); font-weight: 500; }

/* Search */
.search-box { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-md); margin-bottom: 2rem; }
.search-form { display: flex; gap: 0.75rem; }
.search-input { flex: 1; padding: 0.875rem 1rem; border: 1px solid var(--gray-300); border-radius: var(--radius-md); font-size: 1rem; }
.search-input:focus { outline: none; border-color: var(--accent); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.pagination a, .pagination span { padding: 0.5rem 1rem; border-radius: var(--radius-md); font-weight: 500; }
.pagination a { background: var(--white); color: var(--gray-700); box-shadow: var(--shadow-sm); transition: all var(--transition-fast); }
.pagination a:hover { background: var(--primary); color: var(--white); }
.pagination span.current { background: var(--primary); color: var(--white); }

/* Footer */
.footer { background: var(--primary); color: var(--white); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: span 2; }
@media (min-width: 768px) { .footer-brand { grid-column: span 1; } }
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.875rem; max-width: 280px; }
.footer-nav h5 { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; color: var(--gray-400); }
.footer-nav ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { color: rgba(255,255,255,0.7); font-size: 0.9375rem; transition: color var(--transition-fast); }
.footer-nav a:hover { color: var(--white); }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.875rem; color: rgba(255,255,255,0.5); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: rgba(255,255,255,0.7); }
.footer-social a:hover { color: var(--accent); }

/* Player Bar */
.player-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--primary); color: var(--white); padding: 1rem 0; box-shadow: 0 -4px 20px rgba(0,0,0,0.2); z-index: 900; display: none; }
.player-bar-inner { display: flex; align-items: center; gap: 1rem; }
.player-bar-info { display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 0; }
.player-bar-cover { width: 56px; height: 56px; border-radius: var(--radius-md); object-fit: cover; flex-shrink: 0; }
.player-bar-text { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; flex: 1; }
.player-bar-name { font-weight: 600; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar-desc { font-size: 0.8rem; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.player-bar-desc a { color: var(--accent); text-decoration: underline; }
.player-bar-desc a:hover { color: #fff; }
.player-bar-controls { display: flex; align-items: center; gap: 0.5rem; }
.player-bar-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); transition: background var(--transition-fast); }
.player-bar-btn:hover { background: rgba(255,255,255,0.1); }
.player-bar-btn.play { background: var(--accent); color: var(--primary); }

/* Utils */
.empty-state { text-align: center; padding: 3rem; color: var(--gray-500); }
.empty-state svg { margin-bottom: 1rem; color: var(--gray-300); }
.empty-state h3 { margin-bottom: 0.5rem; color: var(--gray-700); }
.empty-state .btn { margin-top: 1rem; }

.badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }
.badge-success { background: rgba(34,197,94,0.1); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.1); color: var(--warning); }
.badge-error { background: rgba(239,68,68,0.1); color: var(--error); }
.badge-primary { background: rgba(125,211,252,0.2); color: var(--accent-dark); }

.live-indicator { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.75rem; background: rgba(239,68,68,0.1); color: var(--error); border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }
.live-indicator::before { content: ''; width: 8px; height: 8px; background: var(--error); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.2); } }

/* Dashboard */
.dashboard-layout { display: grid; gap: 2rem; padding: 2rem 0; }
@media (min-width: 768px) { .dashboard-layout { grid-template-columns: 250px 1fr; } }
.dashboard-sidebar { background: var(--white); border-radius: var(--radius-lg); padding: 1rem; height: fit-content; box-shadow: var(--shadow-sm); }
.dashboard-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.dashboard-nav-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: var(--radius-md); color: var(--gray-700); transition: all var(--transition-fast); }
.dashboard-nav-link:hover { background: var(--gray-100); }
.dashboard-nav-link.active { background: rgba(125,211,252,0.2); color: var(--primary); font-weight: 500; }
.dashboard-nav hr { border: none; border-top: 1px solid var(--gray-200); margin: 0.5rem 0; }

/* Pricing */
.pricing-grid { display: grid; gap: 1.5rem; margin: 2rem 0; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.pricing-card { background: var(--white); border-radius: var(--radius-xl); padding: 2rem; border: 2px solid var(--gray-200); position: relative; }
.pricing-popular { border-color: var(--accent); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--primary); padding: 0.25rem 1rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }
.pricing-header { text-align: center; margin-bottom: 1.5rem; }
.pricing-header h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.pricing-header p { color: var(--gray-500); font-size: 0.875rem; }
.pricing-price { text-align: center; margin-bottom: 1.5rem; }
.pricing-price .price { font-size: 2.5rem; font-weight: 700; color: var(--primary); }
.pricing-price .period { color: var(--gray-500); }
.pricing-features { margin-bottom: 1.5rem; }
.pricing-features li { padding: 0.5rem 0; border-bottom: 1px solid var(--gray-100); }

/* Toast */
.toast-container { position: fixed; top: calc(var(--header-height) + 1rem); right: 1rem; z-index: 3000; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { background: var(--white); border-radius: var(--radius-md); padding: 1rem 1.25rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 0.75rem; min-width: 280px; max-width: 400px; transform: translateX(120%); transition: transform var(--transition-base); }
.toast-show { transform: translateX(0); }
.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--error); }
.toast-close { margin-left: auto; color: var(--gray-400); font-size: 1.25rem; }

/* Cookie */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); padding: 1rem; box-shadow: 0 -4px 20px rgba(0,0,0,0.1); z-index: 2500; }
.cookie-content { max-width: var(--container-max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.cookie-content p { flex: 1; min-width: 200px; font-size: 0.875rem; color: var(--gray-600); }
.cookie-actions { display: flex; gap: 0.5rem; }

/* Radio items (list view) */
.radio-item { display: flex; gap: 1rem; align-items: center; padding: 1rem; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: all var(--transition-base); }
.radio-item:hover { box-shadow: var(--shadow-md); }
.radio-item-img { width: 60px; height: 60px; border-radius: var(--radius-md); overflow: hidden; flex-shrink: 0; position: relative; background: var(--gray-100); }
.radio-item-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.radio-item-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(27,33,58,0.6); opacity: 0; transition: opacity var(--transition-fast); }
.radio-item:hover .radio-item-play { opacity: 1; }
.radio-item-play svg { color: var(--white); }
.radio-item-info { flex: 1; min-width: 0; }
.radio-item-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.radio-item-info h3 a:hover { color: var(--accent); }
.radio-item-info span { font-size: 0.875rem; color: var(--gray-500); }

/* Page Header Gradient */
.page-header-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}
.page-header-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(125, 211, 252, 0.2) 0%, transparent 50%);
}
.page-header-gradient .container {
    position: relative;
    z-index: 1;
}

/* Sidebar */
.sidebar-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}
.sidebar-box h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
}

/* Radio Spotlight Notification */
.radio-spotlight {
    position: fixed;
    bottom: 100px;
    right: 1rem;
    max-width: 320px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: 1100;
    overflow: hidden;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--accent);
}
.radio-spotlight.show {
    transform: translateX(0);
}
.radio-spotlight-header {
    background: var(--primary);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.radio-spotlight-header span {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.radio-spotlight-close {
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    opacity: 0.7;
}
.radio-spotlight-close:hover {
    opacity: 1;
}
.radio-spotlight-content {
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}
.radio-spotlight-img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}
.radio-spotlight-info {
    flex: 1;
    min-width: 0;
}
.radio-spotlight-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.radio-spotlight-info span {
    font-size: 0.8125rem;
    color: var(--gray-500);
}
.radio-spotlight-actions {
    padding: 0 1rem 1rem;
    display: flex;
    gap: 0.5rem;
}
.radio-spotlight-actions .btn {
    flex: 1;
    font-size: 0.8125rem;
    padding: 0.5rem;
}

/* Radio Hero (page radio améliorée) */
.radio-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}
.radio-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(125,211,252,0.1) 0%, transparent 60%);
    pointer-events: none;
}
.radio-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 1;
}
@media (min-width: 768px) {
    .radio-hero-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.radio-hero-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.radio-hero-cover {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    flex-shrink: 0;
}
.radio-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.radio-hero-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27,33,58,0.5);
    cursor: pointer;
    transition: background var(--transition-fast);
}
.radio-hero-play:hover {
    background: rgba(27,33,58,0.7);
}
.radio-hero-play svg {
    color: var(--white);
}
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.radio-hero-text {
    color: var(--white);
}
.radio-hero-genre {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(125,211,252,0.2);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.radio-hero-genre a {
    color: inherit;
}
.radio-hero-text h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
    .radio-hero-text h1 {
        font-size: 2.5rem;
    }
}
.radio-hero-now {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.25rem;
}
.pulse {
    width: 10px;
    height: 10px;
    background: var(--error);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
.radio-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-icon:hover {
    background: rgba(255,255,255,0.2);
}
.radio-hero-volume {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    font-size: 0.875rem;
}
.radio-hero-volume input[type="range"] {
    width: 120px;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.3);
    border-radius: var(--radius-full);
}
.radio-hero-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

/* Radio Content Layout */
.radio-content {
    display: grid;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .radio-content {
        grid-template-columns: 1fr 320px;
    }
}
.radio-description h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}
.description-text {
    line-height: 1.8;
    color: var(--gray-600);
}
.radio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}
.radio-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--gray-600);
}
.radio-meta-item svg {
    color: var(--accent);
}
.radio-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.sidebar-ad {
    background: var(--gray-100);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-label {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-transform: uppercase;
}

/* Section Alt Background */
.section-alt {
    background: var(--gray-50);
}

/* Genre Page Specific */
.genre-grid-full {
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
    .genre-grid-full {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    .genre-grid-full {
        grid-template-columns: repeat(4, 1fr);
    }
}
.genre-card-lg {
    aspect-ratio: 4/3;
}
.genre-card-lg .genre-card-content {
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
}

/* ===== Mobile Improvements ===== */

/* Safe area for iOS */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .player-bar {
        padding-bottom: env(safe-area-inset-bottom);
    }
    .offcanvas {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Touch improvements */
@media (hover: none) {
    .btn:active {
        transform: scale(0.98);
    }
    .radio-card:active {
        transform: scale(0.98);
    }
}

/* Better text sizing on mobile */
@media (max-width: 640px) {
    html {
        font-size: 15px;
    }
    h1 {
        font-size: 1.75rem !important;
    }
    h2 {
        font-size: 1.375rem;
    }
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .section {
        padding: 2rem 0;
    }
    /* Fix button overflow on mobile */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    .btn-lg {
        padding: 0.75rem 1.25rem;
    }
    /* Horizontal scroll hints */
    .radio-slider-track,
    .genre-slider-track {
        scroll-padding: 1rem;
    }
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
}

/* Better focus states for accessibility */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Image placeholder on slow connections */
img:not(.logo img):not(.search-logo img):not(.login-logo img) {
    background-color: var(--gray-100);
}
.logo img, .search-logo img, .login-logo img {
    background-color: transparent;
}

/* Fix select dropdown on mobile */
select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Hide on mobile */
.hide-mobile {
    display: none;
}
@media (min-width: 768px) {
    .hide-mobile {
        display: inline-flex;
    }
}

/* White outline button for dark backgrounds */
.btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
}
.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
}

/* Hero radio cards clickable */
a.hero-radio-card {
    display: block;
    transition: transform var(--transition-fast);
}
a.hero-radio-card:hover {
    transform: scale(1.05);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    background: transparent;
    border: 1px solid var(--gray-700);
    transition: all var(--transition-fast);
}
.lang-link:hover {
    color: var(--white);
    border-color: var(--gray-500);
    background: var(--gray-800);
}
.lang-link.active {
    color: var(--white);
    background: var(--accent);
    border-color: var(--accent);
}

/* Footer bottom responsive */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-800);
}
@media (max-width: 767px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Language switcher in mobile menu */
.offcanvas-lang {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
}
