:root {
  --bg: #000000;
  --bg-elevated: #121212;
  --surface: #181818;
  --surface-hover: #262626;

  --text: #ffffff;
  --muted: #a7a7a7;
  --muted-2: #737373;

  --green: #1db954;
  --green-bright: #1ed760;
  --green-dim: rgba(29, 185, 84, .14);

  --border: rgba(255, 255, 255, .08);
  --border-light: rgba(255, 255, 255, .16);

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --np-h: 88px;
  --gutter: 32px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
}

::selection {
  background: var(--green-dim);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: top .2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 560px at 50% -8%, rgba(29, 185, 84, .16), transparent 60%),
    linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 480px);
}

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

.topbar {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}

.topbar.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 10, 10, .78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.menu-btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 11px;
  margin-left: -10px;
  border-radius: 50%;
  transition: background .2s ease;
}

.menu-btn span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

@media (hover: hover) {
  .menu-btn:hover {
    background: rgba(255, 255, 255, .1);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 9px;
}

.brand-name {
  font-family: "Playfair Display", serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.home-link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 18px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s var(--ease);
}

@media (hover: hover) {
  .home-link:hover {
    border-color: #fff;
    transform: scale(1.03);
  }
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-select-wrap::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 13px;
  height: 13px;
  transform: translateY(-50%);
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7a7a7' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.4 2.6 3.8 5.8 3.8 9s-1.4 6.4-3.8 9c-2.4-2.6-3.8-5.8-3.8-9s1.4-6.4 3.8-9z'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: .8;
  transition: opacity .2s ease;
}

.lang-select-wrap:hover::before,
.lang-select-wrap:focus-within::before {
  opacity: 1;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  height: 36px;
  min-width: 62px;
  padding: 0 20px 0 26px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7a7a7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 7px center / 12px 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}

.lang-select:hover {
  border-color: var(--green-bright);
  background-color: rgba(255, 255, 255, .07);
}

.lang-select:focus-visible {
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px var(--green-dim);
}

.lang-select option {
  background: var(--surface);
  color: var(--text);
}

.main-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #4d4d4d transparent;
  padding-bottom: 40px;
}

.show-header {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  padding: 24px var(--gutter) 28px;
}

.show-cover {
  flex: 0 0 auto;
  width: 210px;
  height: 210px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #2a2a2a, #0e0e0e);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}

.show-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.show-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.show-kind {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.show-info h1 {
  margin: 0;
  overflow: hidden;
  font-size: clamp(34px, 6vw, 72px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.show-description {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-wrap: pretty;
}

.show-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.show-meta-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.show-meta-author {
  color: var(--text);
  font-weight: 700;
}

.show-meta-dot {
  color: var(--muted-2);
}

.action-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px var(--gutter) 24px;
}

.play-cta,
.ctl-play {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: transform .2s var(--ease), background .2s ease;
}

.play-cta {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  background: var(--green);
  color: #000;
  box-shadow: 0 12px 30px rgba(29, 185, 84, .3);
}

@media (hover: hover) {
  .play-cta:hover {
    background: var(--green-bright);
    transform: scale(1.06);
  }
}

.play-cta:active,
.ctl-play:active {
  transform: scale(.95);
}

.play-cta svg {
  width: 24px;
  height: 24px;
}

.play-icon,
.pause-icon {
  fill: currentColor;
  stroke: none;
}

.play-icon {
  transform: translateX(1px);
}

.pause-icon {
  display: none;
}

body.is-playing .ctl-play .play-icon,
.play-cta[data-playing="true"] .play-icon {
  display: none;
}

body.is-playing .ctl-play .pause-icon,
.play-cta[data-playing="true"] .pause-icon {
  display: block;
}

body.is-buffering [data-action="toggle"]::after,
body.is-buffering .play-cta[data-playing="true"]::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  opacity: .75;
  animation: spin .8s linear infinite;
  pointer-events: none;
}

.play-cta::after {
  color: var(--green-bright);
}

.share-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: border-color .2s ease, color .2s ease, transform .2s var(--ease);
}

.share-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) {
  .share-btn:hover {
    border-color: #fff;
    color: var(--text);
    transform: scale(1.03);
  }
}

