/* See You verzoekjes. Stijl naar de eigen socials en sfeerfoto's:
   donker podium, magenta en paars licht, warme amberkleurige bundels en gloeilampen. */

@font-face { font-family: "Bebas Neue"; font-weight: 400; font-display: swap; src: url("/fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-style: italic; font-display: swap; src: url("/fonts/poppins-latin-800-italic.woff2") format("woff2"); }

:root {
  --bg: #08060f;
  --card: rgba(12, 10, 20, .84);
  --line: rgba(255, 255, 255, .1);
  --text: #f6f3ff;
  --muted: #aaa3c4;
  --pink: #ffa6f3;
  --magenta: #e23bd3;
  --violet: #7a3cff;
  --blue: #3f6bff;
  --amber: #ffb957;
  --display: "Bebas Neue", "Avenir Next Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.4 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- podium: lichtbundels en (als ze er zijn) eigen foto's ---------- */

.stage {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(90% 55% at 10% -5%, rgba(226, 59, 211, .40), transparent 62%),
    radial-gradient(80% 50% at 96% 0%, rgba(122, 60, 255, .50), transparent 62%),
    radial-gradient(70% 40% at 50% 106%, rgba(255, 176, 67, .15), transparent 70%),
    var(--bg);
}
.stage i {
  position: absolute; top: -4vmax; width: 130vmax; height: 130vmax; margin-left: -65vmax;
  transform-origin: 50% 0; transform: rotate(var(--r));
  background: conic-gradient(from 171deg at 50% 0, transparent 0deg, var(--c) 7deg, var(--c) 11deg, transparent 18deg, transparent 360deg);
  -webkit-mask-image: linear-gradient(#000, transparent 70%);
  mask-image: linear-gradient(#000, transparent 70%);
  mix-blend-mode: screen;
  animation: sway 16s ease-in-out infinite alternate;
}
.stage i:nth-of-type(1) { left: 14%; --r: 17deg; --c: rgba(255, 190, 100, .34); }
.stage i:nth-of-type(2) { left: 50%; --r: -7deg; --c: rgba(200, 140, 255, .30); animation-delay: -6s; }
.stage i:nth-of-type(3) { left: 88%; --r: -25deg; --c: rgba(255, 140, 230, .30); animation-delay: -11s; }
@keyframes sway {
  from { transform: rotate(calc(var(--r) - 4deg)); }
  to { transform: rotate(calc(var(--r) + 4deg)); }
}

.bg-photo {
  position: absolute; inset: 0 0 auto; height: min(64vh, 580px);
  background: center 30% / cover no-repeat;
  filter: brightness(.6) saturate(1.05);
  -webkit-mask-image: linear-gradient(#000 30%, transparent);
  mask-image: linear-gradient(#000 30%, transparent);
  opacity: 0; transition: opacity .9s ease;
}
.bg-photo.on { opacity: 1; }

/* ---------- huisstijl ---------- */

.wordmark {
  margin: 0;
  font: 400 1em/.88 var(--display);
  letter-spacing: .03em;
  color: transparent;
  -webkit-text-stroke: .028em #fff;
  filter: drop-shadow(0 0 .05em rgba(255, 255, 255, .75)) drop-shadow(0 0 .32em rgba(226, 59, 211, .8));
}
.accent {
  font: italic 800 1em/1 var(--body);
  text-transform: uppercase;
  color: var(--pink);
  text-shadow: 0 0 .5em rgba(226, 59, 211, .9);
}
.eyebrow {
  margin: 0; font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}
.logo {
  position: relative; flex: none; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(170deg, var(--magenta), var(--blue)) border-box;
  box-shadow: 0 0 18px rgba(122, 60, 255, .45);
}
.logo b {
  font: 400 1.2rem/.86 var(--display); letter-spacing: .04em; text-align: center;
  color: transparent; -webkit-text-stroke: 1px #fff;
}
.logo::after {
  content: "👀"; position: absolute; left: -4px; bottom: 5px;
  font-size: .78rem; line-height: 1; padding: 1px; border-radius: 50%; background: var(--bg);
}

/* ---------- publiekspagina ---------- */

.hero { max-width: 560px; margin: 0 auto; padding: max(30px, env(safe-area-inset-top)) 16px 14px; text-align: center; }
.hero .wordmark { font-size: clamp(4.6rem, 27vw, 8rem); margin-top: 8px; }
.hero .accent { margin: -4px 0 0; font-size: clamp(1.9rem, 10vw, 2.9rem); }
.tagline { margin: 14px 0 0; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

.searchwrap { position: sticky; top: 0; z-index: 5; max-width: 560px; margin: 0 auto; padding: 10px 16px; }
.searchbar {
  display: flex; align-items: center; gap: 4px; height: 54px; padding: 0 6px 0 18px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(20, 16, 34, .84);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.searchbar:focus-within { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(226, 59, 211, .28), 0 10px 30px rgba(0, 0, 0, .45); }
.searchbar > .ico { color: var(--muted); }
.searchbar input {
  flex: 1; min-width: 0; height: 100%; padding: 0 8px; border: 0; outline: 0; background: none;
  font-size: 1rem; appearance: none; -webkit-appearance: none;
}
.searchbar input::placeholder { color: var(--muted); }
.searchbar input::-webkit-search-cancel-button { display: none; }

main { max-width: 560px; margin: 0 auto; padding: 4px 16px calc(96px + env(safe-area-inset-bottom)); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-title { margin: 18px 0 10px; font: 400 1.5rem/1 var(--display); letter-spacing: .06em; }
.hint { margin: 0; font-size: .8rem; color: var(--muted); }
#status { margin-bottom: 10px; }
.empty { margin: 8px 0; padding: 26px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }
.banner {
  margin: 8px 0 0; padding: 12px 16px; border-radius: 14px; text-align: center; font-weight: 600;
  color: #2b1700; background: linear-gradient(180deg, #ffd595, #ffb043); box-shadow: 0 0 24px rgba(255, 176, 67, .4);
}

/* ---------- nummers ---------- */

.songs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.song {
  display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 8px 10px 8px 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
}
.song.is-done { opacity: .6; }
.song.flash { animation: flash 1.6s ease-out; }
@keyframes flash {
  from { border-color: var(--amber); box-shadow: 0 0 26px rgba(255, 176, 67, .6); }
  to { border-color: var(--line); box-shadow: none; }
}
.rank { flex: none; width: 1.5em; text-align: center; font: italic 800 1.15rem/1 var(--body); color: var(--pink); text-shadow: 0 0 .5em rgba(226, 59, 211, .9); }
.art { flex: none; width: 52px; height: 52px; border-radius: 6px; object-fit: cover; background: linear-gradient(135deg, #3a2466, #15102a); }
.meta { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sub { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.title { font-weight: 600; font-size: .95rem; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.sub { font-size: .78rem; color: var(--muted); }

.ico { display: inline-grid; place-items: center; }
.ico svg { display: block; width: 20px; height: 20px; fill: currentColor; }

.vote, .count {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 66px; height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(255, 185, 87, .55); background: rgba(255, 185, 87, .08); color: var(--amber);
  font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background .2s, box-shadow .2s, color .2s;
}
.vote.on { border-color: transparent; background: linear-gradient(180deg, #ffd595, #ffb043); color: #2b1700; box-shadow: 0 0 20px rgba(255, 176, 67, .55); }
.vote:disabled { opacity: .55; }
.count { border-color: transparent; background: none; padding: 0 4px; min-width: 0; }

.add {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--magenta), var(--violet)); color: #fff; box-shadow: 0 0 16px rgba(226, 59, 211, .5);
}
.add:disabled { opacity: .35; box-shadow: none; }
.done-badge { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--muted); }

.icon-btn { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: none; color: var(--muted); }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, .08); }

.toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 10;
  max-width: calc(100vw - 32px); padding: 10px 18px; border-radius: 999px;
  background: #fff; color: #14101f; font-weight: 600; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- host ---------- */

.host { max-width: 760px; margin: 0 auto; padding: 20px 16px 60px; }
.host main { max-width: none; padding: 0; }
.host-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.host-head h1 { flex: 1; margin: 0; font: 400 2.2rem/1 var(--display); letter-spacing: .05em; }
.host-head h1 .accent { font-size: .6em; margin-left: .2em; }
.host-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.host-bar .hint { flex: 1; min-width: 160px; }
.row-actions { flex: none; display: flex; align-items: center; gap: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px; border-radius: 999px;
  border: 0; font-weight: 600; text-decoration: none; white-space: nowrap;
  color: #2b1700; background: linear-gradient(180deg, #ffd595, #ffb043);
}
.btn.small { height: 40px; padding: 0 14px; font-size: .88rem; }
.btn.ghost { color: var(--text); background: rgba(255, 255, 255, .08); border: 1px solid var(--line); }
.btn.danger { color: #ffb4b4; background: rgba(255, 80, 80, .1); border: 1px solid rgba(255, 120, 120, .4); }
.btn.closed { color: #fff; background: linear-gradient(135deg, var(--magenta), var(--violet)); }

.login { display: grid; gap: 12px; max-width: 360px; padding: 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.login label { display: grid; gap: 6px; font-weight: 600; }
.login input { height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); font-size: 1rem; }

/* ---------- beamer ---------- */

.screen { height: 100dvh; overflow: hidden; }
.screen .bg-photo { height: 100%; filter: brightness(.36) saturate(1.1); -webkit-mask-image: none; mask-image: none; }
.screen-grid { height: 100%; max-width: none; padding: 6vh 5vw; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5vw; align-items: center; }
.screen-left { text-align: center; }
.screen-left .eyebrow { font-size: 1.9vh; }
.screen-left .wordmark { font-size: 24vh; margin-top: 1vh; }
.screen-left .accent { margin: -1vh 0 0; font-size: 7.5vh; }
.qr-card { width: 30vh; height: 30vh; margin: 4vh auto 0; padding: 2vh; border-radius: 3vh; background: #fff; box-shadow: 0 0 0 .5vh rgba(255, 185, 87, .55), 0 0 9vh rgba(255, 176, 67, .55); }
.qr-card img { display: block; width: 100%; height: 100%; }
.scan { margin: 3vh 0 0; font-size: 2.9vh; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.url { margin: .6vh 0 0; font-size: 2.3vh; color: var(--muted); }

.screen-right .section-title { margin: 0 0 2vh; font-size: 6vh; }
.screen-right .songs { gap: 1.3vh; }
.screen-right .song { min-height: 0; gap: 2vh; padding: 1.2vh 2.4vh 1.2vh 1.2vh; border-radius: 1.8vh; }
.screen-right .rank { font-size: 3.6vh; }
.screen-right .art { width: 7.6vh; height: 7.6vh; border-radius: 1vh; }
.screen-right .title { font-size: 2.9vh; }
.screen-right .sub { font-size: 2.1vh; }
.screen-right .count { height: auto; font-size: 3.2vh; gap: 1vh; }
.screen-right .count svg { width: 3.2vh; height: 3.2vh; }
.screen-right .empty { font-size: 2.6vh; padding: 6vh 3vh; border-radius: 2vh; }
.screen-right .banner { font-size: 2.6vh; margin: 2vh 0 0; }

@media (prefers-reduced-motion: reduce) {
  .stage i, .song.flash { animation: none; }
  .bg-photo, .toast, .vote { transition: none; }
}
