/* Blue Horizon Music - dashboard styles */
:root {
    --bg: #08080c;
    --bg-2: #0d0d13;
    --card: #12121a;
    --card-2: #181823;
    --card-3: #1f1f2c;
    --border: rgba(255, 255, 255, 0.07);
    --border-2: rgba(255, 255, 255, 0.12);
    --text: #eceef6;
    --muted: #8f92a6;
    --dim: #5d6073;
    --accent: #7c6cff;
    --accent-2: #4f8cff;
    --accent-soft: rgba(124, 108, 255, 0.16);
    --grad: linear-gradient(135deg, #4f8cff 0%, #8b5cf6 55%, #c084fc 100%);
    --green: #22c55e;
    --red: #ef4444;
    --amber: #f59e0b;
    --pink: #ec4899;
    --gold: #f5c542;
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.35);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: rgba(124, 108, 255, 0.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a2a38; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

.bg-glow {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(900px 480px at 50% -8%, rgba(124, 108, 255, 0.22), transparent 62%),
        radial-gradient(700px 400px at 90% 10%, rgba(79, 140, 255, 0.10), transparent 60%),
        radial-gradient(600px 400px at 5% 30%, rgba(192, 132, 252, 0.08), transparent 60%);
}

/* ---------- layout ---------- */
.page { max-width: 1140px; margin: 0 auto; padding: 108px 20px 72px; min-height: 70vh; }
.page.wide { max-width: 1240px; }
.loading-screen { display: grid; place-items: center; min-height: 50vh; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border-2); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
.spinner.sm { width: 18px; height: 18px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.center { text-align: center; }
.ic { width: 18px; height: 18px; flex: none; }
.ic.sm { width: 14px; height: 14px; }
.ic.lg { width: 24px; height: 24px; }

/* ---------- nav ---------- */
.nav {
    position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 60;
    display: flex; align-items: center; gap: 2px;
    padding: 7px 8px 7px 12px; border-radius: 999px;
    background: rgba(16, 16, 24, 0.72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--border-2); box-shadow: var(--shadow-sm);
    max-width: calc(100vw - 20px);
}
.nav .brand { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 2px; font-weight: 800; letter-spacing: -0.01em; font-size: 15px; }
.nav .brand img { width: 28px; height: 28px; border-radius: 9px; }
.nav .sep { width: 1px; height: 22px; background: var(--border-2); margin: 0 6px; }
.nav a.link { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; transition: 0.15s; white-space: nowrap; }
.nav a.link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a.link.active { color: var(--text); }
.nav a.link.accent { color: #c9b8ff; }
.nav .user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--border-2); background: rgba(255, 255, 255, 0.04); font-weight: 600; position: relative; cursor: pointer; }
.nav .user-chip img { width: 28px; height: 28px; border-radius: 50%; }
.nav .user-chip .ic { width: 14px; height: 14px; color: var(--muted); }
.nav .menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 190px; background: var(--card-2); border: 1px solid var(--border-2); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); display: none; }
.nav .menu.open { display: block; }
.nav .menu a, .nav .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; background: none; border: 0; color: var(--text); font-weight: 500; text-align: left; }
.nav .menu a:hover, .nav .menu button:hover { background: rgba(255, 255, 255, 0.06); }
.nav .menu .danger { color: #fca5a5; }
@media (max-width: 720px) {
    .nav a.link:not(.accent) { display: none; }
    .nav .brand span { display: none; }
}

/* ---------- buttons & inputs ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 16px; border-radius: 12px; border: 1px solid var(--border-2);
    background: rgba(255, 255, 255, 0.05); color: var(--text); font-weight: 600; font-size: 13.5px;
    transition: 0.15s; white-space: nowrap; user-select: none;
}
.btn:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.18); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: transparent; color: #fff; box-shadow: 0 8px 24px rgba(124, 108, 255, 0.35); }
.btn.primary:hover { background: #8a7bff; }
.btn.grad { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 30px rgba(139, 92, 246, 0.35); }
.btn.danger { color: #fecaca; border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.1); }
.btn.danger:hover { background: rgba(239, 68, 68, 0.2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.btn.sm { padding: 7px 11px; font-size: 12.5px; border-radius: 10px; }
.btn.lg { padding: 13px 22px; font-size: 15px; border-radius: 14px; }
.btn.discord { background: #5865f2; border-color: transparent; color: #fff; }
.btn.discord:hover { background: #6a76ff; }
.btn.icon { padding: 8px; border-radius: 10px; }
.btn.icon.round { border-radius: 50%; width: 40px; height: 40px; padding: 0; }
.btn.icon.round.xl { width: 56px; height: 56px; }
.btn.icon.round.xl .ic { width: 26px; height: 26px; }
.btn.on { color: #c9b8ff; border-color: rgba(124, 108, 255, 0.5); background: var(--accent-soft); }
.btn.liked { color: var(--pink); }

.input, .select {
    width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border-2);
    background: rgba(255, 255, 255, 0.04); color: var(--text); outline: none; transition: 0.15s;
}
.input:focus, .select:focus { border-color: rgba(124, 108, 255, 0.6); box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.15); }
.input::placeholder { color: var(--dim); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238f92a6' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.select option { background: #181823; }
.search { position: relative; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.search .input { padding-left: 42px; }
.search .input.lg { padding: 15px 16px 15px 46px; font-size: 15px; border-radius: 16px; background: rgba(255, 255, 255, 0.035); }

.switch { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #2b2b3a; border: 1px solid var(--border-2); cursor: pointer; transition: 0.2s; flex: none; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #9a9cb0; transition: 0.2s; }
.switch.on { background: var(--accent); border-color: transparent; }
.switch.on::after { left: 20px; background: #fff; }

input[type=range].slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--accent) var(--pct, 0%), rgba(255, 255, 255, 0.12) var(--pct, 0%)); outline: none; cursor: pointer; }
input[type=range].slider::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(124, 108, 255, 0.25); transition: transform 0.15s; }
input[type=range].slider:hover::-webkit-slider-thumb { transform: scale(1.15); }
input[type=range].slider::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
input[type=range].slider.thin { height: 4px; }
input[type=range].slider.thin::-webkit-slider-thumb { width: 12px; height: 12px; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card.pad-sm { padding: 14px; }
.card.hover { transition: 0.15s; }
.card.hover:hover { border-color: var(--border-2); background: var(--card-2); transform: translateY(-1px); }
.card-title { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.card-sub { color: var(--muted); font-size: 12.5px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #c9b8ff; background: var(--accent-soft); border: 1px solid rgba(124, 108, 255, 0.3); }
.section-label { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.section-label .ic { color: var(--accent); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: rgba(255, 255, 255, 0.06); color: var(--muted); border: 1px solid var(--border); }
.badge.green { color: #86efac; background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.3); }
.badge.purple { color: #c9b8ff; background: var(--accent-soft); border-color: rgba(124, 108, 255, 0.3); }
.badge.gold { color: #fde68a; background: rgba(245, 197, 66, 0.12); border-color: rgba(245, 197, 66, 0.3); }
.badge.red { color: #fca5a5; background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); display: inline-block; }
.dot.off { background: var(--dim); box-shadow: none; }
.dot.amber { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.pill-tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); }
.pill-tabs button { padding: 8px 16px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: 0.15s; }
.pill-tabs button:hover { color: var(--text); }
.pill-tabs button.active { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(124, 108, 255, 0.35); }
.pill-tabs.subtle button.active { background: rgba(255, 255, 255, 0.1); box-shadow: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-2); background: rgba(255, 255, 255, 0.03); color: var(--muted); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; transition: 0.15s; }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.2); }
.chip.active { background: var(--accent); border-color: transparent; color: #fff; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--border-2); border-radius: var(--radius); }
.empty .ic { width: 36px; height: 36px; color: var(--dim); margin: 0 auto 10px; }
.empty h4 { margin: 0 0 4px; color: var(--text); }
.error-box { padding: 14px 16px; border-radius: 12px; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #fecaca; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.stat .icon-box { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: #c9b8ff; flex: none; }
.stat .icon-box.pink { background: rgba(236, 72, 153, 0.14); color: #f9a8d4; }
.stat .icon-box.green { background: rgba(34, 197, 94, 0.14); color: #86efac; }
.stat .icon-box.blue { background: rgba(79, 140, 255, 0.14); color: #93c5fd; }
.stat .label { font-size: 12px; color: var(--muted); }
.stat .value { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }

/* ---------- landing ---------- */
.hero { text-align: center; padding: 40px 0 30px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin: 20px 0 16px; }
.hero p { font-size: 17px; color: var(--muted); max-width: 560px; margin: 0 auto 28px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 44px; margin: 44px 0 0; flex-wrap: wrap; }
.hero-stats .value { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.hero-stats .label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 52px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature .icon-box { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: #c9b8ff; margin-bottom: 14px; }
.feature h3 { margin: 0 0 6px; font-size: 15px; }
.feature p { margin: 0; color: var(--muted); font-size: 13px; }
.mock-player { margin: 56px auto 0; max-width: 760px; background: var(--card); border: 1px solid var(--border-2); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
.mock-player .art { width: 120px; height: 120px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; color: #fff; }
.mock-player .bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin: 12px 0 6px; }
.mock-player .bar i { display: block; height: 100%; width: 42%; background: var(--grad); animation: grow 6s linear infinite; }
@keyframes grow { from { width: 20%; } to { width: 85%; } }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 24px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--card-3); border: 1px solid var(--border-2); display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; color: #c9b8ff; }
.step h3 { margin: 0 0 6px; font-size: 15px; }
.step p { margin: 0; color: var(--muted); font-size: 13px; }
.footer { border-top: 1px solid var(--border); padding: 36px 20px 50px; color: var(--muted); font-size: 13px; }
.footer .inner { max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); font-size: 16px; }
.footer .brand img { width: 30px; height: 30px; border-radius: 9px; }
.footer .links { display: flex; gap: 18px; }
.footer .links a:hover { color: var(--text); }

/* ---------- commands ---------- */
.cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 22px; }
.cmd { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; position: relative; transition: 0.15s; }
.cmd:hover { border-color: var(--border-2); background: var(--card-2); }
.cmd .name { font-family: var(--mono); font-weight: 600; font-size: 13.5px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.cmd .name .args { color: var(--dim); font-size: 11px; font-weight: 500; overflow-wrap: anywhere; }
.cmd .desc { color: var(--muted); font-size: 13px; margin-top: 8px; }
.cmd .badge { position: absolute; top: 14px; right: 14px; }

/* ---------- trending ---------- */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 24px 0 16px; align-items: end; }
.podium.few { grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); justify-content: center; }
.podium .card { position: relative; overflow: hidden; }
.podium .card.first { border-color: rgba(245, 197, 66, 0.45); box-shadow: 0 0 0 1px rgba(245, 197, 66, 0.2), 0 20px 50px rgba(245, 197, 66, 0.08); background: linear-gradient(180deg, rgba(245, 197, 66, 0.06), var(--card)); }
.podium .thumb { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--card-3); margin: 14px 0 12px; }
.podium .plays { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-top: 12px; }
.podium .plays small { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-left: 6px; }
.rank-list { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.rank-row { display: grid; grid-template-columns: 36px 44px 1fr 90px; gap: 14px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--border); }
.rank-row:first-child { border-top: 0; }
.rank-row .n { color: var(--dim); font-weight: 700; font-size: 13px; }
.rank-row .thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--card-3); }
.rank-row .title { font-weight: 600; }
.rank-row .sub { color: var(--dim); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.rank-row .meter { height: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); margin-top: 6px; max-width: 160px; }
.rank-row .meter i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.rank-row .plays { text-align: right; font-weight: 800; }
@media (max-width: 720px) { .podium { grid-template-columns: 1fr; } .rank-row { grid-template-columns: 28px 40px 1fr 60px; } }

