/* Language Switcher & Selection */
.lang-switcher {
    position: relative;
    margin-right: 1rem;
}

.lang-btn-current {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.lang-btn-current:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dark-theme .lang-btn-current {
    background: rgba(255, 255, 255, 0.05);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-top: 0.5rem;
    min-width: 60px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    overflow: hidden;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.lang-dropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* First visit modal */
.lang-selection-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lang-selection-card {
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.lang-selection-card h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.lang-selection-card p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.lang-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lang-options button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.lang-options button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Preloader */
.site-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.site-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--glass-border);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

.preloader-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    animation: preloaderPulse 2s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

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

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Skeleton Enhancements */
.skeleton-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    height: 400px;
    position: relative;
    border: 1px solid var(--glass-border);
}

.skeleton-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

:root {
    --primary-color: #ff0000;
    --primary-hover: #d40000;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Light Theme (Default) */
    --bg-color: #f8f9fa;
    --text-main: #1a1a1b;
    --text-muted: #5f6368;
    --card-bg: rgba(255, 255, 255, 0.82);
    --card-hover-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
    --overlay-dark: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --bg-color: #0c0c14;
    --text-main: #f1f3f4;
    --text-muted: #9aa0a6;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-hover-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(12, 12, 20, 0.85);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 300px rgba(0, 0, 0, 0.5);
    --overlay-dark: rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Single Post Page */
.article-container {
    max-width: 900px;
    margin: 100px auto 3rem;
    padding: 0 1.5rem;
}

.single-post h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 1rem 0;
    color: var(--text-main);
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

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

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-buttons a {
    color: var(--text-muted);
    transition: var(--transition);
}

.share-buttons a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.premium-audio {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-left: 4px solid var(--primary-color);
}

.audio-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-info .icon {
    font-size: 2rem;
}

.audio-info h3 {
    margin: 0;
    font-size: 1.1rem;
}

.audio-info p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.7;
}

.entry-content {
    color: var(--text-muted);
}

.entry-content h2,
.entry-content h3 {
    color: var(--text-main);
    margin-top: 2rem;
}

.post-hero {
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.post-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-main);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.audio-player-wrapper {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 12px;
    background: var(--card-bg);
}

.audio-player-wrapper h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.custom-audio-player {
    width: 100%;
    height: 40px;
}

.footer-ad-container {
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.view-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-views-count {
    display: inline-flex;
    align-items: center;
    background: var(--card-bg);
    /* Assuming --glass-bg is meant to be --card-bg or similar */
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

/* Skeletons for post */
.skeleton-hero {
    width: 100%;
    height: 400px;
    background: var(--card-bg);
    border-radius: 16px;
    margin-bottom: 2rem;
    animation: pulse 1.5s infinite;
}

.skeleton-text-line {
    width: 100%;
    height: 20px;
    background: var(--card-bg);
    border-radius: 4px;
    margin-bottom: 1rem;
    animation: pulse 1.5s infinite;
}

.skeleton-text-line.short {
    width: 60%;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .single-post h1 {
        font-size: 1.8rem;
    }
}

/* Glassmorphism Components */
/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--card-bg);
    color: var(--primary-color);
}

.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition);
}

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

/* Typography */
h1 {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -1px;
}

h1 span {
    color: var(--primary-color);
}

