* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --border: #252525;
    --text-primary: #f0f0f0;
    --text-secondary: #888;
}

html, body {
    background-color: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
}

/* ─── NAVBAR ─────────────────────────────────────────────── */

header.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
    height: 60px;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* ─── DROPDOWN ───────────────────────────────────────────── */

.dropdown-menu {
    list-style: none;
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background-color: var(--surface);
    min-width: 140px;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 18px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.dropdown-menu a:hover {
    background-color: var(--border);
    color: var(--text-primary);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ─── HOME PAGE GRID ─────────────────────────────────────── */

.grid-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 16px 80px;
}

.grid-header {
    text-align: center;
    margin-bottom: 40px;
}

.grid-header h1 {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}

/* ─── GRID ITEM ──────────────────────────────────────────── */

.grid-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--surface);
    display: block;
    text-decoration: none;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Hover overlay — play button only, no text */
.grid-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-item:hover .overlay {
    opacity: 1;
}

.grid-item:hover img {
    transform: scale(1.04);
}

.overlay .play-icon {
    width: 48px;
    height: 48px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay .play-icon svg {
    width: 16px;
    height: 16px;
    fill: #fff;
    margin-left: 3px;
}

/* Loading skeleton shown while grid is being fetched */
.grid-skeleton {
    aspect-ratio: 1 / 1;
    background: linear-gradient(
        90deg,
        var(--surface) 25%,
        #1e1e1e 50%,
        var(--surface) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── PLAYER PAGE ────────────────────────────────────────── */

body.player-page {
    overflow: hidden;
    background: #000;
}

body.player-page #vimeo-container {
    position: fixed;
    inset: 0;
    background: #000;
}

body.player-page #vimeo-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

body.player-page #main-video {
    width: 100%;
    height: 100vh;
    object-fit: contain;
    display: none;
}

body.hide-cursor,
body.hide-cursor * {
    cursor: none !important;
}

.player-ui {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    z-index: 20;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.player-ui a,
.player-ui span {
    pointer-events: auto;
}

.back-btn {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.back-btn:hover {
    color: #fff;
}

.player-title {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 600px) {
    .grid {
        gap: 2px;
    }
    .grid-section {
        padding: 24px 0 60px;
    }
}
