:root {
    --primary-red: #e63946;
    --secondary-black: #000000;
    --accent-white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --dark-red: #b71c1c;    
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-gray);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.podcast-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.podcast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.podcast-image {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* Ratio 16:9 */
}

.podcast-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podcast-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.podcast-image:hover .podcast-overlay {
    opacity: 1;
}

.play-btn-overlay {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff;
    border: none;
    color: #007bff;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-btn-overlay:hover {
    transform: scale(1.1);
}

.podcast-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.podcast-body {
    padding: 20px;
}

.podcast-category {
    display: inline-block;
    background: #e7f3ff;
    color: #007bff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.podcast-title {
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0;
    color: #333;
}

.podcast-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.podcast-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.podcast-date {
    color: #999;
    font-size: 13px;
}

/* Lecteur Audio Fixe */
.audio-player-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, var(--primary-red) 0%, var(--dark-gray) 100%);
    color: #fff;
    padding: 15px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

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

.player-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.player-info h6 {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.player-info small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.player-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 8px;
}

.player-btn:hover {
    transform: scale(1.1);
}

.player-btn-main {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    color: #667eea;
    font-size: 24px;
}

.progress-container {
    display: flex;
    align-items: center;
}

.time-display {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    min-width: 40px;
}

.progress {
    flex: 1;
    background: rgba(255, 255, 255, 0.3);
}

.volume-slider {
    width: 100px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .audio-player-fixed {
        padding: 10px;
    }
    
    .player-thumbnail {
        width: 45px;
        height: 45px;
    }
    
    .player-info h6 {
        font-size: 12px;
    }
    
    .volume-slider {
        width: 60px;
    }
}

/* Loader Styles */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-black) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out;
}

.loader-content {
    text-align: center;
    animation: fadeInUp 1s ease;
}

.loader-icon {
    font-size: 5rem;
    color: var(--accent-white);
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.loader-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-white);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.loader-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0%;
    background: var(--accent-white);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Top Bar */
.top-bar {
    background-color: var(--secondary-black);
    color: var(--accent-white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar a {
    color: var(--accent-white);
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--primary-red);
}

/* Navbar */
.navbar {
    background-color: var(--accent-white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: all 0.3s;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 2rem;
    color: var(--primary-red) !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-right: 10px;
    color: var(--secondary-black);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-gray) !important;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-red) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-red) !important;
}

.nav-link.active::after {
    width: 100%;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--secondary-black) 0%, #1a1a1a 100%);
    padding: 4rem 0 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1478737270239-2f02b77fc618?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.page-header-content {
    position: relative;
    z-index: 1;
    color: var(--accent-white);
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title i {
    color: var(--primary-red);
}

.page-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
}

/* Category Navigation */
.category-nav {
    background-color: var(--accent-white);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
    z-index: 10;
}

.category-nav-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.category-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.category-nav-item {
    padding: 8px 20px;
    border: 2px solid var(--medium-gray);
    background-color: var(--accent-white);
    color: var(--text-dark);
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.category-nav-item:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.category-nav-item.active {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--accent-white);
}

/* Category Section */
.category-section {
    margin-bottom: 4rem;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--medium-gray);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red) 0%, #b71c1c 100%);
    color: var(--accent-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    box-shadow: 0 5px 15px rgba(230,57,70,0.4);
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.category-description {
    color: var(--text-light);
    max-width: 600px;
}

/* Podcast Cards */
.podcast-card {
    background-color: var(--accent-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.podcast-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.podcast-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.podcast-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.podcast-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.play-btn-overlay {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-red);
    color: var(--accent-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.play-btn-overlay:hover {
    transform: scale(1.2);
}

.podcast-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.8);
    color: var(--accent-white);
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.podcast-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.podcast-category {
    display: inline-block;
    background-color: var(--secondary-black);
    color: var(--accent-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.podcast-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.podcast-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.podcast-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--medium-gray);
}

.podcast-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.podcast-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.podcast-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Sidebar */
.sidebar-widget {
    background-color: var(--accent-white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--medium-gray);
    display: flex;
    align-items: center;
}

.widget-title i {
    margin-right: 10px;
    color: var(--secondary-black);
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--medium-gray);
}

.category-item:last-child {
    border-bottom: none;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.category-link:hover {
    color: var(--primary-red);
}

.category-name {
    font-weight: 500;
}

.category-count {
    background-color: var(--secondary-black);
    color: var(--accent-white);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
}

/* Pagination */
.pagination {
    justify-content: center;
    margin-top: 4rem;
}

.page-link {
    color: var(--primary-red);
    border: 1px solid var(--medium-gray);
    padding: 12px 20px;
    margin: 0 5px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.page-link:hover {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--accent-white);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    border-color: var(--primary-red);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--secondary-black) 0%, #1a1a1a 100%);
    color: var(--accent-white);
    padding: 5rem 0 2rem;
    margin-top: 6rem;
    position: relative;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
    will-change: clip-path;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1511379938547-c1f69419868d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    opacity: 0.05;
    z-index: -1;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 3px;
}

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

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 8px;
}

.footer-links a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: var(--primary-red);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    color: var(--accent-white);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.social-icons a:hover {
    background: var(--primary-red);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    position: relative;
    z-index: 2;
}

/* Social Fixed */
.social-fixed {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-white);
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-btn.whatsapp {
    background: #25D366;
}

.social-btn.telegram {
    background: #0088cc;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .category-nav {
        position: static;
    }

    .category-nav-list {
        justify-content: center;
    }

    .category-header {
        flex-direction: column;
        text-align: center;
    }

    .category-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

.audio-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 15px 20px;
    animation: slideUp 0.4s ease-out;
}

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

