.medias-page {
    position: relative;
    min-height: 100vh;
    padding: 80px 20px 60px;
}

.medias-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/medias.jpg');
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: -1;
}

.medias-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.medias-content {
    flex: 1;
    text-align: center;
}

.medias-title {
    text-align: center;
    font-size: 2.5rem;
    color: #FFFFFF;
    margin-bottom: 40px;
    margin-top: 0;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.medias-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: #FFFFFF;
}

.video-carousel {
    position: relative;
    width: 800px;
    margin: 0 auto 30px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Ratio 16:9 */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel-button:hover {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.carousel-button.prev {
    left: -15px;
}

.carousel-button.next {
    right: -15px;
}

.video-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #666 #f0f0f0;
}

.video-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.video-thumbnails::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.video-thumbnails::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 3px;
}

.thumbnail {
    flex: 0 0 120px;
    height: 68px;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail.active {
    border: 2px solid #333;
}

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

.book-footer {
    position: relative;
    background: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

.book-footer::before,
.book-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 50%;
    height: 20px;
    background: #222;
}

.book-footer::before {
    left: 0;
    transform: skewY(3deg);
    transform-origin: bottom right;
}

.book-footer::after {
    right: 0;
    transform: skewY(-3deg);
    transform-origin: bottom left;
}

@media (max-width: 1024px) {
    .medias-section {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .video-carousel {
        width: 100%;
    }

    .medias-title {
        font-size: 2rem;
        margin-top: 0;
    }

    .carousel-button {
        width: 25px;
        height: 25px;
    }

    .carousel-button.prev {
        left: -12px;
    }

    .carousel-button.next {
        right: -12px;
    }

    .thumbnail {
        flex: 0 0 100px;
        height: 56px;
    }
} 