* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
section[id] { scroll-margin-top: 72px; }
/* 買飛 / GET TICKETS jump here: land with the SHOWS heading just under the
   sticky header instead of a screen-height of empty padding above it. */
#shows { scroll-margin-top: 0; }

:focus-visible { outline: 2px solid #e11d48; outline-offset: 2px; }

:root {
  --bg: #0a0a0b;
  --panel: #161619;
  --line: #26262b;
  --text: #f5f5f4;
  --muted: #9a9aa5;
  --accent: #e11d48;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --display: 'Anton', 'Noto Sans TC', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }
main { flex: 1; width: 100%; }
main.container { max-width: 640px; margin: 0 auto; padding: 24px 20px 48px; }
main.container.wide { max-width: 1080px; }  /* admin tables with many columns */

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(8px);
  z-index: 20;
}
.brand {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}
.brand-zh { font-size: 13px; margin-left: 8px; color: var(--accent); letter-spacing: 0.2em; }
.mainnav, .adminnav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.mainnav a { text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; }
.mainnav a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
}
.lang-switch {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  text-decoration: none;
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 560px) { .mainnav a:not(.nav-cta):not(.lang-switch) { display: none; } }
/* .mainnav a:hover turns text red, which made 買飛 vanish on its red pill —
   and on phones a tap leaves :hover stuck, so the button went blank. */
.mainnav a.nav-cta:hover, .mainnav a.nav-cta:focus { color: var(--text); filter: brightness(1.15); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 48px 20px 56px;
  background:
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(225, 29, 72, 0.30), transparent 70%),
    linear-gradient(rgba(10, 10, 11, 0.18) 0%, rgba(10, 10, 11, 0.30) 40%, rgba(10, 10, 11, 0.88) 78%),
    url('img/hero.webp') center 8% / cover no-repeat,
    var(--bg);
}

.hero-press {
  position: absolute;
  left: max(24px, 6vw);
  top: 24%;
  display: none;
  gap: 9px;
  justify-items: start;
  text-decoration: none;
}
.hero-press .press-label {
  color: var(--accent);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
.hero-press-row { display: flex; gap: 8px; }
.hero-press img {
  height: 28px;
  width: auto;
  border-radius: 3px;
  display: block;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.hero-press img.hero-press-wide { height: 22px; }
.hero-press:hover img { opacity: 0.88; }
.hero-name, .hero-sub { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6); }
.hero-kicker {
  letter-spacing: 0.35em;
  font-size: 13px;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.8);
}
.hero-name {
  font-family: var(--display);
  font-size: clamp(96px, 20vw, 190px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 8px 0 4px;
}
@media (min-width: 900px) {
  .hero { background-position: center, center, center 42%; background-size: auto, auto, 67% auto; min-height: 100vh; }
  .hero-name { font-size: 170px; }
  .hero-press { display: grid; left: 6vw; top: 56%; gap: 12px; }
  .press-strip-wrap { display: none; }
  .hero-press img { height: 34px; }
  .hero-press img.hero-press-wide { height: 27px; }
}
.hero-sub { font-size: clamp(16px, 3vw, 22px); font-weight: 700; letter-spacing: 0.12em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }

/* ---------- press strip ---------- */

.press-strip-wrap {
  text-align: center;
  padding: 26px 20px 30px;
  border-top: 1px solid var(--line);
}
.press-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.press-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}
.press-strip img {
  height: 34px;
  width: auto;
  border-radius: 4px;
  display: block;
}
.press-strip:hover img { opacity: 0.85; }

/* ---------- sections ---------- */

.band-videos {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(rgba(10, 10, 11, 0.42), rgba(10, 10, 11, 0.62)),
    url('img/stage.webp') center 34% / cover no-repeat,
    var(--bg);
}
.band-videos > .section { border-top: none; padding: 110px 24px; }
.band-videos .hero-cta { justify-content: flex-start; }

.section { max-width: 880px; margin: 0 auto; padding: 72px 24px; border-top: 1px solid var(--line); }
.section-accent { border-top-color: var(--accent); }
.section-title {
  font-family: var(--display);
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 28px;
}
.title-zh { color: var(--accent); font-size: 0.45em; vertical-align: middle; margin-left: 12px; letter-spacing: 0.2em; }

/* ---------- tour list ---------- */

