﻿:root {
    --container: 1200px;
    --bg: #0b1220;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: rgba(15,23,42,.10);
    --shadow: 0 12px 32px rgba(2,8,23,.12);
    --shadow-soft: 0 10px 22px rgba(2,8,23,.10);
    --radius: 14px;
    --radius-lg: 20px;
    --primary: #2563eb;
    --primary-2: #60a5fa;
    --chip: rgba(15,23,42,.05);
    --chip-border: rgba(15,23,42,.10);
}

@media (prefers-color-scheme: dark) {
    :root {
        --card: rgba(255,255,255,.06);
        --text: rgba(255,255,255,.92);
        --muted: rgba(148,163,184,.92);
        --border: rgba(255,255,255,.10);
        --chip: rgba(255,255,255,.06);
        --chip-border: rgba(255,255,255,.12);
        --shadow: 0 18px 44px rgba(0,0,0,.35);
        --shadow-soft: 0 12px 26px rgba(0,0,0,.25);
    }
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: #f5f7fb;
    line-height: 1.6;
    overflow-x: hidden;
}

@media (prefers-color-scheme: dark) {
    body {
        background: #070b13;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(var(--container), 92%);
    margin-inline: auto;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0 44px;
    color: #fff;
    background: radial-gradient(900px 400px at 20% 10%, rgba(96,165,250,.25), transparent 60%), radial-gradient(900px 420px at 80% 30%, rgba(37,99,235,.30), transparent 60%), linear-gradient(135deg, #0b1220 0%, #0f172a 55%, #101a33 100%);
}

    .hero:before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.55)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 600'%3E%3Cg fill='none' stroke='white' stroke-opacity='.09'%3E%3Cpath d='M0 120h900M0 240h900M0 360h900M0 480h900'/%3E%3Cpath d='M150 0v600M300 0v600M450 0v600M600 0v600M750 0v600'/%3E%3C/g%3E%3C/svg%3E");
        mix-blend-mode: overlay;
    }

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin-inline: auto;
    text-align: center;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: .02em;
    color: rgba(226,232,240,.95);
    margin-bottom: 14px;
}

    .kicker .dot {
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--primary), var(--primary-2));
        box-shadow: 0 0 0 6px rgba(37,99,235,.18);
    }

.hero h1 {
    font-size: clamp(34px, 4.6vw, 52px);
    line-height: 1.06;
    margin: 0 0 10px;
}

.grad {
    background: linear-gradient(90deg, var(--primary-2), #93c5fd, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lead {
    margin: 0 auto 22px;
    font-size: 1.05rem;
    color: rgba(203,213,225,.95);
    max-width: 80ch;
}

.cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    padding: 12px 16px;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
    box-shadow: var(--shadow-soft);
    user-select: none;
}

    .btn:hover {
        transform: translateY(-2px);
    }

    .btn:active {
        transform: translateY(0px) scale(.99);
    }

.btn-primary {
    background: linear-gradient(90deg, var(--primary), #1d4ed8);
    color: #fff;
}

    .btn-primary:hover {
        box-shadow: var(--shadow);
    }

.btn-secondary {
    background: rgba(255,255,255,.10);
    color: #fff;
    border-color: rgba(255,255,255,.18);
}

    .btn-secondary:hover {
        background: rgba(255,255,255,.14);
    }

.btn-ghost {
    background: var(--card);
    color: var(--text);
    border-color: var(--border);
    box-shadow: none;
}

    .btn-ghost:hover {
        box-shadow: var(--shadow-soft);
    }

@media (prefers-color-scheme: dark) {
    .btn-ghost {
        background: rgba(255,255,255,.06);
    }
}

/* ---------- CONTROLS ---------- */
.controls-wrap {
    padding: 18px 0 10px;
    background: rgba(245,247,251,.72);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15,23,42,.08);
}