h2 {
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all:hover {
    opacity: 0.8;
    transform: translateX(5px);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--card-bg);
    min-width: 160px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    overflow: hidden;
    margin-top: 10px;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: var(--primary-color);
    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: none;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

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

/* Main Layout */
main {
    margin-top: 100px;
    padding: 0 5%;
}

.section-container {
    margin-bottom: 4rem;
}

/* News Section Header & Filters */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.section-header h2 {
    margin-bottom: 0;
}

.filter-tabs {
    display: flex;
    gap: 0.8rem;
    padding: 6px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

.tab {
    padding: 0.6rem 1.5rem;
    border: none;
    background: none;
    color: var(--text-muted);
    font-family: inherit;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
}

.tab:hover {
    color: var(--text-main);
    background: var(--glass-border);
}

.tab.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

/* News Grid */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-btn {
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--glass-border);
    background: var(--card-bg);
    color: var(--text-main);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.news-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    width: 100%;
    margin-top: 1rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    /* Critical for grid item overflow */
}

.news-card .card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.card-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover img {
    transform: scale(1.1);
}

.news-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Radio Player */
.radio-player-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.radio-player-container.is-playing {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.15);
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.station-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.station-logo {
    height: 70px;
    width: 70px;
    object-fit: cover;
    border-radius: 50%;
    background: white;
    padding: 2px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.is-playing .station-logo {
    animation: slowPulse 2s infinite;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

@keyframes slowPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

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

.now-playing .label {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.25rem;
}

.title-with-visualizer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.now-playing h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.audio-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 24px;
    padding-bottom: 4px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.is-playing .audio-visualizer {
    opacity: 1;
}

.audio-visualizer span {
    display: block;
    width: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
    height: 4px;
    transition: height 0.3s ease;
}

.is-playing .audio-visualizer span {
    animation: equalize 1s infinite alternate ease-in-out;
}

.is-playing .audio-visualizer span:nth-child(1) {
    animation-delay: 0.0s;
    height: 12px;
}

.is-playing .audio-visualizer span:nth-child(2) {
    animation-delay: 0.2s;
    height: 20px;
}

.is-playing .audio-visualizer span:nth-child(3) {
    animation-delay: 0.4s;
    height: 8px;
}

.is-playing .audio-visualizer span:nth-child(4) {
    animation-delay: 0.1s;
    height: 24px;
}

@keyframes equalize {
    0% {
        height: 4px;
    }

    100% {
        height: 24px;
    }
}

.now-playing p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Ad Slider */
.ad-slider-container {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 12px;
    background: var(--card-bg);
}

.ad-slider {
    position: relative;
    height: 300px;
    width: 100%;
}

.ad-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), filter 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.ad-slide.active {
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
    z-index: 2;
}

.ad-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, var(--overlay-dark));
    color: white;
}

.ad-content-overlay h2 {
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: clamp(1.1rem, 3vw, 2rem);
    margin-bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    display: inline-table;
    max-width: 90%;
    line-height: 1.2;
}

.ad-content-overlay p {
    display: none;
}

.ad-slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 1rem;
    z-index: 10;
}

.ad-slider-controls button {
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.ad-slider-controls button:hover {
    background: var(--primary-color);
}

.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
}

/* Footer */
#main-footer {
    background: var(--bg-color);
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    transition: var(--transition);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    position: relative;
    font-family: 'Outfit', sans-serif;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.branding p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 1rem 0 0.5rem;
    max-width: 300px;
}

.contact-info {
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.3rem 0;
}

.contact-info a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.footer-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-form input {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 0.8rem;
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
}

.footer-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.footer-form button:hover {
    background: var(--primary-hover);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.legal-links a:hover {
    color: var(--text-main);
}

/* Partner Logos */
.partners-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.ad-link-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.partner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    padding: 8px;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--glass-border);
}

.partner-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.partner-link:hover img {
    transform: scale(1.05);
}

.partner-link:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.08) translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.partner-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Podcast Card Specifics */
.card-img-wrapper {
    position: relative;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.news-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay svg {
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px rgba(247, 209, 23, 0.5));
}

/* Final Global Responsive Fixes */
@media (max-width: 768px) {
    .glass-nav {
        padding: 0.6rem 1.2rem;
    }

    .logo img {
        height: 32px;
    }

    .nav-actions {
        gap: 0.8rem;
    }

    .live-indicator span:not(.dot) {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--nav-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 999;
        display: flex;
        gap: 2.5rem;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1000;
        padding: 5px;
    }

    .mobile-menu-btn span {
        width: 25px;
        height: 2px;
        background: var(--text-main);
        transition: all 0.3s ease;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Filters responsiveness */
    .filter-tabs {
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        max-width: 100vw;
        padding: 8px 15px;
        border-radius: 0;
        margin: 0 -5%;
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .tab {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }

    /* Grid responsiveness */
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .news-card h3 {
        font-size: 1.1rem;
    }

    .card-img-wrapper {
        height: 180px;
    }

    main {
        margin-top: 80px;
        padding: 0 4%;
    }

    section {
        margin-bottom: 3rem;
    }

    h1 {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.2rem, 6vw, 2rem);
        margin-bottom: 1.5rem;
    }

    .radio-player-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 1.5rem;
    }

    .player-controls {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
    }

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

    .station-info {
        flex-direction: column;
    }

    .title-with-visualizer {
        justify-content: center;
    }
}

