* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    background: #000;
    color: white;
    overflow-x: hidden;
}

/* --- HERO --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.5) 0%,
        rgba(0,0,0,0.8) 70%,
        rgba(0,0,0,1) 100%);
    z-index: -1;
}

.hero-content {
    padding: 0 20px;
}

.name {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 5px;
    color: white;
}

.nickname {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 5px 0;
    color: white;
}

.subtitle {
    font-size: 1rem;
    font-weight: 400;
    margin-top: 10px;
    color: white;
}

.glow {
    text-shadow: 0 0 25px rgba(255,255,255,0.2),
                0 0 50px rgba(255,255,255,0.1);
}

/* --- Соцсети --- */
.socials {
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    background: #000;
}

.social-card {
    padding: 15px 25px;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    font-weight: 400;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.03) 0%,
        rgba(255,255,255,0.01) 100%
    );
    z-index: -1;
}

.social-card:hover {
    transform: scale(1.05);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* --- Плашки --- */
.cards {
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
    background: #000;
    flex-wrap: wrap;
}

.card {
    padding: 35px 45px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    border-radius: 20px;
    text-align: center;
    font-weight: 500;
    color: white;
    min-width: 220px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.big-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    color: white;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .card {
        padding: 30px 40px;
        min-width: 200px;
        font-size: 1.2rem;
    }

    .big-number {
        font-size: 2.2rem;
    }
}

/* --- Инфобоксы --- */
.info-box {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
}

.info-box.active {
    padding: 25px;
    max-height: 500px;
    opacity: 1;
}

/* --- Контакты --- */
.contact {
    padding: 40px 20px;
    text-align: center;
    background: #000;
    position: relative;
}

.character-video {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-link {
    display: inline-block;
    padding: 15px 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    font-weight: 400;
}

.contact-link:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.miku {
    width: 50px;
    margin-left: 10px;
    cursor: pointer;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.miku:hover {
    transform: scale(1.1);
}

/* --- Анимации --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 768px) {
    .music-section {
        margin: 40px auto;
        padding: 30px 20px;
    }

    .music-section h3 {
        font-size: 1.3rem;
    }

    .music-section p {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .playlist-btn {
        padding: 15px 35px;
        font-size: 1rem;
    }
}
@media (max-width: 768px) {
    .name {
        font-size: 2.5rem;
    }
    .nickname {
        font-size: 1.8rem;
    }
    .cards {
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: 100%;
        max-width: 300px;
    }
    .character-video {
        width: 150px;
        height: 150px;
    }
}

/* Обновлённые стили для музыкальной секции */
.music-section {
    max-width: 800px;
    margin: 60px auto;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px 25px;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.music-section h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.music-section p {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 25px;
    max-width: 80%;
}

.playlist-btn {
    display: inline-block;
    padding: 18px 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    font-weight: 500;
    margin: 10px 0;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    min-width: 200px;
}

.playlist-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ========== ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ ВИДЕО ========== */
.video-inspiration {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
    color: white;
}

.search-container {
    margin-bottom: 40px;
    text-align: center;
}

.search-input {
    padding: 15px 25px;
    width: 100%;
    max-width: 600px;
    border-radius: 30px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-input:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.filter-btn:hover {
    background: rgba(255,255,255,0.1);
}

.filter-btn.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.video-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.video-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 500;
    color: white;
}

.video-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.8;
    color: rgba(255,255,255,0.8);
}

.video-category {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Категории с полупрозрачными фонами */
.video-category.tutorial {
    background: rgba(100, 200, 255, 0.15);
}

.video-category.design {
    background: rgba(255, 150, 100, 0.15);
}

.video-category.motion {
    background: rgba(150, 100, 255, 0.15);
}

.video-category.inspiration {
    background: rgba(255, 100, 200, 0.15);
}

.video-category.3d {
    background: rgba(100, 255, 150, 0.15);
}
/* Добавьте эти стили в раздел с категориями */
.video-category.vfx {
    background: rgba(200, 100, 255, 0.15);
}

.video-category.coding {
    background: rgba(100, 255, 200, 0.15);
}

.video-category.animation {
    background: rgba(255, 100, 150, 0.15);
}

.video-category.typography {
    background: rgba(255, 200, 100, 0.15);
}

.video-category.cinema {
    background: rgba(100, 150, 255, 0.15);
}

.video-category.color {
    background: rgba(255, 100, 255, 0.15);
}
.categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.video-category {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    text-transform: capitalize;
}

/* Стили для конкретных категорий */
.video-category.tutorial {
    background: rgba(100, 200, 255, 0.15);
}
.video-category.music {
    background: rgba(255, 100, 100, 0.15);
}
.video-category.clips {
    background: rgba(100, 255, 100, 0.15);
}
.video-category.after-effects {
    background: rgba(200, 100, 255, 0.15);
}
.video-category.touch-designer {
    background: rgba(255, 150, 50, 0.15);
}
.video-category.blender {
    background: rgba(255, 100, 200, 0.15);
}
.video-category.photoshop {
    background: rgba(50, 150, 255, 0.15);
}
.video-category.illustrator {
    background: rgba(255, 200, 50, 0.15);
}
.video-category.ai-chat-bot {
    background: rgba(100, 255, 200, 0.15);
}
.video-category.вдохновение {
    background: rgba(255, 255, 100, 0.15);
}
/* Стили для загрузки и ошибок */
.loading {
    text-align: center;
    padding: 40px;
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

.error {
    color: #ff6b6b;
    text-align: center;
    padding: 30px;
}

.category-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Мобильный вид */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr); /* Два столбца вместо одного */
        gap: 15px; /* Уменьшаем промежуток между элементами */
    }

    /* Обновляем стили для карточек видео */
    .video-card {
        margin-bottom: 0; /* Убираем отступ снизу */
    }

    /* Уменьшаем размер шрифта для заголовков */
    .video-title {
        font-size: 0.9rem;
    }

    /* Уменьшаем размер категорий */
    .video-category {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    /* Корректируем отступы внутри карточки */
    .video-info {
        padding: 12px;
    }

    /* Для list-view оставляем один столбец */
    .video-grid.list-view {
        grid-template-columns: 1fr;
    }

    .search-input {
        padding: 12px 20px;
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Стили для переключения вида */
.search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.view-toggle {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none; /* По умолчанию скрыта */
}

.view-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.view-toggle svg {
    display: block;
    stroke: white;
}

/* Мобильный вид */
@media (max-width: 768px) {
    /* Стили для вида списка */
    .video-grid.list-view .video-card {
        position: relative;
        height: 80px;
        padding: 0;
        overflow: hidden;
    }

    .video-grid.list-view .video-thumbnail {
        position: absolute;
        width: 100%;
        height: 100%;
        padding-bottom: 0;
    }

    .video-grid.list-view .video-thumbnail img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.9);
    }

    .video-grid.list-view .video-info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 10px 15px;
        background: linear-gradient(to top,
            rgba(0,0,0,0.8) 0%,
            rgba(0,0,0,0.5) 50%,
            rgba(0,0,0,0) 100%);
        z-index: 2;
    }

    .video-grid.list-view .video-title {
        font-size: 1rem;
        margin-bottom: 5px;
        text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    }

    .video-grid.list-view .categories-container {
        position: static;
        margin-top: 5px;
    }

    .video-grid.list-view .video-category {
        font-size: 0.7rem;
        padding: 3px 8px;
        background: rgba(255,255,255,0.3);
        backdrop-filter: blur(5px);
    }
}
/* Иконка для сетки */
.view-toggle.grid-view svg {
    stroke-width: 1.5;
    stroke-dasharray: 0,20;
}

/* Анимация переключения */
.view-toggle svg {
    transition: transform 0.3s ease;
}

.view-toggle:hover svg {
    transform: scale(1.1);
}
/* Убираем лишние отступы между секциями */
.contact {
    padding-top: 0 !important;
    margin-top: -20px;
}

.info-box.active {
    margin-bottom: 10px !important;
}

.cards {
    padding-bottom: 20px !important;
}
/* Стили для кнопки скрытия видео */
.video-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
    padding: 0 10px;
}

.hide-videos-btn {
    padding: 8px 15px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hide-videos-btn:hover {
    background: rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
    .hide-videos-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}
/* Стиль для скрытого состояния видео */
.video-grid.hidden {
    display: none !important;
}