.viral-section {
    padding: 60px 0;
    background: #fff;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.viral-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    text-align: center;
    position: relative;
}

.viral-title {
    font-family: "Times New Roman", Times, serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #000;
}

.viral-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viral-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 10px 5px;
    width: 100%;
    scroll-snap-type: x mandatory;
}

.viral-track::-webkit-scrollbar {
    display: none;
}

.video-card {
    flex: 0 0 300px;
    max-width: 300px;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    scroll-snap-align: center;
    background: #000;
}

.video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.video-wrapper.playing .play-overlay {
    opacity: 0;
}

.sound-toggle {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s;
}

.sound-toggle:hover {
    background: rgba(0, 0, 0, 0.8);
}

.viral-arrow {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: absolute;
}

.viral-arrow:hover {
    background: #f9f9f9;
    color: #e27890;
    border-color: #e27890;
}

.prev-viral {
    left: 0;
}

.next-viral {
    right: 0;
}

@media (max-width: 768px) {
    .viral-section {
        padding: 20px 0;
    }

    .video-card {
        flex: 0 0 260px;
        max-width: 260px;
    }

    .viral-arrow {
        display: none;
    }

    .viral-track {
        padding: 0 20px;
    }
}