/* Video section styles */
.video-slider-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 6rem;
    position: relative;
}

.video-card {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: var(--color-card);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    flex: 1;
    width: 100%;
}

#video-slider .splide__slide {
    display: flex;
    height: auto;
    width: calc(33.333% - 1rem);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

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

.video-thumbnail:hover .play-overlay {
    opacity: 1;
}

.play-button {
    color: white;
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.video-info {
    padding: 1.25rem;
    flex-grow: 1;
    background-color: var(--color-card);
    border-top: 3px solid var(--color-primary);
}

.video-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

.video-artist {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 0;
    line-height: 1.4;
}

/* TV & Film Highlights Section */
.tvfilm-highlights-container {
    overflow: hidden;
    position: relative;
    margin: 0 -1rem;
    padding: 0 1rem;
}

.tvfilm-scroll-container {
    overflow: hidden;
    position: relative;
}

.tvfilm-masonry-grid {
    display: grid;
    grid-auto-flow: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
    transform: translateX(0);
    transition: transform 0.1s ease-out;
    height: 450px; /* 3 rows × 150px height */
}

.tvfilm-item {
    width: 100px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: var(--color-card);
}

.tvfilm-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.tvfilm-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Experimental section */
.experimental-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
    height: 360px; /* 3 rows * 120px height */
}

.experimental-scroll-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.experimental-masonry-grid {
    display: grid;
    grid-template-rows: repeat(3, 120px);
    gap: 0.5rem;
    height: 100%;
    width: max-content;
    position: relative;
    transition: transform 0.1s ease-out;
}

.experimental-item {
    width: 80px;
    height: 120px;
    overflow: hidden;
    border-radius: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: var(--color-card);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.experimental-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.experimental-item:hover img {
    transform: scale(1.1);
}

/* Brand logos section */
.brand-slider-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 6rem;
    position: relative;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 200px));
    grid-template-rows: repeat(2, 100px);
    gap: 1rem;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.brand-item {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Splide custom styles */
.splide {
    margin-bottom: 2rem;
}

.splide__pagination {
    margin-top: 1rem;
    position: static;
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

.splide__pagination__page {
    width: 10px;
    height: 10px;
    background: #ccc;
    margin: 0 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.splide__pagination__page.is-active {
    transform: scale(1.3);
    background: var(--color-primary);
}

/* Navigation arrows */
.splide__arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

.splide__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    transition: all 0.3s ease;
}

.splide__arrow:hover {
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.splide__arrow--prev {
    left: -4.5rem;
}

.splide__arrow--next {
    right: -4.5rem;
}

/* Image loading styles */
.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.image-placeholder::after {
    content: "";
    width: 30px;
    height: 30px;
    border: 3px solid #e9ecef;
    border-radius: 50%;
    border-top-color: #6c757d;
    animation: spin 1s linear infinite;
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.lazy-load.loaded {
    opacity: 1;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Video modal styles */
.video-modal .modal-dialog {
    max-width: 90%;
    margin: 1.75rem auto;
}

.video-modal .modal-content {
    background-color: transparent;
    border: none;
}

.video-modal .modal-body {
    padding: 0;
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-modal .modal-body iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-modal .close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    opacity: 0.8;
    font-size: 2rem;
    z-index: 1050;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.video-modal .close:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .experimental-container {
        height: 300px; /* 3 rows * 100px height */
        padding: 0 1rem;
    }
    
    .experimental-masonry-grid {
        grid-template-rows: repeat(3, 100px);
    }
    
    .experimental-item {
        width: 70px;
        height: 100px;
    }
    
    .brand-grid {
        grid-template-columns: repeat(4, minmax(0, 180px));
        grid-template-rows: repeat(2, 90px);
        gap: 0.75rem;
    }
    .tvfilm-grid {
        grid-template-columns: repeat(4, minmax(0, 180px));
        grid-template-rows: repeat(3, 270px);
        gap: 0.75rem;
    }
    .brand-slider-container,
    .tvfilm-slider-container,
    .video-slider-container {
        padding: 0 3.5rem;
    }
}

@media (max-width: 992px) {
    .experimental-container {
        height: 240px; /* 3 rows * 80px height */
        padding: 0 0.5rem;
    }
    
    .experimental-masonry-grid {
        grid-template-rows: repeat(3, 80px);
    }
    
    .experimental-item {
        width: 60px;
        height: 80px;
    }
    
    .brand-grid {
        grid-template-columns: repeat(4, minmax(0, 150px));
        grid-template-rows: repeat(2, 75px);
        gap: 0.75rem;
    }
    .tvfilm-grid {
        grid-template-columns: repeat(4, minmax(0, 150px));
        grid-template-rows: repeat(3, 225px);
        gap: 0.75rem;
    }
    .brand-slider-container,
    .tvfilm-slider-container,
    .video-slider-container {
        padding: 0 3rem;
    }
}

@media (max-width: 768px) {
    .experimental-container {
        height: 180px; /* 3 rows * 60px height */
        padding: 0 0.25rem;
    }
    
    .experimental-masonry-grid {
        grid-template-rows: repeat(3, 60px);
    }
    
    .experimental-item {
        width: 50px;
        height: 60px;
    }
    
    .brand-grid {
        grid-template-columns: repeat(2, minmax(0, 180px));
        grid-template-rows: repeat(4, 90px);
        gap: 0.75rem;
    }
    .tvfilm-grid {
        grid-template-columns: repeat(2, minmax(0, 180px));
        grid-template-rows: repeat(6, 270px);
        gap: 0.75rem;
    }
    .brand-slider-container,
    .tvfilm-slider-container,
    .video-slider-container {
        padding: 0 2.5rem;
    }
    .splide__arrow {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (max-width: 576px) {
    .experimental-container {
        height: 150px; /* 3 rows * 50px height */
        padding: 0 0.25rem;
    }
    
    .experimental-masonry-grid {
        grid-template-rows: repeat(3, 50px);
    }
    
    .experimental-item {
        width: 40px;
        height: 50px;
    }
    
    .brand-grid {
        grid-template-columns: repeat(2, minmax(0, 140px));
        grid-template-rows: repeat(4, 70px);
        gap: 0.5rem;
    }
    .tvfilm-masonry-grid {
        height: 270px; /* 3 rows × 90px height */
    }
    .tvfilm-item {
        width: 60px;
        height: 90px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .tvfilm-item {
        width: 70px;
        height: 105px;
    }
    .tvfilm-masonry-grid {
        height: 315px; /* 3 rows × 105px height */
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .tvfilm-item {
        width: 80px;
        height: 120px;
    }
    .tvfilm-masonry-grid {
        height: 360px; /* 3 rows × 120px height */
    }
}

@media (min-width: 993px) and (max-width: 1200px) {
    .tvfilm-item {
        width: 90px;
        height: 135px;
    }
    .tvfilm-masonry-grid {
        height: 405px; /* 3 rows × 135px height */
    }
}