/* ---------- server picker ---------- */
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.server-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; transition: 0.15s; }
.server-card:hover { border-color: var(--border-2); background: var(--card-2); transform: translateY(-1px); }
.server-card.disabled { opacity: 0.55; }
.server-card .gicon { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; background: var(--card-3); display: grid; place-items: center; font-weight: 800; color: #c9b8ff; font-size: 15px; flex: none; }
.server-card .name { font-weight: 700; }
.server-card .status { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-top: 2px; }
.server-card .status.active { color: #86efac; }
.server-card .status.playing { color: #c9b8ff; }
.server-card .arrow { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-2); display: grid; place-items: center; color: var(--muted); flex: none; }

/* ---------- guild header + tabs ---------- */
.guild-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.guild-head .back { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-2); background: rgba(255, 255, 255, 0.04); display: grid; place-items: center; color: var(--muted); }
.guild-head .gicon { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; background: var(--card-3); display: grid; place-items: center; font-weight: 800; color: #c9b8ff; }
.guild-head h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.guild-head .sub { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.bot-chip { margin-left: auto; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); }
.bot-chip img { width: 30px; height: 30px; border-radius: 9px; }
.bot-chip .name { font-weight: 700; font-size: 13px; }
.bot-chip .st { font-size: 11px; color: var(--muted); }
.tabbar { display: inline-flex; gap: 4px; padding: 6px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); margin: 20px 0 22px; flex-wrap: wrap; }
.tabbar button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 11px; border: 0; background: transparent; color: var(--muted); font-weight: 600; transition: 0.15s; }
.tabbar button:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.tabbar button.active { background: var(--accent-soft); color: #d9ccff; box-shadow: inset 0 0 0 1px rgba(124, 108, 255, 0.4); }

/* ---------- player ---------- */
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30; background: var(--card-2); border: 1px solid var(--border-2); border-radius: 16px; box-shadow: var(--shadow); padding: 6px; max-height: 420px; overflow: auto; }
.sr-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.sr-row:hover { background: rgba(255, 255, 255, 0.05); }
.sr-row .thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--card-3); }
.sr-row .title { font-weight: 600; }
.sr-row .sub { color: var(--muted); font-size: 12px; }
.sr-row .acts { display: flex; gap: 6px; opacity: 0; transition: 0.15s; }
.sr-row:hover .acts { opacity: 1; }
.sr-hint { padding: 12px 14px; color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 10px; }

