        :root {
            --primary-color: #9a0475;
            --secondary-color: #ff0000;
            --dark-bg: #101010;
            --card-bg: #282828;
            --text-color: #ffffff;
            --text-secondary: #cccccc;
            --ad-bg: rgba(0, 0, 0, 0.85);
            --banner-ad-bg: linear-gradient(135deg, #1e0033, #4a0072);
            --overlay-ad-bg: linear-gradient(to right, #c21500, #ffc500);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Segoe UI', Arial, sans-serif;
            background-color: var(--dark-bg);
            color: var(--text-color);
            line-height: 1.6;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        header {
            background: linear-gradient(to right, var(--primary-color), #190736);
            padding: 1rem;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        }

        .logo {
            font-size: 1.8rem;
            font-weight: bold;
            color: white;
            text-decoration: none;
        }

        .main-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 2rem;
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
        }

        .player-section {
            width: 100%;
            margin-bottom: 2rem;
        }

        .video-container {
            position: relative;
            width: 100%;
            max-width: 800px;
            margin: 0 auto;
            background-color: #000;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        video {
            width: 100%;
            height: auto;
            display: block;
            outline: none;
        }

        .video-info {
            padding: 1rem;
            background-color: #9a0475;
            border-radius: 0 0 8px 8px;
            border-color: #cccccc;
            border: 5px;
        }

        .video-title {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            color: var(--text-color);
        }

        .video-meta {
            display: flex;
            justify-content: space-between;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .ad-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--ad-bg);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: white;
            text-align: center;
            z-index: 10;
            display: none;
        }

        .ad-container.show {
            display: flex;
            animation: fadeIn 0.5s ease;
        }

        .ad-content {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            padding: 0 1rem;
        }

        .ad-brand {
            font-size: 1rem;
            color: var(--text-secondary);
            margin-bottom: 1rem;
        }

        .ad-timer {
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
            background: rgba(255, 255, 255, 0.1);
            padding: 0.5rem 1rem;
            border-radius: 20px;
        }

        .ad-buttons {
            display: flex;
            gap: 1rem;
        }

        .ad-button {
            background-color: var(--secondary-color);
            color: white;
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
            opacity: 0.5;
            pointer-events: none;
        }

        .ad-button.active {
            opacity: 1;
            pointer-events: auto;
        }

        .ad-button:hover {
            background-color: #e60000;
            transform: translateY(-2px);
        }

        .playlist-section {
            width: 100%;
        }

        .section-title {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--primary-color);
        }

        .playlist-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .playlist-item {
            position: relative;
            background-color: var(--card-bg);
            border-radius: 8px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s ease;
            aspect-ratio: 16/9;
        }

        .playlist-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .playlist-item.active {
            border: 3px solid var(--secondary-color);
        }

        .playlist-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .playlist-item .title {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background: linear-gradient(to top, rgba(233, 9, 166, 0.8), transparent);
            color: rgb(247, 247, 247);
            padding: 0.8rem 0.5rem;
            font-size: 1.0rem;
            text-align: left;
            font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
            border: 5px;
            border-color: #000;
        }

        .playlist-item .duration {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            background: rgba(3, 141, 10, 0.973);
            color: white;
            padding: 0.01rem 0.1rem;
            border-radius: 3px;
            font-size: 0.8rem;
        }

        .load-more {
            display: block;
            width: 100%;
            max-width: 300px;
            margin: 0 auto;
            background-color: var(--primary-color);
            color: white;
            padding: 1rem;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            text-align: center;
            transition: all 0.3s ease;
        }

        .load-more:hover {
            background-color: #8a0368;
            transform: translateY(-2px);
        }

        .player-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 1rem;
        }

        .player-nav-button {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .player-nav-button:hover {
            background-color: #8a0368;
        }

        .player-nav-button:disabled {
            background-color: #555;
            cursor: not-allowed;
        }

        footer {
            background-color: #000;
            color: var(--text-secondary);
            text-align: center;
            padding: 1.5rem;
            margin-top: auto;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @media (max-width: 768px) {
            .playlist-grid {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            }

            .main-container {
                padding: 1rem;
            }

            .video-title {
                font-size: 1rem;
            }
        }

        @media (max-width: 480px) {
            .playlist-grid {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            }

            .ad-content {
                font-size: 1.2rem;
            }
        }

        /* Nouveaux styles pour les différents formats publicitaires */
        .ad-banner {
            width: 100%;
            padding: 1rem;
            background: var(--banner-ad-bg);
            color: white;
            text-align: center;
            margin: 1rem 0;
            border-radius: 8px;
            display: none;
        }

        .ad-banner.show {
            display: block;
            animation: slideIn 0.5s ease-out;
        }

        .ad-banner-content {
            display: flex;
            align-items: center;
            justify-content: space-around;
            flex-wrap: wrap;
        }

        .ad-banner-text {
            flex: 1;
            min-width: 200px;
            padding: 0 1rem;
        }

        .ad-banner-cta {
            background-color: var(--secondary-color);
            color: white;
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
            margin: 0.5rem;
        }

        .ad-banner-cta:hover {
            background-color: #e60000;
            transform: translateY(-2px);
        }

        .ad-overlay {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 300px;
            background: var(--overlay-ad-bg);
            color: white;
            padding: 1rem;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            z-index: 100;
            display: none;
            animation: fadeInUp 0.5s ease-out;
        }

        .ad-overlay.show {
            display: block;
        }

        .ad-overlay-close {
            position: absolute;
            top: 5px;
            right: 10px;
            background: none;
            border: none;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
        }

        .ad-overlay-content {
            margin-top: 1rem;
        }

        .ad-overlay-cta {
            display: inline-block;
            background-color: white;
            color: #c21500;
            padding: 0.5rem 1rem;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            margin-top: 0.5rem;
        }

        @keyframes slideIn {
            from { transform: translateY(-50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        @keyframes fadeInUp {
            from { transform: translateY(50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }