/* ----- base ----- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  background: #ebe7df;
  color: #2a2520;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
               "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  padding: 96px 24px 160px;
}

/* ----- layout ----- */
main {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 96px;
}

/* ----- the window ----- */
.window {
  position: relative;
  background: rgba(255, 253, 248, 0.55);
  border: 1px solid rgba(40, 35, 30, 0.22);
  padding: 36px 36px 56px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.window-image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 28px;
}

.window-text {
  font-size: 14px;
  line-height: 1.9;
  color: #3a342d;
  margin-bottom: 28px;
  white-space: pre-wrap;
}

.window-text:last-of-type {
  margin-bottom: 0;
}

.window-meta {
  position: absolute;
  bottom: 14px;
  right: 18px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #8a8278;
  font-feature-settings: "tnum";
}

/* ----- player ----- */
.player {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.window > .player:first-child {
  margin-top: 0;
}

.play-btn {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid rgba(40, 35, 30, 0.45);
  background: transparent;
  cursor: pointer;
  position: relative;
  padding: 0;
  transition: background 0.2s ease;
}

.play-btn:hover {
  background: rgba(40, 35, 30, 0.05);
}

.play-btn::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 7px;
  width: 0;
  height: 0;
  border-left: 8px solid #2a2520;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.play-btn.playing::before {
  left: 8px;
  top: 7px;
  width: 9px;
  height: 12px;
  border: none;
  border-left: 3px solid #2a2520;
  border-right: 3px solid #2a2520;
}

.progress {
  flex: 1;
  height: 1px;
  background: rgba(40, 35, 30, 0.2);
  position: relative;
  cursor: pointer;
}

.progress::before {
  content: '';
  position: absolute;
  inset: -8px 0;
}

.progress-fill {
  height: 100%;
  background: rgba(40, 35, 30, 0.7);
  width: 0;
  pointer-events: none;
}

.time {
  font-size: 10px;
  color: #8a8278;
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  text-align: right;
  letter-spacing: 0.04em;
}

/* ----- responsive ----- */
@media (max-width: 520px) {
  body {
    padding: 64px 16px 120px;
  }
  main {
    gap: 72px;
  }
  .window {
    padding: 28px 24px 48px;
  }
}
