@import url('themes.css');

:root {
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;
  --tb-h: 38px;
  --sb-w: 270px;
  --sb-margin: 10px;
  --pl-h: 96px;
  --pl-margin: 10px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --glass: rgba(255,255,255,.04);
  --glass-border: rgba(255,255,255,.06);
  --glass-strong: rgba(255,255,255,.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.15);
  --shadow: 0 8px 32px rgba(0,0,0,.25);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.4);
  --shadow-glow: 0 0 40px var(--aglow);
  --panel-bg: rgba(10,10,15,.85);
  --panel-blur: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg0);
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--t3); border-radius: var(--r-full); }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; outline: none; }
input, textarea { font-family: inherit; outline: none; }
img { display: block; }

/* CUSTOM BG — behind everything */
.custom-bg {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.custom-bg video, .custom-bg img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.custom-bg-overlay {
  position: fixed; inset: 0; z-index: 1;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(20px);
  pointer-events: none;
}

/* TITLEBAR */
.tb {
  height: var(--tb-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px;
  background: var(--panel-bg);
  backdrop-filter: blur(var(--panel-blur));
  border-bottom: 1px solid var(--glass-border);
  -webkit-app-region: drag;
  position: relative; z-index: 999;
}
.tb-drag { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--t3); padding-left: 10px; }
.tb-drag i { color: var(--accent); font-size: 14px; }
.tb-btns { display: flex; -webkit-app-region: no-drag; }
.tb-btn { width: 46px; height: var(--tb-h); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--t2); transition: all .15s; }
.tb-btn:hover { background: var(--hover); color: var(--t1); }
.tb-close:hover { background: var(--red); color: #fff; }

/* LAYOUT */
.app {
  display: flex; position: fixed;
  top: calc(var(--tb-h) + var(--sb-margin));
  left: var(--sb-margin); right: var(--sb-margin);
  bottom: var(--sb-margin);
  gap: var(--sb-margin);
  z-index: 10;
  transition: opacity .4s var(--ease);
}
body.pl-expanded-open .app { opacity: .1; pointer-events: none; }

/* SIDEBAR — glass */
.sidebar {
  width: var(--sb-w);
  background: var(--panel-bg);
  backdrop-filter: blur(var(--panel-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--panel-radius, var(--r-lg));
  display: flex; flex-direction: column; flex-shrink: 0;
  position: relative; z-index: 10;
  box-shadow: var(--shadow);
  overflow: hidden; min-height: 0;
}
.sb-logo { padding: 22px 22px 18px; display: flex; align-items: center; gap: 12px; }
.sb-logo-icon {
  width: 42px; height: 42px; background: var(--agrad);
  border-radius: var(--r); display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: #fff; box-shadow: var(--shadow-glow);
  transition: transform .3s var(--bounce);
}
.sb-logo-icon:hover { transform: rotate(-10deg) scale(1.1); }
.sb-logo h1 { font-size: 24px; font-weight: 900; background: var(--agrad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -.5px; }
.sb-nav { flex: 1; overflow-y: auto; padding: 0 12px; }
.sb-section { margin-bottom: 20px; }
.sb-label { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--t3); padding: 0 14px; margin-bottom: 8px; }
.sb-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border-radius: var(--r); font-size: 14px; font-weight: 500; color: var(--t2); transition: all .2s var(--ease); position: relative; margin-bottom: 2px; }
.sb-item:hover { background: var(--glass-strong); color: var(--t1); transform: translateX(3px); }
.sb-item.active { background: var(--active); color: var(--t1); }
.sb-item.active::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 22px; background: var(--agrad); border-radius: 0 6px 6px 0; box-shadow: 0 0 12px var(--aglow); }
.sb-item i { width: 22px; text-align: center; font-size: 16px; }
.sb-item.active i { color: var(--accent); }
.sb-badge { margin-left: auto; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: var(--r-full); min-width: 20px; text-align: center; }
.sb-playlists { padding: 0; }
.sb-pl-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 14px; border-radius: var(--r-sm); font-size: 13px; color: var(--t2); transition: all .15s; }
.sb-pl-item:hover { background: var(--hover); color: var(--t1); }
.sb-pl-dot { width: 14px; height: 14px; border-radius: 5px; flex-shrink: 0; }
.sb-pl-add { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 14px; border-radius: var(--r-sm); font-size: 13px; color: var(--t3); transition: all .15s; }
.sb-pl-add:hover { background: var(--hover); color: var(--t1); }
.sb-footer { padding: 14px; border-top: 1px solid var(--border); }
.sb-user { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r); cursor: pointer; transition: all .2s; }
.sb-user:hover { background: var(--glass-strong); }
.sb-avatar { width: 40px; height: 40px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: #fff; flex-shrink: 0; }
.sb-user-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.sb-username { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.sb-plan { display: inline-flex; font-size: 11px; color: #ffca28; font-weight: 800; letter-spacing: 0.5px; margin-top: 2px; }

/* MAIN — glass */
.main {
  flex: 1; overflow-y: auto; overflow-x: hidden; min-width: 0;
  scroll-behavior: smooth;
  background: var(--panel-bg);
  backdrop-filter: blur(var(--panel-blur));
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-border);
}
.page { display: none; padding-bottom: 30px; }
.page.active { display: block; animation: pageIn .35s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; } }
.page-head { font-size: 32px; font-weight: 900; padding: 28px 32px 20px; letter-spacing: -1px; }
.page-head i { margin-right: 10px; color: var(--accent); }

.hero { position: relative; padding: 36px 32px 20px; overflow: hidden; }
.hero-glow { position: absolute; inset: -100%; background: radial-gradient(ellipse at 20% 40%, var(--aglow) 0%, transparent 50%); pointer-events: none; animation: heroFloat 12s ease-in-out infinite alternate; }
@keyframes heroFloat { 0% { opacity: .5; } 100% { opacity: 1; } }
.hero h2 { font-size: 36px; font-weight: 900; letter-spacing: -1.5px; position: relative; z-index: 1; margin-bottom: 4px; }
.hero p { font-size: 14px; color: var(--t2); position: relative; z-index: 1; }
.qg { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; padding: 0 32px 32px; }
.qg-c { display: flex; align-items: center; background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.08)); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; overflow: hidden; height: 64px; cursor: pointer; transition: all .3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.qg-c:hover { background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.15)); transform: translateY(-4px) scale(1.02); box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 15px rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); z-index: 5; position: relative; }
.qg-c img { width: 64px; height: 64px; object-fit: cover; box-shadow: 4px 0 10px rgba(0,0,0,0.3); z-index: 1; }
.qg-c span { flex: 1; padding: 0 16px; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 4px rgba(0,0,0,0.5); z-index: 1; }
.qg-c .qg-p { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; margin-right: 14px; opacity: 0; transform: scale(.6); transition: all .4s cubic-bezier(0.175, 0.885, 0.32, 1.275); color: #fff; font-size: 14px; flex-shrink: 0; box-shadow: 0 0 15px var(--accent); z-index: 1; }
.qg-c:hover .qg-p { opacity: 1; transform: scale(1); }

.sec { padding: 0 32px; margin-bottom: 32px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }

.cg { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding: 0 32px 32px; }
.card { background: transparent; border: none; border-radius: calc(var(--panel-radius, 20px) * 0.7); display: flex; align-items: center; cursor: pointer; transition: background .3s ease; overflow: hidden; height: 100px; position: relative; padding: 0 8px; margin: 0 -8px; }
.card:hover { background: rgba(255,255,255,0.03); }
body.cards-panel-enabled .card { background: var(--glass); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.08); padding: 0; margin: 0; height: 110px; }
body.cards-panel-enabled .card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.3), rgba(0,0,0,0.7) 100%); z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s; }
body.cards-panel-enabled .card:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); box-shadow: 0 10px 25px rgba(0,0,0,0.2); transform: translateY(-2px); }
body.cards-panel-enabled .card:hover::before { opacity: 1; }