.share-btn:active {
  transform: scale(.97);
}

.search-inline {
  position: relative;
  flex: 1 1 auto;
  max-width: 340px;
  margin-left: auto;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--muted-2);
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}

.search-inline input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  outline: 0;
  background: var(--surface-hover);
  font-size: 13px;
  transition: border-color .2s ease, background .2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.search-inline input::-webkit-search-cancel-button,
.search-inline input::-webkit-search-decoration {
  -webkit-appearance: none;
}

.search-inline input::placeholder {
  color: var(--muted-2);
}

.search-inline input:focus {
  border-color: #fff;
  background: #2f2f2f;
}

.search-clear {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  border-radius: 50%;
  color: var(--muted);
}

.search-clear svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

@media (hover: hover) {
  .search-clear:hover {
    background: rgba(255, 255, 255, .1);
    color: var(--text);
  }
}

.episode-list-section {
  padding: 0 var(--gutter);
}

.list-head,
.track-btn {
  display: grid;
  grid-template-columns: 40px 48px minmax(0, 1fr) 110px 64px 44px;
  gap: 16px;
  align-items: center;
}

.list-head {
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.list-head .col-index {
  text-align: center;
}

.list-head .col-duration {
  display: flex;
  justify-content: center;
}

.list-head .col-duration svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.tracks {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.track {
  position: relative;
  border-radius: var(--radius-sm);
  transition: background .15s ease;
}

.track-btn {
  width: 100%;
  min-height: 60px;
  padding: 9px 12px;
  border-radius: inherit;
  text-align: left;
}

.track.playing {
  background: linear-gradient(90deg, var(--green-dim), transparent 75%);
}

@media (hover: hover) {
  .track:hover {
    background: var(--surface-hover);
  }

  .track.playing:hover {
    background: linear-gradient(90deg, rgba(29, 185, 84, .22), var(--surface-hover) 75%);
  }
}

.track-index {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  justify-self: center;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.track-index > * {
  grid-area: 1 / 1;
}

.track-index .track-play {
  display: none;
  width: 14px;
  height: 14px;
  color: var(--text);
}

.track-index .equalizer {
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 14px;
}

.equalizer i {
  width: 3px;
  border-radius: 1px;
  background: var(--green);
  animation: eq 1s ease-in-out infinite;
  animation-play-state: paused;
}

.equalizer i:nth-child(1) { height: 40%; animation-delay: -.6s; }
.equalizer i:nth-child(2) { height: 100%; animation-delay: -.2s; }
.equalizer i:nth-child(3) { height: 65%; animation-delay: -.9s; }

body.is-playing .track.playing .equalizer i {
  animation-play-state: running;
}

@media (hover: hover) {
  .track:not(.playing):hover .index-number {
    display: none;
  }

  .track:not(.playing):hover .track-play {
    display: block;
  }
}

.track.playing .index-number {
  display: none;
}

.track.playing .equalizer {
  display: flex;
}

.track-cover {
  position: relative;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 6px;
  background: #1c1c1c;
}

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

.cover-eq {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, .55);
}

.cover-eq .equalizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 16px;
}

.track-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.track-title {
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track.playing .track-title {
  color: var(--green);
}

.track.is-done:not(.playing) .track-title {
  color: var(--muted);
}

.track-meta,
.track-date {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-meta .meta-date {
  display: none;
}

.track-duration {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

mark {
  border-radius: 3px;
  background: var(--green-dim);
  color: var(--green-bright);
}

.track-progress {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  pointer-events: none;
}

.track-progress::after {
  content: "";
  display: block;
  width: calc(var(--p, 0) * 100%);
  height: 100%;
  background: var(--green);
}

.track:not(.has-progress) .track-progress {
  display: none;
}

.tracks > .no-results {
  padding: 30px 12px;
  color: var(--muted-2);
  font-size: 13px;
  text-align: center;
}

.track.skeleton {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 110px 64px;
  gap: 16px;
  align-items: center;
  min-height: 60px;
  padding: 9px 12px;
}

.skeleton i {
  display: block;
  height: 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, #1c1c1c 25%, #2a2a2a 50%, #1c1c1c 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.skeleton i:nth-child(1) { width: 14px; justify-self: center; }
.skeleton i:nth-child(2) { width: min(60%, 320px); }
.skeleton i:nth-child(3) { width: 70px; }
.skeleton i:nth-child(4) { width: 32px; justify-self: center; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 50px 25px;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .012);
  text-align: center;
}

.empty-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  color: var(--green);
  font-size: 21px;
}

.empty-state h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.empty-state p {
  max-width: 380px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.retry-btn {
  margin-top: 18px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s var(--ease);
}

.retry-btn:active {
  transform: scale(.96);
}

.page-credit {
  margin: 28px 0 0;
  padding: 0 12px;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: .03em;
  text-align: center;
}

.lib-cover {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 8px;
  background: #1c1c1c;
}

.lib-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-gen {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, hsl(var(--h) 62% 46%), hsl(calc(var(--h) + 40) 68% 24%));
  color: rgba(255, 255, 255, .96);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.pl-cover .cover-gen {
  font-size: 92px;
}

.pl-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-add {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  border-radius: 50%;
  color: var(--muted);
  transition: color .15s ease, opacity .15s ease, background .15s ease;
}

.track-add svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.track-add .icon-check {
  display: none;
}

.track.in-playlist .track-add {
  color: var(--green);
}

.track.in-playlist .icon-add {
  display: none;
}

.track.in-playlist .icon-check {
  display: block;
  stroke-width: 2.4;
}

@media (hover: hover) {
  .track-add {
    opacity: 0;
  }

  .track:hover .track-add,
  .track:focus-within .track-add,
  .track.in-playlist .track-add {
    opacity: 1;
  }

  .track-add:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
  }
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  visibility: hidden;
  transition: visibility 0s linear .3s;
}

.drawer.is-open {
  visibility: visible;
  transition: visibility 0s;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .62);
  opacity: 0;
  transition: opacity .3s ease;
}

.drawer.is-open .drawer-backdrop {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: min(340px, 86vw);
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  border-right: 1px solid var(--border-light);
  background: #000;
  box-shadow: 30px 0 80px rgba(0, 0, 0, .7);
  transform: translateX(-100%);
  transition: transform .32s var(--ease);
}

.drawer.is-open .drawer-panel {
  transform: none;
}

.drawer-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 18px 12px 14px 20px;
  border-bottom: 1px solid var(--border);
}

.drawer-head h2 {
  flex: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.drawer-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text);
  transition: background .2s ease;
}

