/* ========== КАРУСЕЛЬ СТОРИС ========== */
.story-content-carousel {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 24px;
}

.story-content-slider-container {
    width: calc(4 * 130px + 3 * 16px);
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.story-content-swiper {
    overflow: visible !important;
    width: 100%;
}

.story-content-swiper .swiper-wrapper {
    overflow: visible;
}

.story-content-swiper .swiper-slide {
    width: 130px !important;
    overflow: visible;
}

.story-content-slide {
    height: 130px;
    border: 3px solid #008080;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.3s ease;
}

.story-content-slide:hover {
    border-color: #ff9800;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

.story-content-slide__text {
    margin: 0;
    font-size: 10px;
    line-height: 1.3;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 8px;
    border-radius: 12px;
    width: 100%;
    font-weight: 600;
    text-align: center;
}

/* Стрелки карусели */
.story-content-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #008080;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.story-content-arrow--prev {
    left: -40px;
}

.story-content-arrow--next {
    right: -40px;
}

.story-content-arrow::before {
    content: "→";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
}

.story-content-arrow--prev::before {
    content: "←";
}

/* ========== МОДАЛКА СТОРИС ========== */
.story-content-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.story-content-modal.active {
    opacity: 1;
    visibility: visible;
}

.story-content-modal__container {
    position: relative;
    width: 360px;
    max-width: 90vw;
    height: 640px;
    max-height: 90vh;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.story-content-modal__progress {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 20;
}

.story-content-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    overflow: hidden;
}

.story-content-progress-fill {
    width: 0%;
    height: 100%;
    background: white;
    transition: width linear;
}

.story-content-modal__content {
    width: 100%;
    height: 100%;
    position: relative;
}

.story-content-modal__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content-modal__text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 12px 16px;
    border-radius: 16px;
    color: white;
    font-size: 14px;
    text-align: center;
    z-index: 15;
}

.story-content-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    transition: 0.2s;
}

.story-content-modal__close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.story-content-modal__close::before {
    content: "✕";
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.story-content-modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 25;
    transition: 0.2s;
}

.story-content-modal-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.story-content-modal-arrow--prev {
    left: 12px;
}

.story-content-modal-arrow--next {
    right: 12px;
}

.story-content-modal-arrow--prev::before {
    content: "←";
    color: white;
    font-size: 24px;
}

.story-content-modal-arrow--next::before {
    content: "→";
    color: white;
    font-size: 24px;
}

.story-content-tap-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 22;
    cursor: pointer;
}

.story-content-tap-zone--left {
    left: 0;
}

.story-content-tap-zone--right {
    right: 0;
}