/* DJ Wikka - graphite + amber. Colors come from the admin panel via :root vars. */
:root {
  --bg: #0F0D16;
  --surface: #1A1724;
  --text: #EEEAF6;
  --muted: #9D96AF;
  --accent: #8B5CF6;
  --accent2: #22D3EE;
  --line: color-mix(in srgb, var(--text) 12%, transparent);
  --surface2: color-mix(in srgb, var(--surface) 70%, var(--bg));
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --r-sm: 6px;
  --r-md: 10px;
  --wrap: 1180px;
  --player-h: 0px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--player-h);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent2); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: #1a1a1a; padding: 8px 12px; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: .01em; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar nav { display: flex; gap: 4px; align-items: center; }
.topbar nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: var(--r-sm); font-weight: 500; font-size: 15px; }
.topbar nav a:hover { background: var(--surface); color: var(--text); }
.topbar nav .nav-cta { color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }

/* ---------- hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: end; padding-top: 72px; padding-bottom: 80px; border-bottom: 1px solid var(--line); }
.wordmark {
  font-family: var(--display); font-weight: 900; margin: 0;
  font-size: clamp(76px, 13vw, 184px); line-height: .84; letter-spacing: -.005em;
  color: var(--text); overflow-wrap: anywhere;
}
.hero-tagline { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); color: var(--accent); margin: 18px 0 0; }
.hero-text { max-width: 46ch; color: color-mix(in srgb, var(--text) 82%, var(--bg)); margin: 14px 0 0; }
.hero-next { margin-top: 28px; display: inline-flex; gap: 14px; align-items: center; padding: 12px 16px 12px 12px; border-radius: var(--r-md); background: var(--surface); text-decoration: none; color: var(--text); max-width: 100%; }
.hero-next:hover { color: var(--text); background: color-mix(in srgb, var(--surface) 80%, var(--accent)); }
.hero-next .d { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--accent); text-align: center; min-width: 44px; }
.hero-next .d small { display: block; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.hero-next .t { font-weight: 600; }
.hero-next .v { color: var(--muted); font-size: 15px; }

.latest { background: var(--surface); border-radius: 14px; padding: 16px; display: grid; gap: 14px; }
.latest-label { margin: 0; color: var(--muted); font-size: 14px; }
.latest-cover { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1; background: var(--surface2); border: 0; padding: 0; cursor: pointer; width: 100%; }
.latest-cover img { width: 100%; height: 100%; object-fit: cover; }
.latest-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.latest-title { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.02; margin: 0; }
.latest-artist { margin: 2px 0 0; color: var(--muted); }
.hero-empty { border: 1px dashed var(--line); border-radius: 14px; padding: 28px; color: var(--muted); }

/* ---------- sections */
.section { padding-top: 88px; padding-bottom: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 6vw, 72px); line-height: .95; margin: 0; }
h3 { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; margin: 0; }
.section-intro { max-width: 58ch; color: var(--muted); margin: 10px 0 0; }

