/* Evenementenpagina (evenementen.php). Bovenop style.css (header, gsm-menu, footer, Speel mee).
   Alle klassen beginnen met "ev-" zodat niets botst met de homepage-stijlen. */

/* Muzieklettertype (Noto Music, SIL Open Font License), enkel het muziek-deel: vioolsleutel,
   rusttekens en noten. Zelf gehost: geen verbinding met Google nodig. */
@font-face {
  font-family: "Noto Music";
  src: url("fonts/noto-music.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+2669-266F, U+1D100-1D245;
}

:root {
  --ev-bg: #070707;
  --ev-raised: #111111;
  --ev-text: #fcfcfc;
  --ev-muted: #d1d1d1;
  --ev-dim: #8a8a8a;
  --ev-line: rgba(252, 252, 252, 0.18);
  --ev-staff: rgba(252, 252, 252, 0.28);
  --ev-played: #555;
}

body.ev-page { background: var(--ev-bg); color: var(--ev-text); line-height: 1.5; }
.ev-page .transparent-header { position: relative; }
.ev-page .transparent-header .logo-linksboven { display: block; }
.ev-page a.mobile-drawer-login-btn { text-decoration: none; }
.ev-page .transparent-header .menu a.is-active { font-weight: bold; border-bottom: 2px solid #fcfcfc; padding-bottom: 3px; }
.ev-music { font-family: "Noto Music", "Apple Symbols", "Segoe UI Symbol", serif; }
/* Het menu heeft hier meer links dan op de homepage: eerder overschakelen naar het gsm-menu */
@media (max-width: 1180px) {
  .ev-page .transparent-header .menu { display: none; }
  .ev-page #homepage-hamburger { display: flex !important; }
}

/* ---------- Foto bovenaan (in admin per pagina in te stellen, pages-lib.php), zelfde formaat als
   de banner op de homepage: menu over de foto, titel linksonder, onderaan overvloeiend in zwart ---------- */
.ev-page.pg-has-hero .transparent-header { position: absolute; }
.pg-hero { position: relative; min-height: 75vh; display: flex; align-items: flex-end; background-color: #1a1a1a; background-size: cover; background-repeat: no-repeat; }
.pg-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(7, 7, 7, .45) 0%, rgba(7, 7, 7, 0) 25%, rgba(7, 7, 7, .35) 60%, var(--ev-bg) 100%); pointer-events: none; }
.pg-hero-inner { position: relative; z-index: 1; width: 100%; box-sizing: border-box; padding: 150px 40px 46px; }
.pg-hero-inner h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; margin: 0; letter-spacing: -.02em; }
.pg-hero-inner .ev-lead { color: #e8e8e8; text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.pg-hero-inner .ev-lead a { color: var(--ev-text); }
.pg-hero-inner .ev-actions { margin-top: 26px; }
.ev-section.pg-after-hero { padding-top: 10px; }
@media (max-width: 900px) {
  .pg-hero { min-height: 68vh; }
  .pg-hero-inner { padding: 120px 20px 28px; }
}

.ev-section { padding: 60px 40px; }
.ev-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin-bottom: 26px; }
.ev-section-head h2 { font-size: 32px; margin: 0; }
.ev-empty { color: var(--ev-dim); font-size: 16px; }

/* ---------- Titel + seizoen op de notenbalk ---------- */
.ev-intro { padding-top: 30px; padding-bottom: 20px; }
.ev-intro h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; margin: 0; letter-spacing: -.02em; }
.ev-lead { color: var(--ev-muted); max-width: 560px; margin: 16px 0 0; font-size: 17px; }