.tour-list { border-top: 1px solid var(--line); }
.tour-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.tour-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  font-family: var(--display);
}
.tour-day { font-size: 40px; line-height: 1; }
.tour-mon { font-size: 15px; letter-spacing: 0.2em; color: var(--accent); }
.tour-info { flex: 1; }
.tour-info h3 { font-size: 19px; }
.tour-action { text-align: right; display: grid; gap: 6px; justify-items: end; }
@media (max-width: 560px) {
  .tour-row { flex-wrap: wrap; }
  .tour-action { width: 100%; text-align: left; justify-items: start; }
}
.press-date { min-width: 64px; font-weight: 700; }
.press-outlet { color: var(--accent); font-weight: 700; font-size: 14px; }
.tour-info h3 a { text-decoration: none; }
.tour-info h3 a:hover { color: var(--accent); }

.standing-gig {
  margin-top: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
}
.kids-strip { margin-top: 14px; border-left: 4px solid var(--amber); }
.kids-strip a { font-weight: 700; }
.course-banner {
  display: block;
  margin-top: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 16px 20px;
  text-decoration: none;
}
.course-banner strong { color: var(--accent); }
.course-banner:hover { border-color: var(--accent); }

/* ---------- mailing list / services / contact ---------- */

.subscribe-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; max-width: 480px; }
.subscribe-form input { flex: 1; min-width: 220px; }
.subscribe-thanks { font-size: 20px; font-weight: 700; color: #4ade80; }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 28px; }
.service {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  font-size: 26px;
}
.service h3 { font-size: 17px; margin-top: 8px; }
a.service { text-decoration: none; }
.feature-photo {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: block;
  margin-top: 24px;
}
.feature-cap { text-align: center; margin-top: 8px; }
.curriculum {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 28px;
  margin-top: 28px;
}
.curr-title { font-size: 20px; color: var(--accent); margin-bottom: 14px; }
.curriculum ol { padding-left: 22px; display: grid; gap: 14px; }
.curriculum li strong { font-size: 17px; }
.curriculum .hl { color: #fcd34d; font-weight: 700; }

.cta-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 24px 0 4px;
  display: grid;
  gap: 6px;
  justify-items: start;
}
.cta-box .btn { margin-bottom: 6px; }
.trust-line { font-weight: 700; color: var(--accent); }

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  background: #25d366;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 20px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}
.wa-float:hover { filter: brightness(1.08); }

.kidgroup-press { margin-top: 20px; justify-content: flex-start; }
.kidgroup-press img { height: 28px; }

.reel-wrap { max-width: 340px; margin: 28px auto 0; }
.reel-wrap video {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: block;
  background: #000;
}

.faq { margin-top: 28px; }
.faq .curr-title { margin-bottom: 10px; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin-top: 10px; color: var(--muted); }

.quotes { display: grid; gap: 14px; margin-top: 28px; }
.quotes blockquote {
  background: var(--panel);
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  padding: 16px 20px;
  font-size: 17px;
}
.quotes cite { display: block; color: var(--muted); font-size: 13px; font-style: normal; margin-top: 6px; }
a.service:hover { border-color: var(--accent); }

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 640px) { .about-grid { grid-template-columns: 1fr; } }
.portrait {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: block;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: block;
}
.gallery figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }

.about-text { font-size: 17px; max-width: 640px; margin-bottom: 12px; }

.kids-slogan { font-size: 20px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.kids-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 4px;
}
.stat {
  flex: 1;
  min-width: 150px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  text-align: center;
}
.stat-num { display: block; font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1.3; }
.stat-label { display: block; font-size: 13px; color: var(--muted); }
.kids-cta { justify-content: flex-start; margin-top: 24px; }
.icon-btn { display: inline-flex; align-items: center; gap: 8px; }
.icon-btn svg { display: block; }
.contact-lines { font-size: 18px; line-height: 2.1; margin-top: 12px; }

/* ---------- shared ui (buy box, tickets, admin) ---------- */

h1 { font-size: 26px; margin-bottom: 8px; }
h2 { font-size: 18px; margin: 16px 0 8px; }
.when { font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.desc { margin: 12px 0; white-space: pre-line; }
.price { font-weight: 700; margin-top: 8px; }

.cards { display: grid; gap: 12px; margin-top: 16px; }
.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
}
.card:hover { border-color: var(--accent); }

.badge {
  display: inline-block;
  background: #2c2c38;
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 13px;
  font-weight: 700;
}
.badge-green { background: var(--green); }
.badge-amber { background: var(--amber); }
.badge-red { background: var(--red); }
.badge.big { font-size: 16px; padding: 8px 18px; margin-top: 12px; }

.buybox {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-top: 20px;
  display: grid;
  gap: 12px;
}
.form-grid label { display: grid; gap: 4px; font-size: 14px; }

