/* =========================================
   1. БАЗАЛЫҚ КОНТЕЙНЕРЛЕР
   ========================================= */
.video-feed-container {
    height: 100vh;
    width: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    background-color: #000;
    -webkit-overflow-scrolling: touch;
}

.video-item {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    background: #000;
}

/* Видео аймағы */
.video-wrapper {
    position: relative;
    height: 100vh;
    width: 100%;
    max-width: 450px; /* Десктоптағы ені */
    background: #111;
    overflow: hidden;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Панель ашылғанда видеоны қараңғылату */
.video-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 5;
}
.video-wrapper.dimmed::after {
    opacity: 1;
}

/* =========================================
   2. ВИДЕО ҮСТІНДЕГІ ИНТЕРФЕЙС (OVERLAY)
   ========================================= */
.video-info-bottom {
    position: absolute;
    bottom: 20px;
    left: 15px;
    right: 80px;
    z-index: 10;
    color: white;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    pointer-events: none; /* Видеоны басуға кедергі жасамау үшін */
}

.video-info-bottom * {
    pointer-events: auto; /* Мәтін мен "Тағы" батырмасы басылуы керек */
}

.video-actions-right {
    position: absolute;
    right: 10px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 20;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-item i {
    font-size: 28px;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.5));
}

.action-item span {
    font-size: 12px;
    font-weight: 500;
}

.action-item:active {
    transform: scale(1.3);
}

/* =========================================
   3. ИНТЕРАКТИВТІ ПАНЕЛЬ (RESPONSIVE)
   ========================================= */
.interaction-panel {
    background: #1a1a1a;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

/* 💻 ДЕСКТОП ВЕРСИЯ (Экран 1024px-ден жоғары) */
@media (min-width: 1024px) {
    .video-item {
        flex-direction: row;
        gap: 20px;
    }
    .interaction-panel {
        width: 400px;
        height: 100vh;
        border-left: 1px solid #333;
        transform: none !important;
        position: static;
    }
    .interaction-panel .close-btn-mobile {
        display: none;
    }
}

/* 📱 МОБИЛЬДІ ВЕРСИЯ (Экран 1023px-ден төмен) */
@media (max-width: 1023px) {
    .video-item {
        flex-direction: column;
    }
    .interaction-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 75vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%); /* Жасырулы күйі */
    }
    .interaction-panel.open {
        transform: translateY(0); /* Ашық күйі */
    }
    .interaction-panel .close-btn-mobile {
        display: block;
        width: 40px;
        height: 4px;
        background: #555;
        border-radius: 2px;
        margin: 12px auto;
        cursor: pointer;
    }
}
@media (min-width: 1024px) {
    .mobile-only { display: none !important; }
}