.rail { margin-top: 22px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rail-nav { display: flex; gap: 6px; }
.rail-nav button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-2); background: rgba(255, 255, 255, 0.03); color: var(--muted); display: grid; place-items: center; }
.rail-nav button:hover { color: var(--text); }
.rail-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.rail-track::-webkit-scrollbar { display: none; }
.rec-card { flex: 0 0 148px; align-self: flex-start; scroll-snap-align: start; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 8px; cursor: pointer; transition: 0.15s; position: relative; }
.rec-card:hover { border-color: var(--border-2); transform: translateY(-2px); background: var(--card-2); }
.rec-card .thumb { width: 100%; aspect-ratio: 1; border-radius: 10px; object-fit: cover; background: var(--card-3); }
.rec-card .title { font-weight: 600; font-size: 12.5px; margin-top: 8px; line-height: 1.3; }
.rec-card .sub { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.rec-card .playbtn { position: absolute; right: 16px; top: 108px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: 0.15s; box-shadow: 0 8px 20px rgba(124, 108, 255, 0.5); }
.rec-card:hover .playbtn { opacity: 1; transform: translateY(0); }
.rec-card .dur { position: absolute; left: 14px; top: 118px; font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.7); }

.player-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; margin-top: 22px; align-items: start; }
@media (max-width: 960px) { .player-grid { grid-template-columns: 1fr; } }
.np-card { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 22px; display: grid; grid-template-columns: 168px 1fr; gap: 22px; position: relative; overflow: hidden; }
.np-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 200px at 20% 0%, rgba(124, 108, 255, 0.12), transparent 60%); pointer-events: none; }
.np-card > * { position: relative; }
.np-card .art { width: 168px; height: 168px; border-radius: 16px; object-fit: cover; background: var(--card-3); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.np-card .art.placeholder { display: grid; place-items: center; color: var(--dim); background: linear-gradient(135deg, #1a1a26, #12121a); }
.np-card .label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.np-card .title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 2px; line-height: 1.2; }
.np-card .author { color: var(--muted); font-size: 14px; }
.np-card .req { color: var(--dim); font-size: 12px; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.np-card .req img { width: 16px; height: 16px; border-radius: 50%; }
.progress { margin-top: 16px; }
.progress .times { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.controls { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.controls .spacer { flex: 1; }
.controls .btn.icon { color: var(--muted); }
.controls .btn.icon:hover { color: var(--text); }
.controls .btn.icon.on { color: #c9b8ff; }
.controls .play { background: var(--accent); color: #fff; border-color: transparent; box-shadow: 0 10px 28px rgba(124, 108, 255, 0.45); }
.controls .play:hover { background: #8a7bff; }
.secondary-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.volume { display: flex; align-items: center; gap: 8px; width: 200px; }
.volume .val { font-size: 11.5px; color: var(--muted); width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .np-card { grid-template-columns: 1fr; } .np-card .art { width: 100%; height: auto; aspect-ratio: 1; } }

.viz { margin-top: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; height: 60px; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 20px; overflow: hidden; }
.viz i { width: 4px; height: 8px; border-radius: 3px; background: var(--grad); opacity: 0.85; transform-origin: bottom; }
.viz.playing i { animation: bounce 1.1s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1.6); } }

.vc-card { margin-top: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; }
.vc-card .head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.vc-card .head .lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.member { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); }
.member img { width: 32px; height: 32px; border-radius: 50%; }
.member .n { font-weight: 600; font-size: 13px; }
.member .s { font-size: 10.5px; color: #86efac; font-weight: 600; }
.member .s.deaf { color: #fca5a5; }
.member .s.bot { color: #c9b8ff; }
.member .avatar-wrap { position: relative; }
.member .avatar-wrap .dot { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border: 2px solid var(--card); }

.queue-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; max-height: 720px; }
.queue-card .head { padding: 16px 18px 12px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.queue-card .head h3 { margin: 0; font-size: 15px; }
.queue-card .head .sub { color: var(--muted); font-size: 12px; }
.queue-card .list { overflow: auto; flex: 1; }
.track-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--border); position: relative; }
.track-row:first-child { border-top: 0; }
.track-row:hover { background: rgba(255, 255, 255, 0.03); }
.track-row .thumb { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; background: var(--card-3); }
.track-row .title { font-weight: 600; font-size: 13px; }
.track-row .sub { color: var(--muted); font-size: 11.5px; }
.track-row .dur { color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.track-row .acts { display: none; gap: 4px; }
.track-row:hover .acts { display: flex; }
.track-row:hover .dur { display: none; }
.track-row .acts .btn { padding: 6px; color: var(--muted); }
.track-row .acts .btn:hover { color: var(--text); }
.track-row .acts .btn.liked { color: var(--pink); }
.track-row.numbered { grid-template-columns: 26px 40px 1fr auto; }
.track-row .num { color: var(--dim); font-size: 12px; font-weight: 600; text-align: center; }
.track-row.playing .title { color: #c9b8ff; }
.list-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.list-card .head { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); gap: 10px; flex-wrap: wrap; }
.list-card .head h3 { margin: 0; font-size: 15px; }

/* ---------- filters popover ---------- */
.popover { position: absolute; z-index: 40; background: var(--card-2); border: 1px solid var(--border-2); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); width: 320px; }
.popover h4 { margin: 0 0 10px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; }

/* ---------- overview ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.np-mini { display: flex; gap: 14px; align-items: center; }
.np-mini img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--card-3); }
.user-row { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--border); }
.user-row:first-child { border-top: 0; }
.user-row img { width: 34px; height: 34px; border-radius: 50%; }
.user-row .n { font-weight: 600; }
.user-row .p { margin-left: auto; font-weight: 700; color: var(--muted); }

/* ---------- library ---------- */
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.pl-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 10px; cursor: pointer; transition: 0.15s; }
.pl-card:hover { border-color: var(--border-2); background: var(--card-2); transform: translateY(-2px); }
.pl-card .thumb { width: 100%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; background: var(--grad); display: grid; place-items: center; color: #fff; }
.pl-card .thumb.liked { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.pl-card .name { font-weight: 700; margin-top: 10px; }
.pl-card .sub { color: var(--muted); font-size: 12px; }
.pl-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.pl-head .thumb { width: 120px; height: 120px; border-radius: 16px; object-fit: cover; background: var(--grad); display: grid; place-items: center; color: #fff; }
.pl-head h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }

/* ---------- settings ---------- */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .settings-grid { grid-template-columns: 1fr; } }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.setting:first-of-type { border-top: 0; padding-top: 0; }
.setting .t { font-weight: 600; }
.setting .d { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.setting .ctl { flex: none; min-width: 180px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.check-list { max-height: 220px; overflow: auto; border: 1px solid var(--border-2); border-radius: 12px; padding: 6px; background: rgba(255, 255, 255, 0.02); }
.check-list label { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.check-list label:hover { background: rgba(255, 255, 255, 0.04); }
.check-list input { accent-color: var(--accent); }
.save-bar { position: sticky; bottom: 16px; margin-top: 18px; display: flex; justify-content: flex-end; gap: 10px; padding: 12px; background: rgba(18, 18, 26, 0.9); backdrop-filter: blur(12px); border: 1px solid var(--border-2); border-radius: 16px; }

/* ---------- profile ---------- */
.profile-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.profile-head img { width: 96px; height: 96px; border-radius: 50%; border: 3px solid rgba(124, 108, 255, 0.5); box-shadow: 0 0 0 6px rgba(124, 108, 255, 0.12); }
.profile-head h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile-head .meta { color: var(--muted); font-size: 12.5px; margin-top: 6px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- toasts & modals ---------- */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.toast { padding: 12px 14px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--border-2); box-shadow: var(--shadow); font-size: 13px; display: flex; gap: 10px; align-items: flex-start; animation: toast-in 0.2s ease-out; }
.toast .ic { margin-top: 1px; }
.toast.info .ic { color: #c9b8ff; }
.toast.success .ic { color: #86efac; }
.toast.warn .ic { color: #fde68a; }
.toast.error .ic { color: #fca5a5; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade 0.15s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { width: 100%; max-width: 480px; background: var(--card-2); border: 1px solid var(--border-2); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); max-height: 85vh; overflow: auto; }
.modal.wide { max-width: 640px; }
.modal h3 { margin: 0 0 14px; font-size: 17px; display: flex; align-items: center; justify-content: space-between; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.lyrics { white-space: pre-wrap; line-height: 1.7; color: #d9dbe6; font-size: 14px; }
