/* ═══════════════════════════════════════════════════════════
   DEV Reünie — Fotoarchief  |  Retro / Nostalgic theme
   ═══════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[hidden] {
    display: none !important;
}

:root {
    --parchment: #f4e8c1;
    --parchment-dark: #e8d9a8;
    --cream: #fdf6e3;
    --brown-dark: #2c1810;
    --brown-mid: #6b3d2a;
    --amber: #b86a20;
    --amber-light: #e8a855;
    --gold: #c8963c;
    --text: #2c1810;
    --text-muted: #7a5035;
    --border: #b86a20;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, "Times New Roman", Times, serif;
    background-color: var(--parchment);
    color: var(--text);
    min-height: 100vh;
}

body.overlay-open {
    overflow: hidden;
}

/* ── HEADER ───────────────────────────────────────────────── */

.site-header {
    background-color: var(--brown-dark);
    color: var(--parchment);
    text-align: center;
    padding: 3rem 2rem 2.25rem;
    border-bottom: 4px solid var(--amber);
    position: relative;
    overflow: hidden;
}

/* decorative corner balls */
.site-header::before,
.site-header::after {
    content: "⚽";
    font-size: 2rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.2;
    pointer-events: none;
}

.site-header::before {
    left: 2.5rem;
}

.site-header::after {
    right: 2.5rem;
}

.site-header h1 {
    font-size: clamp(2rem, 5.5vw, 3.75rem);
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 2px 3px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.site-header .subtitle {
    margin-top: 0.6rem;
    font-size: clamp(0.85rem, 2vw, 1.05rem);
    font-style: italic;
    color: var(--amber-light);
    letter-spacing: 0.12em;
}

/* ── SEASON TABS ──────────────────────────────────────────── */

.season-tabs {
    display: flex;
    justify-content: center;
    background-color: var(--brown-dark);
    border-bottom: 3px solid var(--amber);
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.tab-btn {
    font-family: Georgia, serif;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: transparent;
    color: var(--amber-light);
    border: none;
    border-bottom: 4px solid transparent;
    padding: 1rem 2.25rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.tab-btn:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.07);
}

.tab-btn.active {
    color: #fff;
    border-bottom-color: var(--amber-light);
    background-color: rgba(255, 255, 255, 0.1);
}

/* ── MAIN LAYOUT ──────────────────────────────────────────── */

.site-main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.25rem 5rem;
}

/* ── MATCH SECTIONS ───────────────────────────────────────── */

.match {
    margin: 2.75rem 0;
    padding-bottom: 2.25rem;
    border-bottom: 1px solid var(--parchment-dark);
}

.match:last-child {
    border-bottom: none;
}

.match-title {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: bold;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--brown-dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--amber);
}

.match-title::before {
    content: "⚽";
    font-size: 0.9em;
    flex-shrink: 0;
}

.photo-count {
    margin-left: auto;
    font-size: 0.72rem;
    font-style: italic;
    font-weight: normal;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}

/* ── PHOTO GRID ───────────────────────────────────────────── */

.photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.photo-grid img {
    width: 480px;
    height: 360px;
    max-width: 100%;
    display: block;
    border: 3px solid #fff;
    box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.28);
    filter: sepia(22%) contrast(1.05);
    transition: filter 0.3s ease, box-shadow 0.3s ease;
}

.photo-grid img:hover {
    filter: sepia(0%) contrast(1.0);
    box-shadow: 3px 5px 16px rgba(0, 0, 0, 0.38);
}

/* ── VIDEO CARDS ───────────────────────────────────────────── */

.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.25rem;
}

.video-card {
    width: 280px;
    height: 210px;
    background-color: var(--brown-dark);
    border: 2px solid var(--amber);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    color: var(--amber-light);
    transition: background-color 0.2s, border-color 0.2s;
    user-select: none;
}

.video-card:hover {
    background-color: #4a2a1a;
    border-color: var(--amber-light);
}

.video-card .play-icon {
    font-size: 3.5rem;
    line-height: 1;
}

.video-card .video-label {
    font-size: 0.72rem;
    font-style: italic;
    text-align: center;
    color: #d4a060;
    padding: 0 0.6rem;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── VIDEO MODAL ─────────────────────────────────────────── */

.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-close {
    position: absolute;
    top: 0.75rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2.75rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: color 0.15s;
    font-family: Arial, Helvetica, sans-serif;
    padding: 0.25rem 0.5rem;
}

.overlay-close:hover {
    color: #fff;
}

.vm-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    max-width: 92vw;
}

.vm-title {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    font-style: italic;
    letter-spacing: 0.1em;
}

#vm-player {
    width: min(800px, 90vw);
    height: auto;
    display: block;
    border: 3px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.7);
    background-color: #000;
}

/* ── FOOTER ───────────────────────────────────────────── */

.site-footer {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--brown-dark);
    color: rgba(244, 232, 193, 0.45);
    font-size: 0.78rem;
    font-style: italic;
    letter-spacing: 0.06em;
    border-top: 2px solid var(--amber);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 640px) {

    .site-header::before,
    .site-header::after {
        display: none;
    }

    .tab-btn {
        padding: 0.8rem 1rem;
        font-size: 0.78rem;
    }

    .photo-grid img {
        width: 100%;
        height: auto;
    }

    .video-card {
        width: 100%;
        height: 160px;
    }
}