/* ===========================
   v7 · 반응형 (vw/vh 단위)
   기준: 375px viewport (iPhone SE) = 100vw
   1px = 0.2667vw
   =========================== */

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}

body {
  font-family: 'Noto Serif KR', serif;
  background: #E5F0ED;
  color: #1a1a1a;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Layout ── */

.page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  text-align: center;
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 400px;
}

/* ── Typography ── */

/* 레이블: 9.67px @375 = 2.58vw */
.label {
  font-family: 'Nanum Gothic', sans-serif;
  font-size: 2.58vw;
  font-weight: 800;
  color: #008876;
  margin-bottom: 4.27vw;
}

.label--player {
  text-align: left;
}

/* 타이틀: 16.67px @375 = 4.45vw */
.display {
  font-family: 'Gowun Batang', serif;
  font-weight: 700;
  font-size: 4.45vw;
  color: #008876;
  letter-spacing: 0.27vw;
  line-height: 1.45;
  text-align: center;
  margin-bottom: 2.67vw;
}

.display--player {}

/* 서브타이틀: 13.33px @375 = 3.55vw */
.subtitle {
  font-family: 'Gowun Batang', serif;
  font-size: 3.55vw;
  font-weight: 700;
  color: #008876;
  line-height: 1.45;
  letter-spacing: 0.13vw;
  text-align: center;
  word-break: keep-all;
}

/* ── Divider ── */

.divider {
  width: 8.53vw;
  height: 1px;
  background: rgba(0,0,0,.1);
  margin: 0 auto 8.53vw;
}

/* ── Track list ── */

.list {
  display: flex;
  flex-direction: column;
}

.list__item {
  display: flex;
  align-items: center;
  gap: 4.27vw;
  padding: 4.27vw 1.07vw;
  text-decoration: none;
  color: #008876;
  border-bottom: 1px solid rgba(0,0,0,.08);
  transition: color .2s;
}

.list__item:first-child {
  border-top: 1px solid rgba(0,0,0,.08);
}

.list__item:active,
.list__item:hover {
  color: #006655;
}

.list__num {
  font-family: 'Nanum Gothic', sans-serif;
  font-size: 1.87vw;
  font-weight: 400;
  color: #008876;
  opacity: .5;
  font-variant-numeric: tabular-nums;
  width: 6.4vw;
  text-align: left;
}

.list__title {
  font-family: 'Nanum Gothic', sans-serif;
  flex: 1;
  font-size: 2.4vw;
  font-weight: 700;
  text-align: left;
  letter-spacing: .01em;
}

.list__arrow {
  font-size: 2.93vw;
  color: #008876;
  opacity: .4;
  transition: color .2s, transform .2s;
}

.list__item:hover .list__arrow,
.list__item:active .list__arrow {
  opacity: .7;
  transform: translateX(0.53vw);
}

/* ── Player page layout ── */

.container--player {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-width: none;
  overflow: hidden;
  /* 상단 패딩: 30.4vw 기본, 큰 화면에서는 15vh로 제한 */
  padding: min(30.4vw, 15vh) 9.6vw 0 10.93vw;
  text-align: center;
}

.player-top {
  flex-shrink: 0;
}

.player-top .label {
  /* 36px = 9.6vw */
  margin-bottom: 9.6vw;
}

.player-top .display {
  /* 4px = 1.07vw */
  margin-bottom: 1.07vw;
}

.player-middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 18vw;
}

.player-bottom {
  flex-shrink: 0;
  /* 하단 패딩: 14.4vw 기본, 큰 화면에서는 6vh로 제한 */
  padding-bottom: min(14.4vw, 6vh);
}

/* ── Player (재생 버튼) ── */
/* 58px @375 = 15.47vw */

.player {
  position: relative;
  width: 15.47vw;
  height: 15.47vw;
  margin: 0 auto;
}

.player__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32vw;
  height: 32vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0,0,0,.02) 0%, transparent 70%);
  pointer-events: none;
}

.progress-ring {
  position: absolute;
  inset: 0;
  width: 15.47vw;
  height: 15.47vw;
  transform: rotate(-90deg);
}

.progress-ring__bg {
  fill: none;
  stroke: #D9D9D9;
  stroke-width: 2;
}

.progress-ring__fill {
  fill: none;
  stroke: #008876;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset .3s ease;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 15.47vw;
  height: 15.47vw;
  border-radius: 50%;
  border: 1px solid #D9D9D9;
  background: transparent;
  color: #008876;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  -webkit-appearance: none;
  transition: border-color .3s, transform .15s;
}

.play-btn:active {
  transform: translate(-50%, -50%) scale(.95);
}

@media (hover:hover) {
  .play-btn:hover {
    border-color: #008876;
  }
}

.play-icon {
  width: 5.33vw;
  height: 5.33vw;
}

#icon-play {
  position: relative;
  left: 0.27vw;
}

/* ── Time ── */

.time {
  font-family: -apple-system, sans-serif;
  font-size: 2.77vw;
  font-weight: 300;
  color: #008876;
  opacity: .5;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  margin-top: 3.2vw;
}

/* ── Description ── */
/* 7.67px @375 = 2.05vw, line-height 14.67px = 3.91vw */

.description {
  font-family: 'Noto Serif KR', serif;
  font-size: 2.05vw;
  font-weight: 500;
  color: #5E5E5E;
  line-height: 3.91vw;
  text-align: left;
  word-break: keep-all;
}

/* ── Back link ── */

.back {
  display: inline-block;
  margin-top: 8.53vw;
  font-size: 2vw;
  font-weight: 300;
  color: #008876;
  opacity: .5;
  text-decoration: none;
  transition: opacity .2s;
}

.back:hover { opacity: .8; }