.audio-player-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 20px;
    align-items: center;
}

.player-cover {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.player-info {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.player-title-text {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-category-text {
    font-size: 0.85rem;
    color: #e74c3c;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.player-description-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.read-more-btn {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.5);
    color: #e74c3c;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more-btn:hover {
    background: rgba(231, 76, 60, 0.3);
    border-color: #e74c3c;
    transform: translateY(-2px);
}

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

#playerAudio {
    width: 300px;
    height: 40px;
}

.close-player {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.close-player:hover {
    background: rgba(231, 76, 60, 0.8);
    transform: rotate(90deg);
}

/* Modal Styles */
.description-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    max-width: 1250px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h4 {
    color: #ffffff;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    flex: 1;
    padding-right: 20px;
}

.close-modal {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.close-modal:hover {
    background: rgba(231, 76, 60, 0.8);
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

.modal-category {
    display: inline-block;
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.modal-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.8;
    word-wrap: break-word;
}

.modal-description p {
    margin-bottom: 1em;
}

.modal-description p:last-child {
    margin-bottom: 0;
}

.modal-description h1,
.modal-description h2,
.modal-description h3,
.modal-description h4,
.modal-description h5,
.modal-description h6 {
    color: #ffffff;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.modal-description h1:first-child,
.modal-description h2:first-child,
.modal-description h3:first-child,
.modal-description h4:first-child,
.modal-description h5:first-child,
.modal-description h6:first-child {
    margin-top: 0;
}

.modal-description ul,
.modal-description ol {
    margin: 0.8em 0 0.8em 20px;
    padding-left: 1em;
}

.modal-description li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.modal-description li:last-child {
    margin-bottom: 0;
}

.modal-description a {
    color: #e74c3c;
    text-decoration: underline;
}

.modal-description a:hover {
    color: #c0392b;
}

.modal-description strong,
.modal-description b {
    color: #ffffff;
    font-weight: 600;
}

.modal-description em,
.modal-description i {
    font-style: italic;
}

.modal-description p:empty,
.modal-description li:empty {
    display: none !important;
}

.modal-description a {
    color: #e74c3c;
    text-decoration: underline;
}

.modal-description a:hover {
    color: #c0392b;
}

.modal-description strong,
.modal-description b {
    color: #ffffff;
    font-weight: 600;
}

.modal-description em,
.modal-description i {
    font-style: italic;
}

/* Scrollbar personnalisée pour le modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(231, 76, 60, 0.5);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(231, 76, 60, 0.7);
}

/* Responsive Design */
@media (max-width: 992px) {
    .audio-player-content {
        grid-template-columns: auto 1fr auto;
        gap: 15px;
    }
    
    .player-cover {
        width: 60px;
        height: 60px;
    }
    
    #playerAudio {
        width: 250px;
    }
    
    .player-description-text {
        -webkit-line-clamp: 1;
    }
}

@media (max-width: 768px) {
    .audio-player-bar {
        padding: 12px 15px;
    }
    
    .audio-player-content {
        grid-template-columns: auto 1fr;
        gap: 12px;
    }
    
    .player-cover {
        width: 50px;
        height: 50px;
    }
    
    .player-info {
        grid-column: 2;
    }
    
    .player-controls {
        grid-column: 1 / -1;
        justify-content: center;
    }
    
    #playerAudio {
        width: 100%;
        max-width: 400px;
    }
    
    .close-player {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .player-title-text {
        font-size: 0.9rem;
    }
    
    .player-category-text {
        font-size: 0.75rem;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h4 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .player-cover {
        width: 45px;
        height: 45px;
    }
    
    .player-title-text {
        font-size: 0.85rem;
    }
    
    .read-more-btn {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
}