:root {
  --bg: #121212;
  --text: #ffffff;
  --muted: #b3b3b3;
  --green: #1db954;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* Video background */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.bg-video.active { opacity: 1; }
.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: -1;
  pointer-events: none;
}

.topbar {
  position: sticky;
  top: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
  z-index: 50;
  transition: transform 0.3s ease;
}
.logo-img {
  height: 34px;
  width: auto;
  display: block;
  background: transparent;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}
.top-left, .top-right { display: flex; align-items: center; gap: 10px; flex-direction: row; }
.top-brand { color: white; text-decoration: none; font-weight: 400; font-size: 1.05rem; cursor: pointer; background: transparent; -webkit-tap-highlight-color: transparent; }
.top-brand:hover,
.top-brand:focus,
.top-brand:active { background: transparent; outline: none; }
.logo-img { cursor: pointer; }
.top-link { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.icon-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
}
.icon-btn[hidden],
#installBtn[hidden],
html.is-app #installBtn { display: none !important; }
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  #installBtn { display: none !important; }
}
.search-input {
  background: #282828;
  border: none;
  border-radius: 20px;
  padding: 8px 14px;
  color: white;
  width: 180px;
  outline: none;
}
.search-input-popup {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 8px;
  padding: 12px 14px;
  color: white;
  font-size: 1rem;
  outline: none;
  margin-bottom: 8px;
}
.search-input-popup::placeholder { color: #888; }
.search-popup {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, calc(100% - 32px));
  max-height: 60vh;
  background: rgba(20,20,28,0.94);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 200;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}
.search-popup.hidden { display: none; }
.search-popup-inner { padding: 8px; }
.install-sheet {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, calc(100% - 32px));
  background: rgba(20,20,28,0.94);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 200;
  padding: 16px 18px 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  color: white;
}
.install-sheet.hidden { display: none; }
.install-title { font-size: 0.95rem; margin-bottom: 8px; }
.install-sheet ol {
  margin: 0;
  padding-left: 1.15rem;
  color: rgba(255,255,255,0.82);
  font-weight: 300;
  font-size: 0.88rem;
  line-height: 1.45;
}
.install-sheet li + li { margin-top: 6px; }
.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.search-result:hover { background: rgba(255,255,255,0.08); }
.search-result img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
}
.search-result .sr-title { font-weight: 400; }
.search-result .sr-meta { font-size: 0.75rem; color: var(--muted); }

/* Main */
.main { padding: 16px 16px 140px; max-width: 1100px; margin: 0 auto; }
.view.hidden { display: none; }