.card-img { width: 84px; height: 84px; border-radius: calc(var(--panel-radius, 20px) * 0.5); flex-shrink: 0; position: relative; overflow: hidden; background: var(--bg3); z-index: 2; margin: 0; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
body.cards-panel-enabled .card-img { width: 110px; height: 110px; border-radius: 0; box-shadow: none; }
body.cards-panel-enabled .card-img::after { content: ''; position: absolute; top: 0; right: -2px; bottom: 0; width: 30px; background: linear-gradient(to right, transparent, var(--glass)); z-index: 2; }
body.cards-panel-enabled .card:hover .card-img::after { background: linear-gradient(to right, transparent, rgba(255,255,255,0.06)); }

.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; z-index: 1; position: relative; }
.card-info { flex: 1; padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; min-width: 0; position: relative; z-index: 2; }
.card-t { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; margin-bottom: 4px; transition: color .3s; }
.card:hover .card-t { color: var(--accent); }
.card-a { font-size: 13px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.card-btn { position: absolute; right: 16px; top: 50%; transform: translateY(-50%) scale(0.8); width: 40px; height: 40px; border-radius: 50%; background: var(--glass-strong); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; opacity: 0; transition: all .3s ease; z-index: 3; }
.card:hover .card-btn { opacity: 1; transform: translateY(-50%) scale(1); background: var(--accent); border-color: var(--accent); box-shadow: 0 4px 15px rgba(0,0,0,0.3); right: 20px; }
.card-n { position: absolute; top: 12px; right: 12px; font-size: 10px; font-weight: 900; color: rgba(255,255,255,0.2); z-index: 3; transition: all .3s; }
.card:hover .card-n { opacity: 0; }
.card-src { position: absolute; bottom: -8px; left: 6px; z-index: 3; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 10px; border: 1px solid rgba(255,255,255,0.1); color: #fff; }

.gg { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; }
.gc { height: 80px; border-radius: var(--r-lg); display: flex; align-items: flex-end; padding: 12px 14px; cursor: pointer; font-weight: 700; font-size: 14px; position: relative; overflow: hidden; transition: all .25s var(--ease); }
.gc::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0,0,0,.4)); }
.gc:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow); }
.gc span { position: relative; z-index: 1; }

.search-w { padding: 32px; }
.search-w h2 { font-size: 34px; font-weight: 900; margin-bottom: 20px; }
.sbox { display: flex; align-items: center; background: var(--glass); border: 2px solid var(--glass-border); border-radius: var(--r-xl); padding: 0 20px; gap: 12px; max-width: 580px; transition: all .3s; position: relative; }
.sbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--aglow); }
.sbox > i { color: var(--t3); font-size: 16px; }
.sbox input { flex: 1; background: none; border: none; color: var(--t1); font-size: 15px; padding: 13px 0; font-weight: 500; }
.sbox input::placeholder { color: var(--t3); }
.sbox .sbox-spin { display: none; position: absolute; right: 16px; }
.sbox .sbox-spin.on { display: block; }
.spin-s { width: 18px; height: 18px; border: 2px solid var(--glass-border); border-top-color: var(--accent); border-radius: 50%; animation: spin .5s linear infinite; }
.chips { display: flex; gap: 8px; margin: 18px 0; flex-wrap: wrap; }
.chip { padding: 7px 18px; border-radius: var(--r-full); background: var(--glass); border: 1px solid var(--glass-border); color: var(--t2); font-size: 12px; font-weight: 600; transition: all .2s; }
.chip:hover { background: var(--glass-strong); color: var(--t1); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.s-results { min-height: 200px; margin-top: 8px; }
.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 70px 0; color: var(--t3); }
.ph i { font-size: 48px; margin-bottom: 14px; opacity: .15; }
.ph p { font-size: 16px; font-weight: 600; color: var(--t2); }

.tl { padding: 8px 32px; }
.tr { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--r); cursor: pointer; transition: all .15s var(--ease); }
.tr:hover { background: var(--glass); transform: translateX(4px); }
.tr.on { background: var(--glass-strong); }
.tr.on .tr-t, .tr.on .tr-n { color: var(--accent); }
.tr-n { width: 26px; text-align: center; font-size: 12px; color: var(--t3); flex-shrink: 0; }
.tr-c { width: 44px; height: 44px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0; background: var(--bg3); position: relative; transition: transform .2s; }
.tr:hover .tr-c { transform: scale(1.05); }
.tr-c img { width: 100%; height: 100%; object-fit: cover; }
.tr-c-h { position: absolute; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; color: #fff; font-size: 12px; }
.tr:hover .tr-c-h { opacity: 1; }
.tr-b { flex: 1; min-width: 0; }
.tr-t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-a { font-size: 11px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-d { font-size: 11px; color: var(--t3); flex-shrink: 0; }
.tr-x { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.tr:hover .tr-x { opacity: 1; }

.liked-hero { position: relative; padding: 48px 32px 24px; background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(236,72,153,.1)); }
.liked-hero h2 { font-size: 38px; font-weight: 900; margin-bottom: 4px; }
.liked-hero h2 i { color: var(--red); margin-right: 10px; }
.liked-hero p { color: var(--t2); font-size: 14px; }

/* SETTINGS */
.settings-panel { display: flex; height: 100%; min-height: calc(100vh - var(--tb-h) - var(--pl-h) - 60px); }
.settings-sidebar { width: 240px; flex-shrink: 0; background: var(--glass); border-right: 1px solid var(--glass-border); padding: 24px 12px; display: flex; flex-direction: column; gap: 4px; }
.settings-sidebar-head { display: flex; align-items: center; gap: 10px; padding: 8px 14px 20px; font-size: 18px; font-weight: 800; }
.settings-sidebar-head i { color: var(--accent); font-size: 20px; }
.settings-nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border-radius: var(--r); font-size: 13px; font-weight: 600; color: var(--t2); transition: all .2s; position: relative; }
.settings-nav-item:hover { background: var(--glass-strong); color: var(--t1); }
.settings-nav-item.active { background: var(--active); color: var(--t1); }
.settings-nav-item.active::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 18px; background: var(--agrad); border-radius: 0 4px 4px 0; }
.settings-nav-item.active i { color: var(--accent); }
.settings-nav-item i { width: 18px; text-align: center; font-size: 14px; }
.settings-content { flex: 1; padding: 32px 40px; overflow-y: auto; }
.settings-content h2 { font-size: 28px; font-weight: 900; margin-bottom: 4px; }
.settings-desc { font-size: 14px; color: var(--t2); margin-bottom: 24px; }
.settings-pane { display: none; animation: pageIn .3s var(--ease); }
.settings-pane.active { display: block; }

