/* ===== ОСНОВНЫЕ СТИЛИ ВИДЕО ===== */
.video-category {
    margin-bottom: 40px;
}

.category-title {
    font-size: 1.5rem;
    color: #ffd966;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #bd8a3e;
    display: inline-block;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.video-card {
    background: #0f1a0f;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #3e5a3e;
    transition: all 0.2s;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: #bd8a3e;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(189, 138, 62, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.video-card:hover .play-overlay {
    width: 70px;
    height: 70px;
    background: #bd8a3e;
}

.play-overlay i {
    font-size: 1.8rem;
    color: #0f1a0f;
    margin-left: 5px;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-weight: bold;
    color: #ffd966;
    font-size: 1rem;
    margin-bottom: 8px;
}

.video-desc {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 10px;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.video-duration,
.video-year {
    font-size: 0.7rem;
    color: #8aa07a;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== МОДАЛЬНОЕ ОКНО ВИДЕО ===== */
.video-modal .modal-content {
    max-width: 800px;
    padding: 20px;
}

.video-player-container {
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-modal-title {
    color: #ffd966;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 15px;
    margin-bottom: 8px;
}

.video-modal-desc {
    color: #aaa;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ===== ПУСТОЕ СОСТОЯНИЕ ===== */
.empty-videos {
    text-align: center;
    padding: 40px;
    color: #8aa07a;
    background: #0f1a0f;
    border-radius: 24px;
}

.empty-videos i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

/* ===== МОДАЛЬНОЕ ОКНО ПРОВЕРКИ ВОЗРАСТА ===== */
.age-verification-modal .modal-content {
    max-width: 450px;
    text-align: center;
    padding: 30px;
}

.age-verification-icon {
    font-size: 4rem;
    color: #f44336;
    margin-bottom: 20px;
}

.age-verification-content h3 {
    color: #ffd966;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.age-verification-content p {
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.5;
}

.age-verification-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 25px 0 15px;
    flex-wrap: wrap;
}

.age-confirm-btn {
    background: #2e7d32;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.age-confirm-btn:hover {
    background: #3e9142;
    transform: scale(1.02);
}

.age-cancel-btn {
    background: #1e2a1e;
    border: 1px solid #f44336;
    padding: 12px 24px;
    border-radius: 40px;
    color: #f44336;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.age-cancel-btn:hover {
    background: #f44336;
    color: white;
    transform: scale(1.02);
}

.age-verification-note {
    font-size: 0.7rem;
    color: #8aa07a;
    margin-top: 15px;
}

/* ===== БЕЙДЖ 18+ ===== */
.age-badge-18 {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f44336;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 15;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ===== РАЗМЫТИЕ ДЛЯ ПРЕВЬЮ 18+ ===== */
.video-thumb.blurred-thumb {
    position: relative;
    overflow: hidden;
}

.video-thumb.blurred-thumb img {
    filter: blur(8px);
    transition: filter 0.3s ease;
}

.video-card:hover .video-thumb.blurred-thumb img {
    filter: blur(4px);
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffd966;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    z-index: 10;
    backdrop-filter: blur(2px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.blur-overlay i {
    font-size: 2rem;
    color: #bd8a3e;
    margin-bottom: 5px;
}

.video-card:hover .blur-overlay {
    background: rgba(0, 0, 0, 0.5);
}

/* ===== БОКОВАЯ ПАНЕЛЬ С КАТЕГОРИЯМИ ===== */
/* ===== БОКОВАЯ ПАНЕЛЬ С КАТЕГОРИЯМИ ===== */
.videos-page-layout {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.videos-sidebar {
    flex: 0 0 280px;
    background: #0f1a0f;
    border-radius: 24px;
    padding: 20px;
    border: 1px solid #3e5a3e;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #bd8a3e;
}

.sidebar-header h3 {
    color: #ffd966;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.sidebar-header h3 i {
    color: #bd8a3e;
}

/* ===== УНИФИЦИРОВАННЫЕ КАТЕГОРИИ (как в галерее) ===== */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    background: #1e2a1e;
    border: 1px solid transparent;
}

.category-item:hover {
    background: #2c3e2c;
    transform: translateX(5px);
}

.category-item.active {
    background: #bd8a3e;
    border-color: #ffd966;
}

.category-item.active i,
.category-item.active .category-name {
    color: #0f1a0f;
}

.category-item i {
    width: 24px;
    color: #bd8a3e;
    font-size: 1.1rem;
}

.category-item.active i {
    color: #0f1a0f;
}

.category-name {
    flex: 1;
    font-size: 0.9rem;
    color: #ddd;
}

.category-count {
    background: #2c3e2c;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #ffd966;
}

.category-item.active .category-count {
    background: #0f1a0f;
    color: #bd8a3e;
}

.videos-main {
    flex: 1;
    min-width: 0;
}

.current-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.current-category-title {
    font-size: 1.6rem;
    color: #ffd966;
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-category-title i {
    color: #bd8a3e;
    font-size: 1.4rem;
}

.videos-count {
    background: #1e2a1e;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: #8aa07a;
}

/* ===== ТОСТ УВЕДОМЛЕНИЕ ===== */
.toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f1a0f;
    color: #ffd966;
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid #bd8a3e;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 0.9rem;
}

.toast-message.show {
    opacity: 1;
    visibility: visible;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .videos-page-layout {
        flex-direction: column;
    }
    
    .videos-sidebar {
        width: 100%;
        position: static;
    }
    
    .category-list {
        display: flex;
        overflow-x: auto;
        padding: 10px;
        gap: 8px;
    }
    
    .category-item {
        padding: 10px 16px;
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: 30px;
        white-space: nowrap;
    }
    
    .category-item.active {
        border-left-color: transparent;
        border-bottom-color: #bd8a3e;
    }
    
    .sidebar-header {
        display: none;
    }
}

@media (max-width: 700px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .play-overlay {
        width: 45px;
        height: 45px;
    }
    
    .play-overlay i {
        font-size: 1.3rem;
    }
    
    .video-card:hover .play-overlay {
        width: 55px;
        height: 55px;
    }
    
    .blur-overlay {
        font-size: 0.65rem;
    }
    
    .blur-overlay i {
        font-size: 1.5rem;
    }
    
    .age-badge-18 {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
    
    .toast-message {
        white-space: normal;
        max-width: 90%;
        text-align: center;
    }
}