/* Solidarité Page Styles */
.solidarite-hero {
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -100px;
    padding: 0 5%;
    text-align: center;
}

@media (max-width: 768px) {
    .solidarite-hero {
        margin-top: -80px;
        height: 50vh;
        min-height: 350px;
    }

    .hero-content {
        padding: 2rem !important;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}

.hero-content {
    max-width: 800px;
    padding: 3rem !important;
    animation: fadeInUp 0.8s ease;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.action-card {
    padding: 0 !important;
    overflow: hidden;
}

.action-img {
    height: 250px;
    overflow: hidden;
}

.action-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.action-card:hover .action-img img {
    transform: scale(1.1);
}

.action-info {
    padding: 1.5rem;
}

.action-info h3 {
    margin: 0;
    font-size: 1.2rem;
}

/* Donation Modal */
.donation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.donation-overlay.active {
    opacity: 1;
    visibility: visible;
}

.donation-card {
    width: 90%;
    max-width: 600px;
    position: relative;
    padding: 3rem !important;
    transform: translateY(20px);
    transition: var(--transition);
}

.donation-overlay.active .donation-card {
    transform: translateY(0);
}

.close-donation {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.close-donation:hover {
    color: var(--primary-color);
}

.donation-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.method-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem;
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: var(--transition);
}

.method-card:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.method-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.method-info {
    display: flex;
    flex-direction: column;
}

.method-info strong {
    font-size: 1.1rem;
    color: var(--text-main);
}

.method-info .number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image Fullscreen Modal */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.image-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-overlay .modal-content {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-overlay.active .modal-content {
    transform: scale(1);
}

.close-image {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10001;
}

.close-image:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

#modal-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
}

/* YouTube Banner */
.youtube-banner {
    background: var(--primary-color);
    color: white;
    padding: 2rem 5%;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.youtube-banner::before {
    content: "YouTube";
    position: absolute;
    right: -20px;
    bottom: -10px;
    font-size: 8rem;
    font-weight: 900;
    opacity: 0.1;
    color: white;
    pointer-events: none;
}

.youtube-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1;
}

.youtube-icon {
    background: white;
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.youtube-text h3 {
    margin: 0;
    font-size: 1.5rem !important;
    color: white !important;
    border: none !important;
    padding: 0 !important;
}

.youtube-btn-wrapper {
    z-index: 1;
}

.btn-youtube {
    background: white;
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
}

.btn-youtube:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
    background: #f8f8f8;
}

@media (max-width: 768px) {
    .youtube-banner {
        flex-direction: column;
        text-align: center;
    }

    .youtube-content {
        flex-direction: column;
    }

    .youtube-text h3 {
        font-size: 1.2rem !important;
    }
}

/* Statistics Section */
.stats-section {
    padding-bottom: 5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem !important;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.stat-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 600px) {
    .stat-number {
        font-size: 2rem;
    }
}

@keyframes onboardingFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Onboarding Modal */
.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.onboarding-overlay.active {
    opacity: 1;
    visibility: visible;
}

.onboarding-card {
    width: 90%;
    max-width: 500px;
    padding: 3rem !important;
    text-align: center;
    animation: onboardingFadeIn 0.5s ease-out;
}

.onboarding-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.onboarding-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.onboarding-section {
    margin-bottom: 2.5rem;
    text-align: left;
}

.onboarding-section h4 {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
}

.onboarding-langs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.onboarding-lang-btn {
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-main);
    font-weight: 600;
}

.onboarding-lang-btn:hover,
.onboarding-lang-btn.active {
    border-color: var(--primary-color);
    background: rgba(255, 0, 0, 0.05);
    color: var(--primary-color);
}

.onboarding-notif-box {
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.onboarding-notif-info {
    flex: 1;
}

.onboarding-notif-info h5 {
    margin: 0 0 0.2rem 0;
    font-size: 1rem;
}

.onboarding-notif-info p {
    margin: 0;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.onboarding-footer {
    margin-top: 3rem;
}

.btn-onboarding-start {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    border-radius: 50px;
}

@media (max-width: 480px) {
    .onboarding-card {
        padding: 2rem 1.5rem !important;
    }
}

/* Solidarité Specific */
.solidarite-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&q=80&w=2000') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -100px;
    /* Offset for nav */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(255, 0, 0, 0.2) 100%);
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.hero-content-card {
    text-align: center;
    padding: 4rem 3rem !important;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content-card h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-content-card p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.hero-actions .btn-primary {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-content-card h1 {
        font-size: 2.5rem;
    }

    .hero-content-card p {
        font-size: 1.1rem;
    }
}

.solidarite-missions {
    padding: 6rem 0;
}

.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mission-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2.5rem !important;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

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

.mission-icon {
    font-size: 3rem;
    background: var(--bg-color);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.mission-info h3 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.mission-info p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.solidarite-impact {
    padding: 6rem 4rem !important;
    margin: 6rem auto;
    text-align: center;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 0, 0, 0.05) 100%) !important;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.impact-item {
    padding: 2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.impact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.05);
}

.impact-number {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.impact-label {
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .impact-number {
        font-size: 3rem;
    }

    .solidarite-impact {
        padding: 4rem 2rem !important;
    }
}

/* Similar Posts Section */
.similar-posts {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid var(--glass-border);
}

.similar-posts .section-title {
    margin-bottom: 3rem;
    font-size: 2rem;
    text-align: center;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.similar-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--glass-border);
    padding: 0 !important;
}

.similar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(227, 24, 55, 0.15);
    border-color: rgba(227, 24, 55, 0.3);
}

.similar-card-image {
    height: 160px;
    overflow: hidden;
}

.similar-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.similar-card:hover .similar-card-image img {
    transform: scale(1.1);
}

.similar-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.similar-card-date {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.similar-card h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.similar-read-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.3s ease;
}

.similar-read-more:hover {
    gap: 0.8rem;
}

@media (max-width: 600px) {
    .similar-grid {
        grid-template-columns: 1fr;
    }
}


/* Post Ad Slider (Detail Page) */
.post-ad-slider-container {
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    height: 180px;
    border: 1px solid var(--glass-border);
    background: var(--card-bg);
}

.post-ad-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
}

