/* SnapMP3 — dark / glassmorphism / neon-gradient, PC-first & responsive */

:root {
  --bg: #07070d;
  --bg-2: #0c0c18;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f3fb;
  --muted: #9aa0bd;
  --muted-2: #6f7592;
  --accent: #a855f7;   /* violet */
  --accent-2: #ec4899; /* pink   */
  --accent-3: #22d3ee; /* cyan   */
  --grad: linear-gradient(120deg, #a855f7 0%, #ec4899 50%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(168,85,247,.9), rgba(236,72,153,.9), rgba(34,211,238,.9));
  --glow: 0 0 0 1px rgba(255,255,255,.05), 0 10px 40px -12px rgba(168,85,247,.55);
  --radius: 16px;
  --radius-sm: 10px;
  --shell: 1160px;
  --header-h: 74px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 6rem; /* room for fixed #player-bar */
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Animated aurora background */
body::before {
  content: "";
  position: fixed;
  inset: -20% -20% -20% -20%;
  z-index: -2;
  background:
    radial-gradient(38vw 38vw at 12% 8%, rgba(168,85,247,.28), transparent 60%),
    radial-gradient(42vw 42vw at 88% 12%, rgba(34,211,238,.22), transparent 60%),
    radial-gradient(46vw 46vw at 50% 108%, rgba(236,72,153,.22), transparent 60%);
  filter: blur(30px);
  animation: drift 22s ease-in-out infinite alternate;
}
body::after { /* fine grain / vignette to sit content on */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(12,12,24,0), rgba(7,7,13,.7) 70%),
    linear-gradient(180deg, rgba(7,7,13,.2), rgba(7,7,13,.85));
  pointer-events: none;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(0,-3%,0) scale(1.06); }
  100% { transform: translate3d(2%,2%,0) scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  html { scroll-behavior: auto; }
}

a { color: var(--accent-3); text-decoration: none; transition: color .18s ease; }
a:hover { color: #7ff0ff; }

::selection { background: rgba(168,85,247,.45); color: #fff; }

/* ── Layout shell ─────────────────────────────────────────── */
main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
}

/* ── Header (glass, sticky) ───────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  height: var(--header-h);
  background: rgba(9, 9, 18, 0.62);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.site-header .logo {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 12px rgba(168,85,247,.35));
  flex-shrink: 0;
}

/* ── Search ───────────────────────────────────────────────── */
.search-form {
  display: flex;
  flex: 1 1 320px;
  max-width: 620px;
  gap: 0.5rem;
  position: relative;
}

.search-field { position: relative; flex: 1; min-width: 0; }

.search-form input {
  width: 100%;
  padding: 0.7rem 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.98rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.search-form input::placeholder { color: var(--muted-2); }
.search-form input:focus {
  outline: none;
  background: var(--surface-2);
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(168,85,247,.55), 0 0 26px -6px rgba(168,85,247,.7);
}

.search-form button {
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 999px;
  background: var(--grad);
  background-size: 160% 160%;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-position .5s ease;
  box-shadow: 0 8px 24px -8px rgba(236,72,153,.6);
}
.search-form button:hover {
  transform: translateY(-1px);
  background-position: 100% 0;
  box-shadow: 0 12px 30px -8px rgba(168,85,247,.75);
}
.search-form button:active { transform: translateY(0); }

.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 120;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: rgba(16, 16, 30, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  max-height: 340px;
  overflow-y: auto;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.7);
}
.search-suggest li {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}
.search-suggest li:hover,
.search-suggest li.active { background: var(--surface-2); color: var(--text); }

.lang-switch { display: flex; gap: 0.25rem; margin-left: auto; }
.lang-switch a {
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
}
.lang-switch a:hover { color: var(--text); border-color: var(--border-strong); }

/* ── Headings / hero ──────────────────────────────────────── */
h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}
h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.2rem 0 1rem;
}

.hero {
  text-align: center;
  padding: 2.6rem 1rem 1.4rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  margin-bottom: 0.8rem;
}
.hero .grad-text,
.logo, .hero h1 .grad-text {
  background: var(--grad);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: hue 8s ease infinite;
}
@keyframes hue { 0%,100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }
.hero p.lede {
  max-width: 560px;
  margin: 0 auto 1.8rem;
  color: var(--muted);
  font-size: 1.12rem;
}

