/* ============================================
   SKELI.CZ - Effects (redesign 2026)
   Bottom bar on phones, glowing cards, cursor light, tilt, film grain,
   home hero extras (embers / snow, equalizer, song marquee, latest clip).
   Scripts: js/effects.js. Everything respects prefers-reduced-motion.
   ============================================ */

/* full-width layers (marquee, hero particles) must never cause a sideways scroll */
html, body { overflow-x: clip; }

/* ---------- Film grain over the whole page ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body.light::after { opacity: 0.03; }

/* ---------- Smoky gold on the signs and the gold tape ----------
   The smoke from the background photo rolls slowly inside the gold (img/smoke-tex.webp:
   mirrored 2x2, so the tile repeats without a seam; it moves exactly one tile per loop).
   Every few seconds a soft glint sweeps across (::after, clipped by the sign's mask). */
:root {
  --gold-base: #ffd23f;
  --gold-hi: rgba(255, 244, 190, 0.9);
}
body.light {
  --gold-base: #a37b00;
  --gold-hi: rgba(226, 182, 52, 0.9);
}
.hero-title .logo-mark,
.masthead-brand .squad-mark,
.tape-gold {
  position: relative;
  overflow: hidden;
  background-color: var(--gold-base);
  background-image: url('/img/smoke-tex.webp'), radial-gradient(closest-side, var(--gold-hi), transparent);
  background-size: 700px 450px, 600px 200%;
  background-repeat: repeat;
  background-blend-mode: overlay, normal;
  animation: gold-smoke 30s linear infinite;
}
@keyframes gold-smoke {
  from { background-position: 0 0, 0 50%; }
  to { background-position: 700px -450px, -600px 50%; }
}
.hero-title .logo-mark::after,
.masthead-brand .squad-mark::after,
.tape-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 42%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.28) 58%, transparent 70%);
  transform: translateX(-110%);
  animation: gold-glint 9s cubic-bezier(.45, 0, .25, 1) infinite;
}
/* the long tape gets a narrower glint, a little later than the signs */
.tape-gold::after {
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.25) 47%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.25) 53%, transparent 58%);
  animation-delay: 2s;
  animation-duration: 11s;
}
/* Light theme: the smoke comes from the dark photo and looks murky on the snow, so the
   signs and the tape are plain polished gold, light from above (the user's pick); the glint stays */
body.light .hero-title .logo-mark,
body.light .masthead-brand .squad-mark {
  background: linear-gradient(180deg, #e6b730 0%, #c99a12 38%, #8f6600 70%, #b8860b 100%);
  animation: none;
}
body.light .tape-gold {
  background: linear-gradient(180deg, #c99a12, #a37b00 55%, #8a6400);
  animation: none;
  box-shadow: 0 14px 30px -14px rgba(20, 40, 80, 0.45);
}
body.light .hero-title { filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9)) drop-shadow(0 2px 16px rgba(255, 255, 255, 0.8)); }

/* rests most of the time, then a slow, smooth sweep of about three seconds */
@keyframes gold-glint {
  0%, 62% { transform: translateX(-110%); }
  95%, 100% { transform: translateX(110%); }
}
body.light .masthead-brand { filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.9)); }

/* ---------- Cards: a gold edge and a soft glow on hover ---------- */
.feature-card,
.video,
.side-card,
.song-card,
.news-card,
.disco-card {
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .35s ease, box-shadow .35s ease;
}
.feature-card:hover,
.video:hover,
.side-card:hover,
.song-card:hover,
.news-card:hover,
.disco-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent), 0 18px 50px -24px color-mix(in srgb, var(--accent-2) 55%, transparent);
}

/* ---------- 3D tilt (js/effects.js sets --rx / --ry on [data-tilt]) ---------- */
/* loaded after pages.css, so this replaces the plain hover lift of those cards */
[data-tilt]:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
[data-tilt].tilting { transition: transform .08s linear, border-color .35s ease, box-shadow .35s ease; }

/* ---------- Light that follows the mouse (dark theme, desktop) ---------- */
.cursor-light {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 170, 70, 0.13), rgba(255, 90, 40, 0.05) 40%, transparent 70%);
  transform: translate(var(--mx, -999px), var(--my, -999px));
  transition: opacity .6s ease;
}
body.light .cursor-light { opacity: 0; }

