/* ===== Hikaye (Story) şeridi - Slider altı (sadece masaüstü) ===== */
/* Ana içerik bölümü masaüstünde mutlaka görünsün */
@media (min-width: 769px) {
    body #main-content-section.main-content-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.stories-section.stories-desktop-only {
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
    padding: 16px 0 20px;
    margin: 0;
    overflow: hidden;
}

/* Varsayılan: mobilde gizle */
.stories-section.stories-desktop-only {
    display: none !important;
}

/* Masaüstü (769px ve üzeri): hikaye şeridini mutlaka göster - yüksek öncelik */
@media (min-width: 769px) {
    body #main-content-section .stories-section.stories-desktop-only,
    body .stories-section.stories-desktop-only {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 110px;
    }
}

/* Mobil ve tablet: gizli kalsın */
@media (max-width: 768px) {
    .stories-section.stories-desktop-only {
        display: none !important;
    }
}

.stories-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 12px;
}

.stories-container::-webkit-scrollbar {
    display: none;
}

.stories-wrapper {
    display: flex;
    gap: 20px;
    padding: 4px 8px;
    min-width: min-content;
    justify-content: flex-start;
}

.story-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: #e2e8f0;
    transition: transform 0.2s ease;
}

.story-item:active {
    transform: scale(0.96);
}

.story-item-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #06b6d4);
    background-size: 200% 200%;
    animation: story-ring-pulse 3s ease infinite;
    margin-bottom: 8px;
}

.story-item-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f172a;
}

.story-item-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-item-inner .story-icon {
    font-size: 28px;
    color: #c084fc;
}

.story-item-label {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    max-width: 76px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes story-ring-pulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== Spor kategorileri (slider altı - Futbol, Tenis, Basketbol, MMA, Dart) sadece masaüstü ===== */
.desktop-sports-categories.stories-desktop-only {
    display: none !important;
}
@media (min-width: 769px) {
    body #main-content-section .desktop-sports-categories.stories-desktop-only,
    body .desktop-sports-categories.stories-desktop-only {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}
.desktop-sports-categories {
    background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
    padding: 24px 16px 28px;
    margin: 0;
}
.sports-categories-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.sports-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s ease;
    flex: 0 0 auto;
}
.sports-cat-item:hover {
    transform: translateY(-4px);
    color: #fff;
}
.sports-cat-platform {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    background: linear-gradient(145deg, #ec4899, #be185d);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.sports-cat-item:hover .sports-cat-platform {
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.5);
}
.sports-cat-icon {
    font-size: 36px;
    color: #fff;
}
.sports-cat-label {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

/* ===== Fullscreen Hikaye Görüntüleyici (Instagram tarzı) ===== */
#stories-viewer {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000;
    display: none;
    flex-direction: column;
    justify-content: stretch;
}

#stories-viewer.active {
    display: flex;
}

#stories-viewer.hidden {
    display: none !important;
}

.stories-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top));
    z-index: 2;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
}

.stories-progress-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.story-progress-segment {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-segment .story-progress-fill {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 2px;
    transition: width 0.05s linear;
}

.story-progress-segment.active .story-progress-fill {
    width: 100%;
    transition: width 4s linear;
}

.story-progress-segment.done .story-progress-fill {
    width: 100%;
}

.stories-close {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 3;
    opacity: 0.9;
}

.stories-close:hover {
    opacity: 1;
}

.stories-content {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.story-image-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.story-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.story-nav-left,
.story-nav-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35%;
    z-index: 1;
    cursor: pointer;
}

.story-nav-left { left: 0; }
.story-nav-right { right: 0; }

.stories-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
}

.story-info {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.story-info span {
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