.post-ad-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), filter 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.post-ad-slide.active {
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
    z-index: 2;
}

.post-ad-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.post-ad-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-ad-slide:hover img {
    transform: scale(1.03);
}

.post-ad-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.post-ad-overlay .ad-label {
    position: absolute;
    top: -140px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2px 10px;
    font-size: 0.7rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.post-ad-overlay h4 {
    margin: 0;
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    display: inline-table;
}

.post-ad-overlay p {
    display: none;
}

@media (max-width: 600px) {
    .post-ad-slider-container {
        height: 140px;
    }

    .post-ad-overlay h4 {
        font-size: 1rem;
    }

    .post-ad-overlay .ad-label {
        top: -100px;
    }
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.view-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.8;
}

.view-num::after {
    content: ' vues';
    margin-left: 0.2rem;
}

/* CTA Banner Styles */
.solidarite-cta-banner .cta-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 4rem !important;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 0, 0, 0.1) 100%) !important;
    border-color: var(--primary-color);
    gap: 2rem;
}

.cta-text h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    border: none;
    padding: 0;
    color: var(--text-main);
}

.cta-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .solidarite-cta-banner .cta-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 2rem !important;
    }

    .cta-text h2 {
        font-size: 1.8rem;
    }
}

/* Donation Modal Styles */
.donation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.donation-overlay.active {
    opacity: 1;
    visibility: visible;
}

.donation-card {
    width: 90%;
    max-width: 500px;
    padding: 3rem !important;
    position: relative;
    text-align: center;
}

.close-donation {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.close-donation:hover {
    color: var(--primary-color);
}

.donation-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border: none;
    padding: 0;
}

.donation-card p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.donation-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.method-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: var(--transition);
}

.method-card:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.method-card img {
    height: 30px;
    width: auto;
}

.method-info {
    text-align: left;
}

.method-info strong {
    display: block;
    font-size: 1rem;
    color: var(--text-main);
}