/* 首页大号中央搜索(呼应"搜索即播") */
.hero-search {
  display: flex;
  gap: 0.6rem;
  max-width: 660px;
  margin: 0 auto;
}
.hero-search .search-field { position: relative; flex: 1; min-width: 0; }
.hero-search .hero-search-icon {
  position: absolute;
  left: 1.1rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  opacity: .6;
  pointer-events: none;
}
.hero-search .search-input {
  width: 100%;
  padding: 1rem 1.3rem 1rem 3rem;
  font-size: 1.1rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.hero-search .search-input::placeholder { color: var(--muted-2); }
.hero-search .search-input:focus {
  outline: none;
  background: rgba(255,255,255,.08);
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(168,85,247,.6), 0 0 40px -6px rgba(168,85,247,.55);
}
.hero-search button {
  padding: 0 1.9rem;
  border: none;
  border-radius: 999px;
  background: var(--grad);
  background-size: 160% 160%;
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-position .5s ease;
  box-shadow: 0 10px 28px -8px rgba(236,72,153,.6);
}
.hero-search button:hover {
  transform: translateY(-1px);
  background-position: 100% 0;
  box-shadow: 0 14px 34px -8px rgba(168,85,247,.75);
}
.hero-search .search-suggest { text-align: left; }

@media (max-width: 560px) {
  .hero-search { flex-direction: column; }
  .hero-search button { padding: 0.8rem; }
}

.section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

/* ── Home picks (compact taste below search, keeps search the focus) ── */
.home-picks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
  margin: 3rem auto 0;
}
.pick-col { width: 100%; }
.pick-head {
  margin: 0 0 1.1rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.pick-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem 1.2rem; list-style: none; margin: 0; padding: 0; }
/* 统一方形卡:一行精选专辑,同一形状 */
.pick-card { display: block; width: 150px; color: var(--text); }
.pick-cover {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px -14px rgba(0,0,0,.7);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pick-card:hover .pick-cover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--glow); }
.pick-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.pick-card:hover .pick-cover img { transform: scale(1.06); }
.pick-cover.ph b { font-size: 3rem; font-weight: 800; color: rgba(255,255,255,.9); }
.pick-cap { display: block; margin-top: 0.6rem; text-align: center; }
.pick-cap strong { display: block; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-cap span { display: block; color: var(--muted); font-size: 0.77rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Search results pager ─────────────────────────────────── */
.search-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.6rem 0 0.5rem;
}
.search-pager:empty { display: none; }
.search-pager button {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background .15s ease, border-color .15s ease, transform .12s ease, opacity .15s ease;
}
.search-pager button:hover:not(:disabled) { background: var(--grad); border-color: transparent; transform: translateY(-1px); }
.search-pager button:disabled { opacity: 0.35; cursor: default; }
.search-pager .pager-info { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

/* ── Artist avatar row (home) ─────────────────────────────── */
.artist-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1.4rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.artist-row a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
}
.artist-row .avatar {
  width: 118px; height: 118px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
  border: 2px solid var(--border-strong);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.75);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.artist-row a:hover .avatar {
  transform: translateY(-5px) scale(1.04);
  box-shadow: var(--glow);
  border-color: transparent;
}
.artist-row .avatar-name { font-weight: 600; font-size: 0.98rem; }
.artist-row a:hover .avatar-name { color: var(--accent-3); }

/* ── Grids (artist / album cards) ─────────────────────────── */
.artist-grid,
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.artist-grid li,
.album-grid li {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.artist-grid li::before,
.album-grid li::before { /* gradient wash that fades in on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity .25s ease;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.artist-grid li:hover,
.album-grid li:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-2);
  box-shadow: var(--glow);
}
.artist-grid li:hover::before,
.album-grid li:hover::before { opacity: .16; }

.artist-grid li a {
  display: flex;
  align-items: flex-end;
  padding: 1.4rem 1.2rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.15rem;
  min-height: 92px;
}

/* album card: gradient cover + info */
.album-grid li a { display: block; color: var(--text); }
.album-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}
.album-cover::after { /* vinyl sheen */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 30% 25%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(40% 40% at 78% 82%, rgba(0,0,0,.28), transparent 60%);
  mix-blend-mode: soft-light;
}
.album-cover b {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255,255,255,.9);
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  z-index: 1;
  line-height: 1;
}
.album-cover.has-img { background: var(--surface-2); }
.album-cover.has-img::after { opacity: .35; } /* 真图上光泽弱一些 */
.album-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.album-grid li:hover .album-cover img { transform: scale(1.06); }
.album-grid li:hover .album-cover { transform: none; }
.album-info { display: block; padding: 0.9rem 1rem 1.1rem; }
.album-info strong { display: block; font-size: 1.02rem; margin-bottom: 0.25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-sub { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 500; }

/* ── Detail hero (album / song page) ──────────────────────── */
.detail-hero {
  display: flex;
  gap: 1.8rem;
  align-items: flex-end;
  margin: 0.5rem 0 2rem;
}
.detail-cover {
  width: 220px; height: 220px;
  flex-shrink: 0;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface-2);
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.8), var(--glow);
}
.detail-cover.ph {
  display: flex; align-items: center; justify-content: center;
}
.detail-cover.ph b { font-size: 5rem; font-weight: 800; color: rgba(255,255,255,.9); }
.detail-info { min-width: 0; padding-bottom: 0.4rem; }
.detail-info h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin: 0 0 0.5rem; }
.detail-meta { color: var(--muted); font-size: 1rem; margin: 0 0 1rem; }
.detail-info .copy { margin: 0; max-width: 720px; }

@media (max-width: 680px) {
  .detail-hero { flex-direction: column; align-items: stretch; gap: 1.1rem; }
  .detail-cover { width: 160px; height: 160px; }
}

