:root {
    --bg: #090612;
    --panel: #151020;
    --panel-soft: #21182f;
    --line: #342947;
    --green: #8b5cf6;
    --green-light: #67e8f9;
    --accent: #8b5cf6;
    --accent-strong: #7c3aed;
    --cyan: #22d3ee;
    --pink: #f472b6;
    --text: #faf8ff;
    --muted: #aaa1b9;
    --danger: #ef4444;
    --sidebar: 242px;
    --player: 100px;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(circle at 76% -12%, rgba(139,92,246,.24), transparent 34%), radial-gradient(circle at 8% 82%, rgba(34,211,238,.11), transparent 31%); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }

.sidebar, .admin-sidebar { position: fixed; inset: 0 auto var(--player) 0; width: var(--sidebar); padding: 24px 18px; background: #090909; border-right: 1px solid #191919; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 750; letter-spacing: -.3px; }
.brand strong { color: var(--green); }
.brand-mark { width: 36px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #061b0d; font-weight: 950; box-shadow: 0 0 30px rgba(29,185,84,.28); }
.main-nav { margin-top: 34px; display: grid; gap: 7px; }
.main-nav a { display: flex; align-items: center; gap: 13px; padding: 11px 13px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 650; transition: .2s ease; }
.main-nav a:hover { background: var(--panel-soft); color: var(--text); transform: translateX(2px); }
.sidebar-footer { margin-top: auto; display: grid; gap: 10px; }
.plan-chip { padding: 13px; border-radius: 12px; background: linear-gradient(135deg, #173e25, #122318); color: var(--green-light); font-size: 13px; font-weight: 700; }

.app-shell { margin-left: var(--sidebar); min-height: 100vh; padding-bottom: calc(var(--player) + 24px); }
.topbar, .admin-topbar { height: 74px; padding: 0 32px; display: flex; align-items: center; gap: 20px; position: sticky; top: 0; z-index: 15; background: rgba(15,15,15,.86); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.04); }
.search { max-width: 460px; flex: 1; position: relative; }
.search span { position: absolute; left: 16px; top: 10px; color: var(--muted); }
.search input { width: 100%; border: 1px solid transparent; background: var(--panel); color: var(--text); border-radius: 999px; padding: 11px 18px 11px 42px; outline: 0; }
.search input:focus { border-color: #555; background: #222; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-pill { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--panel); font-size: 13px; font-weight: 700; }
.user-pill img { width: 30px; height: 30px; object-fit: cover; border-radius: 50%; }
.page-content { padding: 24px 32px 48px; max-width: 1560px; margin: 0 auto; }

.button { border: 0; border-radius: 999px; padding: 10px 18px; display: inline-flex; justify-content: center; align-items: center; cursor: pointer; font-weight: 750; font-size: 13px; transition: transform .2s ease, filter .2s ease, background .2s ease; }
.button:hover { transform: translateY(-1px); filter: brightness(1.1); }
.button-primary { background: var(--green); color: #051b0c; }
.button-muted { background: #292929; color: var(--text); }
.button-glass { background: rgba(255,255,255,.12); color: var(--text); border: 1px solid rgba(255,255,255,.16); }
.button-danger { background: rgba(239,68,68,.14); color: #ff9999; }
.button-wide { width: 100%; }
.button-small { padding: 7px 12px; font-size: 12px; }
.icon-button { width: 36px; height: 36px; flex: 0 0 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; transition: .2s ease; }
.icon-button:hover { color: var(--text); background: #2c2c2c; }
.mobile-menu { display: none; }
.is-hidden { display: none !important; }

.hero { min-height: 390px; padding: 54px; border-radius: 24px; display: flex; align-items: end; overflow: hidden; position: relative; background: linear-gradient(90deg, rgba(3,14,7,.96), rgba(3,14,7,.38)), var(--hero-image, linear-gradient(135deg, #163d24, #262153)); background-size: cover; background-position: center; box-shadow: 0 24px 80px rgba(0,0,0,.3); }
.hero::after { content: ""; position: absolute; width: 220px; aspect-ratio: 1; border-radius: 50%; right: 8%; top: 12%; background: repeating-radial-gradient(circle, #111 0 8px, #292929 9px 11px); opacity: .72; box-shadow: 0 0 0 8px rgba(255,255,255,.04), 0 30px 80px #000; }
.hero-copy { max-width: 680px; position: relative; z-index: 2; }
.hero h1, .page-hero h1, .auth-card h1 { font-size: clamp(36px, 6vw, 72px); line-height: .98; letter-spacing: -3px; margin: 9px 0 18px; max-width: 800px; }
.hero p, .page-hero p { color: #d1d1d1; max-width: 620px; line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; margin-top: 24px; }
.eyebrow { color: var(--green-light); text-transform: uppercase; letter-spacing: 1.6px; font-size: 10px; font-weight: 850; }

.content-section { margin-top: 42px; }
.section-heading { margin-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.section-heading h2 { margin: 4px 0 0; font-size: 25px; letter-spacing: -.8px; }
.section-heading > a { color: var(--muted); font-size: 13px; }
.page-hero { min-height: 260px; border-radius: 22px; padding: 42px; display: flex; flex-direction: column; justify-content: end; background: linear-gradient(135deg, #173923, #131313 58%, #28204b); }
.page-hero h1 { margin-bottom: 8px; font-size: clamp(38px, 7vw, 78px); }
.small-hero { min-height: 240px; }
.centered-hero { text-align: center; align-items: center; justify-content: center; background: transparent; }
.centered-hero h1 { max-width: none; }

.song-list { display: grid; gap: 4px; }
.song-row { min-width: 0; display: grid; grid-template-columns: 38px 25px 48px minmax(180px, 1.4fr) minmax(100px, .9fr) 100px 52px 38px; gap: 10px; align-items: center; padding: 8px 9px; border-radius: 10px; color: var(--muted); font-size: 13px; transition: background .18s ease; }
.song-row:hover { background: rgba(255,255,255,.055); }
.song-row > img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.song-play { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--green); color: #07170c; cursor: pointer; font-size: 11px; opacity: 0; transform: scale(.82); transition: .18s ease; }
.song-row:hover .song-play, .song-play.is-playing { opacity: 1; transform: scale(1); }
.song-main { min-width: 0; display: grid; gap: 3px; }
.song-main a:first-child { color: var(--text); font-weight: 720; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-main a:last-child:hover { color: var(--text); text-decoration: underline; }
.song-album { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-plan { color: #79d999; font-size: 11px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 15px; }
.media-card, .plan-card, .panel-card, .admin-panel { padding: 15px; border: 1px solid rgba(255,255,255,.035); border-radius: 14px; background: linear-gradient(145deg, #1b1b1b, #151515); transition: .22s ease; }
.media-card:hover { background: #252525; transform: translateY(-3px); }
.media-card img { width: 100%; aspect-ratio: 1; border-radius: 9px; object-fit: cover; margin-bottom: 13px; box-shadow: 0 10px 26px rgba(0,0,0,.3); }
.media-card strong { display: block; font-size: 14px; margin-bottom: 5px; }
.media-card span { color: var(--muted); font-size: 12px; }
.artist-card { text-align: center; }
.artist-card img { border-radius: 50%; }
.genre-card { min-height: 150px; padding: 20px; border-radius: 14px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: linear-gradient(135deg, #18532d, #19132f); }
.genre-card span { font-size: 40px; opacity: .32; }
.genre-card strong { font-size: 20px; letter-spacing: -.6px; }
.genre-card:hover { filter: brightness(1.15); transform: translateY(-3px); }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 18px; max-width: 1300px; margin: 10px auto 50px; }
.plan-card { position: relative; padding: 28px; }
.plan-card:hover { border-color: rgba(29,185,84,.38); transform: translateY(-3px); }
.plan-card > span { color: var(--green-light); font-size: 12px; }
.plan-card h2, .plan-card h3 { margin: 9px 0; }
.plan-card > strong { display: block; font-size: 31px; letter-spacing: -1.5px; }
.plan-card small, .plan-card p { color: var(--muted); }
.plan-card ul { list-style: none; padding: 0; margin: 25px 0; display: grid; gap: 11px; color: var(--muted); font-size: 13px; }
.plan-card li::before { content: "✓"; color: var(--green); margin-right: 8px; font-weight: 900; }
.featured-plan { border-color: rgba(29,185,84,.65); box-shadow: 0 22px 60px rgba(29,185,84,.1); }
.plan-badge { position: absolute; right: 16px; top: 16px; background: var(--green); color: #061b0d !important; padding: 5px 8px; border-radius: 999px; font-weight: 800; }
.compact-plans .plan-card { padding: 20px; }

.player { position: fixed; inset: auto 0 0 0; min-height: var(--player); z-index: 50; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.3fr) minmax(180px, 1fr); gap: 20px; align-items: center; padding: 13px 20px; border-top: 1px solid #282828; background: rgba(18,18,18,.96); backdrop-filter: blur(20px); }
.player-track { min-width: 0; display: flex; align-items: center; gap: 11px; }
.player-track img { width: 58px; height: 58px; border-radius: 7px; object-fit: cover; }
.player-track div { min-width: 0; display: grid; gap: 4px; }
.player-track strong, .player-track span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-track strong { font-size: 13px; }
.player-track span { color: var(--muted); font-size: 11px; }
.player-center { display: grid; gap: 8px; }
.player-controls { display: flex; justify-content: center; align-items: center; gap: 9px; }
.play-main { width: 38px; height: 38px; border: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #080808; cursor: pointer; padding-left: 4px; }
.progress-group { display: grid; grid-template-columns: 35px 1fr 35px; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
input[type="range"] { height: 4px; accent-color: var(--green); }
.player-options { display: flex; justify-content: end; align-items: center; gap: 7px; }
.player-options input { max-width: 100px; }

.guest-body { min-height: 100vh; display: grid; place-items: center; padding: 30px 15px; background: radial-gradient(circle at 50% 10%, #1a4a2b, #0f0f0f 42%); }
.guest-shell { width: min(100%, 460px); display: grid; gap: 20px; }
.brand-centered { justify-content: center; }
.auth-card { padding: 34px; border: 1px solid #2a2a2a; border-radius: 22px; background: rgba(20,20,20,.92); box-shadow: 0 30px 90px rgba(0,0,0,.32); }
.auth-card h1 { font-size: 39px; letter-spacing: -2px; }
.auth-card p { color: var(--muted); line-height: 1.6; }
.stack-form { display: grid; gap: 15px; }
.stack-form label, .admin-form label { display: grid; gap: 7px; color: #d0d0d0; font-size: 12px; font-weight: 680; }
input, select, textarea { width: 100%; border: 1px solid #373737; border-radius: 9px; background: #121212; color: var(--text); padding: 11px 12px; outline: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,185,84,.1); }
.auth-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.auth-links a { color: var(--green-light); }
.check-field { display: flex !important; align-items: center; gap: 8px !important; }
.check-field input { width: auto; accent-color: var(--green); }

.alert { margin-bottom: 16px; padding: 13px 15px; border-radius: 10px; font-size: 13px; overflow-wrap: anywhere; }
.alert-success { color: #99f0b8; background: rgba(29,185,84,.12); border: 1px solid rgba(29,185,84,.24); }
.alert-error { color: #ffabab; background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.24); }
.alert-info { color: #a8c6ff; background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.24); }
.empty-state { padding: 50px 20px; text-align: center; border: 1px dashed #333; border-radius: 16px; color: var(--muted); }
.empty-state > span { font-size: 40px; color: var(--green); }
.empty-state h3 { color: var(--text); margin-bottom: 5px; }
.simple-list { display: grid; gap: 8px; }
.simple-list article { display: flex; gap: 12px; align-items: center; background: var(--panel); padding: 11px; border-radius: 10px; }
.simple-list img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; }
.simple-list article div { display: grid; gap: 4px; }
.simple-list span, .simple-list time { color: var(--muted); font-size: 12px; }
.simple-list time { margin-left: auto; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.panel-card h2 { margin-top: 0; }
.narrow-card { max-width: 680px; margin: 25px auto; padding: 25px; }
.data-table-wrap { overflow: auto; border: 1px solid #2b2b2b; border-radius: 12px; }
.data-table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 12px; }
.data-table th, .data-table td { padding: 13px 14px; border-bottom: 1px solid #2b2b2b; text-align: left; }
.data-table th { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.status { color: var(--green-light); }

.admin-sidebar { bottom: 0; overflow-y: auto; }
.admin-shell { margin-left: var(--sidebar); min-height: 100vh; }
.admin-topbar { height: auto; min-height: 84px; padding-block: 15px; }
.admin-topbar h1 { margin: 2px 0 0; font-size: 22px; }
.admin-content { padding: 25px 30px 50px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { padding: 22px; min-height: 150px; display: flex; flex-direction: column; justify-content: end; border-radius: 16px; background: linear-gradient(145deg, #1e1e1e, #151515); border: 1px solid #292929; }
.stat-card span, .stat-card small { color: var(--muted); }
.stat-card strong { font-size: 38px; letter-spacing: -2px; margin: 5px 0; }
.admin-panel { margin-top: 20px; padding: 22px; }
.table-actions { display: flex; gap: 6px; align-items: center; }
.admin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.admin-form label > span:first-child { color: var(--muted); }
.field-wide { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 9px; margin-top: 8px; }
.form-preview { width: 100px; height: 100px; object-fit: cover; border-radius: 9px; }
.import-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.import-feature-grid article { padding: 16px; display: grid; gap: 6px; border: 1px solid #292929; border-radius: 12px; background: #131313; }
.import-feature-grid article > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(29,185,84,.14); color: var(--green-light); font-weight: 900; }
.import-feature-grid small, .import-note { color: var(--muted); font-size: 11px; line-height: 1.6; }
.import-start-form { padding: 19px; border-radius: 13px; background: rgba(255,255,255,.025); }
.import-status { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: #2a2a2a; color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .6px; }
.import-status.status-ready, .import-status.status-analyzed, .import-status.status-completed, .import-status.status-imported { color: #9df2bb; background: rgba(29,185,84,.13); }
.import-status.status-error, .import-status.status-failed { color: #ffaaaa; background: rgba(239,68,68,.14); }
.import-status.status-duplicate, .import-status.status-skipped { color: #ffd89a; background: rgba(245,158,11,.13); }
.import-stat-status { font-size: 24px !important; text-transform: capitalize; }
.import-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.import-actions form { flex: 1; min-width: 260px; padding: 13px; display: flex; align-items: end; gap: 9px; border-radius: 11px; background: #131313; }
.import-actions label { flex: 1; display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
.import-actions input { padding-block: 8px; }
.import-options { margin-bottom: 15px; padding: 13px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; border-radius: 11px; background: rgba(29,185,84,.05); border: 1px solid rgba(29,185,84,.15); }
.import-options label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
.import-select-all { color: var(--muted); font-size: 11px; }
.import-items { display: grid; gap: 10px; }
.import-item { padding: 14px; border: 1px solid #2b2b2b; border-radius: 13px; background: #151515; }
.import-item.status-imported { opacity: .65; }
.import-item-head { display: flex; align-items: center; gap: 9px; min-width: 0; margin-bottom: 12px; }
.import-item-head small { margin-left: auto; max-width: 45%; color: #777; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.confidence { color: #a8c6ff; font-size: 10px; }
.import-item-body { display: grid; grid-template-columns: 95px 1fr; gap: 14px; }
.import-art { position: relative; }
.import-art > img:first-child { width: 90px; height: 90px; object-fit: cover; border-radius: 9px; }
.import-art .artist-suggestion { position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; object-fit: cover; border: 2px solid #151515; border-radius: 50%; }
.import-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.import-fields label { display: grid; gap: 4px; color: #888; font-size: 9px; text-transform: uppercase; letter-spacing: .5px; }
.import-fields input { padding: 8px; font-size: 11px; }
.import-error { margin: 10px 0 0; color: #ffaaaa; font-size: 11px; }
.import-review-actions { position: sticky; bottom: 12px; z-index: 4; margin-top: 18px; padding: 12px; justify-content: end; border: 1px solid #333; border-radius: 999px; background: rgba(15,15,15,.94); backdrop-filter: blur(15px); }

.installer-body { min-height: 100vh; padding: 30px 18px 60px; background: radial-gradient(circle at 50% -10%, rgba(29,185,84,.22), transparent 34%), var(--bg); }
.installer-shell { width: min(100%, 1050px); margin: 0 auto; }
.installer-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.installer-badge, .requirement-summary { padding: 7px 11px; border-radius: 999px; background: #252525; color: var(--muted); font-size: 11px; font-weight: 750; }
.installer-intro { display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: end; margin-bottom: 24px; }
.installer-intro h1, .installer-locked h1 { margin: 7px 0 14px; font-size: clamp(38px, 7vw, 68px); line-height: .98; letter-spacing: -3px; }
.installer-intro p, .installer-locked p { max-width: 680px; color: var(--muted); line-height: 1.7; }
.installer-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.installer-steps li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 12px; font-weight: 700; }
.installer-steps span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #292929; }
.installer-steps .is-active span { color: #07170c; background: var(--green); }
.installer-card { margin-bottom: 16px; padding: 24px; border: 1px solid #292929; border-radius: 17px; background: linear-gradient(145deg, rgba(29,29,29,.98), rgba(19,19,19,.98)); }
.requirements-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.requirement-item { display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: 9px; background: #121212; color: var(--muted); font-size: 12px; }
.requirement-item span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; }
.is-ready span, .requirement-summary.is-ready { color: #9df2bb; background: rgba(29,185,84,.14); }
.has-errors span, .requirement-summary.has-errors { color: #ffaaaa; background: rgba(239,68,68,.14); }
.installer-tip { margin-bottom: 18px; padding: 13px; border-left: 3px solid var(--green); border-radius: 0 8px 8px 0; color: var(--muted); background: rgba(29,185,84,.07); font-size: 12px; line-height: 1.6; }
.installer-tip strong { color: var(--green-light); }
.installer-form small { color: #777; font-size: 10px; font-weight: 500; }
.installer-submit { padding: 18px 21px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid rgba(29,185,84,.28); border-radius: 15px; background: rgba(29,185,84,.07); }
.installer-submit div { display: grid; gap: 4px; }
.installer-submit span { color: var(--muted); font-size: 11px; }
.installer-submit button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.installer-locked { min-height: 72vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.installer-lock { width: 75px; height: 75px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 50%; color: #07170c; background: var(--green); font-size: 32px; font-weight: 900; box-shadow: 0 0 70px rgba(29,185,84,.25); }
.installer-locked code { color: #fff; }
.installer-actions { margin-top: 22px; display: flex; gap: 9px; }

@media (max-width: 1050px) {
    :root { --sidebar: 210px; }
    .song-row { grid-template-columns: 38px 20px 44px minmax(150px, 1fr) 80px 45px; }
    .song-album, .song-plan { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .import-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .import-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    :root { --player: 132px; }
    .sidebar, .admin-sidebar { width: 260px; bottom: 0; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 15px 0 60px #000; }
    .sidebar.is-open, .admin-sidebar.is-open { transform: translateX(0); }
    .app-shell, .admin-shell { margin-left: 0; }
    .mobile-menu { display: grid; }
    .topbar, .admin-topbar { padding: 12px 15px; }
    .topbar .search { display: none; }
    .topbar-actions .button-muted, .user-pill span { display: none; }
    .page-content, .admin-content { padding: 15px 14px calc(var(--player) + 15px); }
    .hero { min-height: 390px; padding: 30px 24px; }
    .hero::after { width: 130px; right: -20px; top: 20px; }
    .hero h1, .page-hero h1 { font-size: 44px; letter-spacing: -2px; }
    .page-hero { padding: 27px 20px; min-height: 220px; }
    .song-row { grid-template-columns: 36px 42px minmax(0, 1fr) 38px; padding-inline: 4px; }
    .song-index, .song-duration, .song-album, .song-plan { display: none; }
    .song-play { opacity: 1; transform: scale(1); }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .media-card { padding: 10px; }
    .player { grid-template-columns: 1fr auto; gap: 8px; padding: 9px 12px; }
    .player-center { grid-column: 1 / -1; grid-row: 2; }
    .player-options { display: none; }
    .player-track img { width: 44px; height: 44px; }
    .two-column, .admin-form { grid-template-columns: 1fr; }
    .field-wide { grid-column: auto; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-card { min-height: 120px; padding: 16px; }
    .stat-card strong { font-size: 29px; }
    .admin-topbar h1 { font-size: 17px; }
    .admin-panel { padding: 15px; }
    .installer-intro { grid-template-columns: 1fr; }
    .requirements-grid { grid-template-columns: 1fr; }
    .installer-submit { align-items: stretch; flex-direction: column; }
    .import-feature-grid, .import-options { grid-template-columns: 1fr; }
    .import-actions form { align-items: stretch; flex-direction: column; }
    .import-item-body { grid-template-columns: 1fr; }
    .import-fields { grid-template-columns: 1fr 1fr; }
    .import-art { display: flex; }
    .import-item-head { flex-wrap: wrap; }
    .import-item-head small { width: 100%; max-width: 100%; margin-left: 0; }
    .import-review-actions { border-radius: 14px; flex-direction: column; }
}

/* ISA PLAY visual refresh */
.ui-icon { width: 19px; height: 19px; display: block; flex: 0 0 auto; }
.brand { font-size: 17px; letter-spacing: -.5px; }
.brand strong { color: var(--cyan); }
.brand-mark {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 13px;
    object-fit: cover;
    background: transparent;
    box-shadow: 0 9px 28px rgba(124,58,237,.32);
}
.sidebar, .admin-sidebar {
    padding: 22px 16px;
    background: linear-gradient(180deg, rgba(13,8,23,.99), rgba(8,6,15,.99));
    border-right-color: rgba(255,255,255,.06);
}
.main-nav { margin-top: 28px; gap: 5px; }
.main-nav a { position: relative; padding: 11px 12px; border-radius: 11px; color: #a9a0b7; }
.main-nav a::after {
    content: "";
    position: absolute;
    inset: 7px auto 7px 0;
    width: 3px;
    border-radius: 99px;
    background: linear-gradient(var(--pink), var(--cyan));
    opacity: 0;
    transform: scaleY(.4);
    transition: .2s ease;
}
.main-nav a:hover, .main-nav a.is-active { color: #fff; background: linear-gradient(90deg, rgba(139,92,246,.18), rgba(34,211,238,.04)); transform: none; }
.main-nav a.is-active::after { opacity: 1; transform: scaleY(1); }
.main-nav a.is-active .ui-icon { color: var(--cyan); filter: drop-shadow(0 0 9px rgba(34,211,238,.35)); }
.nav-divider { margin: 18px 11px 5px; color: #6f667d; font-size: 9px; font-weight: 850; letter-spacing: 1.4px; text-transform: uppercase; }
.plan-chip { display: grid; gap: 3px; padding: 14px; background: linear-gradient(135deg, rgba(124,58,237,.24), rgba(34,211,238,.09)); border: 1px solid rgba(139,92,246,.25); color: #fff; }
.plan-chip span { color: var(--cyan); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.plan-chip strong { font-size: 12px; }
.sidebar-backdrop { display: none; }

.topbar, .admin-topbar {
    background: rgba(9,6,18,.78);
    border-bottom-color: rgba(255,255,255,.06);
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
}
.search .ui-icon { position: absolute; left: 15px; top: 11px; color: #8f849f; z-index: 1; }
.search input {
    border-color: rgba(255,255,255,.07);
    background: rgba(255,255,255,.055);
    padding-left: 44px;
    transition: .2s ease;
}
.search input:focus { border-color: rgba(139,92,246,.65); background: rgba(255,255,255,.08); box-shadow: 0 0 0 4px rgba(139,92,246,.1); }
.button { gap: 7px; }
.button .ui-icon { width: 16px; height: 16px; }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--accent), #6d28d9 60%, #0e9fba); box-shadow: 0 10px 26px rgba(124,58,237,.23); }
.button-muted { background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.06); }
.icon-button { color: #aaa1b9; }
.icon-button:hover { color: #fff; background: rgba(255,255,255,.09); }
.page-content { padding-top: 28px; }

.hero {
    min-height: 440px;
    padding: 56px;
    align-items: center;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr);
    gap: 30px;
    isolation: isolate;
    background:
        linear-gradient(100deg, rgba(9,6,18,.98), rgba(9,6,18,.58) 58%, rgba(9,6,18,.16)),
        var(--hero-image, linear-gradient(135deg, #35105b, #102c49));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 32px 100px rgba(0,0,0,.34);
}
.hero::before {
    content: "";
    position: absolute;
    inset: auto auto -40% -8%;
    width: 55%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(139,92,246,.2);
    filter: blur(65px);
    z-index: -1;
}
.hero::after { display: none; }
.hero-copy { max-width: 760px; }
.hero h1 { max-width: 720px; font-size: clamp(44px, 6vw, 82px); letter-spacing: -4px; text-wrap: balance; }
.hero p { font-size: 15px; }
.hero-actions { align-items: center; }
.hero-pills { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-pills span {
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 999px;
    color: #c8c1d3;
    background: rgba(255,255,255,.045);
    font-size: 10px;
    font-weight: 700;
}
.hero-pills .ui-icon { width: 14px; height: 14px; color: var(--cyan); }
.hero-orbit { min-height: 310px; position: relative; display: grid; place-items: center; }
.hero-orbit img { width: min(72%, 250px); position: relative; z-index: 3; border-radius: 28%; box-shadow: 0 35px 80px rgba(22,6,49,.55); animation: hero-float 5s ease-in-out infinite; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; animation: orbit-spin 14s linear infinite; }
.orbit::after { content: ""; position: absolute; width: 9px; height: 9px; top: 16%; left: 10%; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 20px var(--cyan); }
.orbit-one { width: 92%; aspect-ratio: 1; }
.orbit-two { width: 70%; aspect-ratio: 1; animation-direction: reverse; animation-duration: 10s; }
.orbit-two::after { background: var(--pink); box-shadow: 0 0 20px var(--pink); }
.hero-equalizer { position: absolute; z-index: 4; right: 5%; bottom: 8%; height: 44px; padding: 9px 12px; display: flex; align-items: end; gap: 4px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(9,6,18,.7); backdrop-filter: blur(12px); }
.hero-equalizer i, .playing-bars i { width: 3px; min-height: 5px; border-radius: 99px; background: linear-gradient(var(--pink), var(--cyan)); animation: equalize .8s ease-in-out infinite alternate; }
.hero-equalizer i:nth-child(2), .playing-bars i:nth-child(2) { animation-delay: -.2s; }
.hero-equalizer i:nth-child(3), .playing-bars i:nth-child(3) { animation-delay: -.45s; }
.hero-equalizer i:nth-child(4), .playing-bars i:nth-child(4) { animation-delay: -.1s; }
.hero-equalizer i:nth-child(5) { animation-delay: -.6s; }
.page-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(124,58,237,.34), rgba(13,10,23,.96) 56%, rgba(8,145,178,.2)); border: 1px solid rgba(255,255,255,.07); }
.page-hero::after { content: ""; position: absolute; width: 240px; aspect-ratio: 1; right: -60px; top: -100px; border-radius: 50%; background: rgba(34,211,238,.1); filter: blur(10px); }
.eyebrow { color: var(--cyan); }

.song-list { gap: 5px; }
.song-row {
    position: relative;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
}
.song-row:hover, .song-row.is-active { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.055); }
.song-row.is-active { background: linear-gradient(90deg, rgba(139,92,246,.17), rgba(34,211,238,.035)); }
.song-row.is-active .song-main a:first-child, .song-row.is-active .song-index { color: var(--cyan); }
.song-row > img { border-radius: 8px; box-shadow: 0 7px 18px rgba(0,0,0,.25); }
.song-play { display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), #0e9fba); box-shadow: 0 7px 18px rgba(124,58,237,.24); }
.song-play .ui-icon { width: 15px; height: 15px; }
.state-pause, .favorite-on, .volume-off, .expand-off { display: none; }
.is-playing .state-play, .is-favorited .favorite-off, .is-muted .volume-on, .is-expanded .expand-on { display: none; }
.is-playing .state-pause, .is-favorited .favorite-on, .is-muted .volume-off, .is-expanded .expand-off { display: block; }
.song-plan { color: var(--cyan); }

.media-card, .plan-card, .panel-card, .admin-panel {
    border-color: rgba(255,255,255,.06);
    background: linear-gradient(145deg, rgba(28,21,40,.92), rgba(15,11,24,.94));
    box-shadow: 0 16px 42px rgba(0,0,0,.08);
}
.media-card:hover { border-color: rgba(139,92,246,.22); background: linear-gradient(145deg, rgba(42,30,59,.96), rgba(18,13,29,.96)); box-shadow: 0 20px 55px rgba(0,0,0,.2); }
.media-card img { border-radius: 11px; }
.genre-card { background: linear-gradient(135deg, rgba(124,58,237,.75), rgba(8,145,178,.55)); border: 1px solid rgba(255,255,255,.08); }

input[type="range"] {
    --range-progress: 0%;
    height: 4px;
    border: 0;
    padding: 0;
    border-radius: 99px;
    appearance: none;
    background: linear-gradient(to right, var(--cyan) 0 var(--range-progress), rgba(255,255,255,.18) var(--range-progress) 100%);
    cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; appearance: none; background: #fff; box-shadow: 0 0 0 4px rgba(34,211,238,.12); opacity: 0; transition: .18s ease; }
input[type="range"]::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(34,211,238,.12); opacity: 0; transition: .18s ease; }
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:focus::-webkit-slider-thumb { opacity: 1; }
input[type="range"]:hover::-moz-range-thumb, input[type="range"]:focus::-moz-range-thumb { opacity: 1; }

.player {
    min-height: var(--player);
    overflow: hidden;
    grid-template-columns: minmax(235px, 1fr) minmax(330px, 1.35fr) minmax(220px, 1fr);
    gap: 22px;
    padding: 12px 20px;
    border-top-color: rgba(255,255,255,.09);
    background: rgba(11,8,18,.92);
    box-shadow: 0 -20px 60px rgba(0,0,0,.2);
}
.player > *:not(.player-glow):not(audio) { position: relative; z-index: 2; }
.player-glow { position: absolute; inset: -200%; z-index: 0; opacity: 0; background-position: center; background-size: cover; filter: blur(100px) saturate(1.4); transition: opacity .4s ease; }
.player.has-track .player-glow { opacity: .09; }
.player-track { gap: 12px; }
.player-cover-button { width: 64px; height: 64px; flex: 0 0 64px; padding: 0; position: relative; overflow: hidden; border: 0; border-radius: 11px; background: #151020; cursor: pointer; box-shadow: 0 10px 26px rgba(0,0,0,.3); }
.player-cover-button img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.player-cover-button:hover img { transform: scale(1.04); }
.playing-bars { position: absolute; inset: auto 6px 6px auto; width: 27px; height: 23px; display: none; align-items: end; justify-content: center; gap: 2px; padding: 5px; border-radius: 7px; background: rgba(9,6,18,.82); }
.player.is-playing .playing-bars { display: flex; }
.playing-bars i { width: 2px; }
.player-track-copy { min-width: 0; display: grid; gap: 3px; }
.player-track-copy small { color: var(--cyan); font-size: 8px; font-weight: 850; letter-spacing: 1.1px; text-transform: uppercase; }
.player-track-copy strong, .player-track-copy span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-track-copy strong { font-size: 13px; }
.player-track-copy span { color: var(--muted); font-size: 11px; }
.favorite-button span { color: inherit; }
.favorite-button.is-favorited { color: var(--pink); }
.player-center { gap: 9px; }
.player-controls { gap: 8px; }
.player-controls .icon-button { width: 32px; height: 32px; flex-basis: 32px; }
.player-controls .icon-button .ui-icon { width: 17px; height: 17px; }
.play-main { width: 42px; height: 42px; color: #fff; background: linear-gradient(135deg, var(--accent), #0e9fba); box-shadow: 0 8px 24px rgba(124,58,237,.34); transition: transform .2s ease, box-shadow .2s ease; }
.play-main:hover { transform: scale(1.06); box-shadow: 0 10px 30px rgba(34,211,238,.22); }
.play-main .ui-icon { width: 19px; height: 19px; }
.player-tool.is-active { color: var(--cyan); }
.repeat-button { position: relative; }
.repeat-one { display: none; position: absolute; right: 1px; bottom: 0; width: 12px; height: 12px; place-items: center; border-radius: 50%; color: #090612; background: var(--cyan); font-size: 7px; font-weight: 900; }
.repeat-button.is-repeat-one .repeat-one { display: grid; }
.progress-group { grid-template-columns: 38px 1fr 38px; gap: 9px; }
.progress-group input { width: 100%; }
.player-options { gap: 5px; }
.player-options input { width: min(90px, 30%); }
.queue-count { margin-right: 4px; color: #776d86; font-size: 9px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.player.has-error #player-status { color: #ff9caa; }
.player.is-loading .playing-bars { display: flex; opacity: .6; }

body.player-expanded { overflow: hidden; }
.player.is-expanded {
    inset: 0;
    width: 100%;
    min-height: 100dvh;
    padding: 6vh 7vw 4vh;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto auto;
    gap: 20px;
    background: rgba(9,6,18,.96);
}
.player.is-expanded .player-glow { inset: -40%; opacity: .28; filter: blur(130px) saturate(1.35); }
.player.is-expanded .player-track { min-height: 0; flex-direction: column; justify-content: center; text-align: center; }
.player.is-expanded .player-cover-button { width: min(46vh, 430px); height: min(46vh, 430px); flex-basis: auto; border-radius: 24px; box-shadow: 0 35px 100px rgba(0,0,0,.45); cursor: pointer; }
.player.is-expanded .player-track-copy { margin-top: 16px; }
.player.is-expanded .player-track-copy strong { font-size: clamp(22px, 4vw, 38px); letter-spacing: -1px; }
.player.is-expanded .player-track-copy span { font-size: 14px; }
.player.is-expanded .favorite-button { position: absolute; right: calc(50% - min(30vh, 250px)); bottom: 2px; }
.player.is-expanded .player-center { width: min(100%, 720px); margin: 0 auto; }
.player.is-expanded .player-controls { gap: 18px; }
.player.is-expanded .player-controls .icon-button { width: 42px; height: 42px; flex-basis: 42px; }
.player.is-expanded .play-main { width: 58px; height: 58px; }
.player.is-expanded .player-options { justify-content: center; }
.player.is-expanded #player-expand { position: fixed; right: 24px; top: 22px; }

@keyframes hero-float { 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes equalize { from { height: 20%; } to { height: 100%; } }

@media (max-width: 1050px) {
    .hero { grid-template-columns: minmax(0, 1fr) minmax(210px, .58fr); padding: 42px; }
    .hero-orbit { min-height: 260px; }
    .player { grid-template-columns: minmax(210px, 1fr) minmax(300px, 1.25fr) minmax(150px, .75fr); gap: 12px; }
    .queue-count { display: none; }
}

@media (max-width: 760px) {
    :root { --player: 142px; }
    .sidebar-backdrop { position: fixed; inset: 0; z-index: 19; border: 0; background: rgba(5,3,10,.64); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
    body.sidebar-open .sidebar-backdrop { display: block; opacity: 1; pointer-events: auto; }
    .sidebar, .admin-sidebar { padding-top: 18px; }
    .topbar { min-height: 68px; }
    .hero { min-height: 420px; padding: 31px 23px; display: flex; align-items: end; }
    .hero h1 { font-size: clamp(42px, 13vw, 60px); letter-spacing: -3px; }
    .hero-orbit { position: absolute; width: 170px; min-height: 170px; right: -28px; top: 14px; opacity: .75; }
    .hero-orbit img { width: 92px; border-radius: 24px; }
    .orbit-one { width: 160px; }
    .orbit-two { width: 125px; }
    .hero-equalizer { display: none; }
    .hero-pills { display: none; }
    .hero-actions { flex-wrap: wrap; }
    .content-section { margin-top: 34px; }
    .section-heading h2 { font-size: 22px; }
    .song-row { grid-template-columns: 38px 44px minmax(0, 1fr) 38px; gap: 8px; }
    .song-play { opacity: 1; transform: none; }
    .player { min-height: var(--player); grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 5px 8px; padding: 9px 11px 10px; }
    .player-track { min-width: 0; }
    .player-cover-button { width: 48px; height: 48px; flex-basis: 48px; border-radius: 9px; }
    .player-track-copy small { display: none; }
    .player-track-copy strong { font-size: 12px; }
    .player-options { display: none; }
    .player-center { grid-column: 1 / -1; grid-row: 2; gap: 6px; }
    .player-controls { gap: 6px; }
    .player-controls .icon-button { width: 31px; height: 31px; flex-basis: 31px; }
    .play-main { width: 38px; height: 38px; }
    .progress-group { grid-template-columns: 31px 1fr 31px; font-size: 9px; }
    .player.is-expanded { padding: 9vh 18px 26px; grid-template-rows: minmax(0, 1fr) auto auto; }
    .player.is-expanded .player-cover-button { width: min(76vw, 350px); height: min(76vw, 350px); border-radius: 20px; }
    .player.is-expanded .player-track-copy { margin-top: 12px; }
    .player.is-expanded .player-track-copy small { display: block; }
    .player.is-expanded .favorite-button { position: static; }
    .player.is-expanded .player-options { display: flex; }
    .player.is-expanded .player-options input, .player.is-expanded .queue-count { display: block; }
    .player.is-expanded .player-controls { gap: 10px; }
    .player.is-expanded .player-controls .icon-button { width: 38px; height: 38px; flex-basis: 38px; }
    .player.is-expanded .play-main { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Admin workspace refresh */
.admin-body { --admin-sidebar: 272px; background: #090612; }
.admin-body::before { background: radial-gradient(circle at 92% -10%, rgba(139,92,246,.18), transparent 28%), radial-gradient(circle at 15% 105%, rgba(34,211,238,.08), transparent 30%); }
.admin-sidebar {
    width: var(--admin-sidebar);
    padding: 18px 14px 14px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(15,10,25,.995), rgba(8,6,14,.995));
    box-shadow: 18px 0 50px rgba(0,0,0,.1);
}
.admin-brand-row { min-height: 48px; padding: 0 8px 15px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.065); }
.admin-brand-row .brand { gap: 9px; }
.admin-brand-row .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
.admin-brand-badge { padding: 4px 6px; border: 1px solid rgba(34,211,238,.18); border-radius: 6px; color: var(--cyan); background: rgba(34,211,238,.07); font-size: 8px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.admin-nav { min-height: 0; margin: 8px -4px 0 0; padding-right: 4px; flex: 1; display: block; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(139,92,246,.35) transparent; }
.admin-nav .nav-divider { margin: 17px 10px 6px; }
.admin-nav .nav-divider:first-child { margin-top: 8px; }
.admin-nav a { min-height: 39px; margin-bottom: 3px; padding: 9px 11px; font-size: 12px; }
.admin-nav a .ui-icon { width: 17px; height: 17px; }
.admin-nav a small { margin-left: auto; padding: 2px 5px; border-radius: 5px; color: var(--pink); background: rgba(244,114,182,.09); font-size: 7px; font-weight: 900; letter-spacing: .7px; }
.admin-sidebar-footer { padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.065); }
.admin-profile-card { min-width: 0; padding: 8px; display: grid; grid-template-columns: 34px minmax(0, 1fr) 16px; gap: 9px; align-items: center; border: 1px solid rgba(255,255,255,.06); border-radius: 11px; background: rgba(255,255,255,.035); transition: .2s ease; }
.admin-profile-card:hover { border-color: rgba(139,92,246,.24); background: rgba(139,92,246,.08); }
.admin-profile-card img { width: 34px; height: 34px; object-fit: cover; border-radius: 9px; }
.admin-profile-card span { min-width: 0; display: grid; gap: 2px; }
.admin-profile-card strong, .admin-profile-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-profile-card strong { font-size: 10px; }
.admin-profile-card small { color: var(--muted); font-size: 8px; }
.admin-profile-card > .ui-icon { width: 14px; height: 14px; color: #756b84; }

.admin-shell { margin-left: var(--admin-sidebar); }
.admin-topbar { min-height: 76px; padding: 12px 28px; background: rgba(9,6,18,.82); }
.admin-page-title { display: grid; gap: 4px; }
.admin-page-title h1 { margin: 0; font-size: 21px; letter-spacing: -.6px; }
.admin-breadcrumb { display: flex; gap: 6px; color: #766d84; font-size: 8px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.admin-breadcrumb b { color: var(--accent); }
.admin-topbar-actions .button { padding: 8px 13px; font-size: 10px; }
.admin-topbar-actions .button .ui-icon { width: 14px; height: 14px; }
.admin-content { max-width: 1680px; margin: 0 auto; padding: 24px 28px 54px; }

.admin-welcome {
    min-height: 180px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 20px;
    background: linear-gradient(120deg, rgba(124,58,237,.3), rgba(20,14,31,.96) 54%, rgba(8,145,178,.14));
    box-shadow: 0 25px 70px rgba(0,0,0,.16);
}
.admin-welcome::before, .admin-welcome::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.admin-welcome::before { width: 230px; height: 230px; right: 8%; top: -140px; border: 1px solid rgba(255,255,255,.11); box-shadow: 0 0 0 35px rgba(139,92,246,.04), 0 0 0 70px rgba(34,211,238,.025); }
.admin-welcome::after { width: 170px; height: 170px; right: -90px; bottom: -110px; background: rgba(34,211,238,.14); filter: blur(20px); }
.admin-welcome > * { position: relative; z-index: 1; }
.admin-welcome h2 { margin: 5px 0 7px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -2.2px; }
.admin-welcome p { max-width: 600px; margin: 0; color: #b8afc5; font-size: 12px; line-height: 1.6; }
.admin-welcome-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.admin-stats-grid { margin-top: 16px; gap: 11px; }
.admin-stats-grid .stat-card { min-height: 150px; padding: 18px; position: relative; overflow: hidden; justify-content: end; background: linear-gradient(150deg, rgba(27,20,39,.96), rgba(14,10,23,.98)); border-color: rgba(255,255,255,.07); }
.admin-stats-grid .stat-card::after { content: ""; position: absolute; width: 110px; height: 110px; right: -50px; top: -55px; border-radius: 50%; background: var(--stat-color); filter: blur(8px); opacity: .16; }
.stat-icon { width: 34px; height: 34px; margin-bottom: auto; display: grid; place-items: center; border-radius: 10px; color: var(--stat-color); background: color-mix(in srgb, var(--stat-color) 12%, transparent); border: 1px solid color-mix(in srgb, var(--stat-color) 18%, transparent); }
.stat-icon .ui-icon { width: 17px; height: 17px; }
.admin-stats-grid .stat-card strong { margin: 7px 0 2px; font-size: 34px; letter-spacing: -2px; }
.admin-stats-grid .stat-card span { font-size: 10px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.admin-stats-grid .stat-card small { font-size: 9px; }
.stat-purple { --stat-color: #a78bfa; }
.stat-cyan { --stat-color: #22d3ee; }
.stat-pink { --stat-color: #f472b6; }
.stat-blue { --stat-color: #60a5fa; }

.admin-quick-grid { margin-top: 11px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.admin-quick-grid a { min-width: 0; padding: 12px; display: grid; grid-template-columns: 31px minmax(0, 1fr) 15px; gap: 9px; align-items: center; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; background: rgba(255,255,255,.027); transition: .2s ease; }
.admin-quick-grid a:hover { border-color: rgba(139,92,246,.28); background: rgba(139,92,246,.075); transform: translateY(-2px); }
.admin-quick-grid a > .ui-icon:first-child { width: 31px; height: 31px; padding: 7px; border-radius: 9px; color: var(--cyan); background: rgba(34,211,238,.08); }
.admin-quick-grid a > .ui-icon:last-child { width: 13px; height: 13px; color: #71667e; }
.admin-quick-grid span { min-width: 0; display: grid; gap: 2px; }
.admin-quick-grid strong, .admin-quick-grid small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-quick-grid strong { font-size: 10px; }
.admin-quick-grid small { color: var(--muted); font-size: 8px; }

.admin-dashboard-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 14px; }
.dashboard-panel { min-width: 0; }
.dashboard-panel .section-heading { align-items: center; }
.section-action { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.section-action .ui-icon { width: 12px; height: 12px; }
.section-action:hover { color: var(--cyan); }
.top-song-list, .admin-activity-list { display: grid; gap: 3px; }
.top-song-list article { min-width: 0; padding: 8px 7px; display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) minmax(100px, .7fr); gap: 8px; align-items: center; border-radius: 9px; transition: .18s ease; }
.top-song-list article:hover, .admin-activity-list article:hover { background: rgba(255,255,255,.04); }
.top-song-rank { color: #665c74; font-size: 9px; font-weight: 900; }
.admin-song-cover { width: 34px; height: 34px; object-fit: cover; border-radius: 7px; box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.top-song-list article > div:nth-child(3), .admin-activity-list article > div { min-width: 0; display: grid; gap: 2px; }
.top-song-list strong, .top-song-list small, .admin-activity-list strong, .admin-activity-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-song-list strong, .admin-activity-list strong { font-size: 10px; }
.top-song-list small, .admin-activity-list small { color: var(--muted); font-size: 8px; }
.top-song-metric { justify-items: end; }
.top-song-metric > strong { color: var(--cyan); font-size: 9px !important; }
.top-song-metric > span { width: 100%; max-width: 100px; height: 3px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); }
.top-song-metric i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--cyan)); }
.admin-activity-list article { min-width: 0; padding: 8px 6px; display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; gap: 9px; align-items: center; border-radius: 9px; transition: .18s ease; }
.activity-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: var(--pink); background: rgba(244,114,182,.08); }
.activity-icon .ui-icon { width: 15px; height: 15px; }
.activity-cover { width: 32px; height: 32px; position: relative; }
.activity-cover img { width: 32px; height: 32px; object-fit: cover; border-radius: 8px; }
.activity-cover i { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; display: grid; place-items: center; border: 2px solid #171121; border-radius: 50%; color: #fff; background: var(--accent); }
.activity-cover i .ui-icon { width: 7px; height: 7px; }
.admin-activity-list time { color: #766d83; font-size: 8px; white-space: nowrap; }
.admin-empty { min-height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #776d84; font-size: 10px; }
.admin-empty .ui-icon { width: 23px; height: 23px; color: #655971; }

.admin-panel { border-radius: 16px; }
.admin-heading-with-icon { display: flex; align-items: center; gap: 11px; }
.admin-heading-icon { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(139,92,246,.18); border-radius: 11px; color: var(--cyan); background: linear-gradient(135deg, rgba(139,92,246,.14), rgba(34,211,238,.06)); }
.admin-heading-icon .ui-icon { width: 18px; height: 18px; }
.admin-list-heading, .admin-form-heading { align-items: center; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,.06); }
.admin-list-heading h2, .admin-form-heading h2 { font-size: 20px; }
.admin-table-wrap { border-color: rgba(255,255,255,.07); border-radius: 11px; background: rgba(5,3,10,.15); }
.admin-data-table th { position: sticky; top: 0; z-index: 1; background: #151020; }
.admin-data-table th, .admin-data-table td { padding: 12px 13px; border-color: rgba(255,255,255,.055); }
.admin-data-table tbody tr { transition: background .16s ease; }
.admin-data-table tbody tr:hover { background: rgba(139,92,246,.045); }
.admin-data-table td { color: #bcb4c8; }
.admin-data-table td strong { color: #fff; }
.table-id { color: #71677e; font-size: 9px; font-weight: 900; }
.table-money { color: #b9f4ff !important; }
.table-metric { display: inline-flex; align-items: center; gap: 4px; color: #b8f4ff; font-size: 10px; font-weight: 800; }
.table-metric .ui-icon { width: 12px; height: 12px; }
.admin-status { display: inline-flex; align-items: center; min-height: 21px; padding: 3px 7px; border: 1px solid rgba(255,255,255,.07); border-radius: 999px; color: #aaa1b9; background: rgba(255,255,255,.045); font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .45px; white-space: nowrap; }
.admin-status.status-active, .admin-status.status-paid, .admin-status.status-admin { color: #9df5c4; border-color: rgba(74,222,128,.14); background: rgba(74,222,128,.08); }
.admin-status.status-inactive, .admin-status.status-expired, .admin-status.status-cancelled, .admin-status.status-blocked, .admin-status.status-failed { color: #ffadb8; border-color: rgba(244,63,94,.14); background: rgba(244,63,94,.08); }
.admin-status.status-pending, .admin-status.status-manual { color: #ffd59a; border-color: rgba(245,158,11,.14); background: rgba(245,158,11,.08); }
.admin-status.status-user, .admin-status.status-ftp, .admin-status.status-s3, .admin-status.status-external, .admin-status.status-local { color: #a9ddff; border-color: rgba(96,165,250,.14); background: rgba(96,165,250,.08); }
.admin-row-actions { justify-content: end; }
.admin-row-actions .icon-button { width: 29px; height: 29px; flex-basis: 29px; border: 1px solid transparent; background: rgba(255,255,255,.035); }
.admin-row-actions .icon-button .ui-icon { width: 14px; height: 14px; }
.admin-row-actions .icon-button:hover { border-color: rgba(139,92,246,.2); color: var(--cyan); background: rgba(139,92,246,.09); }
.admin-row-actions form { display: contents; }
.admin-delete-button:hover { color: #ff9cab !important; border-color: rgba(244,63,94,.18) !important; background: rgba(244,63,94,.08) !important; }

.admin-form-intro { margin-bottom: 17px; padding: 12px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(34,211,238,.1); border-radius: 11px; background: linear-gradient(90deg, rgba(139,92,246,.08), rgba(34,211,238,.035)); }
.admin-form-intro > span { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; border-radius: 9px; color: var(--cyan); background: rgba(34,211,238,.08); }
.admin-form-intro > span .ui-icon { width: 16px; height: 16px; }
.admin-form-intro div { display: grid; gap: 2px; }
.admin-form-intro strong { font-size: 10px; }
.admin-form-intro small { color: var(--muted); font-size: 8px; line-height: 1.5; }
.admin-form-modern { gap: 13px; }
.admin-field { padding: 11px; border: 1px solid rgba(255,255,255,.055); border-radius: 11px; background: rgba(255,255,255,.022); transition: .18s ease; }
.admin-field:focus-within { border-color: rgba(139,92,246,.28); background: rgba(139,92,246,.035); }
.admin-field-label { color: #bfb6cb !important; font-size: 9px; font-weight: 850; letter-spacing: .35px; text-transform: uppercase; }
.admin-field input, .admin-field select, .admin-field textarea { border-color: rgba(255,255,255,.07); background: rgba(5,3,10,.36); }
.admin-field small { color: #7e748c; font-size: 8px; font-weight: 500; line-height: 1.5; }
.admin-switch { min-height: 38px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.admin-switch input { position: absolute; opacity: 0; pointer-events: none; }
.admin-switch i { width: 34px; height: 19px; padding: 2px; position: relative; border-radius: 999px; background: #342b40; transition: .2s ease; }
.admin-switch i::after { content: ""; width: 15px; height: 15px; display: block; border-radius: 50%; background: #958ba3; transition: .2s ease; }
.admin-switch input:checked + i { background: linear-gradient(90deg, var(--accent), #0891b2); }
.admin-switch input:checked + i::after { transform: translateX(15px); background: #fff; }
.admin-switch > span { color: var(--muted); font-size: 9px; }
.admin-upload-field { min-height: 105px; padding: 16px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px dashed rgba(139,92,246,.35); border-radius: 10px; background: rgba(139,92,246,.035); text-align: center; cursor: pointer; transition: .2s ease; }
.admin-upload-field:hover { border-color: rgba(34,211,238,.4); background: rgba(34,211,238,.04); }
.admin-upload-field > span { width: 31px; height: 31px; display: grid; place-items: center; color: var(--cyan); }
.admin-upload-field .ui-icon { width: 23px; height: 23px; }
.admin-upload-field strong { font-size: 10px; }
.admin-upload-field small { font-size: 8px; }
.admin-upload-field input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.admin-current-file { padding: 9px; display: flex; align-items: center; gap: 9px; border-radius: 9px; background: rgba(255,255,255,.035); }
.admin-current-file .form-preview { width: 48px; height: 48px; border-radius: 8px; }
.admin-current-file > span { display: grid; gap: 2px; }
.admin-current-file strong { font-size: 9px; }
.admin-form-actions { padding-top: 15px; justify-content: end; border-top: 1px solid rgba(255,255,255,.06); }

@media (max-width: 1180px) {
    .admin-body { --admin-sidebar: 240px; }
    .admin-dashboard-grid { grid-template-columns: 1fr; }
    .admin-quick-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-import-shortcut { display: none; }
}

@media (max-width: 760px) {
    .admin-body { --admin-sidebar: 270px; }
    .admin-sidebar { width: var(--admin-sidebar); }
    .admin-shell { margin-left: 0; }
    .admin-topbar { min-height: 67px; padding: 10px 13px; }
    .admin-page-title h1 { font-size: 16px; }
    .admin-breadcrumb { display: none; }
    .admin-topbar-actions .button { width: 34px; height: 34px; padding: 0; font-size: 0; border-radius: 50%; }
    .admin-topbar-actions .button .ui-icon { width: 15px; height: 15px; }
    .admin-content { padding: 14px 12px 34px; }
    .admin-welcome { min-height: 220px; padding: 22px; align-items: start; flex-direction: column; justify-content: end; }
    .admin-welcome h2 { font-size: 36px; }
    .admin-welcome-actions { width: 100%; }
    .admin-welcome-actions .button { flex: 1; }
    .admin-stats-grid { grid-template-columns: 1fr 1fr; }
    .admin-stats-grid .stat-card { min-height: 135px; }
    .admin-stats-grid .stat-card strong { font-size: 27px; }
    .admin-quick-grid { grid-template-columns: 1fr; }
    .admin-dashboard-grid { gap: 0; }
    .admin-panel { margin-top: 12px; }
    .admin-list-heading, .admin-form-heading { align-items: stretch; flex-direction: column; }
    .admin-list-heading .table-actions { width: 100%; }
    .admin-list-heading .table-actions .button { flex: 1; }
    .admin-data-table th, .admin-data-table td { padding: 10px; }
    .admin-form-modern { grid-template-columns: 1fr; }
    .admin-field { grid-column: auto; }
    .admin-form-actions { flex-direction: column-reverse; }
    .admin-form-actions .button { width: 100%; }
    .top-song-list article { grid-template-columns: 20px 32px minmax(0, 1fr) 65px; }
}