/* Playlist Grid (Home) */
.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px;
}
.playlist-card {
  cursor: pointer;
}
.playlist-card img,
.playlist-card video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  display: block;
  background: #000;
}
.pl-card-media { position: relative; }
.pl-heart {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 26px;
  height: 26px;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.7));
}
.pl-heart svg { display: block; width: 100%; height: 100%; fill: #fff; }
.pl-cover-wrap { position: relative; display: inline-block; }
.pl-heart-cover { top: 12px; left: 12px; width: 34px; height: 34px; }
.pl-heart-cover[hidden] { display: none; }
.pl-plus {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  z-index: 2;
  cursor: pointer;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.7));
}
.pl-plus svg { display: block; width: 100%; height: 100%; fill: #fff; }
.pl-plus-lg { top: 12px; left: 12px; width: 36px; height: 36px; }
.mine-cover-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  opacity: 0.4;
  background: transparent;
}
.playlist-card .mine-cover-img {
  background: transparent;
}
.pl-mine-cover {
  width: 300px;
  height: 300px;
  margin-bottom: 0;
  border-radius: 8px;
  background: transparent;
  position: relative;
  overflow: hidden;
}
.pl-mine-cover .mine-cover-img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}
.pl-mine-cover[hidden] { display: none; }
.mine-label {
  position: absolute;
  top: 42px;
  left: 12px;
  right: 12px;
  z-index: 2;
  text-align: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.25;
  pointer-events: none;
}
.pl-mine-cover .mine-label {
  top: 54px;
  font-size: 1.35rem;
}
.add-local { color: #fff; }
.add-local[hidden] { display: none; }
.add-local svg { fill: #fff; display: block; }
.mine-note {
  margin-top: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  font-weight: 300;
}
.mine-note[hidden] { display: none; }
.mine-note button {
  margin-left: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font: inherit;
  cursor: pointer;
}
#videoShell {
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
#videoFrame {
  position: fixed;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 110;
}
#videoFrame.show-video {
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  max-height: none;
  margin: 0;
  transform: none;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
#videoPlayer {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 240px);
  background: #000;
  border-radius: 0;
  object-fit: contain;
}
.video-fs,
.video-x {
  display: none;
  position: absolute;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
#videoFrame.show-video .video-fs {
  display: none;
}
#videoShell:fullscreen,
#videoShell:-webkit-full-screen {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  pointer-events: auto !important;
  background: #000;
}
#videoShell:fullscreen #videoFrame.show-video,
#videoShell:-webkit-full-screen #videoFrame.show-video {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: auto;
  height: auto;
  max-height: none;
  transform: none;
  margin: 0;
  opacity: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  z-index: 1;
  pointer-events: none;
}
#videoShell:fullscreen #videoPlayer,
#videoShell:-webkit-full-screen #videoPlayer {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  pointer-events: none;
}
#videoShell:fullscreen .player,
#videoShell:-webkit-full-screen .player {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  pointer-events: auto;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.78) 100%);
}
#videoShell:fullscreen .player *,
#videoShell:-webkit-full-screen .player * {
  pointer-events: auto;
}
#videoShell:fullscreen .video-fs,
#videoShell:-webkit-full-screen .video-fs {
  display: none;
}
#videoShell:fullscreen .video-x,
#videoShell:-webkit-full-screen .video-x {
  display: flex;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  z-index: 30;
  pointer-events: auto;
}
html.video-open #videoShell {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 120;
  background: #000;
  pointer-events: none;
}
html.video-open #videoFrame.show-video {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: auto;
  height: auto;
  max-height: none;
  margin: 0;
  opacity: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  pointer-events: none;
}
html.video-open #videoPlayer {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
html.video-open .video-x {
  display: flex;
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  z-index: 120;
  pointer-events: auto;
}
html.video-open .player { visibility: hidden; }
#videoShell .video-transport { display: none; }
html.video-open #videoShell .video-transport,
#videoShell:fullscreen .video-transport,
#videoShell:-webkit-full-screen .video-transport {
  display: flex;
  z-index: 25;
  pointer-events: auto;
}
.controls-row .ctrl svg { width: 22px; height: 22px; flex: none; }
.controls-row #btnPrev svg,
.controls-row #btnNext svg { width: 26px; height: 26px; }
.controls-row .play-btn { width: 48px; height: 48px; flex: none; }
.controls-row .play-btn svg { width: 26px; height: 26px; }
.local-file-input {
  position: fixed;
  left: -100px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.radio-banner {
  display: block;
  grid-column: span 2;
  margin: 0;
  max-width: none;
  min-width: 0;
  text-decoration: none;
}
.radio-banner img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.radio-banner:hover img {
  opacity: 0.9;
}
.playlist-card h3 {
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 2px;
}
.playlist-card .meta {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Playlist View */
.back-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  margin-bottom: 12px;
}
.playlist-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 699px) {
  .playlist-header {
    align-items: center;
    text-align: center;
  }
  .pl-info { text-align: center; }
  .pl-actions { justify-content: center; }
  .pl-tabs { justify-content: center; }
  .tracklist { max-width: 520px; margin: 0 auto; }
}
.pl-cover {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  background: #111;
}
.pl-info h1 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 4px;
}
.pl-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.pl-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: -8px 0 18px;
}
.pl-tabs[hidden] { display: none; }
.pl-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 4px 0;
  color: rgba(255,255,255,0.48);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}
