/* Stories section */
.stories-section {
	background: #fff;
	padding: 15px 0 0;
}
.stories-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}
.story-nav {
    background: none;
    border: 2px dashed #ccc;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.3s;
    flex-shrink: 0;
}
.story-nav:hover {
    border-color: #666;
    color: #666;
}
.stories-container {
	display: flex;
	gap: 30px;
	overflow-x: auto;
	scroll-behavior: smooth;
	padding: 20px 0;
	flex: 1;
	cursor: grab;
}
.stories-container.setak-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}
/* Thin scrollbar */
.stories-container::-webkit-scrollbar {
	height: 6px;
}
.stories-container::-webkit-scrollbar-track {
	background: #fff;
	border-radius: 10px;
}
.stories-container::-webkit-scrollbar-thumb {
	background: #fff;
	border-radius: 10px;
}
.stories-container::-webkit-scrollbar-thumb:hover {
	background: #fff;
}
/* Firefox */
.stories-container {
	scrollbar-width: thin;
	scrollbar-color: #fff #fff;
}
.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
}
.story-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 25%, #ffd700 50%, #4facfe 75%, #00f2fe 100%);
    cursor: pointer;
    transition: transform 0.3s;
}
.story-circle:hover {
    transform: scale(1.05);
}
.story-circle img,
.story-circle video {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
}
.story-item p {
    font-size: 14px;
    color: #2c2c2c;
    font-weight: 700;
    text-align: center;
}
@media (max-width: 768px) {
    .story-nav {
        display: none;
    }
    .stories-wrapper {
        gap: 0;
    }
    .stories-container {
        gap: 15px;
        padding: 20px 4px;
    }
    .story-circle {
        width: 85px;
        height: 85px;
    }
    .story-item p {
        font-size: 12px;
    }
}

/* Story viewer */
.setak-story-viewer {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.setak-story-viewer.active {
    display: flex;
}
.setak-story-progress-bars {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 3;
}
.setak-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.35);
    border-radius: 3px;
    overflow: hidden;
}
.setak-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 3px;
}
.setak-progress-bar.done .setak-progress-bar-fill {
    width: 100% !important;
}
.setak-story-header {
    position: absolute;
    top: 22px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 3;
}
.setak-story-title {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.setak-story-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}
.setak-story-media-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.setak-story-media-wrap img,
.setak-story-media-wrap video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.setak-story-tap-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35%;
    z-index: 2;
    cursor: pointer;
}

.setak-story-tap-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    opacity: 0;
    transition: opacity 0.2s;
}
.setak-story-tap-zone:hover,
.setak-story-tap-zone:active {
    opacity: 1;
    background: rgba(0,0,0,0.15);
}
.setak-story-tap-icon {
    pointer-events: none;
}


.setak-story-link-wrap {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 20;
    pointer-events: none;
}

.setak-story-link-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: setak-link-bounce 1.8s ease-in-out infinite;
    transition: transform 0.15s ease, background 0.15s ease;
}

.setak-story-link-btn:hover {
    background: #fff;
    transform: scale(1.04);
}

.setak-story-link-btn svg {
    flex-shrink: 0;
}

@keyframes setak-link-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.setak-story-tap-zone.left  { left: 0; }
.setak-story-tap-zone.right { right: 0; }

@media (max-width: 768px) {
    .setak-story-header { top: 16px; }
}