.drawer-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

@media (hover: hover) {
  .drawer-btn:hover {
    background: rgba(255, 255, 255, .12);
  }
}

.drawer-list {
  flex: 0 1 auto;
  min-height: 0;
  margin: 0;
  padding: 10px 8px;
  overflow-y: auto;
  list-style: none;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #4d4d4d transparent;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: left;
  transition: background .15s ease;
}

@media (hover: hover) {
  .drawer-item:hover {
    background: rgba(255, 255, 255, .07);
  }
}

.drawer-item.is-active {
  background: rgba(255, 255, 255, .1);
}

.drawer-cover {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 8px;
  background: #1c1c1c;
}

.drawer-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-cover .cover-gen {
  font-size: 22px;
}

.drawer-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-name,
.drawer-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-name {
  font-size: 15px;
  font-weight: 700;
}

.drawer-sub {
  color: var(--muted);
  font-size: 12.5px;
}

.drawer-item.is-active .drawer-name {
  color: var(--green-bright);
}

.drawer-hint {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 22px 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.drawer-hint b {
  color: var(--text);
}

.back-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 4px;
  padding: 4px 12px 4px 6px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: color .2s ease, border-color .2s ease;
}

.back-chip svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) {
  .back-chip:hover {
    border-color: #fff;
    color: var(--text);
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility 0s linear .2s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .2s ease, visibility 0s;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .68);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: min(440px, 100%);
  max-height: min(680px, calc(100dvh - 40px));
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: #1a1a1a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  transform: translateY(12px) scale(.98);
  transition: transform .28s var(--ease);
}

