:root {
  --ink: #1a1815;
  --paper: #faf7f2;
  --accent: #b5482c;
  --accent-dark: #8a3620;
  --muted: #6b665f;
  --line: #e4ddd2;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

header.top {
  padding: 28px 0 18px;
  text-align: center;
}

header.top.with-lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 12px;
  position: relative;
}

.lang-switcher {
  position: relative;
  flex-shrink: 0;
}

.lang-current {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lang-current .caret {
  font-size: 0.65em;
  color: var(--muted);
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 130px;
  z-index: 10;
}

.lang-option {
  border: none;
  background: none;
  color: var(--ink);
  font-size: 0.85rem;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}

.lang-option:hover {
  background: #f2ede4;
}

.lang-option.active {
  background: var(--ink);
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 15px;
  color: var(--muted);
  text-transform: uppercase;
}

.brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  font-size: 1.5rem;
  margin: 6px 0 4px;
}

.subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 20px;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:active {
  transform: scale(0.98);
}

.card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.card .meta {
  flex: 1;
  min-width: 0;
}

.card .meta .title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2px;
}

.card .meta .artist {
  color: var(--muted);
  font-size: 0.85rem;
}

.card .play-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.qr-note {
  margin-top: 34px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.hero {
  width: 100%;
  max-height: 55vh;
  object-fit: contain;
  border-radius: var(--radius);
  margin: 4px 0 18px;
  display: block;
  background: #efe9df;
}

.work-title { margin: 0 0 2px; font-size: 1.4rem; }
.work-artist { color: var(--muted); margin: 0 0 20px; font-size: 0.95rem; }

.player {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
}

.transport-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 16px;
}

.play-btn {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(181, 72, 44, 0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}

.play-btn:active { transform: scale(0.94); }
.play-btn.playing { background: var(--accent-dark); }

.skip-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  line-height: 1;
}

.skip-btn:active { transform: scale(0.92); background: #f2ede4; }

.skip-btn .skip-icon { font-size: 18px; }
.skip-btn .skip-label { font-size: 0.6rem; color: var(--muted); margin-top: 1px; }

.speed-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.speed-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

.speed-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 4px;
}

.progress-row input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}

.time {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.8rem;
  min-width: 38px;
}

.status-line {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 10px;
}

.transcript {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.6;
  color: #33302b;
}

.transcript summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.back-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.back-link:hover { color: var(--accent); }

.finish-link {
  display: block;
  margin-top: 10px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.finish-link:hover { text-decoration: underline; }

.next-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
}

.next-card img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 10px;
  flex-shrink: 0;
}

.next-card .next-meta {
  flex: 1;
  min-width: 0;
}

.next-card .next-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 2px;
}

.next-card .next-title {
  font-weight: 600;
  font-size: 1rem;
}

.next-card .next-arrow {
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

footer.powered {
  text-align: center;
  margin-top: 40px;
  font-size: 0.75rem;
  color: #a39d92;
}

.merci-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  margin-top: 20px;
}

.merci-card .merci-icon {
  font-size: 40px;
  margin-bottom: 6px;
}

.merci-card h1 {
  font-size: 1.4rem;
  margin: 0 0 10px;
}

.merci-card .merci-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 24px;
}

.subscribe-form {
  text-align: left;
  max-width: 380px;
  margin: 0 auto;
}

.subscribe-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  box-sizing: border-box;
  margin-bottom: 14px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 18px;
}

.consent-row input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.consent-row label {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.subscribe-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.subscribe-btn:active { transform: scale(0.98); }

.form-message {
  font-size: 0.85rem;
  margin-top: 12px;
  min-height: 1.2em;
}

.form-message.error { color: var(--accent); }
.form-message.success { color: #2f7a4f; }

.skip-link-row {
  text-align: center;
  margin-top: 16px;
}

.skip-link-row a {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.skip-link-row a:hover { color: var(--accent); }

.merci-success-icon {
  font-size: 48px;
  margin-bottom: 10px;
}
