:root {
  --showcase-safe-top: env(safe-area-inset-top, 0px);
  --showcase-safe-bottom: env(safe-area-inset-bottom, 0px);
  --showcase-safe-left: env(safe-area-inset-left, 0px);
  --showcase-safe-right: env(safe-area-inset-right, 0px);
  --paper: #fffdf8;
  --canvas: #f4f0e8;
  --aqua: #8ccfd3;
  --aqua-soft: #d9eff0;
  --aqua-deep: #2b7378;
  --coral: #f27b55;
  --coral-strong: #ff4b35;
  --coral-soft: #ffe9e1;
  --ink: #292f30;
  --muted: #697172;
  --line: #e1ddd5;
  --night: #102d2d;
  --shadow: 0 32px 90px rgba(18, 48, 45, .2);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 68% 6%, #fff 0, #f5f1e9 42%, #ebe7df 100%); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 500; left: 12px; top: -60px; padding: 10px 14px; color: white; background: var(--night); border-radius: 9px; }
.skip-link:focus { top: 12px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.showcase-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 10px clamp(18px, 4vw, 62px);
  border-bottom: 1px solid rgba(28, 63, 58, .12);
  background: rgba(255, 253, 248, .88);
  backdrop-filter: blur(22px);
}
.showcase-brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; text-decoration: none; }
.showcase-brand img { width: 44px; height: 44px; border-radius: 13px; box-shadow: 0 7px 20px rgba(22, 43, 40, .14); }
.showcase-brand span { display: grid; gap: 1px; }
.showcase-brand strong { font-size: 15px; letter-spacing: -.02em; }
.showcase-brand small { color: var(--muted); font-size: 10px; }
.showcase-nav { display: flex; align-items: center; gap: 26px; font-size: 12px; font-weight: 650; }
.showcase-nav a { text-decoration: none; transition: color .18s; }
.showcase-nav a:hover, .showcase-nav a:focus-visible { color: var(--coral-strong); }
.showcase-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; }
.live-status { display: inline-flex; align-items: center; gap: 7px; margin-right: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.live-status i { width: 8px; height: 8px; border-radius: 50%; background: #42b883; box-shadow: 0 0 0 4px rgba(66,184,131,.12); }
.header-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; background: white; font-size: 11px; font-weight: 750; cursor: pointer; }
.header-button:hover { transform: translateY(-1px); }
.header-button--primary { color: white; border-color: var(--coral-strong); background: var(--coral-strong); }

.showcase-main {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) minmax(520px, 1.25fr);
  align-items: center;
  gap: clamp(36px, 7vw, 110px);
  width: min(1500px, calc(100% - 64px));
  min-height: calc(100vh - 126px);
  margin: 0 auto;
  padding: 38px 0 56px;
}
.showcase-copy { max-width: 610px; justify-self: end; }
.showcase-kicker { margin: 0 0 18px; color: var(--coral-strong); font-size: 11px; font-weight: 850; letter-spacing: .16em; }
.showcase-copy h1 { margin: 0; font-size: clamp(48px, 6vw, 84px); line-height: .98; letter-spacing: -.065em; }
.showcase-copy h1 em { color: var(--coral-strong); font-family: Georgia, "Songti SC", serif; font-weight: 500; }
.showcase-lead { max-width: 550px; margin: 28px 0 22px; color: #53645f; font-size: 16px; line-height: 1.85; }
.experience-points { display: flex; flex-wrap: wrap; gap: 8px; }
.experience-points span { padding: 8px 12px; border: 1px solid rgba(43,115,120,.17); border-radius: 999px; color: var(--aqua-deep); background: rgba(217,239,240,.7); font-size: 11px; font-weight: 750; }
.experience-note { max-width: 550px; margin-top: 26px; padding: 16px 18px; border-left: 3px solid var(--aqua); border-radius: 0 16px 16px 0; background: rgba(255,253,248,.72); }
.experience-note strong { font-size: 12px; }
.experience-note p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.app-entry-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 24px; color: var(--aqua-deep); font-size: 13px; font-weight: 800; text-decoration: none; }

