:root {
    --bg-main: #0b0f19;
    --bg-card: #131c2e;
    --border-color: #1e293b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка с фоном */
.hero {
    position: relative;
    padding: 100px 0 80px;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=1920&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    border-bottom: 1px solid var(--border-color);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.85) 0%, rgba(11, 15, 25, 0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 15px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.hero h1 {
    font-size: 2.8rem;
    margin: 0 0 15px 0;
    letter-spacing: -0.02em;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* Строка поиска */
.search-bar {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 6px;
    backdrop-filter: blur(10px);
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
}

.search-bar button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.search-bar button:hover {
    background: var(--accent-hover);
}

/* Основной контент */
main {
    padding: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    margin: 0;
    font-size: 1.6rem;
}

.categories {
    display: flex;
    gap: 10px;
}

.chip {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.chip.active, .chip:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Сетка карточек */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #475569;
}

.card-thumb {
    height: 140px;
    background-size: cover;
    background-position: center;
}

/* Превьюшки для карточек (реалистичные сток-изображения) */
.video-bg { background-image: url('https://images.unsplash.com/photo-1579546929518-9e396f3cc809?q=80&w=600&auto=format&fit=crop'); }
.audio-bg { background-image: url('https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?q=80&w=600&auto=format&fit=crop'); }
.sfx-bg { background-image: url('https://images.unsplash.com/photo-1598488035139-bdbb2231ce04?q=80&w=600&auto=format&fit=crop'); }
.nature-bg { background-image: url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?q=80&w=600&auto=format&fit=crop'); }
/* Дополнительные превьюшки для расширенной сетки */
.video-bg-1 { background-image: url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?q=80&w=600&auto=format&fit=crop'); }
.video-bg-2 { background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=600&auto=format&fit=crop'); }

.vfx-bg-1   { background-image: url('https://images.unsplash.com/photo-1509198397868-475647b2a1e5?q=80&w=600&auto=format&fit=crop'); }
.vfx-bg-2   { background-image: url('https://images.unsplash.com/photo-1534447677768-be436bb09401?q=80&w=600&auto=format&fit=crop'); }

.audio-bg-1 { background-image: url('https://images.unsplash.com/photo-1514525253161-7a46d19cd819?q=80&w=600&auto=format&fit=crop'); }
.audio-bg-2 { background-image: url('https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?q=80&w=600&auto=format&fit=crop'); }

.sfx-bg-1   { background-image: url('https://images.unsplash.com/photo-1598488035139-bdbb2231ce04?q=80&w=600&auto=format&fit=crop'); }
.sfx-bg-2   { background-image: url('https://images.unsplash.com/photo-1526374965328-7f61d4dc18c5?q=80&w=600&auto=format&fit=crop'); }

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #60a5fa;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-body h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.meta {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 20px;
    flex: 1;
}

.btn {
    display: block;
    background: #1e293b;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid #334155;
    transition: background 0.2s, border-color 0.2s;
}

.btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* Футер */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    color: #64748b;
    font-size: 0.85rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text-main);
}