.modal.is-open .modal-card {
  transform: none;
}

.editor h2,
.picker h2 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.editor-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cover-pick {
  position: relative;
  flex: 0 0 auto;
  width: 132px;
  height: 132px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}

.cover-preview {
  display: block;
  width: 100%;
  height: 100%;
}

.cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-preview .cover-gen {
  font-size: 58px;
}

.cover-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .68);
  color: #fff;
}

.cover-badge svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.editor-fields {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.editor-fields label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.editor-fields input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  outline: 0;
  background: var(--surface-hover);
  font-size: 16px;  transition: border-color .2s ease;
}

.editor-fields input:focus {
  border-color: #fff;
}

.editor-fields input::placeholder {
  color: var(--muted-2);
}

.link-btn {
  align-self: flex-start;
  padding: 4px 0;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.modal-actions .spacer {
  flex: 1;
}

.btn-primary,
.btn-ghost,
.btn-danger {
  font-size: 14px;
  font-weight: 800;
  transition: background .2s ease, transform .2s var(--ease), color .2s ease;
}

.btn-primary {
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--green);
  color: #000;
}

.btn-ghost {
  padding: 11px 18px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-weight: 700;
}

.btn-danger {
  padding: 12px 6px;
  color: #ff6b6b;
  font-size: 13px;
  font-weight: 700;
}

.btn-danger.is-confirm {
  padding: 12px 16px;
  border-radius: 999px;
  background: #d93838;
  color: #fff;
}

.btn-primary:active,
.btn-ghost:active {
  transform: scale(.97);
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--green-bright);
  }

  .btn-ghost:hover {
    border-color: #fff;
  }
}