/* ---------- Home hero extras ---------- */
.hero { position: relative; isolation: isolate; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--bg) 45%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--accent);
  font-size: var(--fs-small);
  letter-spacing: 0.24em;
}
.hero .hero-tagline { font-size: calc(var(--fs-h4) * 1.25); opacity: 1; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6); }
body.light .hero .hero-tagline { text-shadow: 0 1px 10px rgba(255, 255, 255, 0.85); }

/* equalizer bars */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: bottom; animation: eq-bar 1s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: .25s; }
.eq i:nth-child(3) { animation-delay: .5s; }
.eq i:nth-child(4) { animation-delay: .1s; }
@keyframes eq-bar { from { transform: scaleY(.2); } to { transform: scaleY(1); } }

/* embers rising from the smoke; snow falling in the light theme */
.hero-particles { position: absolute; top: -40px; bottom: 0; left: calc(50% - 50vw); width: 100vw; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-particles span {
  position: absolute;
  bottom: -10px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, #ffd27a, #ff6a2b 55%, transparent 70%);
  box-shadow: 0 0 8px 2px rgba(255, 110, 40, 0.5);
  opacity: 0;
  animation: ember var(--t) linear var(--delay) infinite;
}
@keyframes ember {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: .9; }
  80% { opacity: .45; }
  100% { transform: translate(var(--dx), -80vh); opacity: 0; }
}
body.light .hero-particles span { top: -10px; bottom: auto; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, 0.9); animation-name: snow; }
@keyframes snow {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: .95; }
  100% { transform: translate(var(--dx), 85vh); opacity: 0; }
}

