:root {
    --bg-primary: #0A0A0A;
    --text-primary: #FAF8F2;
    --text-secondary: #A1A1AA;
    --text-tertiary: #6B6B74;
    --accent: #EC4899;
    --accent-dim: rgba(236, 72, 153, 0.12);
    --border: rgba(255, 255, 255, 0.08);
    --danger: #DC2626;
    --font-sans: 'General Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

header { position: fixed; top: 20px; left: 0; right: 0; z-index: 100; display: flex; justify-content: center; }
.header-inner {
    display: flex; align-items: center; gap: 28px;
    background: rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.6); border-radius: 999px; padding: 10px 14px 10px 10px;
}
.logo { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--text-primary); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; transition: transform .15s ease; }
.logo:hover { transform: scale(1.08); }
nav { display: flex; gap: 22px; align-items: center; }
nav a { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-secondary); transition: color .15s ease, transform .15s ease; white-space: nowrap; display: inline-block; }
nav a:hover { color: var(--text-primary); transform: translateY(-1px); }
nav a.active { color: var(--text-primary); }
nav .nav-contact { background: var(--text-primary); color: var(--bg-primary); padding: 8px 16px; border-radius: 999px; font: inherit; font-weight: 600; border: none; cursor: pointer; transition: transform .15s ease; }
nav .nav-contact:hover { transform: scale(1.05); }
.nav-contact-group { position: relative; }
.nav-contact-panel { position: absolute; top: 100%; right: 0; margin-top: 10px; min-width: 150px; display: flex; flex-direction: column; gap: 2px; padding: 8px; background: rgba(22, 23, 26, 0.95); border: 1px solid var(--border); border-radius: 16px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease, visibility .15s; }
.nav-contact-group:hover .nav-contact-panel, .nav-contact-group:focus-within .nav-contact-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.nav-contact-panel a { padding: 8px 10px; border-radius: 10px; }
.nav-contact-panel a:hover { background: rgba(255,255,255,0.06); transform: none; }

.sp-wrap { max-width: 920px; margin: 0 auto; padding: 128px 24px 140px; }
.sp-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 28px; transition: color .2s; }
.sp-back:hover { color: var(--text-primary); }
.sp-back svg { width: 16px; height: 16px; }

.sp-hero { text-align: center; margin-bottom: 44px; }
.sp-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 14px; display: inline-block; }
.sp-hero h1 { font-weight: 500; letter-spacing: -0.03em; font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 16px; }
.sp-lede { font-size: 16px; line-height: 1.7; color: var(--text-secondary); max-width: 520px; margin: 0 auto; }