.ev-score-card { background: var(--ev-raised); border: 1px solid var(--ev-line); border-radius: 22px; padding: 26px 26px 18px; margin-top: 34px; }
.ev-score-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ev-score { min-width: 920px; }
.ev-score svg { width: 100%; height: auto; display: block; overflow: visible; }
.ev-score .staff-line, .ev-score .barline { stroke: var(--ev-staff); stroke-width: 1.2; }
.ev-score .month { fill: var(--ev-dim); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.ev-score .ev-note { outline: none; }
.ev-score .ev-note[role="link"] { cursor: pointer; }
.ev-score .ev-note .head, .ev-score .ev-note .stem, .ev-score .ev-note .beam { fill: var(--ev-text); stroke: var(--ev-text); }
.ev-score .ev-note .stem { stroke-width: 2.2; }
.ev-score .ev-note .halo { fill: transparent; }
.ev-score .ev-note.other .head { fill: var(--ev-raised); stroke-width: 2.2; }
.ev-score .ev-note.other .label { fill: var(--ev-muted); font-weight: normal; }
.ev-score .ev-note.played .head, .ev-score .ev-note.played .stem, .ev-score .ev-note.played .beam { stroke: var(--ev-played); }
.ev-score .ev-note.played:not(.other) .head, .ev-score .ev-note.played .stem, .ev-score .ev-note.played .beam { fill: var(--ev-played); }
.ev-score .ev-note.is-hot .head, .ev-score .ev-note:focus .head { filter: drop-shadow(0 0 8px rgba(252,252,252,.85)); }
.ev-score .month-small { font-size: 10px; letter-spacing: .06em; }

/* Namen onder de maten: één kolom per maand, in dezelfde breedtes als de maten */
.ev-score-labels { display: grid; align-items: start; margin-top: 2px; }
.ev-score-col { display: flex; flex-direction: column; gap: 8px; padding: 0 4px; min-width: 0; }
.ev-score-label { display: flex; gap: 7px; align-items: flex-start; background: none; border: 0; padding: 2px 0; margin: 0; color: var(--ev-text); font: inherit; text-align: left; line-height: 1.25; min-width: 0; }
button.ev-score-label { cursor: pointer; }
.ev-score-label .mk { flex-shrink: 0; width: 10px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--ev-text); transform: rotate(-20deg); }
.ev-score-label.other .mk { background: transparent; border: 2px solid var(--ev-text); }
.ev-score-label .t { display: block; font-size: 13px; font-weight: bold; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.ev-score-label.other .t { font-weight: normal; color: var(--ev-muted); }
.ev-score-label small { display: block; font-size: 12px; color: var(--ev-dim); }
.ev-score-label.played .t, .ev-score-label.played small { color: var(--ev-played); }
.ev-score-label.played .mk { background: var(--ev-played); border-color: var(--ev-played); }
.ev-score-label.other.played .mk { background: transparent; }
.ev-score-label.is-hot .t, button.ev-score-label:focus-visible .t { text-decoration: underline; text-underline-offset: 3px; }
button.ev-score-label:focus-visible { outline: none; }
.ev-score .ev-note.own:not(.played) .ring { fill: none; stroke: var(--ev-text); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ev-ring 2.6s ease-out infinite; }
@keyframes ev-ring { 0% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.4); } }
.ev-score .playhead line { stroke: #fcfcfc; stroke-width: 2; stroke-dasharray: 3 4; }
.ev-score .playhead text { fill: var(--ev-text); font-size: 11px; font-weight: bold; letter-spacing: .14em; }
.ev-score-legend { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--ev-line); color: var(--ev-muted); font-size: 13px; }
.ev-score-legend span { display: inline-flex; align-items: center; gap: 8px; }
.ev-dot { width: 13px; height: 10px; border-radius: 50%; display: inline-block; transform: rotate(-20deg); background: var(--ev-text); }
.ev-dot.hollow { background: transparent; border: 2px solid var(--ev-text); }
.ev-dot.played { background: var(--ev-played); }
.ev-swipe-hint { display: none; color: var(--ev-dim); font-size: 12px; margin: 0 0 8px; }