.set-card { background: var(--glass); backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: var(--r-lg); margin-bottom: 16px; overflow: hidden; }
.set-card:hover { border-color: rgba(255,255,255,.1); }
.set-card-header { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--glass-border); }
.set-card-icon { width: 44px; height: 44px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; flex-shrink: 0; }
.set-card-header h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.set-card-header p { font-size: 12px; color: var(--t3); }
.set-card-body { padding: 20px 24px; }
.set-field { margin-bottom: 14px; }
.set-field label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--t3); margin-bottom: 6px; }
.set-input { width: 100%; background: var(--glass); border: 2px solid var(--glass-border); border-radius: var(--r); padding: 11px 16px; color: var(--t1); font-size: 14px; transition: all .2s; }
.set-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--aglow); }
.set-input::placeholder { color: var(--t3); }

.color-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--glass-border); }
.color-row:last-child { border-bottom: none; }
.color-row label { font-size: 13px; font-weight: 600; }
.color-row input[type="color"] { width: 40px; height: 32px; border: 2px solid var(--glass-border); border-radius: var(--r-sm); cursor: pointer; background: none; padding: 2px; }

.btn-control-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--glass-border); }
.btn-control-row:last-child { border-bottom: none; }
.btn-control-row label { font-size: 13px; font-weight: 600; }
.btn-controls { display: flex; align-items: center; gap: 10px; }
.ctrl-btn { width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--glass-strong); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; color: var(--t1); font-size: 12px; transition: all .15s; }
.ctrl-btn:hover { background: var(--accent); color: #fff; }
.btn-controls span { font-size: 13px; font-weight: 700; min-width: 50px; text-align: center; color: var(--accent); }

.theme-card { padding: 16px 24px; border-radius: var(--r-lg); cursor: pointer; border: 2px solid var(--glass-border); text-align: center; font-size: 12px; font-weight: 600; background: var(--glass); transition: all .25s; }
.theme-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.theme-card.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--aglow); }
.theme-dot { width: 32px; height: 32px; border-radius: var(--r); margin: 0 auto 10px; }

.set-btn { padding: 10px 24px; border-radius: var(--r); background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; transition: all .2s; display: inline-flex; align-items: center; gap: 6px; }
.set-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px var(--aglow); }
.set-btn.danger { background: var(--red); }
.set-btn.secondary { background: var(--glass-strong); border: 1px solid var(--glass-border); }
.set-btn.secondary:hover { background: rgba(255,255,255,.12); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--r-lg); padding: 20px; text-align: center; }
.stat-num { font-size: 32px; font-weight: 900; color: var(--accent); margin-bottom: 4px; }
.stat-label { font-size: 10px; color: var(--t3); font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }

/* PLAYER */
.player { position: fixed; bottom: calc(var(--pl-margin) * 1.5); left: 50%; transform: translateX(-50%); width: 850px; max-width: calc(100vw - var(--sb-w) - 60px); z-index: 900; border-radius: var(--panel-radius, var(--r-xl)); overflow: visible; transition: all .6s cubic-bezier(0.16, 1, 0.3, 1); }
.player.expanded { bottom: 0; left: 0; right: 0; width: 100%; max-width: 100%; transform: none; border-radius: 0; z-index: 5000; }

.pl-bar {
  height: 80px; display: flex; align-items: center; padding: 0 20px;
  background: rgba(15, 15, 20, 0.7);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--panel-radius, 40px);
  box-shadow: 0 20px 50px rgba(0,0,0,.6), inset 0 1px 1px rgba(255,255,255,0.1);
  position: relative; z-index: 2;
  transition: all .5s var(--ease);
}
.pl-bar::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 40%, transparent 60%, rgba(255,255,255,0.05)); z-index: -1; pointer-events: none; }
.player.expanded .pl-bar { border-radius: 0; border: none; background: transparent; backdrop-filter: none; box-shadow: none; height: 100px; padding: 0 40px; }
.player.expanded .pl-bar::after { display: none; }

/* EXPANDED — uses custom bg, no song cover bg */
.pl-expanded { position: absolute; bottom: 100%; left: 0; right: 0; height: 0; overflow: hidden; opacity: 0; z-index: 1; transition: all .5s var(--ease); }
.player.expanded .pl-expanded { height: calc(100vh - var(--tb-h) - var(--pl-h)); opacity: 1; bottom: var(--pl-h); position: fixed; top: var(--tb-h); left: 0; right: 0; }
.pl-exp-bg {
  position: absolute; inset: 0;
  background: var(--panel-bg);
  backdrop-filter: blur(var(--panel-blur));
}
.pl-exp-bg-overlay { position: absolute; inset: 0; }
.pl-exp-clip-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(40px) brightness(.3); opacity: .6; z-index: 0; }
.pl-exp-content { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; height: 100%; padding: 30px 60px; gap: 40px; }
.pl-exp-left { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pl-exp-cover { width: 320px; height: 320px; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 12px 50px rgba(0,0,0,.5), 0 0 40px var(--aglow); position: relative; }
.pl-exp-cover img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.pl-exp-cover.playing { animation: expCoverGlow 3s ease-in-out infinite; }
@keyframes expCoverGlow { 0%, 100% { box-shadow: 0 12px 50px rgba(0,0,0,.5), 0 0 20px var(--aglow); } 50% { box-shadow: 0 12px 50px rgba(0,0,0,.5), 0 0 60px var(--aglow); } }
.pl-exp-progress-under { width: 320px; }
.pl-exp-prog-bar { width: 100%; height: 5px; background: rgba(255,255,255,.1); border-radius: var(--r-full); cursor: pointer; overflow: hidden; transition: height .15s; }
.pl-exp-prog-bar:hover { height: 8px; }
.pl-exp-prog-fill { height: 100%; width: 0%; background: var(--agrad); border-radius: var(--r-full); transition: width .1s linear; }
.pl-exp-times { display: flex; justify-content: space-between; font-size: 11px; color: var(--t3); margin-top: 6px; }
.pl-exp-track-info { text-align: center; width: 320px; }
.pl-exp-right { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 500px; width: 100%; }
.pl-exp-title { font-size: 28px; font-weight: 900; letter-spacing: -.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; width: 100%; }
.pl-exp-artist { font-size: 16px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; cursor: pointer; width: 100%; }
.pl-exp-artist:hover { color: var(--accent); text-decoration: underline; }

.pl-visualizer-panel { width: 500px; background: transparent; border: 1px solid transparent; border-radius: 14px; padding: 20px 24px; transition: all .3s; }
.pl-visualizer { display: flex; align-items: center; justify-content: center; gap: 3px; height: 140px; width: 100%; }
.pl-viz-bar { width: 7px; flex-shrink: 0; background: #ffffff; border-radius: 4px; height: 4%; transition: height .08s ease; opacity: 0.85; }
.pl-viz-bar:nth-child(odd) { opacity: 0.6; }
.pl-visualizer.mirror { flex-direction: column; height: 140px; }
.pl-visualizer.mirror .pl-viz-mirror-row { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 50%; width: 100%; }
.pl-visualizer.mirror .pl-viz-mirror-row.bottom { align-items: flex-start; transform: scaleY(-1); }
.eq-style-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.eq-style-btn { padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: var(--t2); font-size: 11px; font-weight: 600; cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: 5px; }
.eq-style-btn:hover { background: rgba(255,255,255,0.1); color: var(--t1); }
.eq-style-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Premium locked features */
.premium-locked { position: relative; overflow: hidden; }
.premium-locked .set-card-header { opacity: 0.5; }
.premium-locked .set-card-body { filter: blur(6px); pointer-events: none; user-select: none; opacity: 0.3; }
.premium-locked::after { content: attr(data-lock-label); position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.4); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; z-index: 5; backdrop-filter: blur(2px); }
.premium-locked::before { content: '👑'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) translateY(-18px); font-size: 22px; z-index: 6; }