.method-info .number {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* --- Solidarité Highlight Slider --- */
.solidarite-slider-container {
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
    padding: 0 !important;
}

.solidarite-slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.solidarite-slides {
    position: relative;
    height: 550px;
    width: 100%;
}

.solidarite-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), filter 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.solidarite-slide.active {
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
    z-index: 2;
}

.solidarite-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s linear;
}

.solidarite-slide.active img {
    transform: scale(1.15);
}

.solidarite-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5rem 2.5rem 3rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    z-index: 2;
}

.solidarite-slide-content h3 {
    font-size: clamp(1.3rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: inline-table;
    padding: 0.4rem 1.5rem;
    border-radius: 10px;
    line-height: 1.1;
}

.solidarite-slide-content p {
    display: none;
}

.solidarite-slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2.5rem;
    background: var(--card-bg);
    border-top: 1px solid var(--glass-border);
}

.sol-dots {
    display: flex;
    gap: 12px;
}

.sol-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.5;
}

.sol-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.sol-prev,
.sol-next {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sol-prev:hover,
.sol-next:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .solidarite-slide {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .solidarite-slide {
        height: 400px;
    }

    .solidarite-slide-content {
        padding: 3rem 1.5rem 2rem;
    }

    .solidarite-slide-content h3 {
        font-size: 1.8rem;
    }

    .solidarite-slide-content p {
        font-size: 1.1rem;
    }

    .solidarite-slider-controls {
        padding: 1.2rem 1.5rem;
    }
}

/* --- Solidarité Gallery Masonry --- */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.gallery-item.large {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.gallery-overlay h3 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay h3 {
    transform: translateY(0);
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.08);
}

/* Video specific adjustment */
.gallery-item.video {
    cursor: pointer;
}

.gallery-item.video::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: center left 15px;
    transition: var(--transition);
}

.gallery-item.video:hover::before {
    background-color: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 992px) {
    .gallery-item.wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .gallery-masonry {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .gallery-item.large {
        grid-row: span 1;
    }
}

/* Image Modal */
.image-overlay {
    display: none;
    position: fixed;
    z-index: 10001;
    /* Above nav */
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.image-overlay .modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: zoom 0.3s ease;
    object-fit: contain;
}

#modal-caption {
    margin: 15px auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    font-size: 1.2rem;
    animation: zoom 0.3s ease;
}

.close-image {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-image:hover,
.close-image:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

/* Copy Button Styling */
.number-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    color: var(--primary-color);
    background: rgba(255, 0, 0, 0.05);
}

.copy-btn.copied {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--text-main);
    color: var(--bg-color);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10002;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Post Share Buttons Enhancement */
.share-buttons {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.share-buttons button,
.share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(var(--primary-color-rgb, 0, 102, 204), 0.1);
    color: var(--text-main);
    transition: var(--transition);
}

.share-buttons button:hover,
.share-buttons a:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-2px);
}

.copy-link-btn.copied {
    background: #4caf50;
    color: white !important;
}

/* Inline Radio Player Section */
#live-radio {
    margin-bottom: 4rem;
}

.persistent-player {
    width: 100%;
}

.persistent-player .player-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.persistent-player .radio-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 0;
}

.persistent-player .live-badge {
    background: #ff0000;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.persistent-player .track-details {
    overflow: hidden;
}

.persistent-player .track-details h3 {
    font-size: 1.2rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
}

.persistent-player .track-details p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
    white-space: nowrap;
    color: var(--text-muted);
}

.persistent-player .player-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.persistent-player .play-btn {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.persistent-player .play-btn:hover {
    transform: scale(1.1);
    background: var(--primary-hover);
}

.persistent-player .play-btn svg {
    width: 24px;
    height: 24px;
}

.persistent-player .volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
}

.persistent-player .volume-control input {
    width: 100px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

@media (max-width: 768px) {
    .persistent-player .volume-control {
        display: none;
    }

    .persistent-player .player-content {
        padding: 1rem;
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        border-radius: 16px;
    }

    .persistent-player .radio-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Footer padding reset */
footer {
    padding-bottom: 3rem !important;
}


.persistent-player .play-btn.loading {
    position: relative;
    color: transparent !important;
}

.persistent-player .play-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}