.picker-sub {
  margin: -10px 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 320px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.picker-item,
.picker-new {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px;
  border-radius: 10px;
  text-align: left;
}

@media (hover: hover) {
  .picker-item:hover,
  .picker-new:hover {
    background: rgba(255, 255, 255, .07);
  }
}

.picker-item .lib-cover {
  width: 46px;
  height: 46px;
}

.picker-item .cover-gen {
  font-size: 20px;
}

.picker-name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-name small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.picker-check {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 2px solid var(--border-light);
  border-radius: 50%;
  color: transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.picker-check svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.picker-item[aria-pressed="true"] .picker-check {
  border-color: var(--green);
  background: var(--green);
  color: #000;
}

.picker-new {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
}

.picker-plus {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--surface-hover);
  font-size: 24px;
  font-weight: 400;
}

.now-playing-bar {
  position: relative;
  z-index: 6;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: var(--np-h);
  padding: 0 16px;
  border-top: 1px solid var(--border);
  background: rgba(18, 18, 18, .96);
}

.mini-progress,
.np-mini {
  display: none;
}

.np-track {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-align: left;
  cursor: default;
}

.np-art {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.np-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.np-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.np-title,
.np-show {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-title {
  font-size: 14px;
  font-weight: 600;
}

.np-show {
  color: var(--muted);
  font-size: 12px;
}

.np-center {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.np-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ctl {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  transition: color .2s ease, transform .2s var(--ease);
}

@media (hover: hover) {
  .ctl:hover {
    color: var(--text);
    transform: scale(1.08);
  }
}

.ctl:active {
  transform: scale(.92);
}

.ctl svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ctl-skip svg {
  width: 26px;
  height: 26px;
  opacity: .85;
}

.ctl-skip span {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.ctl-small {
  width: 28px;
  height: 28px;
}

.ctl-small svg {
  width: 16px;
  height: 16px;
}

.ctl-small .mute-x {
  display: none;
}

.ctl-small.muted {
  color: var(--text);
}

.ctl-small.muted .mute-x {
  display: block;
}

.ctl-small.muted .mute-waves {
  display: none;
}

.ctl-play {
  width: 36px;
  height: 36px;
  background: #fff;
  color: #000;
}

@media (hover: hover) {
  .ctl-play:hover {
    transform: scale(1.06);
  }
}

.ctl-play svg {
  width: 16px;
  height: 16px;
}

.np-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.time {
  flex: 0 0 38px;
  color: var(--muted-2);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.time[data-time="duration"] {
  text-align: right;
}

.progress-bar {
  position: relative;
  flex: 1;
  height: 16px;
  cursor: pointer;
  touch-action: none;
  outline-offset: 2px;
}

.progress-bg,
.progress-buffer,
.progress-fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 99px;
  pointer-events: none;
}

.progress-bg {
  right: 0;
  background: rgba(255, 255, 255, .16);
}

.progress-buffer {
  width: 0;
  background: rgba(255, 255, 255, .18);
}

.progress-fill {
  width: 0;
  background: var(--text);
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%) scale(.6);
  border-radius: 50%;
  background: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s var(--ease);
}

.progress-tip {
  position: absolute;
  bottom: 18px;
  left: 0;
  padding: 3px 8px;
  transform: translateX(-50%);
  border-radius: 6px;
  background: #2a2a2a;
  color: var(--text);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity .12s ease;
}

.progress-bar.show-tip .progress-tip {
  opacity: 1;
}

.progress-bar:focus-visible .progress-thumb,
.progress-bar.is-scrubbing .progress-thumb {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.progress-bar:focus-visible .progress-fill,
.progress-bar.is-scrubbing .progress-fill {
  background: var(--green);
}

@media (hover: hover) {
  .progress-bar:hover .progress-thumb {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .progress-bar:hover .progress-fill {
    background: var(--green);
  }
}

.np-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s var(--ease);
}

.chip svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chip.is-active {
  border-color: var(--green);
  background: var(--green-dim);
  color: var(--green-bright);
}

@media (hover: hover) {
  .chip:hover {
    border-color: var(--border-light);
    color: var(--text);
  }
}

.chip:active {
  transform: scale(.96);
}

#volume {
  width: 96px;
  height: 4px;
  accent-color: var(--text);
  cursor: pointer;
}

#audio {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--np-h) + 20px);
  z-index: 80;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 11px 18px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: rgba(30, 30, 30, .97);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .25s ease, transform .25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top, 0px) 22px env(safe-area-inset-bottom, 0px);
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(29, 185, 84, .28), transparent 70%),
    var(--bg);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform .38s var(--ease), visibility 0s linear .38s;
}

.sheet.is-open {
  transform: none;
  visibility: visible;
  transition: transform .38s var(--ease), visibility 0s;
}

.sheet-inner {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  padding-bottom: 18px;
}

.sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}

.sheet-close,
.sheet-spacer {
  width: 44px;
  height: 44px;
}

.sheet-close {
  display: grid;
  place-items: center;
  margin-left: -10px;
  border-radius: 50%;
}

.sheet-close:focus-visible {
  outline-offset: -4px;
}

.sheet-close svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sheet-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sheet-art {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: size;
}

