/* ============================================================
   Silver Courtyard | 虚拟之音创作计划
   Background art & theme system from stardust-blog
   ============================================================ */

/* ========== Stardust Color System ========== */
:root {
  --c1: #7c3aed;
  --c2: #e04090;
  --c3: #0891b2;
  --c4: #f59e0b;
  --text: #2d1b4e;
  --text2: #5c4080;
  --surf: rgba(255, 255, 255, 0.55);
  --surf-h: rgba(255, 255, 255, 0.78);
  --bdr: rgba(124, 58, 237, 0.1);
  --sh: 0 4px 30px rgba(0, 0, 0, 0.04);
  --r: 22px;
  --r2: 14px;
  --t: 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Dark overrides — exact same pattern as stardust */
html.dark {
  --text: #f0e4ff;
  --text2: #b098d8;
  --surf: rgba(12, 6, 30, 0.5);
  --surf-h: rgba(20, 10, 48, 0.7);
  --bdr: rgba(150, 120, 220, 0.12);
  --sh: 0 4px 40px rgba(0, 0, 0, 0.5);
}

/* ========== Reset & Base ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth; font-size: 16px;
  background: transparent;
  background-size: cover; background-position: center;
  background-repeat: no-repeat; background-attachment: fixed;
}
body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text); min-height: 100vh; line-height: 1.75; overflow-x: hidden;
  background: #f5f0ff;
  transition: background 0.8s, color var(--t);
}
html.dark body { background: #060312; }
html.has-wallpaper body,
html.has-wallpaper.dark body { background: transparent; }

/* ============================================================
   BACKGROUND (exact stardust replicas)
   ============================================================ */

/* Noise grain */
.noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Aurora bands — 4 bands, exact stardust */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.6; }
.aurora-band {
  position: absolute; width: 200%; height: 50%; border-radius: 50%;
  filter: blur(100px); animation: aurora var(--dur) ease-in-out infinite;
  opacity: 0.5; mix-blend-mode: screen;
}
.aurora-band:nth-child(1) {
  background: linear-gradient(90deg, transparent, #7c3aed, #c084fc, transparent);
  top: -20%; left: -50%; --dur: 12s; animation-delay: 0s;
}
.aurora-band:nth-child(2) {
  background: linear-gradient(90deg, transparent, #e04090, #f472b6, transparent);
  top: 10%; left: -30%; --dur: 16s; animation-delay: -4s;
}
.aurora-band:nth-child(3) {
  background: linear-gradient(90deg, transparent, #0891b2, #67e8f9, transparent);
  top: 30%; left: -60%; --dur: 20s; animation-delay: -8s;
}
.aurora-band:nth-child(4) {
  background: linear-gradient(90deg, transparent, #f59e0b, #fbbf24, transparent);
  top: 50%; left: -40%; --dur: 14s; animation-delay: -12s;
}
@keyframes aurora {
  0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
  25%      { transform: translateX(8%) translateY(-3%) rotate(1deg); }
  50%      { transform: translateX(-5%) translateY(5%) rotate(-1deg); }
  75%      { transform: translateX(3%) translateY(-2%) rotate(0.5deg); }
}

/* Stars — 120 twinkling dots, exact stardust */
.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.star {
  position: absolute; background: #fff; border-radius: 50%;
  animation: twinkle var(--dur) ease-in-out infinite;
  animation-delay: var(--dl);
}
@keyframes twinkle {
  0%, 100% { opacity: var(--lo, 0.15); transform: scale(1); }
  50%      { opacity: var(--hi, 1); transform: scale(var(--sc, 2)); }
}

/* ============================================================
   SPLASH LOADER (exact stardust)
   ============================================================ */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(ellipse at 50% 50%, #1a0e38 0%, #08041a 100%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 32px;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-orbit { position: relative; width: 80px; height: 80px; }
.splash-ring {
  position: absolute; border-radius: 50%; border: 2px solid transparent;
}
.splash-ring:nth-child(1) {
  inset: 0; border-top-color: #c084fc; border-right-color: #c084fc;
  animation: sr1 1.5s linear infinite;
}
.splash-ring:nth-child(2) {
  inset: 8px; border-bottom-color: #f472b6; border-left-color: #f472b6;
  animation: sr2 2s linear infinite;
}
.splash-ring:nth-child(3) {
  inset: 16px; border-top-color: #67e8f9;
  animation: sr1 2.5s linear infinite reverse;
}
@keyframes sr1 { to { transform: rotate(360deg); } }
@keyframes sr2 { to { transform: rotate(-360deg); } }

.splash-logo {
  font-size: 5em; animation: sf 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 50px rgba(192, 132, 252, 0.6));
}
@keyframes sf {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}

.splash-name {
  font-size: 2.4em; font-weight: 900; letter-spacing: 0.2em;
  background: linear-gradient(135deg, #c084fc, #f472b6, #67e8f9, #fbbf24);
  background-size: 300% 300%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: splashGradient 2s ease-in-out infinite;
}
@keyframes splashGradient {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.splash-tag { color: #8878b8; font-size: 1em; letter-spacing: 0.2em; font-weight: 300; }
.splash-subtag {
  color: #6a5a98; font-size: 0.85em; letter-spacing: 0.3em; font-weight: 300;
  background: linear-gradient(135deg, #c084fc, #f472b6, #67e8f9);
  background-size: 200% 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: splashGradient 3s ease-in-out infinite;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.2); border-radius: 3px; }

/* ============================================================
   NAVIGATION (stardust style)
   ============================================================ */
.nav {
  position: sticky; top: 16px; z-index: 100;
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  background: var(--surf); border: 1px solid var(--bdr);
  border-radius: var(--r); padding: 14px 30px;
  display: flex; align-items: center; justify-content: space-between;
  margin: 20px 20px 0; box-shadow: var(--sh);
}
.nav-brand {
  font-size: 1.2em; font-weight: 700; letter-spacing: 2px;
  background: linear-gradient(135deg, #c084fc, #f472b6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-right { display: flex; align-items: center; gap: 2px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  color: var(--text2); text-decoration: none;
  padding: 8px 18px; border-radius: 24px; font-size: 0.84em; font-weight: 500;
  transition: all var(--t); position: relative;
  display: flex; align-items: center;
}
.nav-links a::before {
  content: ""; position: absolute; inset: 0; border-radius: 24px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  opacity: 0; transition: opacity var(--t); z-index: -1;
}
.nav-links a:hover::before, .nav-links a.active::before { opacity: 1; }
.nav-links a:hover, .nav-links a.active { color: #fff; }

.nav-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--bdr); background: var(--surf);
  color: var(--text2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t); margin-left: 10px;
}
.nav-btn:hover { background: var(--surf-h); transform: rotate(25deg); }
.admin-nav-btn { width: 40px; height: 40px; font-size: 1.1em !important; }
.admin-nav-btn:hover { transform: rotate(60deg); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5em; cursor: pointer; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 2rem; position: relative;
}
.hero-icon {
  font-size: 5em; animation: sf 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 50px rgba(192, 132, 252, 0.6));
  margin-bottom: 0.8em;
}
.hero h1 {
  font-size: 2.8em; font-weight: 900; letter-spacing: 0.08em;
  background: linear-gradient(135deg, #f5e6ff 0%, #e9b8ff 25%, #fbc4e8 50%, #c4e8ff 75%, #f5e6ff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: titleShine 4s ease-in-out infinite;
  margin: 0 0 10px;
}
@keyframes titleShine {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.hero .subtitle {
  color: var(--text2); font-size: 0.95em; font-weight: 300; letter-spacing: 0.15em;
  max-width: 620px;
}
.hero .scroll-hint {
  position: absolute; bottom: 2rem; color: var(--text2); font-size: 0.82em;
  animation: bounce 2.2s ease infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ============================================================
   SECTIONS & GLASS CARD
   ============================================================ */
.section { max-width: 1200px; margin: 0 auto; padding: 5rem 2rem; position: relative; z-index: 2; }
.section-title {
  font-size: 2em; font-weight: 900; text-align: center; margin-bottom: 0.3em;
  background: linear-gradient(135deg, #e9d5ff, #f0abfc, #c4b5fd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-desc { text-align: center; color: var(--text2); margin-bottom: 2.5rem; font-size: 0.92em; }

.glass {
  background: var(--surf); border: 1px solid var(--bdr);
  border-radius: var(--r); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--t);
}
.glass:hover {
  background: var(--surf-h);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.3);
}

/* ============================================================
   ANNOUNCEMENTS
   ============================================================ */
.announce-list { display: flex; flex-direction: column; gap: 1rem; }
.announce-card { padding: 1.5rem; cursor: pointer; }
.announce-card .meta { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.5rem; }
.announce-card .badge {
  background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff;
  font-size: 0.72rem; padding: 0.2rem 0.7rem; border-radius: 20px; font-weight: 600;
}
.announce-card .date { color: var(--text2); font-size: 0.85em; }
.announce-card h3 { font-size: 1.1em; margin-bottom: 0.3em; }
.announce-card .body { color: var(--text2); font-size: 0.92em; display: none; margin-top: 0.6em; line-height: 1.7; }
.announce-card.open .body { display: block; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 2rem; flex-wrap: wrap; }
.pagination-sm { margin-top: 0.8rem; gap: 0.25rem; }
.page-btn {
  padding: 0.45rem 0.85rem; border-radius: 8px; font-size: 0.85em;
  background: var(--surf); border: 1px solid var(--bdr);
  color: var(--text2); cursor: pointer; transition: all var(--t);
  font-family: inherit;
}
.page-btn:hover { background: var(--surf-h); border-color: var(--c1); color: var(--text); }
.page-btn.active {
  background: linear-gradient(135deg, var(--c1), var(--c2));
  border-color: transparent; color: #fff; font-weight: 600;
}
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.page-input {
  width: 50px; padding: 0.4rem 0.3rem; text-align: center;
  border-radius: 8px; border: 1px solid var(--bdr);
  background: var(--surf); color: var(--text);
  font-size: 0.85em; font-family: inherit; outline: none;
  transition: border-color var(--t);
}
.page-input:focus { border-color: var(--c1); }
.page-info { font-size: 0.82em; color: var(--text2); margin: 0 0.3rem; }
.pagination-sm .page-btn { padding: 0.3rem 0.6rem; font-size: 0.78em; }
.pagination-sm .page-input { width: 40px; padding: 0.25rem 0.2rem; font-size: 0.78em; }

/* ============================================================
   SEARCH & FILTER
   ============================================================ */
.filter-bar { display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center; margin-bottom: 2rem; }
.search-input {
  flex: 1; min-width: 200px; padding: 0.6rem 1rem;
  background: var(--surf); border: 1px solid var(--bdr);
  border-radius: var(--r2); color: var(--text); font-size: 0.9em;
  font-family: inherit; outline: none; transition: all var(--t);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.search-input:focus { border-color: var(--c1); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1); }
.search-input::placeholder { color: var(--text2); }
.filter-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.filter-pill {
  padding: 0.4rem 0.9rem; border-radius: 20px; font-size: 0.82em;
  background: var(--surf); border: 1px solid var(--bdr);
  color: var(--text2); cursor: pointer; transition: all var(--t);
  font-family: inherit; white-space: nowrap;
}
.filter-pill:hover { border-color: var(--c1); }
.filter-pill.active {
  background: linear-gradient(135deg, var(--c1), var(--c2));
  border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}
.result-count { font-size: 0.85em; color: var(--text2); margin-left: auto; white-space: nowrap; }

/* ============================================================
   SONG GRID
   ============================================================ */
.song-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem;
}
.song-card {
  overflow: hidden; display: flex; flex-direction: column;
  animation: cardIn 0.5s ease backwards;
}
.song-card:nth-child(1) { animation-delay: 0.05s; }
.song-card:nth-child(2) { animation-delay: 0.10s; }
.song-card:nth-child(3) { animation-delay: 0.15s; }
.song-card:nth-child(4) { animation-delay: 0.20s; }
.song-card:nth-child(5) { animation-delay: 0.25s; }
.song-card:nth-child(6) { animation-delay: 0.30s; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.song-cover {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  background: linear-gradient(135deg, var(--c1), var(--c2), var(--c3));
  display: flex; align-items: center; justify-content: center;
  font-size: 3em; color: rgba(255, 255, 255, 0.3);
  position: relative; cursor: pointer; transition: all var(--t);
}
.song-cover:hover { transform: scale(1.05); }
.song-cover .play-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4));
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.song-cover:hover .play-overlay { opacity: 1; }
.play-overlay .play-icon {
  width: 54px; height: 54px;
  background: rgba(255, 255, 255, 0.92); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4em; color: #1a0e38;
}
.song-cover .video-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0, 0, 0, 0.55); color: #fff;
  font-size: 0.7em; padding: 0.2rem 0.5rem; border-radius: 4px; pointer-events: none;
}
.song-info { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.song-info h3 { font-size: 1.05em; margin-bottom: 0.2em; }
.song-info .tool-tag {
  display: inline-block; font-size: 0.72em; padding: 0.15rem 0.6rem;
  border-radius: 4px; margin-bottom: 0.5rem; width: fit-content;
  background: rgba(124, 58, 237, 0.18); color: #c084fc;
}
.song-info .desc { color: var(--text2); font-size: 0.85em; flex: 1; margin-bottom: 0.8rem; }
.song-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.song-actions .sact-btn {
  padding: 0.35rem 0.7rem; border-radius: 6px; font-size: 0.78em;
  background: var(--surf-h); border: 1px solid var(--bdr);
  color: var(--text2); cursor: pointer; transition: all var(--t);
  font-family: inherit;
}
.song-actions .sact-btn:hover { background: var(--surf); color: var(--text); border-color: var(--c1); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--surf); border: 1px solid var(--bdr);
  border-radius: var(--r); width: 90vw; max-width: 780px; max-height: 85vh;
  overflow-y: auto; padding: 2rem; position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.modal-close {
  position: sticky; top: 0; float: right;
  background: var(--surf-h); border: 1px solid var(--bdr);
  color: var(--text); width: 36px; height: 36px; border-radius: 50%;
  font-size: 1em; cursor: pointer; z-index: 1; transition: all var(--t);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--surf); }
.modal h2 { font-size: 1.5em; margin-bottom: 0.3em; }
.modal .modal-tool { color: #c084fc; font-size: 0.85em; margin-bottom: 0.1em; }
.modal .modal-desc { color: var(--text2); margin: 0.8em 0 1.2em; line-height: 1.7; }

.video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: 12px; margin-bottom: 1.2rem; background: #000;
}
.video-wrap iframe, .video-wrap video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; border-radius: 12px;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-section { margin-top: 1.5rem; border-top: 1px solid var(--bdr); padding-top: 1.2rem; }
.comments-section h4 { font-size: 1em; margin-bottom: 1rem; color: var(--text2); }
.comment-form { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.comment-form input, .comment-form textarea {
  padding: 0.55rem 0.7rem; border-radius: var(--r2);
  background: var(--surf-h); border: 1px solid var(--bdr);
  color: var(--text); font-family: inherit; font-size: 0.88em;
  outline: none; transition: all var(--t);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--c1); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1); }
.comment-form input { flex: 0 0 130px; }
.comment-form textarea { flex: 1; min-width: 200px; resize: vertical; min-height: 40px; }
.comment-form .btn { flex: 0 0 auto; }
.comment-list { display: flex; flex-direction: column; gap: 0.6rem; max-height: 300px; overflow-y: auto; }
.comment-item {
  padding: 0.7rem 0.9rem; border-radius: var(--r2);
  background: var(--surf); border: 1px solid var(--bdr);
}
.comment-item .cmt-header { display: flex; justify-content: space-between; margin-bottom: 0.3rem; }
.comment-item .cmt-name { font-weight: 600; font-size: 0.85em; color: #c084fc; }
.comment-item .cmt-time { font-size: 0.75em; color: var(--text2); }
.comment-item .cmt-body { font-size: 0.88em; color: var(--text2); line-height: 1.5; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  padding: 0.55rem 1.3rem; border-radius: var(--r2); border: none;
  font-size: 0.88em; cursor: pointer; font-weight: 600;
  transition: all var(--t); font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3); }
.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.8em; }
.btn-danger { background: rgba(248, 113, 113, 0.15); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.25); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.25); }
.btn-ghost { background: var(--surf-h); color: var(--text2); border: 1px solid var(--bdr); }
.btn-ghost:hover { background: var(--surf); color: var(--text); }

/* ============================================================
   CUSTOM AUDIO PLAYER
   ============================================================ */
.player-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--surf);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--bdr);
  padding: 0.5rem 1.5rem;
  transform: translateY(100%); transition: transform 0.35s;
}
.player-bar.active { transform: translateY(0); }
.player-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; }
.player-cover {
  width: 46px; height: 46px; border-radius: 8px; object-fit: cover;
  background: linear-gradient(135deg, var(--c1), var(--c2)); flex-shrink: 0;
}
.player-info { flex: 0 0 160px; min-width: 0; }
.player-info .p-title { font-size: 0.88em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-info .p-tool  { font-size: 0.73em; color: var(--text2); }
.player-controls { display: flex; align-items: center; gap: 0.4rem; }
.pctrl-btn {
  background: none; border: none; color: var(--text); font-size: 1.1em;
  cursor: pointer; padding: 0.3rem; border-radius: 50%; transition: all 0.2s;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
}
.pctrl-btn:hover { background: var(--surf-h); }
.pctrl-btn.play-btn {
  width: 40px; height: 40px; font-size: 1.2em;
  background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; border-radius: 50%;
}
.pctrl-btn.play-btn:hover { box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3); }
.player-progress-wrap { flex: 1; display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.player-progress-wrap .time { font-size: 0.73em; color: var(--text2); min-width: 40px; text-align: center; }
.progress-bar {
  flex: 1; height: 4px; background: var(--bdr);
  border-radius: 2px; cursor: pointer; position: relative; overflow: visible;
}
.progress-bar .progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--c1), var(--c2));
  border-radius: 2px; position: relative; transition: width 0.15s linear;
}
.progress-bar .progress-thumb {
  position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  width: 13px; height: 13px; background: #fff; border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3); opacity: 0; transition: opacity 0.2s;
}
.progress-bar:hover .progress-thumb { opacity: 1; }
.player-extra { display: flex; align-items: center; gap: 0.3rem; }
.volume-wrap { display: flex; align-items: center; gap: 0.3rem; }
.volume-slider {
  width: 70px; height: 4px; -webkit-appearance: none; appearance: none;
  background: var(--bdr); border-radius: 2px; outline: none; cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px;
  background: #c084fc; border-radius: 50%; cursor: pointer;
}
.player-eq { display: flex; align-items: flex-end; gap: 2px; height: 20px; margin-left: 0.3rem; }
.player-eq .eq-bar {
  width: 3px; background: #c084fc; border-radius: 1px;
  transition: height 0.15s ease; opacity: 0.7;
}

