:root {
  color-scheme: dark;
  --bg: #101010;
  --bg-soft: #171717;
  --panel: #242424;
  --panel-2: #303030;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f8f8f8;
  --muted: rgba(255, 255, 255, 0.58);
  --accent: #ff2d46;
  --accent-soft: #ffb9c2;
  --gold: #b98a54;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --spring: cubic-bezier(0.2, 0.9, 0.18, 1);
  --tap: rgba(255, 255, 255, 0.18);
  --dock-bottom: 34px;
  --dock-gap: 10px;
  --bottom-nav-height: 64px;
  --sticky-content-gap: 40px;
}

* {
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

html, body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  overscroll-behavior-y: auto;
  touch-action: pan-x pan-y;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow-x: hidden;
  overscroll-behavior-y: auto;
}

body.sheet-open {
  overflow: hidden;
}

body.sheet-open .app {
  pointer-events: none;
}

body.sheet-open .sheet {
  pointer-events: auto;
}

button, input {
  font: inherit;
}

input {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
  touch-action: auto;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

button:focus {
  outline: none;
}

button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

button, .entity-card, .song-row, .mini-player, .player, .sheet-panel, .hero-card, .collection-card {
  transition: transform 420ms var(--spring), opacity 260ms ease, background 260ms ease, box-shadow 420ms var(--spring), filter 260ms ease;
}

button:active, .entity-card:active, .song-row:active, .collection-card:active,
.is-pressing {
  transform: scale(1.045);
  filter: brightness(1.28) saturate(1.12);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 18px 50px rgba(255,255,255,0.1);
  animation: tap-bounce 520ms var(--spring);
}

.app {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 20px calc(160px + env(safe-area-inset-bottom));
  overscroll-behavior-y: auto;
}

.views {
  position: relative;
}

.view {
  display: none;
  animation: view-in 360ms ease both;
}

.view.is-active {
  display: block;
}

.topbar, .plain-header, .detail-top, .section-title, .song-row, .mini-player, .player-top, .sheet-header, .search-box, .bottom-nav {
  display: flex;
  align-items: center;
}

.topbar, .plain-header {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.sticky-panel {
  position: relative;
  z-index: 25;
  margin: 0 -20px 18px;
  padding: max(20px, env(safe-area-inset-top)) 20px 0;
  background: linear-gradient(180deg, #101010 0%, rgba(16,16,16,0.99) 92%, rgba(16,16,16,0) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#view-search.is-active .sticky-panel,
#view-collections.is-active .sticky-panel {
  position: fixed;
  left: 50%;
  top: 0;
  width: min(100%, 520px);
  transform: translateX(-50%);
  margin: 0;
}

#view-search.is-active .search-results {
  padding-top: var(--search-sticky-space, calc(220px + env(safe-area-inset-top)));
}

#view-collections.is-active .collection-hero {
  margin-top: var(--collection-sticky-space, calc(106px + env(safe-area-inset-top)));
}

.sticky-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 7px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(16,16,16,0.44), rgba(16,16,16,0));
}

.sticky-panel .plain-header {
  margin-bottom: 16px;
}

.search-sticky + .search-results,
.collection-sticky + .collection-hero {
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

h1, h2, h3, p {
  margin: 0;
}

.topbar h1, .plain-header h1 {
  font-size: 31px;
  line-height: 1.08;
  letter-spacing: 0;
}

.round-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--panel);
  font-size: 22px;
  font-weight: 800;
}

.round-icon.primary, .pill-button, .big-play, .primary-action {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 34px rgba(255, 45, 70, 0.28);
}

.hero-carousel {
  position: relative;
  margin-bottom: 22px;
}

.hero-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  touch-action: pan-x pan-y;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hero-track::-webkit-scrollbar { display: none; }

.hero-card {
  position: relative;
  flex: 0 0 100%;
  touch-action: pan-x pan-y;
  overflow: hidden;
  min-height: 156px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 210, 126, 0.95), rgba(255, 143, 113, 0.9)),
    #d9b069;
  padding: 22px;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.hero-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(255, 45, 70, 0.95), rgba(118, 88, 255, 0.85));
}