@media (prefers-color-scheme: dark) {
    .controls-wrap {
        background: rgba(7,11,19,.72);
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
}

.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.type-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tab {
    border: 1px solid var(--chip-border);
    background: var(--chip);
    color: var(--muted);
    padding: 10px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}

    .tab:hover {
        transform: translateY(-1px);
    }

    .tab.active {
        background: linear-gradient(90deg, var(--primary), #1d4ed8);
        border-color: transparent;
        color: #fff;
    }

.search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 260px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px 12px;
    box-shadow: var(--shadow-soft);
}

@media (prefers-color-scheme: dark) {
    .search {
        box-shadow: none;
    }
}

.search i {
    color: var(--muted);
}

.search input {
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    width: 100%;
    color: var(--text);
}

.icon-btn {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    border-radius: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
}

    .icon-btn:hover {
        background: var(--chip);
        color: var(--text);
    }

.tag-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--chip-border);
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    user-select: none;
    background: var(--card);
    color: var(--muted);
    font-weight: 800;
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

    .chip:hover {
        transform: translateY(-1px);
    }

    .chip.active {
        background: linear-gradient(90deg, var(--primary), #1d4ed8);
        border-color: transparent;
        color: #fff;
    }

.results-count {
    margin: 10px 2px 0;
    color: var(--muted);
    font-size: .95rem;
}

/* ---------- SECTION ---------- */
.section {
    padding: 28px 0 64px;
}

/* ---------- GALLERY ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
}

.media-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .media-card:focus {
        outline: 3px solid rgba(37,99,235,.35);
        outline-offset: 2px;
    }

    .media-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
        border-color: color-mix(in oklab, var(--primary), transparent 60%);
    }

.media-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #0b1220;
    display: block;
    overflow: hidden;
}

    .media-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.thumb-overlay {
    position: absolute;
    inset: auto 10px 10px auto;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
    background: rgba(15,23,42,.82);
    color: #fff;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.12);
}

.media-content {
    padding: 14px 14px 16px;
}

.media-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: .01em;
    text-wrap: balance;
}

.media-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

    .media-tags .tag {
        font-size: .75rem;
        padding: 5px 9px;
        border-radius: 999px;
        border: 1px solid var(--chip-border);
        background: var(--chip);
        color: var(--text);
        font-weight: 800;
    }

/* ---------- LIGHTBOX ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.82);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 18px;
}

    .lightbox.is-open {
        display: flex;
    }

.lb-body {
    width: min(1100px, 92vw);
    background: #0b1220;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.08);
}

.lb-stage {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46vh;
}

    .lb-stage img,
    .lb-stage video {
        max-width: 100%;
        max-height: 72vh;
        display: block;
    }

.lb-meta {
    background: #0f172a;
    color: #e5e7eb;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,.08);
}

.lb-title {
    font-weight: 900;
}

.lb-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

    .lb-tags .tag {
        font-size: .75rem;
        padding: 5px 9px;
        border-radius: 999px;
        border: 1px solid rgba(255,255,255,.16);
        color: #cbd5e1;
        background: rgba(255,255,255,.06);
        font-weight: 800;
    }

.lb-open {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 900;
}

    .lb-open:hover {
        text-decoration: underline;
    }

.lb-close, .lb-prev, .lb-next {
    position: fixed;
    z-index: 1201;
    background: rgba(15,23,42,.85);
    color: #fff;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,.25);
}

.lb-close {
    top: 22px;
    right: 22px;
}

.lb-prev {
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.lb-next {
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

    .lb-close:hover, .lb-prev:hover, .lb-next:hover {
        filter: brightness(1.12);
    }

/* ---------- CTA / LEGAL ---------- */
.cta-center {
    text-align: center;
    margin-top: 22px;
}

.cta-functions {
    margin-top: 22px;
    margin-bottom: 6px;
}

.legal-note {
    color: var(--muted);
    font-size: .92rem;
    margin-top: 12px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 640px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .filters {
        align-items: stretch;
    }

    .type-tabs {
        justify-content: center;
    }
}