.pl-exp-controls { display: flex; align-items: center; gap: 14px; }
.pl-exp-btn { width: 48px; height: 48px; border-radius: var(--r-full); display: flex; align-items: center; justify-content: center; color: var(--t2); font-size: 18px; background: var(--glass); border: 1px solid var(--glass-border); transition: all .2s; cursor: pointer; }
.pl-exp-btn:hover { color: var(--t1); background: var(--glass-strong); transform: scale(1.08); }
.pl-exp-btn.on { color: var(--accent); }
.pl-exp-btn.liked { color: var(--red); }
.pl-exp-play { width: 64px; height: 64px; background: #fff !important; color: var(--bg0) !important; font-size: 22px; border: none !important; }
.pl-exp-play:hover { transform: scale(1.1) !important; }
.pl-exp-vol { display: flex; align-items: center; gap: 10px; }
.pl-exp-vol i { color: var(--t3); font-size: 14px; width: 20px; text-align: center; }
.pl-exp-vol-slider { flex: 1; max-width: 200px; height: 4px; -webkit-appearance: none; background: rgba(255,255,255,.1); border-radius: var(--r-full); cursor: pointer; outline: none; }
.pl-exp-vol-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: var(--r-full); background: #fff; cursor: pointer; }

.pp { width: 100%; height: 4px; cursor: pointer; position: relative; border-radius: calc(var(--panel-radius, var(--r-xl)) - 1px) calc(var(--panel-radius, var(--r-xl)) - 1px) 0 0; transition: height .15s; }
.pp:hover { height: 6px; }
.pp-bg { width: 100%; height: 100%; background: rgba(255,255,255,.06); position: relative; }
.pp-f { height: 100%; width: 0%; background: var(--agrad); position: relative; z-index: 2; transition: width .1s linear; }
.pp-glow { position: absolute; right: 0; top: -4px; width: 20px; height: 12px; background: var(--accent); filter: blur(8px); opacity: .6; z-index: 1; }
.pp-d { width: 14px; height: 14px; border-radius: var(--r-full); background: #fff; position: absolute; top: 50%; transform: translateY(-50%); right: -7px; z-index: 3; opacity: 0; pointer-events: none; }
.pp:hover .pp-d { opacity: 1; }

.pl-body { flex: 1; display: flex; align-items: center; padding: 0 20px; gap: 18px; }
.pl-l { display: flex; align-items: center; gap: 14px; width: 280px; min-width: 150px; }
.pl-cv { width: 58px; height: 58px; border-radius: var(--r); overflow: hidden; flex-shrink: 0; background: var(--bg3); box-shadow: 0 4px 16px rgba(0,0,0,.4); position: relative; cursor: pointer; transition: all .3s; }
.pl-cv:hover { transform: scale(1.06); }
.pl-cv img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease), opacity .3s ease; }
.pl-cv-e { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--t3); font-size: 18px; }
.pl-inf { min-width: 0; }
.pl-t { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-ar { font-size: 11px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.pl-c { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pl-ctrls { display: flex; align-items: center; gap: 8px; }
.pl-time { font-size: 10px; color: var(--t3); display: flex; gap: 6px; font-weight: 500; }
.ib { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--t2); transition: all .3s cubic-bezier(0.175, 0.885, 0.32, 1.275); font-size: 15px; position: relative; background: transparent; border: 1px solid transparent; }
.ib:hover { color: #fff; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); transform: scale(1.1); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.ib.on { color: var(--accent); text-shadow: 0 0 10px var(--accent); }
.ib.liked i { color: var(--red); filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.6)); }
.pl-play { width: 56px; height: 56px; background: linear-gradient(135deg, var(--accent), #e879f9) !important; color: #fff !important; font-size: 20px; border: none !important; box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5) !important; z-index: 5; }
.pl-play:hover { box-shadow: 0 10px 30px rgba(139, 92, 246, 0.7) !important; filter: brightness(1.1); transform: none; }
.pl-r { width: 200px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.vol-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.vol-wrap .ib i { transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.vol-wrap:hover .ib i { transform: rotate(-90deg); color: var(--accent); }
.vol-slider-dropdown { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) translateY(10px); width: 32px; height: 0; opacity: 0; pointer-events: none; background: var(--panel-bg); backdrop-filter: blur(var(--panel-blur)); border: 1px solid var(--glass-border); border-radius: 16px; display: flex; justify-content: center; align-items: center; overflow: hidden; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 100; }
.vol-wrap:hover .vol-slider-dropdown { height: 120px; opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); padding: 12px 0; }
.vol-s-vert { -webkit-appearance: none; width: 4px; height: 100%; background: rgba(255,255,255,0.1); border-radius: var(--r-full); outline: none; }
.vol-s-vert::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: var(--r-full); background: #fff; cursor: pointer; }

/* FS PLAYER */
.fs-player { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: all .5s var(--ease); transform: translateY(100%); }
.fs-player.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.fs-bg { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(80px) saturate(1.8) brightness(.5); opacity: .6; }
.fs-bg-overlay { position: absolute; inset: 0; background: var(--panel-bg); backdrop-filter: blur(40px); }
.fs-close { position: absolute; top: 20px; left: 20px; width: 44px; height: 44px; border-radius: var(--r-full); background: var(--glass); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; z-index: 10; }
.fs-close:hover { background: var(--glass-strong); }
.fs-content { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 28px; width: 100%; max-width: 420px; padding: 0 24px; }
.fs-cover { width: 300px; height: 300px; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.fs-cover img { width: 100%; height: 100%; object-fit: cover; }
.fs-cover.playing { animation: coverPulse 3s ease-in-out infinite; }
@keyframes coverPulse { 0%, 100% { box-shadow: var(--shadow-lg); } 50% { box-shadow: var(--shadow-lg), var(--shadow-glow); } }
.fs-info { text-align: center; width: 100%; }
.fs-title { font-size: 24px; font-weight: 800; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-artist { font-size: 15px; color: var(--t2); }
.fs-progress { width: 100%; }
.fs-prog-bar { width: 100%; height: 5px; background: rgba(255,255,255,.1); border-radius: var(--r-full); cursor: pointer; margin-bottom: 10px; overflow: hidden; }
.fs-prog-fill { height: 100%; background: var(--agrad); border-radius: var(--r-full); width: 0%; }
.fs-times { display: flex; justify-content: space-between; font-size: 12px; color: var(--t2); }
.fs-controls { display: flex; align-items: center; gap: 20px; }
.fs-btn { width: 48px; height: 48px; border-radius: var(--r-full); display: flex; align-items: center; justify-content: center; color: var(--t2); font-size: 18px; transition: all .2s; }
.fs-btn:hover { color: #fff; transform: scale(1.1); }
.fs-btn.on { color: var(--accent); }
.fs-play-btn { width: 64px; height: 64px; background: #fff; color: var(--bg0) !important; font-size: 24px; }
.fs-extra { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.fs-like { width: 44px; height: 44px; border-radius: var(--r-full); background: var(--glass); display: flex; align-items: center; justify-content: center; color: var(--t2); font-size: 18px; }
.fs-like:hover { background: var(--glass-strong); color: #fff; }
.fs-like.liked { color: var(--red); }

/* ARTIST */
.artist-hero { position: relative; padding: 40px 32px 24px; display: flex; align-items: center; gap: 24px; overflow: hidden; }
.artist-hero-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(60px) brightness(.4); opacity: .6; }
.artist-hero-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 30%, var(--bg0)); }
.artist-avatar { width: 160px; height: 160px; border-radius: 50%; overflow: hidden; flex-shrink: 0; position: relative; z-index: 2; box-shadow: 0 8px 40px rgba(0,0,0,.5); border: 3px solid var(--glass-border); }
.artist-avatar img { width: 100%; height: 100%; object-fit: cover; }
.artist-info { position: relative; z-index: 2; }
.artist-info h2 { font-size: 40px; font-weight: 900; letter-spacing: -1px; margin-bottom: 4px; }
.artist-info p { color: var(--t2); font-size: 14px; }
.artist-stats { display: flex; gap: 20px; margin-top: 12px; }
.artist-stat-num { font-size: 18px; font-weight: 800; color: var(--accent); }
.artist-stat-label { font-size: 10px; color: var(--t3); text-transform: uppercase; font-weight: 600; }
.artist-play-btn { margin-top: 16px; padding: 12px 32px; border-radius: var(--r-full); background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.artist-play-btn:hover { transform: translateY(-2px) scale(1.03); }
.artist-section { padding: 0 32px; margin-bottom: 28px; }
.artist-section h3 { font-size: 18px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.artist-section h3 i { color: var(--accent); font-size: 14px; }

.playlist-hero { position: relative; padding: 40px 32px 24px; display: flex; align-items: center; gap: 24px; overflow: hidden; }
.playlist-hero-bg { position: absolute; inset: -40px; filter: blur(60px) brightness(.3); opacity: .5; }
.playlist-cover { width: 180px; height: 180px; border-radius: var(--r-xl); display: flex; align-items: center; justify-content: center; font-size: 60px; color: rgba(255,255,255,.3); flex-shrink: 0; position: relative; z-index: 2; box-shadow: 0 8px 40px rgba(0,0,0,.5); overflow: hidden; }
.playlist-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.playlist-info { position: relative; z-index: 2; }
.playlist-info h2 { font-size: 36px; font-weight: 900; margin-bottom: 4px; }
.playlist-info p { color: var(--t2); font-size: 14px; }
.playlist-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.playlist-actions .set-btn { padding: 8px 20px; font-size: 12px; }

.taste-hero { position: relative; padding: 40px 32px; background: linear-gradient(135deg, rgba(139,92,246,.15), rgba(236,72,153,.08)); border-radius: 0 0 var(--r-xl) var(--r-xl); }
.taste-hero h2 { font-size: 34px; font-weight: 900; margin-bottom: 6px; position: relative; z-index: 1; }
.taste-hero p { color: var(--t2); font-size: 14px; position: relative; z-index: 1; margin-bottom: 16px; }
.taste-actions { display: flex; gap: 10px; position: relative; z-index: 1; }

.modal-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.4); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: all .3s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--panel-bg); backdrop-filter: blur(calc(var(--panel-blur) * 2)); border: 1px solid var(--glass-border); border-radius: var(--r-xl); padding: 32px; width: 480px; max-width: 90vw; box-shadow: var(--shadow-lg); transform: scale(.9) translateY(20px); transition: all .3s var(--bounce); }
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal h3 { font-size: 20px; font-weight: 800; margin-bottom: 20px; }
.modal-input { width: 100%; background: var(--glass); border: 2px solid var(--glass-border); border-radius: var(--r); padding: 12px 16px; color: var(--t1); font-size: 14px; margin-bottom: 12px; }
.modal-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--aglow); }
.modal-input::placeholder { color: var(--t3); }
.modal-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

/* Toggle Switch */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; margin-left: auto; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255,255,255,0.1); transition: .4s; border-radius: 24px; border: 1px solid var(--glass-border); }
.toggle-slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: #fff; transition: .4s; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
input:checked + .toggle-slider { background-color: var(--accent); border-color: var(--accent); }
input:checked + .toggle-slider:before { transform: translateX(20px); }

/* Loader Animation */
@keyframes bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.05); }
}

