:root {
  --bg: #100d12;
  --bg-raise: #1b1620;
  --line: rgba(255, 228, 196, 0.14);
  --text: #f6f1e8;
  --muted: #b3a89c;
  --gold: #e4b56a;
  --gold-deep: #a8743a;
  --danger: #e7b2a8;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 420px at 50% -10%, rgba(228, 181, 106, 0.16), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Manrope", sans-serif;
}

button, input { font: inherit; color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.app {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
}

.top {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 12px;
  background: linear-gradient(180deg, rgba(16, 13, 18, 0.96) 70%, rgba(16, 13, 18, 0));
}

.brand {
  margin: 0 0 4px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold);
}

h1 {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.05;
  font-weight: 650;
}

.search {
  position: relative;
}

.search input {
  width: 100%;
  height: 54px;
  padding: 0 48px 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
  box-shadow: var(--shadow);
}

.search input:focus {
  border-color: rgba(228, 181, 106, 0.7);
}

.search input::-webkit-search-cancel-button { display: none; }

.clear {
  position: absolute;
  top: 9px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.meta, .state {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 14px;
}

.list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.card, .back, .part, .more {
  border: 1px solid var(--line);
  background: var(--bg-raise);
  cursor: pointer;
}

.card {
  width: 100%;
  text-align: left;
  border-radius: 16px;
  padding: 14px 14px 13px;
}

.card:active, .part:active, .more:active, .back:active {
  transform: translateY(1px);
}

.card strong {
  display: block;
  font-size: 16px;
  font-weight: 620;
  line-height: 1.35;
}

.card strong mark {
  background: transparent;
  color: var(--gold);
}

.card span, .detail p {
  color: var(--muted);
  font-size: 13px;
}

.detail {
  margin-top: 8px;
}

.detail h2 {
  margin: 14px 0 6px;
  font-size: 26px;
  line-height: 1.2;
}

.parts {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.back, .part, .more {
  border-radius: 14px;
  padding: 13px 14px;
}

.back {
  background: transparent;
  color: var(--gold);
}

.part {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.part em {
  font-style: normal;
  color: var(--gold);
  font-size: 13px;
}

.player {
  width: 100%;
  max-height: 70vh;
  margin-top: 12px;
  border-radius: 16px;
  background: #000;
}

.player-note {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 14px;
}

.more {
  width: 100%;
  margin-top: 8px;
  color: var(--text);
}

.state {
  padding: 28px 8px;
  text-align: center;
  line-height: 1.45;
}
