:root {
    --bg: #0a0a0c;
    --bg-elevated: #131316;
    --border: #232327;
    --text: #f2f2f0;
    --text-dim: #8a8a92;
    --accent: #d4ff3f;
    --accent-2: #ff3fa4;
    --font-display: 'Helvetica Neue', Arial, sans-serif;
}

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

html, body { height: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-display);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content { flex: 1 0 auto; }

a { color: inherit; text-decoration: none; }

/* ===== Header ===== */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 48px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 16px;
}

.site-header .logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.site-header .logo span { color: var(--accent); }

.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-bar a {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-dim);
    transition: all 0.15s ease;
}

.filter-bar a:hover,
.filter-bar a.active {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== Hero ===== */
.hero {
    padding: 64px 48px 32px;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    max-width: 900px;
}

.hero p {
    margin-top: 16px;
    color: var(--text-dim);
    font-size: 16px;
    max-width: 560px;
}

/* ===== Grid ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2px;
    background: var(--border);
    margin: 32px 0;
}

.gallery-card {
    background: var(--bg);
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: block;
    cursor: pointer;
}

.gallery-card .media-wrap {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-card img,
.gallery-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: grayscale(60%) brightness(0.75);
}

.gallery-card:hover img,
.gallery-card:hover video {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1);
}

.gallery-card .badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--accent);
    color: #0a0a0c;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 2;
}

.gallery-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    z-index: 1;
}

.gallery-card .overlay h3 {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.gallery-card .overlay .meta {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.empty-state {
    padding: 80px 48px;
    text-align: center;
    color: var(--text-dim);
}

/* ===== Detail page ===== */
.detail-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 48px;
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--text-dim);
    font-size: 13px;
}

.back-link:hover { color: var(--accent); }

.detail-media {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-elevated);
    margin-bottom: 32px;
}

.detail-media img,
.detail-media video {
    width: 100%;
    display: block;
    max-height: 640px;
    object-fit: contain;
    background: #000;
}

.detail-header h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.detail-meta-grid .item .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.detail-meta-grid .item .value {
    font-size: 16px;
    font-weight: 700;
}

.detail-description {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.8;
    max-width: 720px;
    white-space: pre-line;
}

.site-footer {
    padding: 32px 48px;
    color: var(--text-dim);
    font-size: 12px;
    border-top: 1px solid var(--border);
    text-align: center;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .site-header, .hero, .detail-wrap, .site-footer { padding-left: 20px; padding-right: 20px; }
}