.loader { display: flex; align-items: center; justify-content: center; padding: 50px; }
.spinner { width: 30px; height: 30px; border: 3px solid var(--glass-border); border-top-color: var(--accent); border-radius: var(--r-full); animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toasts { position: fixed; bottom: calc(var(--pl-h) + var(--pl-margin) * 2 + 6px); right: 18px; z-index: 9999; display: flex; flex-direction: column-reverse; gap: 6px; }
.toast { background: var(--panel-bg); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: var(--r); padding: 10px 16px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; box-shadow: var(--shadow); animation: toastIn .3s var(--bounce); min-width: 220px; max-width: 320px; }
.toast.ok { border-left: 3px solid var(--green); }
.toast.err { border-left: 3px solid var(--red); }
.toast.inf { border-left: 3px solid var(--accent); }
@keyframes toastIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

@media (max-width: 1000px) {
  :root { --sb-w: 68px; }
  .sb-logo h1, .sb-label, .sb-item span, .sb-user-info, .sb-playlists, .sb-badge, .sb-pl-add { display: none; }
  .sb-logo { justify-content: center; padding: 16px 0; }
  .sb-item { justify-content: center; padding: 12px; }
  .pl-exp-content { flex-direction: column; padding: 20px; gap: 20px; }
  .pl-exp-cover { width: 200px; height: 200px; }
  .pl-exp-progress-under, .pl-visualizer-panel { width: 200px; }
  .settings-sidebar { width: 56px; padding: 24px 6px; }
  .settings-sidebar-head span, .settings-nav-item span { display: none; }
  .settings-nav-item { justify-content: center; padding: 12px; }
  .settings-content { padding: 24px 20px; }
}
@media (max-width: 600px) {
  .sidebar { display: none; }
  .app { left: 0; padding: var(--sb-margin); }
  .pl-r { display: none; }
  .pl-l { width: auto; flex: 1; }
  .settings-panel { flex-direction: column; }
  .settings-sidebar { width: 100%; flex-direction: row; overflow-x: auto; padding: 12px; border-right: none; border-bottom: 1px solid var(--glass-border); }
  .settings-sidebar-head { display: none; }
}

/* LYRICS */
.pl-exp-lyrics-wrap {
  width: 320px;
}
.pl-exp-lyrics-toggle {
  padding: 10px 16px;
  border-radius: var(--r);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--t2);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
}
.pl-exp-lyrics-toggle:hover {
  background: var(--glass-strong);
  color: var(--t1);
}
.pl-exp-lyrics {
  max-height: 200px;
  overflow-y: auto;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  margin-top: 8px;
  padding: 16px;
}
.lyrics-text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--t2);
  white-space: pre-wrap;
  word-wrap: break-word;
}
/* ==================== EXPANDED PLAYER (FLEX LAYOUT) ==================== */
.pl-exp-content {
  position: relative; z-index: 2;
  display: flex;
  align-items: stretch;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.pl-exp-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-shrink: 0;
  padding: 30px 40px;
  transition: all .5s var(--ease);
}