/* ---------- music */
.music-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.music-tools input, .music-tools select {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 9px 12px; min-width: 0;
}
.music-tools input { width: 220px; }
.track-count { color: var(--muted); font-size: 14px; margin: 0 0 14px; min-height: 1.2em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 28px 20px; }
.tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 8px; align-content: start; }
.cover {
  grid-column: 1 / -1; position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden;
  background: var(--surface); border: 0; padding: 0; cursor: pointer;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 8%, transparent) inset, 0 14px 30px -18px rgba(0, 0, 0, .7);
}
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.cover:hover img, .cover:focus-visible img { transform: scale(1.03); filter: brightness(.8); }
.play-badge {
  position: absolute; right: 10px; bottom: 10px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center;
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s;
}
.play-badge svg { width: 22px; height: 22px; fill: #1b1b1b; }
.play-badge .i-pause { display: none; }
.cover:hover .play-badge, .cover:focus-visible .play-badge, .tile.is-current .play-badge { opacity: 1; transform: none; }
.tile.is-playing .play-badge .i-play { display: none; }
.tile.is-playing .play-badge .i-pause { display: block; }
.eq { position: absolute; left: 10px; bottom: 12px; display: none; gap: 3px; align-items: end; height: 18px; }
.eq i { display: block; width: 4px; background: var(--accent); border-radius: 1px; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
.tile.is-playing .eq { display: flex; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 18px; } }
.tile-meta { min-width: 0; }
.tile-title { font-weight: 600; font-size: 16px; line-height: 1.25; margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile-artist { margin: 2px 0 0; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.is-current .tile-title { color: var(--accent); }
.dl {
  width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--muted);
  border: 1px solid var(--line); margin-top: 2px;
}
.dl svg { width: 18px; height: 18px; fill: currentColor; }
.dl:hover { color: #1b1b1b; background: var(--accent); border-color: var(--accent); }
.more { display: flex; justify-content: center; margin-top: 36px; }
.empty-state { grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: 14px; padding: 36px; color: var(--muted); }
.empty-state strong { color: var(--text); display: block; margin-bottom: 4px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 11px 22px; font-weight: 600; cursor: pointer; border: 0; text-decoration: none; }
.btn-solid { background: var(--accent); color: #1b1b1b; }
.btn-solid:hover { background: var(--accent2); color: #1b1b1b; }
.btn-solid[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.btn-small { padding: 8px 16px; font-size: 15px; }

/* ---------- events */
.events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.event { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.event-date { text-align: center; line-height: 1; }
.event-date .day { font-family: var(--display); font-weight: 900; font-size: 52px; color: var(--accent); display: block; }
.event-date .mon { font-weight: 600; color: var(--muted); font-size: 14px; display: block; margin-top: 4px; }
.event-title { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.05; margin: 0; }
.event-where { margin: 4px 0 0; color: var(--muted); }
.event-notes { margin: 6px 0 0; font-size: 15px; color: color-mix(in srgb, var(--text) 80%, var(--bg)); max-width: 62ch; }
.events-past .event { opacity: .7; padding: 14px 0; }
.events-past .event-date .day { font-size: 36px; color: var(--muted); }
.events-past .event-title { font-size: 22px; }
.past { margin-top: 28px; }
.past summary { cursor: pointer; color: var(--muted); font-weight: 500; padding: 6px 0; }
.past summary:hover { color: var(--text); }
.no-events { color: var(--muted); padding: 24px 0; border-bottom: 1px solid var(--line); margin: 0; }

/* ---------- studio */
.studio { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.prose p { margin: 16px 0 0; max-width: 62ch; }
.prose p:first-child { margin-top: 20px; }
.studio-gear { background: var(--surface); border-radius: 14px; padding: 24px 26px; margin-top: 12px; }
.studio-gear ul { list-style: none; margin: 14px 0 0; padding: 0; }
.studio-gear li { padding: 10px 0 10px 18px; border-top: 1px solid var(--line); position: relative; }
.studio-gear li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 40px; }
.photos:empty { display: none; }
.photos figure { margin: 0; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); background: var(--surface); }
.photos figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- booking */
.booking { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 56px; align-items: start; }
.form { background: var(--surface); border-radius: 14px; padding: 28px; display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 12px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field.has-error input, .field.has-error textarea { border-color: #e5484d; }
.field .err { color: #ff8589; font-size: 14px; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.form-status { margin: 0; color: var(--muted); }
.form-status.ok { color: var(--accent2); }
.form-status.bad { color: #ff8589; }
input[type="date"] { color-scheme: dark; }

/* ---------- footer */
.footer { margin-top: 110px; border-top: 1px solid var(--line); padding: 40px 0 56px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: start; }
.footer-name { font-family: var(--display); font-weight: 800; font-size: 30px; margin: 0; }
.footer .muted { margin: 4px 0 0; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.socials a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 15px; }
.socials a:hover { background: var(--accent); color: #1b1b1b; }
#copyright { grid-column: 1 / -1; }

/* ---------- player */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.player-inner { display: grid; grid-template-columns: 52px minmax(0, 220px) auto minmax(0, 1fr) auto; gap: 16px; align-items: center; height: 76px; }
.player-art { width: 52px; height: 52px; border-radius: var(--r-sm); object-fit: cover; background: var(--bg); }
.player-meta { min-width: 0; }
.player-title { margin: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { margin: 0; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-controls { display: flex; gap: 6px; align-items: center; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.icon-btn:hover { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); }
.icon-btn-main { width: 46px; height: 46px; background: var(--accent); color: #1b1b1b; }
.icon-btn-main:hover { background: var(--accent2); color: #1b1b1b; }
.icon-btn-main .i-pause { display: none; }
.player.playing .icon-btn-main .i-play { display: none; }
.player.playing .icon-btn-main .i-pause { display: block; }
.player-seek { display: flex; gap: 10px; align-items: center; min-width: 0; }
.time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; min-width: 38px; text-align: center; }
#p-seek { flex: 1; min-width: 0; accent-color: var(--accent); height: 4px; }

/* ---------- responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; padding-bottom: 56px; }
  .hero-latest { max-width: 420px; }
  .studio, .booking { grid-template-columns: 1fr; gap: 28px; }
  .player-inner { grid-template-columns: 44px minmax(0, 1fr) auto auto; height: auto; padding: 10px 0; gap: 12px; }
  .player-art { width: 44px; height: 44px; }
  .player-seek { grid-column: 1 / -1; order: 5; }
  #p-prev { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar nav a { padding: 8px 8px; font-size: 14px; }
  .topbar nav a:not(.nav-cta):nth-child(3) { display: none; }
  .brand { font-size: 22px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .music-tools, .music-tools input { width: 100%; }
  .music-tools input { flex: 1; }
  .event { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .event-date .day { font-size: 40px; }
  .event-action { grid-column: 2; }
  .row2 { grid-template-columns: 1fr; }
  .form { padding: 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .socials { justify-content: flex-start; }
  .play-badge { opacity: 1; transform: none; width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eq i { animation: none; height: 12px; }
  .cover img, .play-badge { transition: none; }
}

[hidden] { display: none !important; }
