:root {
  color: #15233e;
  background: #dce7ee;
  font-family: "Noto Sans TC", -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 92% 1%, #f7b88b 0 3px, transparent 4px),
    radial-gradient(circle at 82% 8%, #8bc5cb 0 18px, transparent 19px),
    linear-gradient(135deg, #dce7ee 0%, #eef2f4 55%, #d2e1e8 100%);
}

button, input { font: inherit; }
button { cursor: pointer; }

.app-shell {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 68px 0 156px;
}

.hero {
  padding: 0 4px 44px;
  border-bottom: 1px solid rgba(21, 35, 62, 0.19);
}

.eyebrow, .conversation-number, .player-kicker {
  margin: 0;
  color: #ee6749;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Noto Serif TC", Georgia, serif; }

h1 {
  max-width: 650px;
  margin: 12px 0 16px;
  font-size: clamp(34px, 7vw, 64px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.16;
}

.intro { max-width: 460px; margin: 0; color: #52657b; font-size: 16px; line-height: 1.75; }
.library { padding-top: 34px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
h2 { margin-bottom: 0; font-size: 23px; letter-spacing: -0.03em; }
.count { color: #64758a; font-size: 13px; white-space: nowrap; }
.autoplay-toggle { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: #52657b; font-size: 13px; cursor: pointer; user-select: none; white-space: nowrap; }
.autoplay-toggle input { width: 16px; height: 16px; accent-color: #244962; cursor: pointer; }
.conversation-list { display: grid; gap: 14px; }

.conversation {
  overflow: hidden;
  border: 1px solid rgba(21, 35, 62, 0.16);
  border-radius: 18px;
  background: rgba(251, 253, 253, 0.8);
  box-shadow: 0 12px 30px rgba(34, 58, 84, 0.08);
}

.conversation-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 26px 20px;
  border-left: 5px solid #ee6749;
}

.conversation h3 { margin: 7px 0 6px; font-size: 26px; letter-spacing: -0.04em; }
.conversation-description { max-width: 560px; margin: 0; color: #607185; font-size: 14px; line-height: 1.65; }
.conversation-count { margin: 2px 0 0; color: #356e77; font-size: 13px; font-weight: 700; white-space: nowrap; }
.track-list { border-top: 1px solid rgba(21, 35, 62, 0.12); }

.track { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid rgba(21, 35, 62, 0.1); transition: background 180ms ease; }
.track:last-child { border-bottom: 0; }
.track:hover, .track.is-active { background: #f7d9c9; }
.track.has-error { outline: 2px solid #d9483e; outline-offset: -2px; }
.track-main { display: flex; min-width: 0; gap: 17px; align-items: center; padding: 18px 12px 18px 26px; border: 0; color: inherit; background: transparent; text-align: left; }
.track-index { color: #8a9aaa; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.track-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.track-copy strong { overflow: hidden; font-size: 16px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.track-copy small { color: #65768a; font-size: 12px; }
.track-action { align-self: center; margin-right: 18px; padding: 7px 12px; border: 1px solid #365b78; border-radius: 999px; color: #244962; background: transparent; font-size: 13px; font-weight: 700; }
.track-action:hover, .track.is-active .track-action { color: #fff; background: #244962; }

.empty-tracks { margin: 0; padding: 20px 26px 24px; color: #718196; font-size: 14px; }

.player {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid rgba(220, 231, 238, 0.32);
  background: rgba(20, 33, 59, 0.96);
  box-shadow: 0 -14px 36px rgba(15, 29, 51, 0.22);
  backdrop-filter: blur(16px);
}

.player-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1.2fr) auto;
  align-items: center;
  width: min(980px, calc(100% - 32px));
  min-height: 104px;
  gap: 25px;
  margin: 0 auto;
  color: #fff;
}

.now-playing { display: flex; min-width: 0; align-items: center; gap: 11px; }
.playing-mark { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #f59a6a; box-shadow: 0 0 0 5px rgba(245, 154, 106, 0.14); }
.player-kicker { color: #a6cdd0; font-size: 10px; }
.now-title { overflow: hidden; margin: 5px 0 0; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.controls { display: flex; align-items: center; gap: 10px; }
.icon-button, .play-button, .speed-button { border: 0; color: #fff; background: transparent; }
.icon-button { display: inline-flex; align-items: center; gap: 1px; color: #bed1df; font-size: 19px; }
.icon-button span { font-size: 10px; font-weight: 700; }
.play-button { width: 42px; height: 42px; border-radius: 50%; color: #14213b; background: #f7b88b; font-size: 14px; font-weight: 700; }
.play-button:disabled { opacity: 0.45; }
.timeline { min-width: 0; }
.time-row { display: flex; justify-content: space-between; margin-bottom: 6px; color: #c1d1db; font-size: 11px; font-variant-numeric: tabular-nums; }
#seek { width: 100%; height: 4px; accent-color: #f7b88b; }
.speed-button { padding: 7px 9px; border: 1px solid rgba(198, 218, 229, 0.43); border-radius: 5px; color: #d4e0e7; font-size: 12px; font-weight: 700; }

button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #ee6749; outline-offset: 3px; }

@media (max-width: 680px) {
  .app-shell { width: min(100% - 24px, 880px); padding-top: 42px; padding-bottom: 226px; }
  .hero { padding-bottom: 32px; }
  .conversation-top { padding: 22px 20px 18px; }
  .conversation h3 { font-size: 23px; }
  .track-main { padding-left: 20px; }
  .player-inner { grid-template-columns: 1fr auto; gap: 14px; min-height: 146px; padding: 18px 0; }
  .now-playing { grid-column: 1 / -1; }
  .timeline { grid-column: 1 / -1; grid-row: 3; }
  .controls { grid-row: 2; }
  .speed-button { justify-self: end; grid-row: 2; }
}
