.shorts-section {
    margin: 60px 0;
    overflow: hidden;
}

.shorts-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: space-between;
    border-bottom: 1px solid;
    padding-bottom: 10px;
}

.shorts-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.shorts-nav-controls {
    display: flex;
    gap: 10px;
}

.shorts-nav-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #2424;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(245, 101, 101, 0.3);
}

.shorts-nav-control-btn:hover {
    background: #e47200;
    transform: scale(1.1);
}

.shorts-nav-control-btn:active {
    transform: scale(0.95);
}

.shorts-header i {
    color: #ff0000;
    font-size: 32px;
}

.shorts-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

body.dark .shorts-title {
    color: #f7fafc;
}

/* Carousel Container */
.shorts-marquee-container {
    position: relative;
    width: 100%;
    padding: 10px 2px 30px 0px;
    border-bottom: 1px solid #2424;
    overflow: hidden;
}

body.dark .shorts-marquee-container {
    border-bottom: 1px solid #2d3748;
}

.shorts-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.shorts-track::-webkit-scrollbar {
    display: none;
}

.short-card {
    width: 238px;
    aspect-ratio: 9 / 18;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    flex-shrink: 0;
}

.short-card:hover {
    transform: translateY(-8px) scale(1.02);
    z-index: 5;
}

.short-thumbnail-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.short-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.short-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.shorts-play-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    border: 2px solid white;
    transition: all 0.3s;
}

.short-card:hover .shorts-play-btn {
    background: #ff0000;
    transform: scale(1.1);
}

.short-caption {
    position: absolute;
    bottom: 20px;
    left: 15px;
    right: 15px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Video Iframe */
.short-video-frame {
    width: 100%;
    height: 100%;
}

/* Controls for manual override */
.shorts-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: 0.3s;
}

.shorts-marquee-container:hover .shorts-nav-btn {
    opacity: 1;
}

.shorts-prev {
    left: 10px;
}

.shorts-next {
    right: 10px;
}

@media (max-width: 768px) {
    .shorts-track {
        animation-duration: 45s;
    }

    .short-card {
        width: 220px;
    }
}

/* Full Screen Modal for Mobile */
.shorts-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.shorts-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: 0.3s;
}

.shorts-modal-close:hover {
    background: #ff0000;
}

.shorts-modal-iframe {
    width: 100%;
    height: 100%;
}