input, select, textarea {
  background: var(--bg);
  border: 1px solid #3a3a48;
  border-radius: 8px;
  color: var(--text);
  padding: 12px;
  font-size: 16px;
  width: 100%;
}

.btn {
  display: inline-block;
  background: #26262e;
  color: var(--text);
  border: none;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.15); }
.btn-primary { background: var(--accent); }
.btn-big { font-size: 18px; padding: 16px 26px; border-radius: 999px; letter-spacing: 0.04em; }
.btn.small { padding: 6px 12px; font-size: 13px; }

/* buy-box quantity stepper: big thumb-sized − / + instead of a <select> */
.qty-step { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg); border: 1px solid #3a3a48; border-radius: 10px; padding: 6px; }
.qty-btn { width: 52px; height: 48px; border: none; border-radius: 8px; background: #26262e;
  color: var(--text); font-size: 26px; font-weight: 700; line-height: 1; cursor: pointer;
  touch-action: manipulation; }
.qty-btn:disabled { opacity: 0.35; cursor: default; }
.qty-val { font-size: 18px; }
.qty-val b { font-size: 24px; margin-right: 2px; }

/* homepage quick-buy on each show row */
.quickbuy { display: grid; gap: 8px; width: 240px; }
.quickbuy .qty-step { padding: 4px; }
.quickbuy .qty-btn { width: 46px; height: 42px; }
@media (max-width: 560px) {
  /* stepper and pay button side by side, so several shows fit on one screen */
  .quickbuy { width: 100%; grid-template-columns: auto 1fr; align-items: stretch; }
  .quickbuy .qty-step { gap: 4px; }
  .quickbuy .qty-btn { width: 40px; height: 42px; font-size: 22px; }
  .quickbuy .qty-val { font-size: 15px; min-width: 44px; text-align: center; }
  .quickbuy .qty-val b { font-size: 20px; }
  .quickbuy .buy-total { padding: 10px 8px; }
  .quickbuy a.small { grid-column: 1 / -1; justify-self: center; }
  .tour-row { padding: 16px 0; gap: 12px 16px; }
}
@media (min-width: 561px) { .quickbuy a.small { justify-self: end; } }

/* show page: sticky buy bar on phones while the buy box is off-screen */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex;
  align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--panel); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0,0,0,.35); }
.buybar[hidden] { display: none; }
.buybar-price b { font-size: 20px; }
.buybar .btn { padding: 12px 28px; }
body.has-buybar { padding-bottom: 76px; }
@media (min-width: 900px) { .buybar { display: none !important; } body.has-buybar { padding-bottom: 0; } }

.table-wrap { overflow-x: auto; margin-top: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }

/* admin dashboard archive: collapsed past shows grouped by financial year */
.archive { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 16px; }
.archive > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.archive-title { font-size: 18px; font-weight: 700; }
.archive > p { margin: 10px 0 4px; }
.fy {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 10px;
}
.fy > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.fy-label { font-weight: 700; }
.fy-totals { margin-left: auto; }
.fee-sync { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 4px; }

.ticket { text-align: center; }
.qr-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  margin: 20px auto;
  max-width: 320px;
}
.qr-wrap img { width: 100%; display: block; }
.ticket-notice {
  margin: 22px auto 0;
  max-width: 340px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

.scan-page { text-align: center; }
#reader { max-width: 420px; margin: 12px auto; border-radius: 12px; overflow: hidden; }

.scan-result[hidden] { display: none; }
.scan-result {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.scan-result.ok { background: rgba(22, 163, 74, 0.96); }
.scan-result.bad { background: rgba(220, 38, 38, 0.96); }
.scan-result-inner { text-align: center; padding: 24px; }
#result-icon { font-size: 88px; font-weight: 800; }
#result-name { font-size: 30px; font-weight: 700; margin-top: 8px; }
#result-detail { font-size: 20px; margin: 8px 0 24px; }

/* ---------- footer ---------- */

.footer { text-align: center; padding: 32px 20px; border-top: 1px solid var(--line); }
.socials { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-bottom: 12px; }
.socials a { text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-weight: 700; text-decoration: none; }
.socials a:hover { color: var(--accent); }
.footer p a { white-space: nowrap; }

/* Visually hidden but read by screen readers + search engines (e.g. the h1 tagline). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Admin funnel: date range buttons + 14-day bars */
.range-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.daily td, .daily th { white-space: nowrap; }
.daily tr.weekend td:first-child { color: var(--accent); }
.bar-cell { position: relative; min-width: 140px; }
.bar { display: inline-block; height: 10px; border-radius: 3px; background: var(--accent); vertical-align: middle; }
.bar-num { margin-left: 6px; vertical-align: middle; }
