/* HSC YouTube Shorts Mini Slider
   Compact carousel for retailer pages — designed for 50% page width. */

.hsc-shorts-mini {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    background: #000;
    border-radius: 12px;
    padding: 16px;
}

/* Viewport clips overflow */
.hsc-shorts-mini__viewport {
    overflow: hidden;
    border-radius: 12px;
}

/* Track — flex row, slides via translateX */
.hsc-shorts-mini__track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

.hsc-shorts-mini__track.is-dragging {
    transition: none;
}

/* Each slide */
.hsc-shorts-mini__slide {
    flex: 0 0 100%;
    min-width: 0;
}

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

.hsc-shorts-mini__player-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Video title */
.hsc-shorts-mini__title {
    text-align: center;
    font-size: 13px;
    color: #ccc;
    margin: 8px 0 0;
    padding: 0 4px;
    line-height: 1.4;
}

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

.hsc-shorts-mini__nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hsc-shorts-mini__nav--prev {
    left: -18px;
}

.hsc-shorts-mini__nav--next {
    right: -18px;
}

/* Dot indicators */
.hsc-shorts-mini__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.hsc-shorts-mini__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}

.hsc-shorts-mini__dot.active {
    background: #fff;
    border-color: #fff;
}

.hsc-shorts-mini__dot:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Single video — no nav needed, handled by PHP not rendering buttons */

/* Responsive */
@media (max-width: 767px) {
    .hsc-shorts-mini {
        max-width: 280px;
    }

    .hsc-shorts-mini__nav--prev {
        left: -14px;
    }

    .hsc-shorts-mini__nav--next {
        right: -14px;
    }

    .hsc-shorts-mini__nav {
        width: 32px;
        height: 32px;
    }
}

/* Print */
@media print {
    .hsc-shorts-mini {
        display: none;
    }
}