.hero-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(225, 210, 185, 0.94), rgba(131, 112, 92, 0.86));
}

.hero-card:nth-child(4) {
  background: linear-gradient(135deg, rgba(132, 176, 159, 0.96), rgba(54, 82, 73, 0.9));
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -36px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
}

.hero-card span, .hero-card p {
  color: rgba(18, 18, 18, 0.66);
  font-weight: 700;
}

.hero-card:nth-child(2) span,
.hero-card:nth-child(2) p,
.hero-card:nth-child(2) h2,
.hero-card:nth-child(4) span,
.hero-card:nth-child(4) p,
.hero-card:nth-child(4) h2 {
  color: #fff;
}

.hero-card h2 {
  max-width: 11ch;
  margin: 10px 0 10px;
  color: #111;
  font-size: 34px;
  line-height: 1.08;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  padding: 0;
}

.hero-dot.is-active {
  width: 20px;
  background: var(--accent);
}

.big-play {
  position: relative;
  z-index: 1;
  min-height: 46px;
  margin-top: 18px;
  border-radius: 16px;
  padding: 0 20px;
  font-weight: 850;
}

.segment, .search-filter {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  touch-action: pan-x pan-y;
  padding: 18px 4px 8px;
  margin: 0 -4px;
  scrollbar-width: none;
}

.segment::-webkit-scrollbar, .search-filter::-webkit-scrollbar { display: none; }

.chip, .result-chip {
  flex: 0 0 auto;
  min-height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  padding: 0 20px;
  font-size: 16px;
  font-weight: 850;
  touch-action: pan-x pan-y;
}

.chip.is-active, .result-chip.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 45, 70, 0.32), 0 12px 30px rgba(255, 45, 70, 0.28);
}

.two-tabs {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 2px 0 22px;
  padding: 0 2px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.two-tabs::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: var(--tab-w, 30px);
  height: 3px;
  border-radius: 999px;
  background: #fff;
  transform: translateX(var(--tab-x, 0));
  transition: transform 460ms var(--spring), width 460ms var(--spring);
}

.tab-button {
  position: relative;
  min-height: 42px;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font-size: 15px;
  font-weight: 850;
}

.tab-button.is-active {
  color: #fff;
  box-shadow: none;
}

.section-block {
  margin-top: 10px;
  touch-action: pan-y;
}

.section-block.is-sliding-left {
  animation: content-slide-left 420ms var(--spring) both;
}

.section-block.is-sliding-right {
  animation: content-slide-right 420ms var(--spring) both;
}

.home-pager {
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  touch-action: pan-y;
  contain: paint;
  border-radius: 20px;
}