.pl-tab-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pl-tab-x {
  background: none;
  border: 0;
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.list-name {
  background: transparent;
  border: 0;
  border-bottom: 0;
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  width: 140px;
  padding: 4px 0;
  outline: none;
}
.list-pop {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 4px;
}
.list-pop button {
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 2px 0;
}
.pl-actions { display: flex; align-items: center; gap: 12px; }
.play-all-btn {
  background: white;
  color: black;
  border: none;
  border-radius: 24px;
  padding: 12px 48px;
  font-weight: 400;
  font-size: 0.95rem;
  cursor: pointer;
}
.play-all-btn:hover { transform: scale(1.03); }

/* Tracklist */
.track {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  padding: 8px 8px;
  border-radius: 4px;
  cursor: pointer;
  color: rgba(255,255,255,0.48);
  line-height: 1.25;
  transition: color 0.2s;
}
.track.mine,
.track.mine.custom { grid-template-columns: 36px minmax(0, 1fr) auto; }
.track.fav,
.track.fav.flist { grid-template-columns: 22px 32px minmax(0, 1fr) auto; }
.track:hover { background: rgba(255,255,255,0.06); }
.track .title { color: rgba(255,255,255,0.48); }
.track.heard { color: rgba(255,255,255,0.78); }
.track.heard .title { color: rgba(255,255,255,0.78); }
.track.active { color: #ffffff; }
.track.active .title { color: #ffffff; }
.track .num { text-align: center; font-size: 0.85rem; color: var(--muted); }
.track .title { font-weight: 400; min-width: 0; }
.track-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.track .from {
  margin-left: 8px;
  font-weight: 400;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}
.fav-btn[hidden] { display: none; }
.fav-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fav-btn svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.fav-btn.on { color: #fff; }
.fav-btn.on svg { fill: currentColor; stroke: none; }
.track .fav-btn { opacity: 1; padding: 0; width: 22px; height: 18px; }
.drag-handle,
.mine-list-btn {
  appearance: none;
  background: none;
  border: 0;
  color: rgba(255,255,255,0.8);
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
}
.mine-list-btn { cursor: pointer; touch-action: auto; }
.drag-handle svg,
.mine-list-btn svg { display: block; }
.track.dragging {
  opacity: 0.85;
  position: relative;
  z-index: 3;
}
.track.drop-before { box-shadow: inset 0 1px 0 rgba(255,255,255,0.85); }
.track.drop-after { box-shadow: inset 0 -1px 0 rgba(255,255,255,0.85); }
.mine-remove {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}
.mine-remove:hover,
.mine-remove:focus {
  background: transparent;
  outline: none;
}

/* Bottom Player */
.player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(20,20,30,0.55) 100%);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
  padding: 10px 14px 12px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.player-main {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.mini-cover {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.player-text { flex: 1; min-width: 0; text-align: center; }
#playerTitle {
  font-size: 1.05rem;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.player-sub { display: none; }
.player-sub { font-size: 0.75rem; color: var(--muted); margin-bottom: 4px; }
.progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--muted);
  padding: 14px 0;
  margin: -10px 0;
}
.progress-row #progress {
  flex: 1;
  height: 20px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.progress-row #progress::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(to right, #fff var(--progress, 0%), #4d4d4d var(--progress, 0%));
  border-radius: 2px;
}
.progress-row #progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  margin-top: -4.5px;
  cursor: pointer;
}
.controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.ctrl {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
}
.ctrl:hover { color: white; }
.ctrl.toggle.active { color: var(--green); }
.play-btn {
  background: #ffffff !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.play-btn svg { fill: #000 !important; }

/* Now Playing */
.now-playing {
  position: fixed;
  inset: 0;
  z-index: 400;
  overflow: hidden;
  color: white;
}
.now-playing.hidden { display: none; }
body.lyrics-open { overflow: hidden; }
.np-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}
.now-playing::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 0;
  pointer-events: none;
}
.np-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  z-index: 1;
}
.np-content {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  padding: 64px 20px 140px;
  text-align: center;
}
.np-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.np-title-row h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.25;
}
.np-fav {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: rgba(255,255,255,0.92);
}
.np-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 3;
  width: 44px;
  height: 44px;
}
.np-transport {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 20px 10px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 55%);
}
.np-transport button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.9);
  font-family: inherit;
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  min-width: 44px;
  min-height: 52px;
  cursor: pointer;
}
.np-transport svg { display: block; }
.np-transport .np-play {
  width: 62px;
  height: 62px;
  min-width: 62px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.np-transport .np-play svg { fill: #000; display: block; }
.np-lyrics {
  white-space: pre-wrap;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 22px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.85);
}
.np-lyrics[dir="rtl"] { text-align: center; }
.np-meta {
  margin-top: 10px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
.np-style {
  margin-top: 6px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
.np-tools {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 8px 0 10px;
}
.np-translate,
.np-lang {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(0,0,0,0.28);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 999px;
  font: inherit;
  font-size: 0.8rem;
  line-height: 1;
  text-align: center;
}
.np-translate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  cursor: pointer;
}
.np-lang {
  min-height: 32px;
  padding: 0 10px;
  max-width: 70vw;
  text-align-last: center;
}
#playerTitle { cursor: pointer; }

/* Bio */
.bio-content {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 20px 0 40px;
}
.bio-avatar {
  width: 220px;
  height: 220px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}
.bio-text {
  flex: 1;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
  padding-top: 8px;
}
.bio-text p { margin: 0; }
.bio-title {
  font-size: 0.92rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.62);
  margin-bottom: 22px;
}
.bio-title strong {
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.06em;
}
.bio-line {
  font-size: 1.42rem;
  font-weight: 300;
  line-height: 1.4;
  color: #fff;
  max-width: 16em;
  margin-bottom: 28px;
}
.bio-text p.bio-line {
  margin-top: 1.4em;
  margin-bottom: 1.4em;
}
.bio-note {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.48);
}
.bio-about p {
  font-size: 0.92rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.55;
  color: rgba(255,255,255,0.62);
  margin: 0 0 0.9em;
}
.bio-about p:last-child { margin-bottom: 0; }
.bio-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.bio-mail svg { opacity: 0.72; }
.bio-mail:hover { opacity: 0.72; }
.bio-text p.bio-privacy {
  margin-top: 28px;
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.4);
}
.bio-privacy strong {
  display: block;
  margin-bottom: 0.3em;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
}