.pl-exp-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: all .5s var(--ease);
  min-width: 0;
}

/* ===== Обложка ===== */
.pl-exp-cover { width: 300px; height: 300px; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 12px 50px rgba(0,0,0,.5), 0 0 40px var(--aglow); position: relative; flex-shrink: 0; transition: all .5s var(--ease); }
.pl-exp-cover img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.pl-exp-cover.playing { animation: expCoverGlow 3s ease-in-out infinite; }
@keyframes expCoverGlow { 0%, 100% { box-shadow: 0 12px 50px rgba(0,0,0,.5), 0 0 20px var(--aglow); } 50% { box-shadow: 0 12px 50px rgba(0,0,0,.5), 0 0 60px var(--aglow); } }

/* ===== Track info ===== */
.pl-exp-track-info { text-align: center; width: 300px; transition: all .5s var(--ease); }
.pl-exp-title { font-size: 28px; font-weight: 900; letter-spacing: -.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; width: 100%; }
.pl-exp-artist { font-size: 16px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; cursor: pointer; width: 100%; }
.pl-exp-artist:hover { color: var(--accent); text-decoration: underline; }

/* ===== Progress под обложкой ===== */
.pl-exp-progress-under { width: 300px; transition: all .5s var(--ease); }
.pl-exp-prog-bar { width: 100%; height: 5px; background: rgba(255,255,255,.1); border-radius: var(--r-full); cursor: pointer; overflow: hidden; transition: height .15s; }
.pl-exp-prog-bar:hover { height: 8px; }
.pl-exp-prog-fill { height: 100%; width: 0%; background: var(--agrad); border-radius: var(--r-full); transition: width .1s linear; }
.pl-exp-times { display: flex; justify-content: space-between; font-size: 11px; color: var(--t3); margin-top: 6px; }

/* ===== Controls ===== */
.pl-exp-controls { display: flex; align-items: center; gap: 14px; transition: all .5s var(--ease); }
.pl-exp-btn { width: 48px; height: 48px; border-radius: var(--r-full); display: flex; align-items: center; justify-content: center; color: var(--t2); font-size: 18px; background: var(--glass); border: 1px solid var(--glass-border); transition: all .2s; cursor: pointer; }
.pl-exp-btn:hover { color: var(--t1); background: var(--glass-strong); transform: scale(1.08); }
.pl-exp-btn.on { color: var(--accent); }
.pl-exp-btn.liked { color: var(--red); }
.pl-exp-play { width: 64px; height: 64px; background: #fff !important; color: var(--bg0) !important; font-size: 22px; border: none !important; }
.pl-exp-play:hover { transform: scale(1.1) !important; }

/* ===== Volume ===== */
.pl-exp-vol { display: flex; align-items: center; gap: 10px; transition: all .5s var(--ease); }
.pl-exp-vol i { color: var(--t3); font-size: 14px; width: 20px; text-align: center; }
.pl-exp-vol-slider { flex: 1; max-width: 200px; height: 4px; -webkit-appearance: none; background: rgba(255,255,255,.1); border-radius: var(--r-full); cursor: pointer; outline: none; }
.pl-exp-vol-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: var(--r-full); background: #fff; cursor: pointer; }

/* ===== Визуализатор (справа по дефолту) ===== */
.pl-exp-viz-wrap { transition: all .5s var(--ease); }
.pl-visualizer-panel { width: 320px; background: var(--glass); border: 2px solid var(--glass-border); border-radius: var(--r-lg); padding: 20px 24px; transition: all .5s var(--ease); }
.pl-visualizer { display: flex; align-items: flex-end; gap: 3px; height: 140px; width: 100%; }
.pl-viz-bar { flex: 1; background: var(--agrad); border-radius: 4px 4px 0 0; min-height: 4px; height: 4%; transition: height .08s ease; opacity: .7; max-width: 14px; }
.pl-viz-bar:nth-child(odd) { opacity: .5; }

/* ===== ПРАВАЯ ЧАСТЬ: эквалайзер + кнопки + прогресс + громкость ===== */
/* По умолчанию (без lyrics) — эквалайзер справа, кнопки ВНИЗУ эквалайзера */
.pl-exp-right-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 320px;
  transition: all .5s var(--ease);
}

/* ==================== LYRICS MODE ==================== */
/* Когда lyrics-mode: всё сжимается влево под обложку */
.pl-exp-content.lyrics-mode .pl-exp-left {
  flex: 0 0 auto;
  padding: 20px 30px;
  border-right: 1px solid rgba(255,255,255,.05);
  background: rgba(0,0,0,.12);
}
.pl-exp-content.lyrics-mode .pl-exp-cover { width: 200px; height: 200px; }
.pl-exp-content.lyrics-mode .pl-exp-track-info { width: 220px; }
.pl-exp-content.lyrics-mode .pl-exp-progress-under { width: 220px; }
.pl-exp-content.lyrics-mode .pl-exp-controls { gap: 8px; }
.pl-exp-content.lyrics-mode .pl-exp-btn { width: 38px; height: 38px; font-size: 14px; }
.pl-exp-content.lyrics-mode .pl-exp-play { width: 50px; height: 50px; font-size: 18px; }
.pl-exp-content.lyrics-mode .pl-exp-vol { width: 220px; }
.pl-exp-content.lyrics-mode .pl-visualizer-panel {
  background: transparent !important;
  border-color: transparent !important;
  padding: 0 !important;
  margin: 10px 0;
  height: 60px !important;
  overflow: hidden !important;
}
.pl-exp-content.lyrics-mode .pl-visualizer {
  height: 140px;
  align-items: flex-end;
  transform: translateY(80px); /* Сдвигаем бары вниз, чтобы невидимый контейнер сверху обрезал их */
}