/* ── Song list ────────────────────────────────────────────── */
.song-list { list-style: none; margin: 0.5rem 0; padding: 0; }

.song-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, transform .12s ease;
  counter-increment: track;
}
.song-list li:hover {
  background: var(--surface);
  border-color: var(--border);
}
ol.song-list { counter-reset: track; }
ol.song-list li::before {
  content: counter(track);
  width: 1.8rem;
  flex-shrink: 0;
  text-align: center;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}

.song-list li img {
  width: 46px; height: 46px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
}
.song-list li a,
.song-list li span:not(.badge) { flex: 1; color: var(--text); min-width: 0; }
.song-list li a { overflow: hidden; text-overflow: ellipsis; }
.song-list li a.current { font-weight: 700; color: var(--accent-3); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-play,
.btn-queue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn-play:hover {
  background: var(--grad);
  border-color: transparent;
  transform: scale(1.08);
  box-shadow: 0 8px 22px -6px rgba(168,85,247,.7);
}
.btn-queue:hover { border-color: var(--accent-3); color: var(--accent-3); }

.btn-play.big {
  width: auto; height: auto;
  border-radius: 999px;
  padding: 0.9rem 2rem;
  margin: 1.4rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  gap: 0.5rem;
  background: var(--grad);
  background-size: 160% 160%;
  border: none;
  color: #fff;
  box-shadow: 0 12px 34px -10px rgba(236,72,153,.7);
}
.btn-play.big:hover { transform: translateY(-2px) scale(1.02); background-position: 100% 0; }

/* ── Copy / FAQ ───────────────────────────────────────────── */
.copy {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 760px;
  padding: 1.2rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-image: var(--grad) 1;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.4rem 0;
}
.faq h3 { margin: 1.2rem 0 0.2rem; color: var(--text); font-size: 1.05rem; }
.faq p { color: var(--muted); margin: 0.2rem 0 0.8rem; }

/* ── Player bar (glass, fixed) ────────────────────────────── */
#player-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(1160px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1.1rem;
  background: rgba(14, 14, 26, 0.72);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.8), 0 0 0 1px rgba(168,85,247,.08);
  overflow: visible; /* 不能裁剪:队列面板从播放条上方弹出,裁了就看不见 */
}
#player-bar[hidden] { display: none; }

#p-cover {
  width: 48px; height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.7);
}
.p-meta { display: flex; flex-direction: column; min-width: 7rem; max-width: 12rem; flex-shrink: 0; }
.p-meta span { font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#p-title { font-weight: 700; }
#p-artist { color: var(--muted); font-size: 0.78rem; }

#player-bar button {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.05rem;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 8px;
  flex-shrink: 0;
  transition: color .15s ease, background .15s ease, transform .12s ease;
}
#player-bar button:hover { color: var(--accent-3); background: var(--surface-2); }
#p-play {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad) !important;
  color: #fff !important;
  border-radius: 50%;
  font-size: 1.15rem;
  box-shadow: 0 8px 22px -6px rgba(168,85,247,.7);
}
#p-play:hover { transform: scale(1.06); }

#p-time { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* range sliders */
#player-bar input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  cursor: pointer;
  accent-color: var(--accent);
}
#p-seek { flex: 1; min-width: 6rem; }
#p-volume { width: 5rem; flex-shrink: 0; }
#player-bar input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(168,85,247,.5), 0 2px 6px rgba(0,0,0,.5);
  transition: transform .12s ease;
}
#player-bar input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
#player-bar input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border: none; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 3px rgba(168,85,247,.5);
}

#p-sleep {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  flex-shrink: 0;
}
#p-sleep option { background: #14141e; color: var(--text); }
#p-sleep-custom {
  width: 4rem; flex-shrink: 0;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; padding: 0.35rem 0.4rem;
}

#p-queue {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  z-index: 10;
  min-width: 260px;
  background: rgba(16, 16, 30, 0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  max-height: 60vh;
  overflow-y: auto;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.7);
}
#p-queue li {
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#p-queue li:hover { background: var(--surface-2); color: var(--text); }
#p-queue li.current { color: var(--accent-3); font-weight: 700; }

/* ── Turnstile overlay ────────────────────────────────────── */
.ts-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5,5,12,.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ts-box {
  background: rgba(18,18,32,.96);
  color: var(--text);
  padding: 28px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  text-align: center;
  max-width: 90vw;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.8);
}
.ts-box p { margin: 0 0 16px; font-size: 15px; color: var(--muted); }
.ts-widget { display: flex; justify-content: center; min-height: 65px; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.26); background-clip: content-box; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 760px) {
  main { padding: 1.5rem 1rem 1rem; }
  .site-header { height: auto; padding: 0.7rem 1rem; }
  .search-form { order: 3; flex-basis: 100%; max-width: none; }
  .lang-switch { margin-left: auto; }
  .hero { padding: 2rem 0.5rem 1rem; }
  .p-meta { min-width: 5rem; }
  #p-volume, #p-sleep, #p-sleep-custom { display: none; } /* declutter on small screens */
}