/* the newest clip right in the hero: you see it is music at first glance */
.hero-latest {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding: 8px 10px 8px 8px;
  border-radius: 18px;
  text-align: left;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .3s ease, border-color .3s ease;
}
.hero-latest:hover { text-decoration: none; transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.hero-latest img { width: 104px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 11px; }
.hero-latest small { display: flex; align-items: center; gap: 8px; font-size: 0.62rem; letter-spacing: 0.2em; color: var(--accent); }
.hero-latest small .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.hero-latest b { display: block; max-width: 260px; margin-top: 3px; font-weight: 400; font-size: var(--fs-card); line-height: 1.35; }
.hero-latest .play { flex-shrink: 0; width: 42px; height: 42px; margin-left: 8px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }

/* two crossed tapes with the song names under the hero, running in opposite directions */
.tapes {
  position: relative;
  width: 100vw;
  height: 150px;
  margin: 10px calc(50% - 50vw) 60px;
  overflow: hidden;
}
.tape {
  position: absolute;
  left: -6vw;
  width: 112vw;
  top: 50%;
  padding: 13px 0;
  overflow: hidden;
}
.tape-gold {
  z-index: 2;
  transform: translateY(-50%) rotate(-2.6deg);
  /* gold mist: see the signs above; a long tape drifts more slowly */
  animation-duration: 24s;
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.7), 0 0 40px -10px color-mix(in srgb, var(--accent-2) 60%, transparent);
}
.tape-dark {
  z-index: 1;
  transform: translateY(-50%) rotate(2.2deg);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-block: 1px solid var(--panel-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.marquee-track { display: flex; align-items: center; gap: 30px; width: max-content; animation: marquee 60s linear infinite; }
.marquee-track.reverse { animation-direction: reverse; animation-duration: 75s; }
.tape:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tape-gold a, .tape-gold .tape-name { color: #141414; font-size: 1.15rem; letter-spacing: 0.06em; white-space: nowrap; }
.tape-gold .tape-name { font-size: 1.25rem; }
.tape-gold a:hover { text-decoration: none; color: #000; text-shadow: 0 0 1px #000; }
.tape-gold i { font-style: normal; color: rgba(20, 20, 20, 0.55); font-size: 0.8rem; }
body.light .tape-gold a, body.light .tape-gold .tape-name { color: #fff; }
body.light .tape-gold i { color: rgba(255, 255, 255, 0.7); }
.tape-dark a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: var(--fs-card); white-space: nowrap; opacity: 0.85; }
.tape-dark a:hover { text-decoration: none; opacity: 1; color: var(--accent); }
.tape-dark img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid var(--panel-border); }
.tape-dark small { font-size: var(--fs-small); color: var(--text-dim); }

/* ---------- Skeli's photos ---------- */
/* home background: photos cross-fade over the usual one (js/effects.js adds the layers) */
.bg-slides { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-slides > div {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: var(--bg-overlay), var(--slide) var(--pos, center) / cover no-repeat;
  transition: opacity 2.6s ease;
  animation: bg-breathe 30s ease-in-out infinite alternate;
}
.bg-slides > div.on { opacity: 1; }

/* wide photo band with a line from Skeli */
.photo-band {
  --band: url('/img/photos/street-lg.webp?v=4');
  position: relative;
  width: 100vw;
  min-height: 420px;
  margin: 90px calc(50% - 50vw) 0;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
body.light .photo-band { --band: url('/img/photos/panorama-lg.webp'); }
.photo-band-img {
  position: absolute;
  inset: -60px 0;
  z-index: -2;
  background: var(--band) 72% 18% / cover no-repeat;
  transform: translateY(var(--py, 0px));
  /* the night street is very dark: lift it a little */
  filter: brightness(1.35) contrast(1.08);
}
body.light .photo-band-img { filter: none; background-position: 60% center; }
.photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(9, 9, 11, 0.9) 0%, rgba(9, 9, 11, 0.45) 40%, transparent 62%),
              linear-gradient(to bottom, var(--bg), transparent 14%, transparent 86%, var(--bg));
}
body.light .photo-band::before {
  background: linear-gradient(90deg, rgba(244, 242, 238, 0.94) 0%, rgba(244, 242, 238, 0.7) 45%, rgba(244, 242, 238, 0.05) 75%),
              linear-gradient(to bottom, var(--bg), transparent 18%, transparent 82%, var(--bg));
}
.photo-band-text { width: 100%; max-width: var(--container); margin: 0 auto; padding: 60px 20px; }
.photo-band blockquote {
  max-width: 560px;
  margin: 0 0 14px;
  font-family: var(--font-text);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.45;
  color: var(--text);
}
.photo-band blockquote::before { content: "„"; color: var(--accent); }
.photo-band blockquote::after { content: "“"; color: var(--accent); }
.photo-band-sign { margin: 0 0 24px; color: var(--accent); letter-spacing: 0.08em; }

/* newsletter: Skeli pointing at you */
.newsletter .nl-photo { margin: -22px -22px 14px; height: 150px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.newsletter .nl-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; -webkit-mask: linear-gradient(#000 55%, transparent); mask: linear-gradient(#000 55%, transparent); }
.newsletter .nl-lead { margin: 0 0 6px; font-size: var(--fs-small); letter-spacing: 0.12em; color: var(--accent); }

/* about: gallery, black and white until pointed at */
.photo-gallery { margin: 10px 0 56px; }
.photo-gallery h2 { text-align: center; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; grid-auto-flow: dense; gap: 12px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--panel-border); background: #000; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: scale(1.01); transition: filter .6s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.gallery-item:hover img, .gallery-item:focus-visible img { filter: none; transform: scale(1.06); }
@media (hover: none) { .gallery-item img { filter: none; } }
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .photo-band { min-height: 360px; }
  .photo-band::before { background: linear-gradient(rgba(9, 9, 11, 0.75), rgba(9, 9, 11, 0.75)), linear-gradient(to bottom, var(--bg), transparent 18%, transparent 82%, var(--bg)); }
  body.light .photo-band::before { background: linear-gradient(rgba(244, 242, 238, 0.8), rgba(244, 242, 238, 0.8)); }
}

/* full-screen photo viewer */
.lightbox { position: fixed; inset: 0; z-index: 20000; display: none; place-items: center; background: rgba(5, 5, 7, 0.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 1.1rem; display: grid; place-items: center; padding: 0; }
.lightbox button:hover { border-color: var(--accent); color: var(--accent); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; margin-top: -24px; }
.lightbox .lb-next { right: 18px; top: 50%; margin-top: -24px; }

/* ---------- MC Kevin, the rapping gold cat (js/kevin.js, js/kevin3d.js) ---------- */
.kevin {
  position: fixed;
  left: 10px;
  bottom: 8px;
  z-index: 1150;
  width: 150px;
  height: 172px;
  pointer-events: none;
  transition: translate .45s cubic-bezier(.3, .8, .3, 1), opacity .45s;
}
.kevin[hidden] { display: none; }
/* the visitor is typing into a field he would cover: he ducks, only his ears and cap peek out */
.kevin.ducked { translate: 0 64%; opacity: .7; }
.kevin.ducked .kevin-tools { display: none; }
.kevin.kevin-in { animation: kevin-in .9s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes kevin-in { from { opacity: 0; transform: translateY(60px) scale(.8); } }
.kevin-body {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: 40%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}
.kevin-body:hover { background: transparent; }
.kevin-body:focus-visible { outline: 2px solid var(--accent); outline-offset: -6px; }
.kevin-canvas, .kevin-still { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.kevin-still { object-fit: contain; }
.kevin-still[hidden], .kevin-canvas[hidden] { display: none; }
/* small round buttons beside his head: beat on/off and hide */
.kevin-tools { position: absolute; right: -6px; top: 6px; display: flex; flex-direction: column; gap: 6px; pointer-events: auto; opacity: 0; transition: opacity .25s; }
.kevin:hover .kevin-tools, .kevin:focus-within .kevin-tools { opacity: 1; }
/* touch screens have no hover: the buttons come with the bubble, otherwise they would lie over the page */
@media (hover: none) {
  .kevin-tools { pointer-events: none; }
  .kevin.talking .kevin-tools, .kevin:focus-within .kevin-tools { opacity: .9; pointer-events: auto; }
}
.kevin-tools button {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: var(--panel-strong);
  color: var(--text-dim);
  font-size: .72rem;
  backdrop-filter: blur(10px);
}
.kevin-tools button:hover { color: var(--accent); border-color: var(--accent); }
/* speech bubble above his head */
.kevin-bubble {
  position: absolute;
  left: 18px;
  bottom: calc(100% - 6px);
  width: max-content;
  max-width: min(300px, calc(100vw - 40px));
  padding: 12px 16px;
  border-radius: 18px 18px 18px 6px;
  background: var(--panel-strong);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: var(--shadow), 0 0 30px -10px color-mix(in srgb, var(--accent-2) 50%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: auto;
  animation: kevin-pop .35s cubic-bezier(.2, .9, .3, 1.4) both;
}
.kevin-bubble[hidden] { display: none; }
.kevin-bubble::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: var(--panel-strong);
  border-right: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
@keyframes kevin-pop { from { opacity: 0; transform: translateY(8px) scale(.9); } }
.kevin-text { margin: 0; font-family: var(--font-text); font-weight: 400; font-size: 1rem; line-height: 1.45; color: var(--text); }
.kevin-word { display: inline; animation: kevin-word .25s ease-out both; }
@keyframes kevin-word { from { opacity: 0; color: var(--accent); } }
.kevin-link { display: inline-block; margin-top: 8px; font-size: var(--fs-small); color: var(--accent); }
.kevin-link[hidden] { display: none; }
/* minimised: a gold paw that calls him back */
.kevin-paw {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1150;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.15rem;
  box-shadow: var(--shadow);
}
.kevin-paw[hidden] { display: none; }
.kevin-paw:hover { transform: translateY(-2px) rotate(-12deg); }
@media (max-width: 1024px) {
  .kevin { width: 104px; height: 120px; left: 4px; bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom)); }
  .kevin-paw { width: 40px; height: 40px; bottom: calc(var(--tabbar-h) + 22px + env(safe-area-inset-bottom)); }
  .kevin-bubble { left: 10px; max-width: min(260px, calc(100vw - 30px)); }
}
@media (max-width: 600px) {
  .kevin { width: 84px; height: 97px; }
  .kevin-tools { right: -24px; }
}
@media (prefers-reduced-motion: reduce) {
  .kevin.kevin-in, .kevin-bubble, .kevin-word { animation: none; }
}

/* ---------- Page top (WEB-INF/tags/pageHero.tag): kicker, gold title, lead ----------
   No photo of its own: the page already lies on the background photo. */
.page-hero {
  margin: 0 0 40px;
  padding: 26px 0 0;
  text-align: center;
}
.page-hero-inner { max-width: 760px; margin: 0 auto; padding: 0 8px; }
.page-hero .hero-kicker { margin-bottom: 18px; }
.page-hero-title {
  margin: 0;
  font-size: clamp(2.3rem, 7vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--accent);
  /* gold lit from above, a slow sheen drifting across */
  background: linear-gradient(100deg, transparent 40%, rgba(255, 250, 220, 0.75) 50%, transparent 60%) -200% 0 / 200% 100% no-repeat,
              linear-gradient(180deg, #fff1b0 0%, #ffd23f 42%, #f2a33a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 22px rgba(0, 0, 0, 0.75));
  animation: title-sheen 9s cubic-bezier(.45, 0, .25, 1) infinite;
}
@keyframes title-sheen { 0%, 60% { background-position: -200% 0, 0 0; } 95%, 100% { background-position: 300% 0, 0 0; } }
body.light .page-hero-title {
  background: linear-gradient(180deg, #e6b730 0%, #c99a12 38%, #8f6600 70%, #b8860b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  animation: none;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9)) drop-shadow(0 2px 14px rgba(255, 255, 255, 0.8));
}
.page-hero-lead {
  margin: 18px auto 0;
  max-width: 560px;
  font-size: calc(var(--fs-h4) * 1.1);
  color: var(--text);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}
body.light .page-hero-lead { text-shadow: 0 1px 10px rgba(255, 255, 255, 0.9); }
@media (max-width: 600px) {
  .page-hero { padding-top: 12px; margin-bottom: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero-title { animation: none; }
}

/* search field and filter chips under a page hero (Lyrics, News) */
.lyric-search {
  position: relative;
  width: min(520px, 100%);
  margin: 26px auto 0;
}
.lyric-search i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;   /* above the glass field (backdrop-filter paints it on top otherwise) */
  color: var(--accent);
  pointer-events: none;
}
.lyric-search input {
  width: 100%;
  height: 54px;
  padding: 0 22px 0 50px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-body);
  box-shadow: var(--shadow);
  transition: border-color .25s, box-shadow .25s;
}
.lyric-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow), 0 0 0 4px var(--accent-soft), 0 0 40px -10px color-mix(in srgb, var(--accent-2) 60%, transparent);
}
.lyric-search input::placeholder { color: var(--text-dim); }
@media (max-width: 600px) {
  .lyric-search input { height: 48px; padding-left: 44px; font-size: var(--fs-small); }
  .lyric-search i { left: 17px; }
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px auto 0;
}
.page-hero-lead + .filter-chips { margin-top: 26px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: color-mix(in srgb, var(--bg) 50%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-dim);
  font: inherit;
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.song-card[hidden] { display: none; }
/* the line of the lyric that matched the search */
.song-line {
  display: block;
  margin: -4px 14px 12px;
  font-family: var(--font-text);
  font-size: var(--fs-text);
  font-weight: 300;
  color: var(--accent);
}
.song-line[hidden] { display: none; }

/* ---------- Sign in / sign up: Skeli's photo on the left, the glass form overlapping it ---------- */
.auth-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 0;
}
.auth-art {
  position: relative;
  align-self: stretch;
  min-height: 560px;
  margin-right: -60px;          /* the form card lies over the photo's edge */
  padding: 40px 100px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow);
}
.auth-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('/img/photos/street-md.webp?v=4') 58% 30% / cover no-repeat;
  filter: grayscale(1) contrast(1.08) brightness(1.15);
  animation: bg-breathe 30s ease-in-out infinite alternate;
}
.auth-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.15) 0%, rgba(9, 9, 11, 0.35) 45%, rgba(9, 9, 11, 0.92) 100%),
              radial-gradient(ellipse 80% 45% at 30% 100%, rgba(255, 138, 61, 0.25), transparent 70%);
}
body.light .auth-art::before { background-image: url('/img/photos/point-md.webp'); background-position: center 35%; filter: grayscale(1) brightness(1.05); }
body.light .auth-art::after {
  background: linear-gradient(180deg, rgba(20, 20, 22, 0.05) 0%, rgba(20, 20, 22, 0.25) 50%, rgba(20, 20, 22, 0.82) 100%);
}
.auth-art .squad-mark { width: min(260px, 70%); color: var(--accent); }
body.light .auth-art .squad-mark { color: #ffd23f; }
.auth-art-title { margin: 6px 0 0; font-size: var(--fs-h3); color: #fff; }
.auth-art-text { margin: 0; max-width: 340px; font-family: var(--font-text); font-weight: 300; font-size: var(--fs-text); color: rgba(255, 255, 255, 0.8); }
.auth-wrap .auth-card {
  position: relative;
  z-index: 1;
  max-width: none;
  background: var(--panel-strong);
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: var(--shadow), 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
  /* phones: the photo becomes a short banner over the form */
  .auth-art { min-height: 190px; margin: 0 0 -48px; padding: 24px 24px 66px; }
  .auth-art-text { display: none; }
}
@media (prefers-reduced-motion: reduce) { .auth-art::before { animation: none; } }

/* error page: the number is the hero title */
main.error-page { padding-top: 36px; text-align: center; }
.error-page .page-hero-title { font-size: clamp(5.5rem, 20vw, 10rem); letter-spacing: 0.06em; }
.error-page .error-actions { margin-top: 28px; }

/* ---------- Discography: the cover shrinks into a sleeve and a spinning record slides out ---------- */
.disco-card .song-thumb { background: radial-gradient(ellipse at 70% 50%, #2a2118, #0c0c0e 70%); }
.disco-card .song-thumb > img {
  position: relative;
  z-index: 1;
  transition: width .55s cubic-bezier(.2, .7, .2, 1), transform .4s ease, box-shadow .55s ease;
}
.vinyl {
  position: absolute;
  z-index: 0;
  top: 5%;
  left: 28%;
  height: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  /* fine grooves, a soft light reflection across them */
  background:
    conic-gradient(from 30deg, transparent 0 8%, rgba(255, 255, 255, 0.12) 12%, transparent 18% 50%, rgba(255, 255, 255, 0.09) 62%, transparent 68%),
    repeating-radial-gradient(circle, #101012 0 1.5px, #1c1c1f 1.5px 3px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 26px rgba(0, 0, 0, 0.6);
  transition: left .55s cubic-bezier(.2, .7, .2, 1);
}
/* the label in the middle is the song's cover, with the spindle hole */
.vinyl::before {
  content: "";
  position: absolute;
  inset: 33%;
  border-radius: 50%;
  background: radial-gradient(circle, #0c0c0e 0 7%, transparent 8%), var(--cover) center / cover;
  box-shadow: 0 0 0 2px var(--accent);
}
@media (hover: hover) {
  .disco-card:hover .song-thumb > img {
    width: 56.25%;            /* a square sleeve: 9/16 of the width = the full height */
    transform: none;
    box-shadow: 10px 0 24px rgba(0, 0, 0, 0.65);
  }
  .disco-card:hover .vinyl { left: 46%; animation: vinyl-spin 2.2s linear infinite; }
}
@keyframes vinyl-spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .disco-card:hover .vinyl { animation: none; }
}

/* ---------- Song page: its own colours and a gold title ---------- */
.lyric-ambient {
  position: fixed;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  background: var(--amb) center / cover no-repeat;
  filter: blur(70px) saturate(1.8) brightness(0.75);
  opacity: 0.85;
  animation: bg-breathe 30s ease-in-out infinite alternate;
}
body.light .lyric-ambient { filter: blur(80px) saturate(1.4) brightness(1.25); opacity: 0.4; }
.lyric-page .lyric-title {
  background: linear-gradient(100deg, transparent 40%, rgba(255, 250, 220, 0.75) 50%, transparent 60%) -200% 0 / 200% 100% no-repeat,
              linear-gradient(180deg, #fff1b0 0%, #ffd23f 42%, #f2a33a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 16px rgba(0, 0, 0, 0.6));
  animation: title-sheen 9s cubic-bezier(.45, 0, .25, 1) infinite;
}
body.light .lyric-page .lyric-title {
  background: linear-gradient(180deg, #e6b730 0%, #c99a12 38%, #8f6600 70%, #b8860b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  animation: none;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9));
}
@media (prefers-reduced-motion: reduce) { .lyric-ambient, .lyric-page .lyric-title { animation: none; } }

/* Music page: the clip player in the same glass as the rest (no red stripe), a gold hairline */
.music-page .section.youtube {
  border-top: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: var(--shadow), 0 30px 90px -40px color-mix(in srgb, var(--accent-2) 45%, transparent);
}
.music-page .section.youtube .section-title { justify-content: flex-start; font-size: var(--fs-h3); letter-spacing: 0.08em; }

/* ---------- MC Kevin's menu, search and TV (js/kevin.js) ---------- */
.kevin-extra { margin-top: 10px; }
.kevin-extra[hidden] { display: none; }
.kevin-menu { display: flex; flex-wrap: wrap; gap: 6px; }
.kevin-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: var(--accent-soft);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.kevin-chip i { color: var(--accent); }
.kevin-chip:hover, .kevin-chip:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.kevin-chip:hover i, .kevin-chip:focus-visible i { color: inherit; }
.kevin-find input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: var(--field);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1rem;
}
.kevin-find input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.kevin-results { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow-y: auto; }
.kevin-results a {
  display: block;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-text);
  text-decoration: none;
}
.kevin-results a:hover, .kevin-results a:focus-visible { background: var(--accent-soft); }
.kevin-results b { display: block; font-family: var(--font-body); font-weight: 400; font-size: var(--fs-card); color: var(--accent); }
.kevin-results span { display: block; font-weight: 300; font-size: 0.92rem; color: var(--text-dim); }
/* while a menu or the search is open, the bubble is a bit wider */
.kevin-bubble:has(.kevin-extra:not([hidden])) { width: min(330px, calc(100vw - 40px)); }

/* the small TV with a random clip, right of Kevin */
.kevin-tv {
  position: fixed;
  left: 176px;
  bottom: 18px;
  z-index: 1150;
  width: min(380px, calc(100vw - 200px));
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: var(--shadow), 0 0 40px -12px color-mix(in srgb, var(--accent-2) 60%, transparent);
  background: #000;
  animation: kevin-pop .35s cubic-bezier(.2, .9, .3, 1.4) both;
}
.kevin-tv iframe { width: 100%; height: 100%; border: 0; display: block; }
.kevin-tv-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  cursor: pointer;
}
.kevin-tv-close:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 1024px) {
  /* phones and tablets: over the bottom bar, the whole width */
  .kevin-tv { left: 12px; right: 12px; width: auto; bottom: calc(var(--tabbar-h) + 150px + env(safe-area-inset-bottom)); }
}

/* ---------- "The e-mail is on its way" (forgot.jsp) and the spam hint ---------- */
.mail-sent { text-align: center; }
.mail-sent-icon {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
  font-size: 1.7rem;
  animation: mail-fly 1.2s cubic-bezier(.2, .9, .3, 1.3) both;
}
@keyframes mail-fly { from { opacity: 0; transform: translate(-30px, 20px) rotate(-20deg) scale(.6); } }
.mail-sent h2 { margin: 0 0 12px; }
.mail-sent p { margin: 0 0 14px; font-family: var(--font-text); font-weight: 300; font-size: var(--fs-text); line-height: 1.5; color: var(--text); }
.mail-spam {
  display: block;
  margin: 12px 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: var(--accent-soft);
  font-family: var(--font-text);
  font-weight: 300;
  font-size: var(--fs-text);
  line-height: 1.45;
  text-align: left;
  color: var(--text);
}
.mail-spam i { color: var(--accent); margin-right: 4px; }
button.is-sending { cursor: progress; opacity: 0.85; }
@media (prefers-reduced-motion: reduce) { .mail-sent-icon { animation: none; } }

/* ---------- Kevin peeks out from the side of the screen (js/kevin.js startPeek) ---------- */
.kevin.peek { top: var(--peek-y, 40vh); bottom: auto; }
.kevin.peek-right { left: auto; right: -46px; rotate: -18deg; animation: kevin-peek-in-right .75s cubic-bezier(.2, .9, .3, 1.15) both; }
.kevin.peek-left { left: -46px; rotate: 18deg; animation: kevin-peek-in-left .75s cubic-bezier(.2, .9, .3, 1.15) both; }
.kevin.peek-out.peek-right { animation: kevin-peek-out-right .5s ease-in both; }
.kevin.peek-out.peek-left { animation: kevin-peek-out-left .5s ease-in both; }
@keyframes kevin-peek-in-right { from { translate: 130% 0; } }
@keyframes kevin-peek-in-left { from { translate: -130% 0; } }
@keyframes kevin-peek-out-right { to { translate: 130% 0; } }
@keyframes kevin-peek-out-left { to { translate: -130% 0; } }
.kevin.peek .kevin-tools { display: none; }
/* the bubble beside him, kept upright, its tail pointing at him */
.kevin.peek-right .kevin-bubble { left: auto; right: 72%; bottom: 58%; rotate: 18deg; border-radius: 18px 18px 6px 18px; }
.kevin.peek-right .kevin-bubble::after { left: auto; right: 22px; }
.kevin.peek-left .kevin-bubble { left: 66%; bottom: 58%; rotate: -18deg; }

/* ---------- Third-party players behind a "load the player" card until consent (footer.jsp) ---------- */
.consent-embed { position: relative; }
.consent-embed-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), var(--panel-strong);
}
.consent-embed-cover > i { font-size: 2.2rem; color: var(--accent); }
.consent-embed-cover .fa-spotify { color: var(--spotify); }
.consent-embed-cover .fa-youtube { color: var(--youtube); }
.consent-embed-cover p { max-width: 460px; margin: 0; font-family: var(--font-text); font-weight: 300; font-size: var(--fs-text); line-height: 1.45; color: var(--text-dim); }
.consent-embed.loaded .consent-embed-cover { display: none; }

/* ---------- Privacy policy (privacy.jsp) ---------- */
.privacy-sections { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.privacy-sections .prose-card { padding: 22px 26px; }
.privacy-sections h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: var(--fs-h4); }
.privacy-num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--fs-small);
}
.privacy-sections p, .privacy-sections li { font-family: var(--font-text); font-weight: 300; font-size: var(--fs-text); line-height: 1.55; }
.privacy-sections p { margin: 0; }
.privacy-sections ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.privacy-sections b { font-weight: 500; color: var(--text); }
.privacy-sections a { color: var(--accent); }

