:root {
  color-scheme: dark;
  --bg: #101312;
  --panel: #181c1b;
  --panel-soft: #202523;
  --line: #303834;
  --text: #f4f7f4;
  --muted: #aab4ad;
  --green: #94ff80;
  --green-strong: #52de5f;
  --danger: #ff5c77;
  --amber: #ffc857;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; min-height: 100%; background-color: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, sans-serif; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: transparent; cursor: pointer; }

/* Entry & layout (unchanged core) */
.entry-screen { position: fixed; inset: 0; background: radial-gradient(circle at 25% 10%, rgba(148,255,128,.06), transparent 40rem), #101312; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; z-index: 999; }
.brand-lockup { text-align: center; margin-bottom: 2rem; }
.brand-mark { width: 72px; height: 72px; margin-bottom: 1rem; }
.brand-word { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.04em; }
.brand-word span { color: var(--green); }
.brand-lockup p { color: var(--muted); font-size: .9rem; margin-top: .5rem; }
.entry-grid { width: 100%; max-width: 400px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 2rem; box-shadow: var(--shadow); }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.auth-tab { flex: 1; padding: .75rem; text-align: center; color: var(--muted); font-weight: 600; }
.auth-tab.active { color: var(--green); border-bottom: 2px solid var(--green); }
.auth-form-segment { display: flex; flex-direction: column; gap: 1.25rem; }
.auth-form-segment h2 { font-size: 1.25rem; }
.auth-form-segment label { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; color: var(--muted); }
.auth-form-segment input { background: var(--panel-soft); border: 1px solid var(--line); padding: .75rem; border-radius: 6px; outline: none; }
.auth-form-segment input:focus { border-color: var(--green); }
button.primary { background: var(--green); color: #000; font-weight: 700; padding: .75rem; border-radius: 6px; }
button.primary:hover { background: var(--green-strong); }
.small-note { font-size: .75rem; color: var(--muted); text-align: center; }

.app-shell { display: flex; flex-direction: column; height: 100vh; width: 100vw; background: var(--bg); }
.main-screen { display: flex; flex: 1; height: calc(100vh - 90px); width: 100%; overflow: hidden; }

/* Sidebar */
.sidebar { width: 240px; background: #090b0a; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 1.5rem 1rem; }
.sidebar-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 2rem; }
.sidebar-logo { width: 28px; height: 28px; }
.sidebar-brand { font-weight: 700; font-size: 1.1rem; }
.main-nav { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.main-nav button { text-align: left; padding: .75rem 1rem; color: var(--muted); font-weight: 600; border-radius: 6px; width: 100%; }
.main-nav button:hover, .main-nav button.active { color: var(--text); background: var(--panel); }
.session-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--line); }
#sessionLabel { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-circle { width: 32px; height: 32px; background: var(--panel-soft); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }

/* Content area */
.content-area { flex: 1; display: flex; flex-direction: column; background: var(--bg); overflow-y: auto; }
.content-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 2rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(16,19,18,.9); backdrop-filter: blur(8px); }
.content-header h1 { font-size: 1.5rem; font-weight: 800; }
.search-wrap input { background: var(--panel); border: 1px solid var(--line); padding: .5rem 1rem; border-radius: 20px; font-size: .85rem; width: 220px; outline: none; }
.view-container { padding: 2rem; }

/* Songs list */
.songs-grid-layout { display: flex; flex-direction: column; gap: .5rem; }
.song-item-row { display: flex; align-items: center; justify-content: space-between; padding: .5rem 1rem; background: var(--panel); border-radius: 6px; border: 1px solid transparent; }
.song-item-row:hover { background: var(--panel-soft); border-color: var(--line); }
.song-meta-clickable { display: flex; align-items: center; gap: 1rem; flex: 1; cursor: pointer; }
.track-thumb { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; }
.song-meta-clickable h4 { font-size: .9rem; font-weight: 600; }
.song-meta-clickable p { font-size: .8rem; color: var(--muted); }

/* REVAMPED PLAYER */
.player { position: fixed; bottom: 0; left: 0; right: 0; height: 96px; background: var(--panel); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; gap: .75rem; z-index: 900; }
.now-playing { display: flex; align-items: center; gap: .75rem; min-width: 240px; max-width: 32%; }
.now-playing img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; }
.now-playing strong { display: block; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-playing span { display: block; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Modern control buttons */
.transport { display: flex; flex-direction: column; align-items: center; gap: .5rem; width: 36%; min-width: 420px; }
.controls { display: flex; align-items: center; gap: .5rem; }
.control-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--panel-soft); border: 1px solid var(--line); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03); transition: transform .08s ease, background .15s ease; }
.control-btn:hover { background: #252b28; }
.control-btn:active { transform: translateY(1px); }
.play-primary { width: 46px; height: 46px; border-radius: 12px; background: var(--green); color: #081208; border-color: #7ce96a; font-weight: 800; }
.play-primary:hover { background: var(--green-strong); }

/* Seek area */
.seek-wrap { display: flex; align-items: center; gap: .6rem; width: 100%; font-size: .8rem; color: var(--muted); }
.seek-host { position: relative; flex: 1; height: 16px; display: flex; align-items: center; }
.custom-slider.seek { width: 100%; }

/* Volume area */
.volume-wrap { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; min-width: 220px; }
.volume-icon { font-size: 1rem; }
.custom-slider.vol { width: 110px; }

/* Sliders base */
.custom-slider { appearance: none; -webkit-appearance: none; background: var(--line); height: 5px; border-radius: 999px; outline: none; cursor: pointer; position: relative; }
.custom-slider::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--green) 0 0) no-repeat, var(--line); height: 5px; border-radius: 999px; }
.custom-slider.seek::-webkit-slider-thumb,
.custom-slider.vol::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--green); border: 2px solid #0b140f; margin-top: -4.5px; }
.custom-slider::-moz-range-track { background: var(--line); height: 5px; border-radius: 999px; }
.custom-slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--green); border: 2px solid #0b140f; }