.home-pages {
  display: flex;
  gap: 20px;
  width: 100%;
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.home-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-content: start;
  min-width: 0;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.home-pager .home-pages {
  will-change: transform;
}

.home-pager.is-dragging .home-pages {
  transition: none;
}

.section-title {
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title h2 {
  font-size: 20px;
}

.section-title p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.entity-card {
  width: 100%;
  min-width: 0;
  height: fit-content;
  border-radius: 20px;
  background: var(--panel);
  padding: 12px;
  text-align: left;
  touch-action: pan-y;
}

.entity-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #8f6b49, #d7b06f 48%, #3a2525);
  color: #fff;
  font-size: 40px;
  font-weight: 950;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.entity-art.round {
  border-radius: 50%;
}

.entity-card h3 {
  margin-top: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.entity-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.search-box {
  gap: 12px;
  min-height: 58px;
  border-radius: 18px;
  background: var(--panel);
  padding: 0 16px;
}

.search-box span {
  color: var(--muted);
  font-size: 26px;
}

input {
  width: 100%;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

#clear-search {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 28px;
}

.search-results {
  display: grid;
  gap: 24px;
  min-width: 0;
  overflow: visible;
  padding-bottom: 4px;
}

.result-group {
  min-width: 0;
  overflow: visible;
}

.result-group.is-horizontal {
  margin: 0 -20px;
  overflow: visible;
}

.result-group.is-horizontal h2 {
  padding: 0 20px;
}

.result-group h2 {
  margin-bottom: 12px;
  font-size: 21px;
}

.horizontal-results {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  touch-action: pan-x pan-y;
  width: calc(100% + 72px);
  margin: 0;
  padding: 0 20px 6px;
  scroll-snap-type: none;
  scroll-padding-left: 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.horizontal-results::-webkit-scrollbar { display: none; }

.horizontal-results .entity-card {
  width: clamp(136px, calc((100vw - 128px) / 2), 176px);
  min-width: clamp(136px, calc((100vw - 128px) / 2), 176px);
  flex: 0 0 auto;
  scroll-snap-align: none;
  touch-action: pan-x pan-y;
}

.search-results .song-list,
.search-results .result-group {
  width: 100%;
}

.search-results .song-row {
  border-radius: 18px;
}

.song-list {
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow: visible;
}

.song-row {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  max-width: 100%;
  min-height: 76px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  padding: 10px 12px;
  text-align: left;
  overflow: hidden;
  touch-action: pan-y;
}

.song-row button:focus-visible,
.song-row button:focus,
.song-row button:active,
.song-info:focus-visible,
.song-info:focus,
.song-info:active,
.song-art:focus-visible,
.song-art:focus,
.song-art:active,
.song-more:focus-visible,
.song-more:focus,
.song-more:active {
  outline: none;
  border-color: transparent;
  box-shadow: none;
}

.song-row.is-current {
  background: rgba(255, 45, 70, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 45, 70, 0.18);
}

.song-index {
  display: none;
  width: 26px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.song-art {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #8f6b49, #ff2d46);
  font-weight: 900;
}

.song-info {
  min-width: 0;
  max-width: 100%;
  flex: 1;
  display: grid;
  align-content: center;
  gap: 5px;
  text-align: left;
  background: transparent;
  padding: 0;
}

.song-info h3, .song-info p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-info h3 {
  font-size: 16px;
}

.song-info p {
  margin-top: 0;
  color: var(--muted);
  font-size: 13px;
}

.song-more {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
}

.collection-hero {
  min-height: 178px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f2e9eb, #c7b7bd);
  color: #171717;
  padding: 28px;
  box-shadow: var(--shadow);
}

.collection-hero h2 {
  max-width: 12ch;
  margin-bottom: 8px;
  font-size: 28px;
}

.collection-hero p {
  color: rgba(0, 0, 0, 0.58);
}

.pill-button {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 850;
}

.collection-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.collection-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 20px;
  background: var(--panel);
  padding: 14px;
}

.collection-card .entity-art {
  width: 66px;
  flex: 0 0 66px;
}

.collection-card div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.collection-card h3 {
  font-size: 18px;
}

.collection-card p {
  color: var(--muted);
  font-size: 13px;
}

.detail-view {
  padding-top: 64px;
  padding-bottom: 18px;
}

.detail-top {
  position: fixed;
  left: 50%;
  top: max(10px, env(safe-area-inset-top));
  z-index: 45;
  width: min(calc(100% - 40px), 480px);
  transform: translateX(-50%);
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 0 14px;
  background: linear-gradient(180deg, #101010 0%, rgba(16,16,16,0.92) 72%, rgba(16,16,16,0) 100%);
}

.detail-hero {
  text-align: center;
}

.detail-art {
  display: grid;
  place-items: center;
  width: min(68vw, 270px);
  aspect-ratio: 1;
  margin: 0 auto 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #9c744a, #d6b172 48%, #242424);
  box-shadow: 0 32px 70px rgba(185, 138, 84, 0.25);
  font-size: 62px;
  font-weight: 950;
}

.detail-hero h1 {
  font-size: 30px;
  line-height: 1.15;
}

.detail-hero p {
  margin-top: 10px;
  color: var(--muted);
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0 22px;
}

.action-button {
  min-height: 58px;
  border-radius: 14px;
  background: #454545;
  font-size: 18px;
  font-weight: 850;
}

.mini-player {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-bottom) + var(--bottom-nav-height) + var(--dock-gap));
  z-index: 38;
  width: min(calc(100% - 30px), 490px);
  min-height: 72px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(48, 48, 50, 0.82), rgba(32, 32, 34, 0.76));
  padding: 10px 12px;
  gap: 12px;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(28px) saturate(1.45);
  -webkit-backdrop-filter: blur(28px) saturate(1.45);
}

.mini-player, .mini-player * {
  touch-action: manipulation;
}

.mini-player.is-pressing-main {
  transform: translateX(-50%) scale(1.025);
  filter: brightness(1.35) saturate(1.12);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.28), 0 24px 64px rgba(255,255,255,0.08), 0 22px 58px rgba(0,0,0,0.46);
}

.mini-player.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(14px);
}