/* ---------- Kaarten ---------- */
.ev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.ev-card { background: var(--ev-raised); border: 1px solid var(--ev-line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 30px; transition: border-color .3s, transform .3s; }
.ev-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; }
.ev-card.is-flash { border-color: var(--ev-text); transform: translateY(-3px); }
.ev-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #1a1a1a; }
.ev-card.featured .ev-media { aspect-ratio: auto; min-height: 420px; }
.ev-media .ev-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.ev-card:hover .ev-media .ev-cover { transform: scale(1.04); }
.ev-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,7,7,.35), transparent 35%, transparent 65%, rgba(7,7,7,.45)); pointer-events: none; }
.ev-media-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 120px; color: rgba(252,252,252,.12); background: repeating-linear-gradient(180deg, transparent 0 22px, rgba(252,252,252,.05) 22px 23px), #161616; }
.ev-logo { position: absolute; left: 20px; bottom: 18px; width: 58px; height: 58px; object-fit: contain; z-index: 2; }
.ev-tags { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.ev-tag { font-size: 12px; font-weight: bold; padding: 5px 11px; border-radius: 999px; background: rgba(7,7,7,.72); border: 1px solid rgba(252,252,252,.4); color: var(--ev-text); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.ev-tag.solid { background: var(--ev-text); color: var(--ev-bg); border-color: var(--ev-text); }
.ev-tag.countdown { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; }

.ev-body { padding: 28px 30px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.ev-card.featured .ev-body { padding: 38px 40px; justify-content: center; }
.ev-head { display: flex; gap: 20px; align-items: center; }
/* Datum als maatsoort: dag boven, maand onder */
.ev-timesig { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 74px; padding: 4px 10px 4px 12px; border-left: 3px solid var(--ev-text); border-right: 1px solid var(--ev-line); flex-shrink: 0; }
.ev-timesig .num { font-size: 38px; font-weight: bold; line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.ev-timesig .den { font-size: 14px; font-weight: bold; letter-spacing: .18em; line-height: 1; margin-top: 8px; padding-top: 8px; border-top: 2px solid var(--ev-text); }
.ev-card.featured .ev-timesig .num { font-size: 50px; }
.ev-head h3 { font-size: 26px; line-height: 1.15; margin: 0; }
.ev-card.featured .ev-head h3 { font-size: 38px; }
.ev-desc { color: var(--ev-muted); margin: 0; font-size: 16px; }
.ev-desc.is-clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.ev-more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--ev-text); font: inherit; font-size: 14px; font-weight: bold; text-decoration: underline; cursor: pointer; margin-top: -8px; }
/* Praktische info als een klein programmablad */
.ev-facts { margin: 0; display: grid; border-top: 1px solid var(--ev-line); }
.ev-facts > div { display: grid; grid-template-columns: 26px 92px 1fr; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--ev-line); font-size: 15px; }
.ev-facts svg { color: var(--ev-dim); margin-top: 2px; }
.ev-facts dt { color: var(--ev-dim); font-size: 13px; padding-top: 1px; }
.ev-facts dd { margin: 0; }
.ev-facts dd small { display: block; color: var(--ev-dim); font-size: 13px; }
.ev-facts dd a { color: var(--ev-text); }
.ev-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.ev-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: bold; font-size: 15px; padding: 13px 22px; border-radius: 10px; transition: transform .15s, filter .15s, background .15s; position: relative; cursor: pointer; border: 0; font-family: inherit; color: inherit; }
.ev-btn-primary { background: var(--ev-text); color: var(--ev-bg); }
.ev-btn-primary:hover { transform: translateY(-1px); filter: brightness(.95); }
.ev-btn-ghost { border: 1px solid rgba(252,252,252,.5); border-radius: 999px; background: rgba(252,252,252,.06); padding: 12px 20px; color: var(--ev-text); }
.ev-btn-ghost:hover { background: rgba(252,252,252,.14); }
.ev-btn-note { color: var(--ev-dim); font-size: 14px; align-self: center; }
.ev-burst { position: absolute; left: 50%; top: 0; pointer-events: none; }
.ev-burst span { position: absolute; font-size: 20px; color: var(--ev-text); opacity: 0; }
.ev-btn:hover .ev-burst span { animation: ev-float 1.1s ease-out forwards; }
.ev-burst span:nth-child(2) { animation-delay: .12s !important; }
.ev-burst span:nth-child(3) { animation-delay: .24s !important; }
@keyframes ev-float { 0% { opacity: 0; transform: translate(var(--dx), 0) rotate(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(var(--dx) * 2.4), -46px) rotate(var(--rot)); } }
.ev-metronome { width: 13px; height: 16px; display: inline-block; }
.ev-metronome svg { width: 100%; height: 100%; display: block; }
.ev-metronome .arm { transform-origin: 9px 19px; animation: ev-tick 1s ease-in-out infinite alternate; }
@keyframes ev-tick { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }

