/* Основные стили для слайдера */
body {
    margin: 0;
    padding: 0;
    background-color: #000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.swiper-container {
    height: 100vh;
    max-height: 100vh;
    aspect-ratio: 9/16;
    margin: 0 auto;
    background-color: #000;
}

@media only screen and (max-width: 600.99px) {
    .swiper-container {
        width: 100vw;
    }
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #000;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

/* Контейнер для медиа-контента */
.media-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Стили для видео */
.swiper-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Стили для изображений */
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Стили для профиля пользователя */
.user-profile {

    z-index: 10;
    display: flex;
    align-items: center;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    border: 1px solid white;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    font-size: 1rem;
}

/* Стили для текста на слайдах */
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    color: white;
    text-align: left;
    padding: 30px 20px 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    pointer-events: none;
}

.slide-content p {
    margin-top: 1rem;
    font-size: 1rem;
    opacity: 0.9;
}

/* Индикатор прогресса */
.progress-bar {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 20;
    border-radius: 2px;
}

.progress-fill {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 2px;
}

/* Скрываем элементы управления видео */
video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Стили для кнопки "назад" */
.back-button {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* Блок с иконками действий (лайк, комментарий, поделиться) */
.action-buttons {
    position: absolute;
    right: 1rem;
    /*bottom: 120px;*/
    transform: translateY(40%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    opacity: 0.7;
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.action-button:hover {
    transform: scale(1.05);
}

.action-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
    сolor: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

div.action-icon i {
    font-size: 2.5rem;
    color: white;
}

.action-count {
    font-size: 0.85rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Анимация для лайка */
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.liked .action-icon {
    /*color: #fe2c55;*/
    animation: heartBeat 0.5s;
}