:root {
  color-scheme: dark;
  font-family:
    Noto Sans KR,
    system-ui,
    sans-serif;
  color: #f2f0f7;
  background: #15141a;
  font-synthesis: none;
}
.album-page {
  margin: 0;
  min-width: 0;
  background: #15141a;
  word-break: keep-all;
}
.album-page button,
.album-page input {
  font: inherit;
}
.album-page button {
  touch-action: manipulation;
}
[hidden] {
  display: none !important;
}
#album-app {
  min-height: 100dvh;
}
.album-shell {
  box-sizing: border-box;
  max-width: 680px;
  margin: auto;
  padding: 72px 20px 112px;
}
.album-cover {
  width: 240px;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #0c1a35;
  margin: 0 auto 20px;
  position: relative;
}
.album-cover:before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  right: 0;
  height: 78%;
  background: #101f3c;
}
.album-cover:after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 88px;
  height: 88px;
  border: 22px solid #34352f;
  border-radius: 50%;
  background: #ffc72c;
  top: 22px;
  left: calc(50% - 66px);
}
.album-cover i {
  position: absolute;
  z-index: 1;
  height: 22%;
  bottom: 0;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    #f1eff7 0 33px,
    #586077 34px 35px,
    #f1eff7 36px 67px,
    #11172a 68px 91px
  );
}
.album-cover.has-img:before,
.album-cover.has-img:after {
  display: none;
}
.track-end {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.album-cover img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.album-intro {
  text-align: center;
}
.album-intro h1 {
  font-size: 26px;
  line-height: 1.25;
  margin: 0;
}
.album-artist {
  color: #ffc72c;
  font-size: 14px;
  font-weight: 700;
  margin: 6px 0 12px;
}
.album-chips {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.album-chip {
  padding: 7px 16px;
  color: #b3afc2;
  background: #2a2933;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.album-intro-text {
  white-space: pre-line;
  color: #b3afc2;
  font-size: 14px;
  line-height: 1.65;
  margin: 17px auto 0;
  max-width: 350px;
}
.album-actions {
  display: grid;
  grid-template-columns: 2fr 0.94fr;
  gap: 12px;
  margin: 12px 0 34px;
}
.album-button {
  box-sizing: border-box;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: #ffc72c;
  color: #17151a;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}
.album-button.alt {
  color: #f2f0f7;
  background: #2a2933;
}
.album-button:disabled {
  opacity: 0.5;
  cursor: default;
}
.play-tri {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
}
.section-head h2 {
  font-size: 16px;
  margin: 0;
}
.section-head small {
  color: #ffc72c;
  font-size: 12px;
  font-weight: 700;
}
.track-list {
  padding-bottom: 96px;
}
.track-row {
  box-sizing: border-box;
  width: 100%;
  min-height: 64px;
  padding: 7px 14px 7px 12px;
  border: 0;
  border-bottom: 1px solid #34323f;
  color: #f2f0f7;
  background: transparent;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}
.track-row.current {
  border: 0;
  border-radius: 12px;
  background: #1f1e26;
}
.track-row.locked {
  color: #8a869a;
}
.track-no {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.album-left {
  display: contents;
}
.desktop-tabs {
  display: none;
}
.track-row > span:nth-child(2) {
  display: block;
  min-width: 0;
}
.track-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.track-artist {
  color: #8a869a;
  font-size: 12px;
  font-weight: 400;
  margin-top: 2px;
}
.track-time {
  color: #b3afc2;
  font-size: 13px;
}
.lock-ico {
  width: 12px;
  height: 14px;
  border-radius: 2px;
  background: #aaa5b9;
  position: relative;
  margin-top: 7px;
  margin-right: 5px;
}
.lock-ico:before {
  content: "";
  position: absolute;
  border: 2px solid #aaa5b9;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  width: 7px;
  height: 7px;
  left: 1px;
  top: -7px;
}
.bars {
  display: inline-flex;
  gap: 3px;
  align-items: end;
  width: 18px;
  height: 19px;
}
.bars i {
  width: 3px;
  background: #ffc72c;
}
.bars i:nth-child(1) {
  height: 9px;
}
.bars i:nth-child(2) {
  height: 16px;
}
.bars i:nth-child(3) {
  height: 12px;
}
.buy-card {
  background: #1f1e26;
  border-radius: 14px;
  padding: 20px;
  margin-top: -70px;
  position: relative;
}
.buy-card strong {
  font-size: 16px;
}
.buy-card p {
  white-space: pre-line;
  color: #b3afc2;
  font-size: 13px;
  line-height: 1.65;
  margin: 7px 0 14px;
}
.buy-card .album-button {
  width: 100%;
}
.download-link {
  display: block;
  color: #f2f0f7;
  text-align: center;
  font-size: 14px;
  margin: 16px 0 -4px;
}
.album-footer {
  text-align: center;
  color: #8a869a;
  font-size: 12px;
  margin: 18px 0;
}
.mini-player {
  z-index: 5;
  box-sizing: border-box;
  position: fixed;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 16px;
  right: 16px;
  min-height: 66px;
  background: #2a2933;
  border: 1px solid #34323f;
  border-radius: 15px;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  box-shadow: 0 5px 24px #0007;
}
.mini-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  background: #101f3c;
  position: relative;
}
.mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mini-title {
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-artist {
  color: #b3afc2;
  font-size: 12px;
  margin-top: 3px;
}
.mini-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-btn {
  border: 0;
  background: transparent;
  color: #f2f0f7;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pause-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffc72c;
  color: #17151a;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.pause-dot i,
.pause-dot i:after {
  display: block;
  background: currentColor;
  width: 4px;
  height: 14px;
  content: "";
}
.pause-dot i:after {
  transform: translateX(7px);
}
.player-pane {
  display: none;
}
.player-pane.open {
  display: block;
  z-index: 8;
  position: fixed;
  inset: 0;
  background: #15141a;
  overflow-y: auto;
  padding: 0 20px calc(26px + env(safe-area-inset-bottom));
}
.player-head {
  height: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.player-head button {
  color: #f2f0f7;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  min-height: 44px;
  padding: 0;
}
.player-count {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}
.player-slot {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  margin: 16px auto 22px;
  background: #070709 center / cover no-repeat;
  position: relative;
  overflow: hidden;
  border-radius: 7px;
}
.player-slot iframe {
  pointer-events: none; /* 마우스·터치가 영상에 닿지 않게 — 호버 제목 줄·채널 표시 방지(조작은 우리 버튼) */
  border: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.player-meta h2 {
  font-size: 24px;
  margin: 0;
}
.player-meta p {
  color: #ffc72c;
  font-size: 14px;
  font-weight: 700;
  margin: 5px 0 16px;
}
.progress {
  height: 26px;
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.progress:before,
.progress i {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 8px;
  background: #454250;
}
.progress i {
  right: auto;
  background: #ffc72c;
  width: 0;
}
.progress b {
  z-index: 1;
  position: absolute;
  width: 14px;
  height: 14px;
  background: #f2f0f7;
  border-radius: 50%;
  left: 0;
  transform: translateX(-50%);
}
.time-row {
  display: flex;
  justify-content: space-between;
  color: #8a869a;
  font-size: 12px;
  margin-top: -2px;
}
.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 5px 0 25px;
}
.player-controls .icon-btn {
  color: #b3afc2;
}
.player-controls .main-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffc72c;
  color: #17151a;
}
.control-icon {
  width: 20px;
  height: 20px;
  position: relative;
}
.prev:before,
.next:before {
  content: "";
  position: absolute;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 9px solid currentColor;
  left: 3px;
  top: 3px;
}
.next:before {
  transform: rotate(180deg);
  left: 8px;
}
.prev:after,
.next:after {
  content: "";
  position: absolute;
  width: 2px;
  height: 15px;
  background: currentColor;
  left: 1px;
  top: 3px;
}
.next:after {
  left: 17px;
}
.repeat {
  border: 2px solid currentColor;
  border-radius: 6px;
  width: 17px;
  height: 12px;
}
.repeat.active {
  color: #ffc72c;
}
.shuffle:before,
.shuffle:after {
  content: "";
  position: absolute;
  width: 17px;
  height: 2px;
  background: currentColor;
  left: 1px;
  top: 9px;
  transform: rotate(45deg);
}
.shuffle:after {
  transform: rotate(-45deg);
}
.player-tabs {
  border-bottom: 1px solid #34323f;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.player-tabs button {
  min-height: 47px;
  color: #8a869a;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}
.player-tabs button.active {
  color: #f2f0f7;
  border-color: #ffc72c;
}
.player-text {
  white-space: pre-line;
  font-size: 16px;
  line-height: 1.9;
  padding: 20px 0;
}
.toast {
  z-index: 20;
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 90px;
  background: #2a2933;
  border: 1px solid #34323f;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  color: #f2f0f7;
  font-size: 13px;
}
.book-dialog {
  z-index: 30;
  position: fixed;
  inset: 0;
  background: #000a;
  display: flex;
  align-items: flex-end;
}
.lock-sheet {
  box-sizing: border-box;
  max-height: 92dvh;
  width: 100%;
  overflow: auto;
  background: #1f1e26;
  border-radius: 24px 24px 0 0;
  padding: 36px 20px 24px;
  position: relative;
}
.sheet-handle {
  position: absolute;
  top: 12px;
  left: calc(50% - 20px);
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: #454250;
}
.dialog-close {
  position: absolute;
  top: 11px;
  right: 15px;
  border: 0;
  background: transparent;
  color: #f2f0f7;
  min-width: 44px;
  min-height: 44px;
  font-size: 14px;
  cursor: pointer;
}
.lock-sheet h2 {
  font-size: 20px;
  margin: 0;
}
.lock-note {
  white-space: pre-line;
  color: #b3afc2;
  line-height: 1.65;
  font-size: 14px;
  margin: 10px 0 18px;
}
.lock-changed,
.demo-hint {
  color: #ffc72c;
  font-size: 13px;
  font-weight: 700;
}
.lock-layout {
  margin-top: 8px;
}
.qr-column {
  display: none;
}
.code-form .album-button {
  display: flex;
  width: 100%;
  padding: 0 16px;
  text-align: center;
}
.code-form .album-button + .code-divider {
  margin-top: 26px;
}
.code-divider {
  color: #8a869a;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 23px 0 14px;
  font-size: 12px;
}
.code-divider:before,
.code-divider:after {
  content: "";
  height: 1px;
  flex: 1;
  background: #34323f;
}
.code-row {
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 12px;
}
.code-row input {
  min-width: 0;
  height: 48px;
  box-sizing: border-box;
  border: 1px solid #34323f;
  border-radius: 10px;
  background: #2a2933;
  color: #f2f0f7;
  padding: 0 12px;
}
.code-row input.error {
  border-color: #ff6b6b;
}
.code-row button {
  border: 0;
  border-radius: 10px;
  background: #f2f0f7;
  color: #15141a;
  font-weight: 800;
  cursor: pointer;
}
.form-message {
  min-height: 20px;
  margin: 8px 0 0;
  color: #8a869a;
  font-size: 13px;
}
.form-message.error {
  color: #ff6b6b;
}
.unlock-success {
  background: #103c25;
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
}
.unlock-success p {
  margin: 0 0 10px;
  color: #53e88b;
  font-weight: 700;
}
.dialog-footer .album-footer {
  margin-bottom: 0;
}
.confirm-dialog {
  z-index: 31;
}
.confirm-dialog .album-button,
.confirm-dialog .album-button.alt {
  width: 100%;
  margin-top: 12px;
}
.load-state {
  color: #b3afc2;
  text-align: center;
  padding: 80px 20px;
}
@media (min-width: 1024px) {
  .album-shell {
    max-width: 1280px;
    min-height: 100dvh;
    padding: 64px 40px 70px;
    display: grid;
    grid-template-columns: 480px minmax(0, 1fr);
    gap: clamp(40px, 5.5vw, 80px);
  }
  .album-intro {
    text-align: left;
  }
  .album-left {
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 1;
    max-width: 480px;
  }
  .album-intro,
  .player-pane {
    display: contents !important;
  }
  .album-cover,
  .player-meta {
    display: none;
  }
  .player-slot {
    order: 1;
  }
  .album-intro h1 {
    order: 2;
    font-size: 28px;
  }
  .album-artist {
    order: 3;
  }
  .album-chips {
    order: 4;
    margin-bottom: 16px;
  }
  .progress {
    order: 5;
  }
  .time-row {
    order: 6;
  }
  .player-controls {
    order: 7;
  }
  .album-intro-text {
    order: 8;
    margin-top: 8px;
  }
  .album-chips {
    justify-content: flex-start;
  }
  .album-intro-text {
    margin-left: 0;
  }
  .album-actions,
  .album-shell > .album-actions,
  .album-shell > .album-section {
    display: none;
  }
  .player-head {
    display: none;
  }
  .player-slot {
    max-width: 480px;
    margin: 0 0 24px;
    border-radius: 0;
    background-position: center;
    background-size: cover;
  }
  .player-meta,
  .progress,
  .time-row,
  .player-controls {
    max-width: 480px;
  }
  .player-tabs {
    display: none;
  }
  .player-pane .player-text {
    display: none;
  }
  .desktop-right .player-text {
    margin-top: 20px;
  }
  .album-shell > .desktop-right {
    grid-column: 2;
    grid-row: 1;
  }
  .desktop-tabs {
    height: 34px;
    border-bottom: 1px solid #34323f;
    display: flex;
    gap: 58px;
  }
  .desktop-tabs button {
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #8a869a;
    font-weight: 700;
    cursor: pointer;
  }
  .desktop-tabs button.active {
    border-color: #ffc72c;
    color: #f2f0f7;
  }
  .desktop-right .section-head {
    margin-top: 20px;
  }
  .track-list {
    padding-bottom: 0;
  }
  .buy-card {
    margin: 24px 0 0;
    display: grid;
    grid-template-columns: 1fr 200px;
    align-items: center;
    column-gap: 30px;
  }
  .buy-card strong,
  .buy-card p {
    grid-column: 1;
  }
  .buy-card .album-button {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .mini-player {
    display: none;
  }
  .album-footer {
    text-align: center;
    background: none;
    padding: 20px 0 0;
    color: #8a869a;
    font-size: 12px;
  }
  .book-dialog {
    align-items: center;
    justify-content: center;
  }
  .lock-sheet {
    width: 560px;
    border: 1px solid #34323f;
    border-radius: 20px;
    padding: 32px;
  }
  .sheet-handle {
    display: none;
  }
  .lock-layout {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 28px;
    margin-top: 22px;
  }
  .qr-column {
    display: block;
    color: #b3afc2;
    font-size: 13px;
    line-height: 1.6;
  }
  .qr-box {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    box-sizing: border-box;
  }
  .qr-box canvas {
    width: 126px;
    height: 126px;
  }
  .code-divider {
    margin-top: 0;
  }
  .code-form .album-button + .code-divider {
    margin-top: 28px;
  }
  .player-meta h2 {
    font-size: 28px;
  }
}