/* Home bio teaser */
.home-bio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
}
.home-bio-logo {
  width: 100%;
  height: 120px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
.home-bio-text {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #ddd;
  max-height: 5.8em;
  overflow: hidden;
}
.home-bio-text a {
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}
.home-bio-text a:hover { border-bottom-color: #fff; }

@media (min-width: 800px) {
  .home-bio {
    grid-template-columns: 1.6fr 4.4fr;
    gap: 24px;
    align-items: flex-end;
  }
  .home-bio-logo { height: 140px; }
  .home-bio-text {
    margin-bottom: 38px;
    padding-bottom: 0;
  }
}

/* Bio slider */
.bio-slider {
  position: relative;
  width: 280px;
  height: 280px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
}
.bio-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.bio-slide.logo {
  object-fit: contain;
  background: transparent;
  filter: brightness(0) invert(1);
}
.bio-slide.active { opacity: 1; }

@media (max-width: 799px) {
  .home-bio {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .home-bio-logo {
    width: 70%;
    height: auto;
    max-height: 100px;
  }
  .home-bio-text {
    width: 100%;
    max-height: none;
    text-align: left;
  }
  .bio-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .bio-text { margin-top: 16px; }
  .bio-line { margin-left: auto; margin-right: auto; }
}

/* Desktop */
@media (min-width: 700px) {
  .playlist-header {
    flex-direction: row;
    align-items: flex-end;
    gap: 24px;
  }
  .pl-cover, .pl-mine-cover { width: 400px; height: 400px; }
  .pl-info { flex: 1; }
  .pl-actions { margin-top: auto; }
  .playlist-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* Mobile: logo inset to align with playlist images */
@media (max-width: 799px) {
  .topbar { padding-left: 21px; padding-right: 16px; }
  .main { padding-left: 16px; padding-right: 16px; }
}

/* Align top & bottom bars with playlist grid on desktop */
@media (min-width: 800px) {
  .topbar {
    padding-left: 0;
    padding-right: 0;
  }
  .topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
  }
  .player {
    padding-left: 0;
    padding-right: 0;
  }
  .player > * {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    width: 100%;
    box-sizing: border-box;
  }
}
/* Home symbol logo */
.home-symbol-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 32px auto 8px;
  text-decoration: none;
  cursor: pointer;
}
.home-symbol {
  width: 140px;
  height: auto;
}
.home-symbol .symbol-main {
  fill: #fff;
  opacity: 0.5;
  animation: symbolPulse 2.6s ease-in-out infinite;
}
.home-intro {
  max-width: 680px;
  margin: -4px auto 56px;
  text-align: center;
  padding: 0 16px;
  font-size: 1.18rem;
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.9);
}
.home-intro p { margin: 0; }
.i18n .lang-auto { white-space: pre-wrap; }
@keyframes symbolPulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}
.home-symbol .wave {
  fill: #fff;
  transform-origin: 294px 320px;
  animation: waveOut 3.4s ease-in-out infinite;
}
.home-symbol .pair1 { animation-delay: 0s; }
.home-symbol .pair2 { animation-delay: 1.13s; }
.home-symbol .pair3 { animation-delay: 2.26s; }
@keyframes waveOut {
  0%   { transform: scale(0.5); opacity: 0; }
  12%  { opacity: 0.75; }
  100% { transform: scale(1.85); opacity: 0; }
}
@keyframes waveOut {
  0%   { transform: scale(0.5); opacity: 0; }
  15%  { opacity: 0.75; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (min-width: 800px) {
  .home-bio-bar {
    margin-top: 24px;
    padding: 20px 0;
  }
  .home-bio-media {
    width: calc(50% - 12px);
    max-width: none;
  }
  .playlist-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 799px) {
  .home-bio-bar {
    background: transparent;
    padding: 12px 0;
  }
  .home-bio-media {
    width: 100%;
    max-width: none;
  }
}