.mini-player.is-opening {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(36px) scale(0.96);
}

.mini-art {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--gold), var(--accent));
}

.mini-copy {
  min-width: 0;
  flex: 1;
  text-align: left;
  padding-left: 2px;
}

.mini-copy strong, .mini-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-copy small {
  margin-top: 4px;
  color: var(--muted);
}

.mini-control {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  font-size: 19px;
  font-weight: 850;
  flex: 0 0 auto;
}

#mini-play {
  background: var(--accent);
  color: #fff;
  font-size: 18px;
}

.mini-queue {
  font-size: 22px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: var(--dock-bottom);
  z-index: 37;
  justify-content: space-around;
  width: min(calc(100% - 30px), 490px);
  min-height: 64px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(28, 28, 30, 0.92), rgba(16, 16, 18, 0.88));
  padding: 8px 16px;
  box-shadow: 0 22px 56px rgba(0,0,0,0.44);
  backdrop-filter: blur(30px) saturate(1.45);
  -webkit-backdrop-filter: blur(30px) saturate(1.45);
  overflow: hidden;
}

.bottom-nav::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: var(--nav-w, 78px);
  height: calc(100% - 18px);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  transform: translateX(var(--nav-x, 16px));
  transition: transform 520ms var(--spring), width 520ms var(--spring);
}

.nav-item {
  position: relative;
  z-index: 1;
  min-width: 78px;
  min-height: 44px;
  border-radius: 18px;
  background: transparent;
  color: rgba(255, 255, 255, 0.52);
  font-size: 18px;
  font-weight: 850;
}

.nav-item.is-active {
  color: #fff;
  background: transparent;
}

.player {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #111;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}

.player.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.player-collapse span {
  display: block;
  transform: rotate(-90deg) translateX(-1px);
  font-size: 30px;
  line-height: 1;
}

.player-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(185, 138, 84, 0.78), rgba(17,17,17,0.8) 45%, #111 100%),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.22), transparent 22rem);
}

.player-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto auto auto auto;
  gap: 18px;
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
}

.player-top {
  justify-content: space-between;
  text-align: center;
}

.player-top p {
  color: rgba(255,255,255,0.68);
  font-size: 12px;
}