/* ---------- Bottom bar on phones and tablets ---------- */
.tabbar { display: none; }
@media (max-width: 1024px) {
  :root { --tabbar-h: 64px; }
  .tabbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 1200;
    height: var(--tabbar-h);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px;
    border-radius: 22px;
    background: var(--panel-strong);
    border: 1px solid var(--panel-border);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
  }
  .tabbar a,
  .tabbar .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 0 2px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--text-dim);
    font: 400 0.58rem/1 var(--font-body);
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color .2s, background-color .2s;
  }
  .tabbar i { font-size: 1.05rem; }
  .tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar a.active { color: var(--accent); background: var(--accent-soft); }
  .tabbar .menu-toggle[aria-expanded="true"] { color: var(--accent-ink); background: var(--accent); }
  .tabbar a:hover { text-decoration: none; color: var(--text); }
  /* floating things move up above the bar */
  .sp-bar, .sp-minbar { bottom: calc(var(--tabbar-h) + 22px + env(safe-area-inset-bottom)) !important; }
  .cookie-bar { bottom: calc(var(--tabbar-h) + 22px + env(safe-area-inset-bottom)) !important; }
  /* the open menu sheet lives in the header: lift it above the cookie bar and the player */
  .site-header:has(.main-nav.open) { z-index: 10001; }
  /* the minimised Spotify button is only a round icon here, so it covers less */
  .sp-minbar { width: 48px; height: 48px; padding: 0 !important; display: grid; place-items: center; font-size: 0 !important; border-radius: 50% !important; }
  .sp-minbar i.fa-spotify { font-size: 1.35rem; margin: 0; }
}
html:lang(vi) .tabbar a, html:lang(vi) .tabbar .menu-toggle { font-family: 'Exo 2', system-ui, sans-serif; }

@media (max-width: 600px) {
  .hero-latest { width: 100%; }
  .hero-latest b { max-width: none; }
  .tapes { height: 120px; margin-bottom: 36px; }
  .tape { padding: 10px 0; }
  .tape-gold a, .tape-gold .tape-name { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-particles, .cursor-light, .bg-slides,
  .hero-title .logo-mark::after, .masthead-brand .squad-mark::after, .tape-gold::after { display: none; }
  .photo-band-img { transform: none; }
  .marquee-track, .tape-gold, .eq i, .hero-title .logo-mark, .masthead-brand .squad-mark, .hero-latest small .dot { animation: none; }
  [data-tilt] { transform: none !important; }
}
