/* HSC YouTube Shorts Slider */

.hsc-shorts-slider-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: #0a0a0a;
    padding: 40px 0;
}

/* Viewport — clips overflow */
.hsc-shorts-viewport {
    overflow: hidden;
    position: relative;
    cursor: grab;
}

.hsc-shorts-viewport.is-dragging {
    cursor: grabbing;
}

/* Track — flex row, animated via transform */
.hsc-shorts-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    align-items: center;
    will-change: transform;
}

.hsc-shorts-track.no-transition {
    transition: none !important;
}

/* Each slide */
.hsc-shorts-slide {
    flex: 0 0 340px;
    width: 340px;
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform: scale(0.8);
    opacity: 0.5;
    user-select: none;
}

.hsc-shorts-slide.hsc-shorts-slide--active {
    transform: scale(1);
    opacity: 1;
}

/* Player wrapper — 9:16 */
.hsc-shorts-player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

/* Clone thumbnail */
.hsc-shorts-clone-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Real player div */
.hsc-shorts-player {
    width: 100%;
    height: 100%;
}

.hsc-shorts-player-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

/* Let active slide iframe receive clicks (for sound toggle) */
.hsc-shorts-slide--active .hsc-shorts-player-wrap iframe {
    pointer-events: auto;
}

/* Sound toggle */
.hsc-shorts-sound-toggle {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
    padding: 0;
    pointer-events: auto;
}

.hsc-shorts-sound-toggle:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Video title */
.hsc-shorts-title {
    color: #999;
    text-align: center;
    font-size: 13px;
    margin: 10px 0 0;
    padding: 0 8px;
    line-height: 1.4;
    transition: color 0.4s ease;
}

.hsc-shorts-slide--active .hsc-shorts-title {
    color: #eee;
}

/* Navigation arrows */
.hsc-shorts-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: background 0.2s;
    padding: 0;
}

.hsc-shorts-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.hsc-shorts-nav--prev {
    left: 20px;
}

.hsc-shorts-nav--next {
    right: 20px;
}

/* Tablet */
@media (max-width: 1023px) {
    .hsc-shorts-slide {
        flex: 0 0 300px;
        width: 300px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hsc-shorts-slider-wrapper {
        padding: 24px 0;
    }

    .hsc-shorts-slide {
        flex: 0 0 75vw;
        width: 75vw;
        max-width: 340px;
        transform: scale(0.85);
    }

    .hsc-shorts-slide.hsc-shorts-slide--active {
        transform: scale(1);
    }

    .hsc-shorts-track {
        gap: 14px;
    }

    .hsc-shorts-nav {
        display: none;
    }
}