/* Правая часть в lyrics-mode скрывается, текст показывается */
.pl-exp-content.lyrics-mode .pl-exp-right {
  opacity: 0;
  width: 0;
  overflow: hidden;
  padding: 0;
  flex: 0;
}

/* Область текста */
.pl-exp-lyrics-area {
  flex: 0;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: all .5s var(--ease);
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
}
.pl-exp-content.lyrics-mode .pl-exp-lyrics-area {
  position: relative;
  flex: 1;
  width: auto;
  opacity: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 80px 100px 80px 40px;
}
.pl-exp-lyrics-area::-webkit-scrollbar { width: 0; }

/* ===== Lyrics text ===== */
.lyrics-line {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.6;
  padding: 6px 0;
  color: rgba(255,255,255,.12);
  cursor: pointer;
  transition: color .3s, font-size .3s, transform .3s;
  transform-origin: left center;
  letter-spacing: -.5px;
}
.lyrics-line:hover { color: rgba(255,255,255,.3); }
.lyrics-line.past { color: rgba(255,255,255,.2); }
.lyrics-line.active {
  color: #fff;
  font-size: 38px;
  text-shadow: 0 0 60px var(--aglow), 0 4px 30px rgba(0,0,0,.6);
}

.lyrics-plain-line {
  font-size: 26px;
  font-weight: 600;
  line-height: 2.2;
  color: rgba(255,255,255,.3);
}

.lyrics-loading { display:flex;align-items:center;justify-content:center;height:100%;min-height:200px; }
.lyrics-empty { display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:rgba(255,255,255,.1); }
.lyrics-empty i { font-size:56px;margin-bottom:16px; }

#expLyricsBtn.on { background: var(--accent) !important; color: #fff !important; transform: scale(1.1); box-shadow: 0 0 20px var(--aglow); }

@media (max-width: 1000px) {
  .pl-exp-content { flex-direction: column; }
  .pl-exp-left { padding: 20px; }
  .pl-exp-cover { width: 200px; height: 200px; }
  .pl-exp-track-info, .pl-exp-progress-under { width: 200px; }
  .pl-exp-right-controls, .pl-visualizer-panel { width: 200px; }
  .pl-exp-content.lyrics-mode .pl-exp-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,.05); }
  .pl-exp-content.lyrics-mode .pl-exp-cover { width: 140px; height: 140px; }
  .lyrics-line { font-size: 22px; }
  .lyrics-line.active { font-size: 26px; }
  .pl-exp-content.lyrics-mode .pl-exp-lyrics-area { padding: 40px 30px 40px 20px; }
}

.tb-btns, .tb-btn, .tb-btn * {
  -webkit-app-region: no-drag !important;
  pointer-events: auto;
}

/* MY WAVE 2.0 CARD */
.mywave-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 36px 40px;
  margin: 0 0 24px;
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  background: var(--bg1);
}
.mywave-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 48px rgba(0,0,0,0.35);
}

/* Aurora Liquid Gradient Background */
.mywave-gradient {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    #10b981 0deg,
    #3b82f6 72deg,
    #8b5cf6 144deg,
    #ec4899 216deg,
    #f59e0b 288deg,
    #10b981 360deg
  );
  filter: blur(60px);
  animation: myWaveLiquid 12s linear infinite;
  opacity: 0.85;
  transition: opacity 0.4s ease;
  z-index: 0;
}
.mywave-card:hover .mywave-gradient {
  opacity: 1;
}
@keyframes myWaveLiquid {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Glass overlay to make text readable */
.mywave-glass {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  z-index: 1;
}

.mywave-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mywave-info h4 {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 4px 24px rgba(0,0,0,.5);
  letter-spacing: -1px;
}
.mywave-info p {
  font-size: 15px;
  color: rgba(255,255,255,.95);
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.mywave-btn {
  background: rgba(255,255,255,.2) !important;
  backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255,255,255,.5) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  padding: 16px 36px !important;
  border-radius: var(--r-full) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2), inset 0 1px 1px rgba(255,255,255,0.3);
}
.mywave-btn:hover {
  background: rgba(255,255,255,.35) !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255,255,255,0.4);
}
.mywave-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Mini playing eq inside the card */
.mywave-mini-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  margin-left: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mywave-card.playing .mywave-mini-eq {
  opacity: 1;
}
.mywave-mini-bar {
  width: 4px;
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
  animation: mwEq 1s ease-in-out infinite;
}
.mb-1 { animation-delay: 0s; }
.mb-2 { animation-delay: 0.2s; }
.mb-3 { animation-delay: 0.4s; }
.mb-4 { animation-delay: 0.1s; }
@keyframes mwEq {
  0%, 100% { height: 4px; }
  50% { height: 20px; }
}

/* SOUNDCLOUD CHIP */
.chip[data-t="soundcloud"] {
  color: #f50;
  border-color: rgba(255,85,0,.3);
}
.chip[data-t="soundcloud"].active {
  background: #f50;
  border-color: #f50;
  color: #fff;
}

/* SOURCE BADGES */
.src-badge {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  z-index: 3;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.src-badge.ym {
  background: #fc0;
  color: #000;
}
.src-badge.sc {
  background: #f50;
  color: #fff;
}

/* Source badge on card images */
.card-img .src-badge {
  bottom: 8px;
  left: 8px;
  right: auto;
  width: 22px;
  height: 22px;
  font-size: 10px;
}
.src-badge.vk {
  background: #4c75a3;
  color: #fff;
}

/* VK CHIP */
.chip[data-t="vk"] {
  color: #4c75a3;
  border-color: rgba(76,117,163,.3);
}
.chip[data-t="vk"].active {
  background: #4c75a3;
  border-color: #4c75a3;
  color: #fff;
}

/* ==================== PREMIUM BADGE ==================== */
@keyframes premiumShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 7px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  background: linear-gradient(90deg,
    #b8860b 0%,
    #ffd700 20%,
    #fffacd 40%,
    #ffd700 60%,
    #d4a017 80%,
    #ffd700 100%
  );
  background-size: 200% auto;
  animation: premiumShimmer 2.8s linear infinite;
  color: #3a2800;
  box-shadow: 0 0 10px rgba(255,215,0,.45), 0 2px 8px rgba(0,0,0,.3);
  border: 1px solid rgba(255,215,0,.4);
}
.premium-badge i {
  font-size: 9px;
  color: #5c3800;
}
.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
  color: var(--t3);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  letter-spacing: .3px;
  text-transform: uppercase;
}

/* ==================== PREMIUM LOCK ==================== */
.premium-locked {
  position: relative !important;
  pointer-events: none; /* prevent clicks */
}
.premium-locked::after {
  content: attr(data-lock-label);
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.premium-locked::before {
  content: '\f521'; /* Crown icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: var(--gold, #ffd700);
  z-index: 11;
  text-shadow: 0 0 10px rgba(255,215,0,0.5);
}

/* ==================== SIDEBAR AVATAR ==================== */
.sb-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.sb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r);
}

