:root {
  color-scheme: dark;
  --page: #171717;
  --panel: #f3f0e8;
  --panel-soft: #e7e2d8;
  --ink: #202020;
  --muted: #69665f;
  --line: rgba(32, 32, 32, 0.14);
  --accent: #9bcbd1;
  --accent-deep: #497a80;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(155, 203, 209, 0.12), transparent 34rem),
    var(--page);
  color: var(--panel);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  font: inherit;
}

.phone-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 16px 32px;
  background: #202020;
}

.loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-content: center;
  gap: 12px;
  background: rgba(32, 32, 32, 0.86);
  color: var(--panel);
  text-align: center;
}

.loading-overlay[hidden] {
  display: none;
}

.loading-overlay p {
  margin: 0;
  color: rgba(243, 240, 232, 0.76);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.loading-mark {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.loading-mark span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: loadingPulse 0.7s ease-in-out infinite alternate;
}

.loading-mark span:nth-child(2) {
  animation-delay: 0.12s;
}

.loading-mark span:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes loadingPulse {
  from {
    opacity: 0.35;
    transform: translateY(0);
  }

  to {
    opacity: 1;
    transform: translateY(-6px);
  }
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.site-header {
  padding: 8px 2px 24px;
}

.logo {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.3rem;
  line-height: 0.92;
  letter-spacing: 0;
}

.logo span {
  display: block;
}

.kicker {
  margin: 18px 0 0;
  color: var(--accent);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.track-list {
  display: grid;
  gap: 12px;
}

.track-card,
.detail-card {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.track-card {
  width: 100%;
  min-height: 106px;
  display: grid;
  grid-template-columns: 3.2rem 82px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.track-card:active {
  transform: translateY(1px);
}

.track-number {
  color: var(--accent-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
}

.image-frame {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(155, 203, 209, 0.65), rgba(160, 145, 180, 0.55)),
    #d7d1c4;
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(32, 32, 32, 0.08);
}

.track-thumb {
  width: 82px;
  aspect-ratio: 1;
  border-radius: 6px;
}

.image-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.track-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 650;
}

.track-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.demo-note {
  margin: 22px 4px 0;
  color: rgba(243, 240, 232, 0.62);
  font-size: 0.82rem;
  line-height: 1.5;
}

.back-button {
  margin: 4px 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.detail-card {
  padding: 14px;
}

.detail-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}

.detail-number {
  margin: 18px 0 4px;
  color: var(--accent-deep);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1;
}

.detail-description,
.transcript-text {
  color: #4f4b44;
  font-size: 0.98rem;
  line-height: 1.55;
}

.player {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.38);
}

.play-button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: var(--panel);
  cursor: pointer;
}

.progress-wrap {
  margin-top: 14px;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #d4cec2;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-deep);
}

.time-row,
.skip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.time-row {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.skip-row {
  gap: 10px;
  margin-top: 14px;
}

.ghost-button,
.transcript-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.ghost-button {
  flex: 1;
}

.transcript-button {
  width: 100%;
  margin-top: 12px;
}

.transcript-text {
  margin-bottom: 0;
  padding: 12px;
  border-left: 3px solid var(--accent);
  background: rgba(155, 203, 209, 0.16);
}

@media (min-width: 431px) {
  body {
    display: grid;
    place-items: start center;
  }

  .phone-shell {
    min-height: 880px;
  }
}