.sp-connect { max-width: 420px; margin: 0 auto; }
.sp-form { display: flex; flex-direction: column; gap: 14px; }
.sp-field { display: flex; flex-direction: column; gap: 6px; }
.sp-field span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); }
.sp-field input { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; color: var(--text-primary); font-size: 14px; }
.sp-field input:focus { outline: none; border-color: var(--accent); }
.sp-connect-btn { margin-top: 6px; background: var(--text-primary); color: var(--bg-primary); border: none; border-radius: 999px; padding: 13px 20px; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .15s ease; }
.sp-connect-btn:hover { transform: scale(1.02); }
.sp-connect-btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.sp-status { margin-top: 14px; font-size: 13px; text-align: center; color: var(--text-secondary); }
.sp-status.is-error { color: #FCA5A5; }
.sp-status.is-ok { color: #34D399; }
.sp-note { margin-top: 18px; font-size: 12px; line-height: 1.7; color: var(--text-tertiary); text-align: center; }

.sp-connected-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.sp-connected-bar span { font-size: 13px; color: var(--text-secondary); }
.sp-disconnect { background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text-secondary); font-size: 12px; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: all .15s ease; }
.sp-disconnect:hover { border-color: rgba(255,255,255,0.2); color: var(--text-primary); }

.sp-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
.sp-album { cursor: pointer; border: none; background: none; text-align: left; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sp-album-art { width: 100%; aspect-ratio: 1/1; border-radius: 10px; background: linear-gradient(135deg, #581c87, #EC4899); object-fit: cover; display: block; }
.sp-album-title { font-size: 13px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.sp-album-artist { font-size: 12px; color: var(--text-tertiary); }

.sp-tracklist-back { background: none; border: none; color: var(--text-secondary); font-size: 13px; font-weight: 500; cursor: pointer; margin-bottom: 20px; }
.sp-tracklist-back:hover { color: var(--text-primary); }
.sp-tracklist-head { display: flex; gap: 20px; align-items: center; margin-bottom: 28px; }
.sp-tracklist-head img { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; background: linear-gradient(135deg, #581c87, #EC4899); }
.sp-tracklist-head h2 { font-weight: 500; letter-spacing: -0.02em; font-size: 20px; margin-bottom: 4px; }
.sp-tracklist-head p { font-size: 13px; color: var(--text-tertiary); }
.sp-tracks { display: flex; flex-direction: column; }
.sp-track { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 10px; cursor: pointer; background: none; border: none; width: 100%; text-align: left; transition: background .15s ease; }
.sp-track:hover { background: rgba(255,255,255,0.05); }
.sp-track.is-playing { background: var(--accent-dim); }
.sp-track-num { width: 22px; font-size: 12px; color: var(--text-tertiary); text-align: right; flex-shrink: 0; }
.sp-track.is-playing .sp-track-num { color: var(--accent); }
.sp-track-title { flex: 1; font-size: 14px; color: var(--text-primary); }
.sp-track-duration { font-size: 12px; color: var(--text-tertiary); }

.sp-empty { text-align: center; padding: 60px 20px; color: var(--text-tertiary); font-size: 14px; }

.sp-now-playing {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    width: min(680px, calc(100vw - 32px));
    display: flex; align-items: center; gap: 14px;
    background: rgba(18, 18, 20, 0.85);
    backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.7);
    border-radius: 999px; padding: 10px 20px 10px 10px; z-index: 90;
}
.sp-now-playing[hidden] { display: none; }
.sp-np-art { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: linear-gradient(135deg, #581c87, #EC4899); }
.sp-np-info { min-width: 0; flex-shrink: 0; width: 140px; }
.sp-np-title { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-np-artist { font-size: 12px; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-np-play { width: 36px; height: 36px; border-radius: 50%; background: var(--text-primary); border: none; color: var(--bg-primary); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: transform .15s ease; }
.sp-np-play:hover { transform: scale(1.06); }
.sp-np-play svg { width: 16px; height: 16px; }
.sp-np-progress { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.sp-np-time { font-size: 11px; color: var(--text-tertiary); flex-shrink: 0; width: 34px; text-align: center; }
.sp-np-seek { flex: 1; min-width: 0; -webkit-appearance: none; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.15); outline: none; }
.sp-np-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%; background: var(--text-primary); cursor: pointer; }
.sp-np-seek::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: var(--text-primary); cursor: pointer; border: none; }

.sp-about { border-top: 1px solid var(--border); padding-top: 40px; margin-top: 60px; }
.sp-about h2 { font-weight: 500; letter-spacing: -0.02em; font-size: 20px; margin-bottom: 14px; }
.sp-about p { font-size: 14px; line-height: 1.75; color: var(--text-secondary); max-width: 620px; }

footer { border-top: 1px solid var(--border); margin-top: 24px; }
.footer-inner { max-width: 1040px; margin: 0 auto; padding: 40px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-name { font-weight: 700; font-size: 14px; }
.footer-status { font-size: 13px; color: var(--text-tertiary); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 768px) {
    .header-inner { gap: 14px; padding: 8px 10px 8px 8px; }
    nav { gap: 12px; }
    .sp-wrap { padding: 108px 20px 150px; }
    .sp-albums { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
    .sp-now-playing { padding: 8px 14px 8px 8px; gap: 10px; }
    .sp-np-info { width: 90px; }
    .sp-np-time { display: none; }
    .footer-inner { flex-direction: column; text-align: center; }
}