.sheet-art img {
  width: min(100%, 40dvh);
  width: min(100cqw, 100cqh, 420px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #2a2a2a, #0e0e0e);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .65);
}

.sheet-meta h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.sheet-meta p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.sheet .time {
  font-size: 12px;
}

.sheet .progress-bar {
  height: 28px;
}

.sheet .progress-thumb {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.sheet-controls {
  justify-content: space-between;
  gap: 4px;
  padding: 0 4px;
}

.sheet-controls .ctl {
  width: 48px;
  height: 48px;
  color: var(--text);
}

.sheet-controls .ctl svg {
  width: 24px;
  height: 24px;
}

.sheet-controls .ctl-skip svg {
  width: 34px;
  height: 34px;
}

.sheet-controls .ctl-skip span {
  font-size: 9px;
}

.sheet-controls .ctl-play {
  width: 68px;
  height: 68px;
}

.sheet-controls .ctl-play svg {
  width: 28px;
  height: 28px;
}

.sheet-extra {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sheet-extra .chip {
  padding: 11px 16px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .list-head,
  .track-btn {
    grid-template-columns: 48px minmax(0, 1fr) 44px 40px;
    gap: 12px;
  }

  .col-index,
  .track-index {
    display: none;
  }

  .track.playing .cover-eq {
    display: grid;
  }

  .track.skeleton {
    grid-template-columns: 32px minmax(0, 1fr) 64px;
    gap: 12px;
  }

  .col-date,
  .track-date,
  .skeleton i:nth-child(3) {
    display: none;
  }

  .track-meta .meta-date {
    display: inline;
  }
}

@media (min-width: 761px) {
  .sheet {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --np-h: 64px;
    --gutter: 20px;
  }

  .pl-cover .cover-gen {
    font-size: 66px;
  }

  .track-add {
    right: 6px;
    opacity: 1;
    width: 40px;
    height: 40px;
  }

  .modal {
    padding: 16px;
  }

  .modal-card {
    max-height: calc(100dvh - 32px);
    padding: 22px 20px;
  }

  .editor-row {
    gap: 14px;
  }

  .cover-pick {
    width: 112px;
    height: 112px;
  }

  .cover-preview .cover-gen {
    font-size: 48px;
  }

  .topbar {
    padding: 12px var(--gutter);
  }

  .show-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 20px var(--gutter) 24px;
  }

  .show-cover {
    width: 150px;
    height: 150px;
  }

  .show-info h1 {
    font-size: 40px;
  }

  .action-bar {
    flex-wrap: wrap;
    padding: 8px var(--gutter) 20px;
  }

  .share-btn {
    padding: 13px 18px;
  }

  .search-inline {
    order: 3;
    max-width: none;
    margin-left: 0;
    flex-basis: 100%;
  }

  .search-inline input {
    height: 46px;
    font-size: 16px;  }

  .search-icon {
    width: 17px;
    height: 17px;
  }

  .search-clear {
    width: 34px;
    height: 34px;
  }

  .track-btn {
    min-height: 64px;
  }

  .track-title {
    font-size: 16px;
  }

  .track-meta {
    font-size: 13px;
  }

  .toast {
    bottom: calc(var(--np-h) + 16px + env(safe-area-inset-bottom, 0px));
  }

  .now-playing-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 0;
    height: calc(var(--np-h) + env(safe-area-inset-bottom, 0px));
    padding: 0 8px 0 12px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .np-center,
  .np-right {
    display: none;
  }

  .np-track {
    cursor: pointer;
    padding: 4px 0;
  }

  .np-art {
    width: 46px;
    height: 46px;
  }

  .np-mini {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .np-mini .ctl,
  .np-mini .ctl-play {
    width: 46px;
    height: 46px;
  }

  .np-mini .ctl {
    color: var(--text);
  }

  .np-mini .ctl svg {
    width: 22px;
    height: 22px;
  }

  .np-mini .ctl-play {
    background: transparent;
    color: var(--text);
  }

  .np-mini .ctl-play svg {
    width: 26px;
    height: 26px;
  }

  .mini-progress {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    display: block;
    height: 2px;
    background: rgba(255, 255, 255, .12);
    pointer-events: none;
  }

  .mini-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--green-bright);
  }
}

@media (max-width: 480px) {
  .show-info h1 {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes eq {
  0%, 100% { height: 30%; }
  50% { height: 100%; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}