/* ---------- Ook van de partij ---------- */
.ev-partij { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ev-partij-item { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border: 1px dashed rgba(252,252,252,.35); border-radius: 16px; scroll-margin-top: 30px; transition: border-color .3s, background .3s; }
.ev-partij-item.is-flash { border-color: var(--ev-text); background: var(--ev-raised); }
.ev-partij-item .ev-timesig { min-width: 58px; border-left-width: 2px; }
.ev-partij-item .ev-timesig .num { font-size: 26px; }
.ev-partij-item .ev-timesig .den { font-size: 11px; margin-top: 5px; padding-top: 5px; }
.ev-partij-item h4 { margin: 0; font-size: 17px; font-weight: bold; }
.ev-partij-item p { margin: 2px 0 0; color: var(--ev-dim); font-size: 13px; }

/* ---------- Terugblik ---------- */
.ev-archive { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ev-past { display: flex; flex-direction: column; background: var(--ev-raised); border: 1px solid var(--ev-line); border-radius: 18px; overflow: hidden; text-align: left; color: inherit; font: inherit; padding: 0; scroll-margin-top: 30px; transition: border-color .3s; }
button.ev-past { cursor: pointer; }
.ev-past.is-flash { border-color: var(--ev-text); }
.ev-past .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #1a1a1a; }
.ev-past .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.75) brightness(.75); transition: filter .4s, transform .6s; }
button.ev-past:hover .thumb img, button.ev-past:focus-visible .thumb img { filter: grayscale(0) brightness(.9); transform: scale(1.04); }
.ev-past .kind { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; }
.ev-past .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ev-past .ev-past-title { display: block; font-size: 19px; font-weight: bold; }
.ev-past .thumb, .ev-past .body, .ev-past .meta, .ev-past .excerpt, .ev-past .more { display: block; }
.ev-past .body { display: flex; }
.ev-past .meta { color: var(--ev-dim); font-size: 13px; }
.ev-past .excerpt { color: var(--ev-muted); font-size: 14px; margin: 4px 0 0; }
.ev-past .more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: bold; }
.ev-play { position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; border: 2px solid var(--ev-text); display: grid; place-items: center; background: rgba(7,7,7,.4); transition: transform .3s; }
button.ev-past:hover .ev-play { transform: scale(1.1); }
.ev-play svg { margin-left: 4px; }

/* Terugblik-venster: aftermovie en/of verslag */
.ev-modal { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(7,7,7,.85); }
.ev-modal.is-open { display: flex; }
.ev-modal-box { position: relative; width: min(860px, 100%); max-height: 90vh; overflow-y: auto; background: var(--ev-raised); border: 1px solid var(--ev-line); border-radius: 20px; }
.ev-modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(7,7,7,.7); color: #fcfcfc; font-size: 24px; line-height: 1; cursor: pointer; }
.ev-modal-video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.ev-modal-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ev-modal-photo img { width: 100%; max-height: 420px; object-fit: cover; }
.ev-modal-body { padding: 26px 30px 30px; }
.ev-modal-body h3 { font-size: 26px; margin: 0 0 4px; }
.ev-modal-body .meta { color: var(--ev-dim); font-size: 14px; margin: 0 0 16px; }
.ev-modal-body .report { color: var(--ev-muted); font-size: 16px; line-height: 1.65; margin: 0; }
body.ev-modal-open { overflow: hidden; }

@media (max-width: 900px) {
  .ev-page .transparent-header { padding: 18px 20px; }
  .ev-page .transparent-header .logo-linksboven { width: 150px; }
  .ev-section { padding: 44px 20px; }
  .ev-intro { padding-top: 16px; }
  .ev-score-card { padding: 18px 14px 14px; margin-top: 24px; border-radius: 18px; }
  .ev-swipe-hint { display: block; }
  .ev-grid { grid-template-columns: 1fr; }
  .ev-card.featured { display: flex; }
  .ev-card.featured .ev-media { min-height: 0; aspect-ratio: 16 / 10; }
  .ev-card.featured .ev-body, .ev-body { padding: 24px 20px; }
  .ev-card.featured .ev-head h3 { font-size: 28px; }
  .ev-card.featured .ev-timesig .num { font-size: 40px; }
  .ev-facts > div { grid-template-columns: 24px 78px 1fr; font-size: 14px; }
  .ev-archive { grid-template-columns: 1fr; }
  .ev-modal { padding: 0; align-items: flex-end; }
  .ev-modal-box { border-radius: 20px 20px 0 0; max-height: 92vh; }
  .ev-modal-body { padding: 22px 20px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .ev-page *, .ev-page *::before, .ev-page *::after { animation: none !important; transition: none !important; }
}