/* ============================================================
   QUEUE PANEL
   ============================================================ */
.queue-panel {
  position: fixed; right: 0; top: 80px; bottom: 0; z-index: 990;
  width: 340px; max-width: 100vw;
  background: var(--surf);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-left: 1px solid var(--bdr);
  transform: translateX(100%); transition: transform 0.3s;
  display: flex; flex-direction: column; overflow: hidden;
}
.queue-panel.open { transform: translateX(0); }
.queue-header {
  padding: 1.2rem; border-bottom: 1px solid var(--bdr);
  display: flex; align-items: center; justify-content: space-between;
}
.queue-header h3 { font-size: 1em; }
.queue-header .q-count { font-size: 0.8em; color: var(--text2); }
.queue-list { flex: 1; overflow-y: auto; padding: 0.5rem; }
.queue-item {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem;
  border-radius: 10px; cursor: pointer; transition: all 0.2s;
}
.queue-item:hover { background: var(--surf-h); }
.queue-item.active { background: var(--surf-h); border: 1px solid rgba(192, 132, 252, 0.3); }
.queue-item .qi-cover {
  width: 38px; height: 38px; border-radius: 6px; object-fit: cover;
  background: linear-gradient(135deg, var(--c1), var(--c2)); flex-shrink: 0;
}
.queue-item .qi-info { flex: 1; min-width: 0; }
.queue-item .qi-title { font-size: 0.85em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-item .qi-tool { font-size: 0.72em; color: var(--text2); }
.queue-item .qi-remove {
  background: none; border: none; color: var(--text2); cursor: pointer;
  font-size: 1em; padding: 0.2rem; border-radius: 50%; transition: all 0.2s;
}
.queue-item .qi-remove:hover { color: #fca5a5; }
.queue-empty { text-align: center; color: var(--text2); padding: 2rem; font-size: 0.9em; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-content { max-width: 700px; margin: 0 auto; padding: 2.5rem; text-align: center; }
.about-content p { color: var(--text2); margin-bottom: 1rem; font-size: 0.95em; line-height: 1.8; white-space: pre-line; }
.tools-row { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; }
.tool-badge {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 1rem 1.5rem; border-radius: var(--r2);
  background: var(--surf); border: 1px solid var(--bdr);
  transition: all var(--t);
}
.tool-badge:hover { background: var(--surf-h); transform: translateY(-3px); border-color: var(--c1); }
.tool-badge .tb-icon { font-size: 2em; }
.tool-badge .tb-name { font-size: 0.85em; color: var(--text2); }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-panel {
  position: fixed; top: 0; right: 0; z-index: 1001;
  width: 420px; max-width: 100vw; height: 100vh;
  background: var(--surf-h);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border-left: 1px solid var(--bdr);
  padding: 2rem; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.35s;
}
.admin-panel.open { transform: translateX(0); }
.admin-panel h2 { font-size: 1.4em; margin-bottom: 1.5rem; }
.admin-panel label { display: block; font-size: 0.85em; color: var(--text2); margin-bottom: 0.3rem; margin-top: 0.8rem; }
.admin-panel input, .admin-panel textarea, .admin-panel select {
  width: 100%; padding: 0.6rem 0.8rem;
  background: var(--surf); border: 1px solid var(--bdr); border-radius: var(--r2);
  color: var(--text); font-size: 0.9em; font-family: inherit;
  outline: none; transition: all var(--t);
}
.admin-panel input:focus, .admin-panel textarea:focus, .admin-panel select:focus { border-color: var(--c1); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1); }
.admin-panel textarea { resize: vertical; min-height: 60px; }
.admin-panel .btn-row { display: flex; gap: 0.6rem; margin-top: 1.5rem; flex-wrap: wrap; }
.admin-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.45);
  display: none;
}
.admin-overlay.show { display: block; }
.admin-section-title {
  font-size: 1em; color: var(--text); margin: 1.5rem 0 0.8rem;
  padding-top: 1rem; border-top: 1px solid var(--bdr);
}
.admin-section-title:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.existing-list { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.5rem; max-height: 200px; overflow-y: auto; }
.existing-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0.7rem; background: var(--surf); border-radius: 6px; font-size: 0.85em;
}
.existing-item .edt-btn { background: none; border: none; color: var(--text2); cursor: pointer; font-size: 1em; margin-right: 2px; transition: color var(--t); }
.existing-item .edt-btn:hover { color: #c084fc; }
.existing-item .del-btn { background: none; border: none; color: #fca5a5; cursor: pointer; font-size: 1em; }

.password-gate { text-align: center; padding: 3rem 1rem; }
.password-gate h3 { margin-bottom: 0.5rem; }
.password-gate input { margin-bottom: 0.8rem; }
.admin-body { display: none; }
.admin-body.unlocked { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center; padding: 40px 20px; color: var(--text2); font-size: 0.85em;
  border-top: 1px solid var(--bdr); position: relative; z-index: 2;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
  position: fixed; top: 85px; right: 1.5rem; z-index: 2000;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
  padding: 0.7rem 1.2rem; border-radius: var(--r2); font-size: 0.88em;
  color: #fff; animation: toastIn 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); max-width: 320px;
}
.toast.success { background: #10b981; }
.toast.error { background: #ef4444; }
.toast.info { background: #6366f1; }
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav { padding: 10px 16px; margin: 10px 10px 0; }
  .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0;
    flex-direction: column; background: var(--surf);
    backdrop-filter: blur(20px); padding: 1rem; gap: 0.2rem;
    border: 1px solid var(--bdr); border-radius: var(--r2);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .song-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 1rem; }
  .admin-panel { width: 100vw; }
  .player-inner { gap: 0.5rem; }
  .player-info { flex: 0 0 100px; }
  .player-info .p-title { font-size: 0.8em; }
  .player-extra { display: none; }
  .player-progress-wrap .time { display: none; }
  .queue-panel { width: 100vw; }
  .filter-bar { flex-direction: column; }
  .comment-form input { flex: 0 0 100%; }
  .hero h1 { font-size: 2em; }
}