.glass {
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cover-panel, .lyrics-panel {
  display: grid;
  place-items: center;
}

.player-cover {
  display: grid;
  place-items: center;
  width: min(74vw, 330px);
  aspect-ratio: 1;
  border-radius: 20px;
  background: linear-gradient(135deg, #c58f56, #f2c77e 48%, #1d1d1d);
  box-shadow: 0 34px 78px rgba(0,0,0,0.42);
  font-size: 72px;
  font-weight: 950;
}

body.is-playing .player-cover {
  animation: cover-breathe 4.8s ease-in-out infinite;
}

.lyrics-panel {
  display: none;
  align-content: center;
}

.player.lyrics-mode .cover-panel {
  display: none;
}

.player.lyrics-mode .lyrics-panel {
  display: grid;
}

.lyrics-lines {
  display: grid;
  gap: 18px;
  width: 100%;
  max-height: 42vh;
  overflow: auto;
  color: rgba(255,255,255,0.34);
  font-size: 25px;
  font-weight: 850;
  line-height: 1.28;
}

.lyrics-lines p.is-active {
  color: #fff;
  transform: translateX(4px) scale(1.02);
}

.track-meta {
  text-align: left;
}

.track-meta h1 {
  font-size: 25px;
}

.track-meta p {
  margin-top: 7px;
  color: rgba(255,255,255,0.74);
}

.progress-area input {
  width: 100%;
  accent-color: #fff;
}

.progress-area div {
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
}

.transport {
  display: grid;
  grid-template-columns: 44px 58px 76px 58px 44px;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.mode-button, .transport-button, .transport-main {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.mode-button {
  width: 44px;
  height: 44px;
  font-size: 18px;
  font-weight: 850;
}

.mode-button.is-active {
  background: var(--accent);
}

.transport-button {
  width: 58px;
  height: 58px;
  font-size: 34px;
  font-weight: 800;
}

.transport-main {
  width: 76px;
  height: 76px;
  background: #fff;
  color: #111;
  font-size: 28px;
  font-weight: 950;
}

.player-tools {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.player-tools button {
  min-height: 46px;
  border-radius: 16px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.82);
  font-weight: 800;
}

.danmaku-layer {
  position: absolute;
  inset: 120px 0 auto;
  height: 180px;
  overflow: hidden;
  pointer-events: none;
}

.danmaku {
  position: absolute;
  left: calc(100vw + 40px);
  top: var(--top);
  min-width: max-content;
  border-radius: 999px;
  background: rgba(255,255,255,0.13);
  padding: 7px 13px;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  animation: danmaku 12s linear forwards;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  background: rgba(0,0,0,0.46);
  opacity: 0;
  pointer-events: none;
}

.sheet.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sheet-panel {
  width: min(100%, 520px);
  max-height: 78vh;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: #1d1d1f;
  padding: 10px 20px max(22px, env(safe-area-inset-bottom));
  transform: translateY(100%);
}

.sheet.is-open .sheet-panel {
  transform: translateY(0);
}

.sheet-handle {
  width: 42px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
}

.sheet-header {
  justify-content: space-between;
  margin-bottom: 14px;
}

.sheet-header p {
  color: var(--muted);
  font-size: 12px;
}

.sheet-body {
  display: grid;
  gap: 10px;
  max-height: 58vh;
  overflow: auto;
}

.sheet-input-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
  border-radius: 16px;
  background: var(--panel);
  padding: 8px;
}

.sheet-input-row button, .sheet-option {
  min-height: 44px;
  border-radius: 14px;
  background: var(--accent);
  padding: 0 14px;
  font-weight: 850;
}

.sheet-option {
  background: var(--panel);
  text-align: left;
}

.toast {
  position: fixed;
  left: 50%;
  top: calc(12px + env(safe-area-inset-top));
  z-index: 100;
  min-width: min(88vw, 320px);
  max-width: min(88vw, 420px);
  transform: translateX(-50%) translateY(-22px) scale(0.98);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  background: rgba(30, 30, 32, 0.78);
  color: #fff;
  padding: 13px 16px;
  text-align: center;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 18px 52px rgba(0,0,0,0.38);
  backdrop-filter: blur(26px) saturate(1.35);
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.empty-state {
  border-radius: 20px;
  background: var(--panel);
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

@keyframes view-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes content-slide-left {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes content-slide-right {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes tap-bounce {
  0% { transform: scale(1); }
  46% { transform: scale(1.055); }
  100% { transform: scale(1.045); }
}

@keyframes cover-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.015); }
}

@keyframes danmaku {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100vw - 100% - 120px)); }
}

@media (max-width: 380px) {
  .app { padding-left: 16px; padding-right: 16px; }
  .transport { gap: 9px; grid-template-columns: 40px 54px 72px 54px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