/* ==================== AVATAR SETTINGS CARD ==================== */
.avatar-upload-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.avatar-preview-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  background: var(--glass-strong);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  transition: all .2s;
}
.avatar-preview-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.avatar-preview-circle .avatar-cam-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
  font-size: 22px;
  color: #fff;
  border-radius: 50%;
}
.avatar-preview-circle:hover .avatar-cam-overlay {
  opacity: 1;
}
.avatar-preview-circle:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--aglow);
}
.avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==================== ADMIN TERMINAL ==================== */
.admin-terminal-overlay {
  position: fixed;
  inset: 0;
  z-index: 15000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s var(--ease);
}
.admin-terminal {
  width: 90%;
  max-width: 800px;
  height: 80vh;
  max-height: 600px;
  background: #050505;
  border: 1px solid #333;
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 20px rgba(0, 255, 0, 0.1);
  overflow: hidden;
  font-family: 'Consolas', 'Courier New', monospace;
}
.admin-terminal-header {
  background: #111;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #333;
  color: #ddd;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  user-select: none;
}
.admin-terminal-header .ib {
  width: 24px;
  height: 24px;
  font-size: 14px;
  color: #888;
}
.admin-terminal-header .ib:hover {
  background: #ef4444;
  color: #fff;
}
.admin-terminal-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.5;
  color: #0f0;
}
.admin-terminal-body::-webkit-scrollbar { width: 8px; }
.admin-terminal-body::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
.terminal-line {
  margin-bottom: 4px;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.terminal-line.error { color: #f43f5e; }
.terminal-line.success { color: #10b981; }
.terminal-line.warning { color: #f59e0b; }
.terminal-line.system { color: #888; }
.admin-terminal-input-wrap {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #0a0a0a;
  border-top: 1px solid #222;
}
.terminal-prompt {
  color: #0f0;
  margin-right: 8px;
  font-weight: bold;
  font-size: 14px;
}
.admin-terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #0f0;
  font-size: 14px;
  font-family: 'Consolas', 'Courier New', monospace;
  outline: none;
}
.admin-terminal-input::placeholder {
  color: #0a0;
}

/* BOOT LOADER 2.0 */
.loader-ring {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: var(--accent, #8b5cf6);
  border-left-color: #ec4899;
  animation: loadSpin 1.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.6));
}
.loader-circle-2 {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-bottom-color: #3b82f6;
  border-right-color: var(--accent, #10b981);
  animation: loadSpinReverse 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.6));
}
.loader-logo {
  font-size: 38px;
  color: #fff;
  z-index: 2;
  animation: loadPulse 2s ease-in-out infinite;
  text-shadow: 0 0 20px rgba(255,255,255,0.4);
}
@keyframes loadSpin {
  0% { transform: rotate(0deg) scale(0.8); opacity: 0.5; }
  50% { transform: rotate(180deg) scale(1.1); opacity: 1; }
  100% { transform: rotate(360deg) scale(0.8); opacity: 0.5; }
}
@keyframes loadSpinReverse {
  0% { transform: rotate(360deg) scale(1.1); opacity: 1; }
  50% { transform: rotate(180deg) scale(0.9); opacity: 0.6; }
  100% { transform: rotate(0deg) scale(1.1); opacity: 1; }
}
@keyframes loadPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* ==================== PREMIUM ADMIN TERMINAL & PANEL ==================== */
.admin-terminal-overlay { position: fixed; inset: 0; z-index: 15000; background: rgba(5, 5, 10, 0.85); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); display: flex; align-items: center; justify-content: center; opacity: 1; transition: opacity 0.3s var(--ease); }
.admin-terminal { width: 90%; max-width: 850px; height: 80vh; max-height: 650px; background: rgba(15, 15, 20, 0.7); border: 1px solid rgba(139, 92, 246, 0.3); border-radius: 16px; display: flex; flex-direction: column; box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 40px rgba(139, 92, 246, 0.15) inset; font-family: 'Consolas', 'Courier New', monospace; overflow: hidden; }
.admin-terminal-header { background: rgba(139, 92, 246, 0.1); padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(139, 92, 246, 0.2); color: #fff; font-size: 14px; font-weight: 600; font-family: 'Inter', sans-serif; }
.admin-terminal-header .ib { width: 28px; height: 28px; border-radius: 8px; font-size: 14px; color: var(--t2); transition: all .2s; }
.admin-terminal-header .ib:hover { background: var(--red); color: #fff; }
.admin-terminal-body { flex: 1; padding: 20px; overflow-y: auto; font-size: 13px; line-height: 1.6; color: #10b981; }
.admin-terminal-body::-webkit-scrollbar { width: 6px; }
.admin-terminal-body::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.3); border-radius: 4px; }
.admin-terminal-body::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,0.6); }
.terminal-line { margin-bottom: 6px; word-wrap: break-word; white-space: pre-wrap; text-shadow: 0 0 5px rgba(16, 185, 129, 0.3); }
.terminal-line.error { color: #f43f5e; text-shadow: 0 0 5px rgba(244, 63, 94, 0.3); }
.terminal-line.success { color: #10b981; }
.terminal-line.warning { color: #f59e0b; text-shadow: 0 0 5px rgba(245, 158, 11, 0.3); }
.terminal-line.system { color: #9ca3af; text-shadow: none; }
.admin-terminal-input-wrap { display: flex; align-items: center; padding: 16px 20px; background: rgba(0,0,0,0.3); border-top: 1px solid rgba(139, 92, 246, 0.2); }
.terminal-prompt { color: var(--accent); margin-right: 12px; font-weight: 900; font-size: 15px; }
.admin-terminal-input { flex: 1; background: transparent; border: none; color: #fff; font-size: 15px; font-family: 'Consolas', 'Courier New', monospace; outline: none; text-shadow: 0 0 5px rgba(255,255,255,0.2); }
.admin-terminal-input::placeholder { color: rgba(255,255,255,0.2); text-shadow: none; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.admin-table th { padding: 14px 16px; text-align: left; color: var(--t2); font-weight: 600; border-bottom: 2px solid var(--glass-border); text-transform: uppercase; letter-spacing: 0.5px; font-size: 11px; }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--t1); vertical-align: middle; transition: background .2s; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .set-btn { margin-right: 6px; margin-bottom: 4px; border-radius: 6px; }


/* ── СКРЫВАЕМ ПЛЕЕР КОГДА EXPANDED ОТКРЫТ ── */
body.pl-expanded-open .player:not(.expanded) {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(20px) !important;
  transition: opacity .3s var(--ease), transform .3s var(--ease) !important;
}

/* ── КНОПКА ЗАКРЫТИЯ EXPANDED ПЛЕЕРА ── */
.pl-exp-close {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t2);
  font-size: 18px;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.pl-exp-close:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
  transform: translateX(-50%) scale(1.1);
}

/* ── MOBILE: только titlebar, остальное в mobile.css ── */
@media (max-width: 768px) {
  .tb { display: none !important; }
}