/* Seek tooltip */
.seek-tooltip { position: absolute; bottom: 18px; left: 0; transform: translateX(-50%); padding: 3px 6px; border-radius: 4px; background: var(--panel-soft); border: 1px solid var(--line); color: var(--text); font-size: .72rem; white-space: nowrap; pointer-events: none; }
.seek-tooltip.hidden { display: none; }

/* Utilities */
.hidden { display: none !important; }
.toast-host { position: fixed; top: 1rem; right: 1rem; z-index: 1000; display: flex; flex-direction: column; gap: .5rem; }
.toast { background: var(--panel-soft); border: 1px solid var(--line); padding: .75rem 1.25rem; border-radius: 6px; font-size: .85rem; box-shadow: var(--shadow); }
.cookie-banner { position: fixed; bottom: 110px; left: 50%; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--line); padding: 1rem; border-radius: 8px; display: flex; align-items: center; gap: 1rem; z-index: 950; box-shadow: var(--shadow); }

/* Responsive */
@media (max-width: 860px) {
  .main-screen { flex-direction: column; height: calc(100vh - 110px); }
  .sidebar { width: 100%; order: 2; border-right: none; border-top: 1px solid var(--line); padding: .5rem 1rem; }
  .sidebar-header, .session-footer { display: none; }
  .main-nav { flex-direction: row; justify-content: space-around; }
  .main-nav button { text-align: center; padding: .5rem; font-size: .8rem; }
  .player { height: 120px; flex-direction: column; justify-content: center; gap: .6rem; padding: .6rem; }
  .now-playing, .transport, .volume-wrap { width: 100%; justify-content: center; text-align: center; min-width: 0; }
  .transport { min-width: 0; }
  .volume-wrap { display: none; }
}

/* Guarantee compact volume width */
#volumeSlider { width: 110px !important; }
/* ===== PLAYER V2 ===== */

:root{
 --accent:#8CF46A;
}

.player{
 background:#111314 !important;
 border-top:1px solid #262b2e !important;
 box-shadow:0 -8px 35px rgba(0,0,0,.35);
}

.now-playing img{
 width:64px !important;
 height:64px !important;
 border-radius:12px !important;
 box-shadow:0 8px 22px rgba(0,0,0,.4);
}

.control-btn{
 min-width:46px !important;
 min-height:46px !important;
 width:auto !important;
 padding:0 14px !important;

 background:#1a1d1f !important;

 border:1px solid #2c3235 !important;

 border-radius:14px !important;

 transition:.18s ease;
}

.control-btn:hover{
 background:#25292c !important;
 transform:translateY(-2px);
}

.play-primary{
 width:60px !important;
 height:60px !important;

 border-radius:18px !important;

 background:var(--accent) !important;

 color:#101312 !important;

 box-shadow:
 0 0 24px rgba(140,244,106,.25);
}

.play-primary:hover{
 background:#9eff82 !important;
}

.repeat-btn{
 width:auto !important;
}

.repeat-btn span{
 margin-left:8px;
}

.active-control{
 background:rgba(140,244,106,.12) !important;
 border-color:rgba(140,244,106,.4) !important;
 color:var(--accent) !important;
}

.toast-host{
 left:50% !important;
 right:auto !important;
 top:auto !important;
 bottom:110px !important;
 transform:translateX(-50%);
 align-items:center;
}

.toast{
 min-width:220px !important;
 text-align:center;

 font-size:1rem !important;

 padding:14px 24px !important;

 border-radius:14px !important;

 background:rgba(24,27,29,.96) !important;

 border:1px solid rgba(140,244,106,.3) !important;
}

.volume-icon{
 font-size:1.2rem !important;
}

.seek-tooltip{
 border-radius:8px !important;
 padding:5px 10px !important;
}
/* ===== DARKER SLIDERS ===== */

#seekBar,
#volumeSlider {
  pointer-events: auto !important;
  background: #2a2d2f !important;
  height: 6px !important;
  border-radius: 999px !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

#seekBar::-webkit-slider-runnable-track,
#volumeSlider::-webkit-slider-runnable-track {
  background: #2a2d2f !important;
  height: 6px !important;
  border-radius: 999px !important;
}

#seekBar::-webkit-slider-thumb,
#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  margin-top: -4px;
  transition: transform 0.1s ease;
}

#seekBar:hover::-webkit-slider-thumb,
#volumeSlider:hover::-webkit-slider-thumb {
  transform: scale(1.15);
}
