/* Utility class for hiding elements */
.hidden {
    display: none !important;
}

/* Native horizontal scroll containers */
.story-scroll,
.reel-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}

.story-scroll::-webkit-scrollbar,
.reel-scroll::-webkit-scrollbar {
    display: none;
}

.scroll-item {
    flex-shrink: 0;
    text-decoration: none;
}

/* Story circle base */
.story-scroll .imaged.rounded {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px;
    min-height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    outline: none;
}

/* Viewed story - reduced opacity */
.imaged.rounded.viewed {
    opacity: 0.8;
}

/* Dark mode - gap matches dark background */
body.dark-mode-active .story-scroll .imaged.rounded {
    border-color: #0F1C2F;
}

.story-skeleton {
    background: linear-gradient(to right, #e5e7eb, #f3f4f6);
    border-radius: 50%;
}

.story-skeleton-peek {
    border-radius: 50%;
    width: 0.75rem !important;
    height: 80% !important;
    align-self: center;
    clip-path: inset(0 0 0 40%);
}

/* Story modal media */
.story-media {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
}

#story-video {
    outline: none;
}

#story-video::-webkit-media-controls {
    display: none !important;
}

#story-video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Splide global fix (kept for other carousels) */
.splide__track {
    padding-left: 0 !important;
}

/* Story link - gradient ring container */
.story-scroll .scroll-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Viewed stories - gray ring */
.story-scroll .scroll-item:has(.viewed) {
    background: #c7c7c7;
}

body.dark-mode-active .story-scroll .scroll-item:has(.viewed) {
    background: #555;
}