.device-stage { display: grid; justify-items: center; min-width: 0; }
.device {
  position: relative;
  width: min(390px, 100%);
  height: auto;
  min-height: 0;
  aspect-ratio: 390 / 844;
  padding: 9px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 44px;
  background: #151918;
  box-shadow: var(--shadow), 0 0 0 1px rgba(17, 36, 33, .22);
  transition: width .28s, height .28s, border-radius .28s;
}
.device::before { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(255,255,255,.09); border-radius: 40px; pointer-events: none; }
.device--landscape { width: min(844px, 100%); height: auto; aspect-ratio: 844 / 390; min-width: min(650px, 100%); min-height: 0; border-radius: 30px; }
.device--landscape::before { border-radius: 26px; }
.device-sensor { position: absolute; z-index: 20; left: 50%; top: 13px; width: 74px; height: 19px; border-radius: 0 0 12px 12px; background: #151918; transform: translateX(-50%); pointer-events: none; }
.device--landscape .device-sensor { left: 14px; top: 50%; width: 19px; height: 62px; border-radius: 0 10px 10px 0; transform: translateY(-50%); }
.device-screen { position: relative; height: 100%; overflow: hidden; border-radius: 35px; background: var(--canvas); }
.device--landscape .device-screen { border-radius: 22px; }
.device-status { display: flex; align-items: center; justify-content: space-between; height: 29px; padding: 3px 18px 0; color: var(--ink); font-size: 10px; font-weight: 750; letter-spacing: .01em; }
.status-icons { display: inline-flex; align-items: center; gap: 5px; font-size: 8px; letter-spacing: -.1em; }
.status-icons i { display: inline-block; width: 12px; height: 7px; border: 1px solid currentColor; border-radius: 2px; }
.device--landscape .device-status { padding-inline: 32px; }

.app-shell { position: absolute; inset: 29px 0 0; display: grid; grid-template-rows: minmax(0,1fr) auto; }
.app-viewport { position: relative; min-height: 0; overflow: hidden; }
.app-page { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 18px 18px 108px; scrollbar-width: none; }
.app-page::-webkit-scrollbar { display: none; }
.page-enter { animation: page-enter .22s ease-out both; }
@keyframes page-enter { from { opacity: .2; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.bottom-navigation { position: relative; z-index: 8; display: grid; grid-template-columns: repeat(6, 1fr); min-height: 74px; padding: 8px 5px calc(13px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(225,221,213,.85); background: rgba(255,253,248,.97); box-shadow: 0 -9px 24px rgba(33,47,44,.055); }
.nav-item { display: flex; min-width: 0; min-height: 52px; padding: 3px 1px; border: 0; border-radius: 13px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); background: transparent; font-size: 9px; cursor: pointer; }
.nav-item .icon { width: 21px; height: 21px; }
.nav-item.is-active { color: var(--coral-strong); font-weight: 800; }
.nav-item.is-active .icon { fill: rgba(255,75,53,.1); stroke-width: 2; }
.home-indicator { display: none; }

.device--landscape .app-shell { inset: 29px 0 0; grid-template-columns: 82px minmax(0,1fr); grid-template-rows: minmax(0,1fr); }
.device--landscape .app-viewport { grid-column: 2; grid-row: 1; }
.device--landscape .app-page { padding: 13px 18px 22px; }
.device--landscape .bottom-navigation { grid-column: 1; grid-row: 1; grid-template-columns: 1fr; grid-template-rows: repeat(6, minmax(44px,1fr)); min-height: 0; padding: 8px 4px; border-top: 0; border-right: 1px solid var(--line); }
.device--landscape .nav-item { min-height: 44px; }
.device--landscape .nav-item .icon { width: 19px; height: 19px; }
.device--landscape .nav-item span { font-size: 8px; }

.app-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.app-logo { width: 46px; height: 46px; flex: none; border-radius: 16px; object-fit: contain; }
.app-heading { min-width: 0; flex: 1; }
.app-heading strong { display: block; font-size: 18px; font-weight: 900; letter-spacing: .02em; }
.app-heading small { display: block; margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.demo-chip { flex: none; padding: 7px 9px; border: 1px solid rgba(242,123,85,.35); border-radius: 99px; color: var(--coral-strong); background: var(--coral-soft); font-size: 9px; font-weight: 800; }
.avatar-button { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; }
.avatar-button .icon { width: 20px; height: 20px; }

.teaching-card, .brands-card { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: #f7fafc; }
.teaching-head, .brands-head { padding: 18px 18px 14px; text-align: center; background: var(--paper); }
.teaching-head h2, .brands-head h2 { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: .01em; }
.teaching-head i, .brands-head i { display: block; width: 42px; height: 4px; margin: 9px auto 0; border-radius: 99px; background: var(--coral-strong); }
.instrument-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 3px 0; padding: 8px 8px 14px; }
.instrument-item { display: grid; min-width: 0; padding: 8px 2px; border: 0; justify-items: center; background: transparent; cursor: pointer; }
.instrument-art { width: 64px; height: 64px; overflow: hidden; border: 3px solid white; border-radius: 50%; background: #171b1b; box-shadow: 0 4px 10px rgba(0,0,0,.13); }
.instrument-art img { width: 100%; height: 100%; object-fit: cover; }
.instrument-item strong { max-width: 100%; margin-top: 7px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.instrument-item small { max-width: 100%; margin-top: 2px; overflow: hidden; color: #7a8496; font-size: 7px; letter-spacing: .02em; text-overflow: ellipsis; white-space: nowrap; }
.brands-card { margin-top: 18px; padding: 20px 16px 16px; }
.brands-head { margin: -20px -16px 0; padding-bottom: 14px; }
.brands-head p { margin: 5px 0 0; color: #7a8496; font-size: 12px; font-weight: 600; }
.brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px 12px; margin-top: 14px; }
.brand-item { min-width: 0; text-align: center; }
.brand-art { aspect-ratio: 1.42; overflow: hidden; padding: 4px; border-radius: 7px; background: black; }
.brand-art img { width: 100%; height: 100%; object-fit: contain; }
.brand-item strong { display: block; margin-top: 6px; font-size: 12px; }
.brand-item small { display: block; margin-top: 2px; color: #7a8496; font-size: 9px; }

.focus-card { display: flex; align-items: center; gap: 13px; margin-top: 18px; padding: 16px; border: 1px solid rgba(140,207,211,.65); border-radius: 24px; background: var(--aqua-soft); }
.focus-icon { display: grid; width: 48px; height: 48px; flex: none; place-items: center; border-radius: 16px; color: white; background: var(--aqua-deep); font-size: 23px; }
.focus-copy { min-width: 0; flex: 1; }
.focus-copy small { color: var(--aqua-deep); font-size: 10px; font-weight: 800; }
.focus-copy strong { display: block; margin: 2px 0 9px; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.focus-arrow { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border: 0; border-radius: 50%; color: white; background: var(--coral-strong); cursor: pointer; }
.progress { appearance: none; display: block; width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 99px; background: rgba(225,221,213,.72); }
.progress::-webkit-progress-bar { border-radius: 99px; background: rgba(225,221,213,.72); }
.progress::-webkit-progress-value { border-radius: 99px; background: var(--aqua-deep); }
.progress::-moz-progress-bar { border-radius: 99px; background: var(--aqua-deep); }

.media-card { margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); }
.media-visual { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #1b2828; }
.media-visual img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.media-badge { position: absolute; left: 12px; top: 12px; padding: 6px 8px; border-radius: 99px; color: white; background: rgba(9,24,23,.72); font-size: 8px; font-weight: 800; backdrop-filter: blur(10px); }
.media-copy { display: flex; align-items: center; gap: 10px; padding: 13px 14px; }
.media-copy div { min-width: 0; flex: 1; }
.media-copy strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.media-copy small { color: var(--muted); font-size: 9px; }
.media-control { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; }

.section-title { margin: 28px 2px 12px; }
.section-title h2 { margin: 0; font-size: 18px; font-weight: 900; }
.section-title p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.surface { border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.page-head { margin: 1px 2px 24px; }
.page-eyebrow { margin: 0 0 7px; color: var(--aqua-deep); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.page-head-row { display: flex; align-items: flex-start; gap: 12px; }
.page-head-row > div:first-child { min-width: 0; flex: 1; }
.page-head h1 { margin: 0; font-size: 28px; font-weight: 900; letter-spacing: -.035em; }
.page-head p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.search-box { position: relative; display: block; }
.search-box svg { position: absolute; z-index: 1; left: 14px; top: 50%; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; transform: translateY(-50%); pointer-events: none; }
.search-box input { width: 100%; height: 50px; padding: 0 15px 0 42px; border: 1px solid var(--line); border-radius: 17px; color: var(--ink); background: var(--paper); outline: 0; }
.search-box input:focus { border-color: var(--aqua-deep); box-shadow: 0 0 0 3px rgba(43,115,120,.1); }
.chips { display: flex; gap: 8px; margin: 12px 0 22px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); background: var(--paper); font-size: 11px; font-weight: 650; cursor: pointer; }
.chip.is-active { color: var(--aqua-deep); border-color: var(--aqua); background: var(--aqua-soft); }
.song-card { margin-bottom: 13px; padding: 16px; }
.song-row { display: flex; gap: 13px; align-items: center; }
.song-icon { display: grid; width: 52px; height: 52px; flex: none; place-items: center; border-radius: 17px; color: var(--aqua-deep); background: var(--aqua-soft); font-size: 24px; }
.song-copy { min-width: 0; flex: 1; }
.song-copy strong { display: block; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.song-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.favorite { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; color: var(--muted); background: transparent; font-size: 20px; cursor: pointer; }
.favorite.is-active { color: var(--coral-strong); }
.pill-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0; }
.pill { padding: 6px 9px; border-radius: 99px; color: var(--aqua-deep); background: rgba(43,115,120,.1); font-size: 9px; font-weight: 750; }
.pill.vip { color: var(--coral-strong); background: var(--coral-soft); }
.pill.preparing { color: var(--coral); background: rgba(242,123,85,.12); }
.wide-button { width: 100%; min-height: 44px; border: 0; border-radius: 15px; color: white; background: var(--aqua-deep); font-size: 12px; font-weight: 800; cursor: pointer; }
.wide-button:disabled { color: var(--muted); background: #eeebe4; cursor: default; }
.wide-button.outline { color: var(--ink); border: 1px solid var(--line); background: var(--paper); }

.task-card { margin-bottom: 13px; padding: 16px; }
.task-top { display: flex; align-items: flex-start; gap: 12px; }
.task-top > div:first-child { min-width: 0; flex: 1; }
.task-top strong { display: block; font-size: 14px; }
.task-top small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.due { flex: none; padding: 6px 9px; border-radius: 99px; color: var(--coral-strong); background: var(--coral-soft); font-size: 9px; font-weight: 800; }
.task-progress { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-size: 10px; }
.task-progress .progress { flex: 1; }
.class-card { margin-bottom: 13px; padding: 17px; }
.class-row { display: flex; align-items: center; gap: 12px; }
.class-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 15px; color: var(--aqua-deep); background: var(--aqua-soft); font-size: 22px; }
.class-row div { min-width: 0; flex: 1; }
.class-row strong { display: block; font-size: 14px; }
.class-row small { color: var(--muted); font-size: 10px; }
.class-rate { display: flex; justify-content: space-between; margin: 15px 0 8px; font-size: 10px; }
.class-rate b { color: var(--aqua-deep); }

.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 24px; }
.metric { min-width: 0; padding: 12px 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.metric span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 12px; color: var(--aqua-deep); background: var(--aqua-soft); font-size: 18px; }
.metric strong { display: block; margin-top: 8px; font-size: 16px; }
.metric small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.record-card { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 14px; }
.record-icon { display: grid; width: 46px; height: 46px; flex: none; place-items: center; border-radius: 15px; color: var(--aqua-deep); background: var(--aqua-soft); }
.record-copy { min-width: 0; flex: 1; }
.record-copy strong { display: block; font-size: 13px; }
.record-copy small { color: var(--muted); font-size: 9px; }
.record-copy .progress { margin-top: 8px; }
.record-percent { flex: none; color: var(--aqua-deep); font-size: 12px; font-weight: 850; }

.discover-search-row { display: flex; align-items: center; gap: 8px; }
.location-button { height: 50px; padding: 0 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); font-size: 10px; font-weight: 750; cursor: pointer; }
.discover-search-row .search-box { flex: 1; min-width: 0; }
.org-card { display: flex; gap: 12px; margin-bottom: 12px; padding: 14px; }
.org-mark { display: grid; width: 48px; height: 48px; flex: none; place-items: center; border-radius: 16px; color: white; background: var(--night); font-size: 13px; font-weight: 900; }
.org-copy { min-width: 0; flex: 1; }
.org-copy strong { display: block; font-size: 13px; }
.org-copy p { margin: 5px 0 7px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.org-copy small { color: var(--aqua-deep); font-size: 9px; font-weight: 750; }
.empty-state { padding: 30px 20px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); font-size: 14px; }
.empty-state p { margin: 7px 0 0; font-size: 11px; }

.profile-card { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid rgba(140,207,211,.7); border-radius: 24px; background: var(--aqua-soft); }
.profile-avatar { display: grid; width: 62px; height: 62px; flex: none; place-items: center; border-radius: 50%; color: white; background: var(--aqua-deep); font-size: 30px; }
.profile-avatar .icon { width: 30px; height: 30px; }
.profile-info { min-width: 0; flex: 1; }
.profile-info strong { display: block; font-size: 18px; }
.profile-info p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.profile-badges span { padding: 5px 8px; border-radius: 99px; color: var(--aqua-deep); background: var(--aqua-soft); font-size: 8px; font-weight: 800; }
.profile-badges span.vip { color: var(--coral-strong); background: var(--coral-soft); }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 16px; padding: 4px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.role-switch button { min-height: 39px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.role-switch button.is-active { color: var(--coral-strong); background: var(--coral-soft); }
.settings-card { overflow: hidden; }
.setting-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 15px; border: 0; border-bottom: 1px solid var(--line); text-align: left; text-decoration: none; background: var(--paper); cursor: pointer; }
.setting-row:last-child { border-bottom: 0; }
.setting-icon { display: grid; width: 38px; height: 38px; flex: none; place-items: center; border-radius: 12px; color: var(--aqua-deep); background: var(--canvas); font-size: 18px; }
.setting-copy { min-width: 0; flex: 1; }
.setting-copy strong { display: block; font-size: 12px; }
.setting-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.setting-arrow { color: var(--muted); font-size: 20px; }

.app-shell.band-mode .app-page { padding: 0; }
.band-page { min-height: 100%; background: var(--canvas); }
.band-overview-page { height: 100%; display: flex; flex-direction: column; }
.band-appbar { position: sticky; z-index: 6; top: 0; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 52px; padding: 3px 8px; border-bottom: 1px solid rgba(225,221,213,.85); background: rgba(244,240,232,.96); backdrop-filter: blur(16px); }
.band-appbar button { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--paper); font-size: 27px; line-height: 1; cursor: pointer; }
.band-appbar strong { overflow: hidden; font-size: 17px; font-weight: 900; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.band-page-body { padding: 8px 16px 30px; }
.band-overview-page .band-page-body { display: flex; min-height: 0; flex: 1; flex-direction: column; }
.band-editorial-hero { display: block; width: 100%; aspect-ratio: 879 / 403; object-fit: contain; border-radius: 18px; background: var(--paper); }
.band-library-switch { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; max-width: 430px; margin: 15px auto 17px; }
.band-library-tab { position: relative; display: block; min-width: 0; padding: 0 3px 8px; border: 0; background: transparent; cursor: pointer; }
.band-library-tab img { display: block; width: 100%; aspect-ratio: 293 / 953; border-radius: 14px; object-fit: contain; }
.band-library-tab > span { display: block; width: 28px; height: 3px; margin: 5px auto 0; border-radius: 99px; background: transparent; }
.band-library-tab.is-active > span { background: var(--aqua-deep); }
.band-collection-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); }
.band-collection-header { display: block; width: calc(100% - 28px); margin: 14px auto 0; aspect-ratio: 879 / 288; object-fit: contain; }
.band-collection-header--style { aspect-ratio: 879 / 196; }
.band-collection-header--original { aspect-ratio: 879 / 231; }
.band-collection-meta { display: flex; align-items: flex-start; gap: 10px; margin: 12px 14px 0; padding: 13px 14px; border-radius: 17px; background: var(--aqua-soft); }
.band-collection-meta div { min-width: 0; flex: 1; }
.band-collection-meta strong { display: block; font-size: 16px; font-weight: 900; }
.band-collection-meta small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.band-collection-meta > span { flex: none; padding: 6px 8px; border-radius: 99px; color: var(--aqua-deep); background: var(--paper); font-size: 8px; font-weight: 850; }
.band-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 12px; }
.band-grade-card, .band-content-card { display: block; min-width: 0; padding: 0; overflow: hidden; border: 0; border-radius: 14px; background: transparent; cursor: pointer; }
.band-grade-card img { display: block; width: 100%; aspect-ratio: 432 / 237; object-fit: contain; }
.band-content-card img { display: block; width: 100%; aspect-ratio: 432 / 265; object-fit: contain; }
.band-content-card--original { padding: 5px 5px 0; border: 1px solid var(--line); border-radius: 15px; background: #f2fbfe; }
.band-content-card--original img { aspect-ratio: 432 / 360; border-radius: 10px; object-fit: cover; }
.band-content-card--original span { display: block; padding: 7px 4px 8px; overflow: hidden; font-size: 13px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.band-detail-banner { display: block; width: 100%; aspect-ratio: 876 / 261; border: 1px solid var(--line); border-radius: 18px; object-fit: contain; background: var(--paper); }
.band-detail-section-title { margin-top: 22px; }
.band-track-card { position: relative; display: block; width: 100%; aspect-ratio: 882 / 188; min-height: 0; margin-bottom: 10px; padding: 0; overflow: hidden; border: 0; border-radius: 12px; text-align: left; background: transparent; cursor: pointer; }
.band-track-card img { display: block; width: 100%; height: 100%; object-fit: contain; }
.band-track-dim { position: absolute; z-index: 1; inset: 0; border-radius: 12px; background: rgba(0,0,0,.16); pointer-events: none; }
.band-track-status { position: absolute; z-index: 2; right: 12px; top: 50%; padding: 5px 9px; border-radius: 99px; color: var(--ink); background: rgba(255,253,248,.94); font-size: 9px; font-weight: 900; transform: translateY(-50%); }
.band-track-card.is-unavailable .band-track-status { color: white; background: rgba(45,51,51,.9); }

.toast { position: absolute; z-index: 40; left: 50%; bottom: 92px; max-width: calc(100% - 38px); padding: 10px 15px; border-radius: 999px; color: white; background: rgba(33,60,56,.94); box-shadow: 0 14px 36px rgba(20,40,36,.25); font-size: 10px; text-align: center; transform: translate(-50%,16px); opacity: 0; pointer-events: none; transition: .2s; }
.toast.is-visible { transform: translate(-50%,0); opacity: 1; }
.app-dialog { width: min(330px, calc(100% - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 24px; color: var(--ink); background: var(--paper); box-shadow: 0 28px 70px rgba(20,40,36,.28); }
.app-dialog::backdrop { background: rgba(12,32,30,.38); backdrop-filter: blur(3px); }
.app-dialog form { display: grid; padding: 24px 20px 18px; justify-items: center; }
.dialog-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 16px; color: var(--aqua-deep); background: var(--aqua-soft); font-size: 24px; }
.app-dialog h2 { margin: 13px 0 7px; font-size: 18px; }
.app-dialog p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; text-align: center; }
.dialog-options { display: grid; width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 15px; }
.dialog-option { min-height: 38px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); font-size: 10px; cursor: pointer; }
.dialog-option.is-active { color: var(--aqua-deep); border-color: var(--aqua); background: var(--aqua-soft); }
.dialog-close { width: 100%; min-height: 42px; margin-top: 14px; border: 0; border-radius: 13px; color: white; background: var(--aqua-deep); font-size: 11px; font-weight: 800; cursor: pointer; }

.score-layer { position: absolute; z-index: 30; inset: 0; overflow: hidden; background: var(--paper); }
.score-layer iframe {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--player-virtual-width, 390px);
  height: var(--player-virtual-height, 844px);
  border: 0;
  background: var(--paper);
  transform: translate(-50%, -50%) scale(var(--player-virtual-scale, 1));
  transform-origin: center;
}
.score-close-button { position: absolute; z-index: 4; right: 9px; top: 8px; display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 11px; border: 1px solid rgba(43,115,120,.22); border-radius: 999px; color: var(--aqua-deep); background: rgba(255,253,248,.94); box-shadow: 0 5px 16px rgba(20,40,36,.12); font-size: 9px; font-weight: 800; cursor: pointer; backdrop-filter: blur(10px); }
.score-close-button:hover { color: white; border-color: var(--aqua-deep); background: var(--aqua-deep); }
.score-loading { position: absolute; z-index: 2; inset: 0; display: grid; place-content: center; justify-items: center; color: var(--muted); background: var(--paper); }
.score-loading span { width: 38px; height: 38px; border: 3px solid var(--aqua-soft); border-top-color: var(--coral-strong); border-radius: 50%; animation: spin .8s linear infinite; }
.score-loading strong { margin-top: 13px; color: var(--ink); font-size: 13px; }
.score-loading small { margin-top: 4px; font-size: 9px; }
@keyframes spin { to { transform: rotate(360deg); } }
.device.player-open .app-shell { visibility: hidden; }
.device--landscape .score-layer { inset: 0; }

.stage-caption { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 17px; color: #78847f; font-size: 10px; }
.showcase-footer { display: flex; justify-content: space-between; width: min(1500px, calc(100% - 64px)); margin: 0 auto; padding: 18px 0 26px; border-top: 1px solid rgba(28,63,58,.12); color: #7a8682; font-size: 10px; }

body.is-fullscreen-showcase .showcase-header,
body.is-fullscreen-showcase .showcase-copy,
body.is-fullscreen-showcase .showcase-footer,
body.is-fullscreen-showcase .stage-caption { display: none; }
body.is-fullscreen-showcase .showcase-main { display: block; width: 100%; min-height: 100vh; padding: 0; }
body.is-fullscreen-showcase .device-stage { min-height: 100vh; background: #e9e5dc; }
body.is-fullscreen-showcase .device {
  width: auto;
  height: min(100dvh, 216.41vw);
  min-height: 0;
  aspect-ratio: 390 / 844;
  border: 0;
  border-radius: 0;
}
body.is-fullscreen-showcase .device--landscape {
  width: min(100vw, 216.41dvh);
  height: auto;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 844 / 390;
}
body.is-fullscreen-showcase .device-screen { border-radius: 0; }
body.is-fullscreen-showcase .device-sensor { display: none; }
body.is-fullscreen-showcase.score-active .device-stage {
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
}
body.is-fullscreen-showcase.score-active .device,
body.is-fullscreen-showcase.score-active .device--landscape,
body.is-fullscreen-showcase.score-active .device--portrait {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  min-width: 0;
  min-height: 0;
  padding: 0;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}
body.is-fullscreen-showcase.score-active .device::before { display: none; }
body.is-fullscreen-showcase.score-active .device-screen,
body.is-fullscreen-showcase.score-active .score-layer { width: 100%; height: 100%; }
body.is-fullscreen-showcase.score-active .score-layer--browser-fullscreen iframe {
  left: 0;
  top: 0;
  transform: none;
  transform-origin: top left;
}

/* Keep both native console modes inside the phone browser's visible area. */
html.score-viewport-host { height: var(--showcase-visible-height, 100dvh); overflow: hidden; scroll-behavior: auto; }
body.score-viewport-fit { height: var(--showcase-visible-height, 100dvh); overflow: hidden; }
body.score-viewport-fit .showcase-copy,
body.score-viewport-fit .stage-caption,
body.score-viewport-fit .showcase-footer { display: none; }
body.score-viewport-fit .showcase-main {
  display: block; width: 100%; min-height: 0; padding: 0;
  height: calc(var(--showcase-visible-height, 100dvh) - var(--showcase-header-height, 64px));
}
body.score-viewport-fit .device-stage { height: 100%; min-height: 0; padding: 0; }
body.score-viewport-fit .device,
body.score-viewport-fit .device.device--landscape {
  width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: none;
  aspect-ratio: auto; padding: 0; border: 0; border-radius: 0; transition: none;
}
body.score-viewport-fit .device-screen { border-radius: 0; }
body.score-viewport-fit .device::before,
body.score-viewport-fit .device-sensor,
body.score-viewport-fit .device-status { display: none; }
.score-layer.score-layer--viewport-fit iframe { left: 0; top: 0; transform: none; }
@media (orientation: landscape) {
  body.score-viewport-fit .showcase-header { display: none; }
}

@media (max-width: 1120px) {
  .showcase-header { grid-template-columns: 1fr auto; }
  .showcase-nav { display: none; }
  .showcase-main { grid-template-columns: minmax(270px, .8fr) minmax(430px,1.2fr); gap: 35px; width: min(100% - 36px, 1120px); }
  .showcase-copy h1 { font-size: clamp(44px, 5vw, 65px); }
}

@media (max-width: 780px) {
  .showcase-header { min-height: 64px; padding: 8px 12px; }
  .showcase-brand img { width: 38px; height: 38px; border-radius: 11px; }
  .showcase-brand small, .live-status, #orientationButton { display: none; }
  .header-button { min-height: 37px; padding-inline: 12px; }
  .showcase-main { display: block; width: 100%; min-height: auto; padding: 18px 0 34px; }
  .showcase-copy { max-width: none; margin: 0; padding: 22px 22px 20px; }
  .showcase-copy h1 { font-size: clamp(42px, 12vw, 58px); }
  .showcase-lead { margin-block: 20px 16px; font-size: 14px; }
  .experience-note, .app-entry-link { display: none; }
  .device-stage { padding-top: 6px; }
  .device { width: min(390px, calc(100vw - 20px)); height: auto; min-height: 0; aspect-ratio: 390 / 844; border-radius: 38px; }
  .device--landscape { width: calc(100vw - 20px); min-width: 0; height: auto; aspect-ratio: 2.16 / 1; min-height: 0; }
  .device--landscape .device-screen { border-radius: 22px; }
  .device--landscape .app-page { padding: 8px; }
  .device--landscape .instrument-art { width: 42px; height: 42px; }
  .device--landscape .instrument-item small { display: none; }
  .device--landscape .brand-art { aspect-ratio: 2.1; }
  .stage-caption, .showcase-footer { display: none; }
  body.is-fullscreen-showcase .device { width: auto; height: min(100dvh, 216.41vw); aspect-ratio: 390 / 844; }
  body.is-fullscreen-showcase .device--landscape { width: min(100vw, 216.41dvh); height: auto; aspect-ratio: 844 / 390; }
}

@media (max-width: 430px) {
  .showcase-copy { padding-top: 14px; }
  .showcase-kicker { margin-bottom: 12px; }
  .showcase-copy h1 { font-size: 41px; }
  .showcase-lead { display: none; }
  .experience-points { margin-top: 16px; }
  .device { width: 100vw; height: auto; min-height: 0; aspect-ratio: 390 / 844; padding: 6px; border-radius: 27px; }
  .device.device--landscape { width: 100vw; height: auto; min-height: 0; aspect-ratio: 844 / 390; }
  .device-screen { border-radius: 22px; }
  .device-sensor { width: 61px; height: 16px; top: 10px; }
  .device-status { height: 25px; }
  .app-shell { inset: 25px 0 0; }
  .device--landscape .app-shell { inset: 25px 0 0; }
  .app-page { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
