*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-0: #f0f7ff;
  --blue-1: #daeaf8;
  --blue-2: #b8d5f0;
  --blue-3: #7ab0de;
  --blue-4: #3a82c4;
  --blue-5: #1a5a96;
  --blue-6: #0d3f72;
  --blue-7: #082b52;

  --orange: #e8891a;
  --orange-d: #b05800;
  --green:  #3aa85c;

  --bg-page:    #d4e6f6;
  --bg-header:  #1c5f9e;
  --bg-sidebar: #e0eefc;
  --bg-content: #f2f8ff;
  --bg-player:  #111e2d;

  --tx-light:  #ffffff;
  --tx-main:   #1a2a3c;
  --tx-muted:  #6a8aaa;
  --tx-player: #c0d8f0;

  --bd-light: #c0d8ee;
  --bd-mid:   #90b8d8;
  --bd-dark:  #4a7aaa;

  --header-h: 58px;
  --player-h: 82px;

  --sh-header: 0 3px 10px rgba(0,0,0,.4);
  --sh-player: 0 -4px 16px rgba(0,0,0,.5);
  --sh-card:   0 2px 6px rgba(0,60,120,.12);
  --sh-card-h: 0 6px 18px rgba(26,90,150,.28);
  --sh-gloss:  inset 0 1px 0 rgba(255,255,255,.55);
  --sh-inset:  inset 0 2px 4px rgba(0,0,0,.14);
}

html, body {
  height: 100%; overflow: hidden;
  background: var(--bg-page);
  font-family: Verdana, Tahoma, Geneva, sans-serif;
  font-size: 12px; color: var(--tx-main);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #ccdcec; }
::-webkit-scrollbar-thumb { background: #90b8d8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-5); }

#header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background:
    linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,.08) 100%),
    linear-gradient(180deg, #2e7cc4 0%, #1a5a96 48%, #0d3f72 100%);
  box-shadow: var(--sh-header), inset 0 1px 0 rgba(255,255,255,.30);
  border-bottom: 1px solid #0a2e58;
  display: flex; align-items: center;
  padding: 0 14px; gap: 16px; z-index: 200;
}

#logo-area { display:flex; align-items:center; gap:10px; flex-shrink:0; }
#logo-img  { height:40px; object-fit:contain; filter:drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
#logo-fallback { display:flex; align-items:center; gap:8px; }
#logo-text { line-height:1.1; }
#logo-orca { font-family:'Trebuchet MS',Arial,sans-serif; font-size:22px; font-weight:bold;
             color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.5); }
#logo-lens { font-family:'Trebuchet MS',Arial,sans-serif; font-size:22px; font-weight:bold;
             color:#a8d4f8; text-shadow:0 1px 3px rgba(0,0,0,.4); }
#logo-tagline { font-size:9px; color:rgba(255,255,255,.55); letter-spacing:.5px; margin-top:2px; }

#tab-bar { display:flex; gap:2px; align-items:flex-end; flex:1; }

.tab-btn {
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 55%),
    rgba(255,255,255,.08);
  color: rgba(255,255,255,.75);
  font-family: Verdana, sans-serif;
  font-size: 11px; font-weight: bold;
  cursor: pointer; letter-spacing: .3px;
  transition: background .12s, color .12s;
  position: relative; top: 1px;
}
.tab-btn:hover { background: rgba(255,255,255,.18); color: #fff; }
.tab-btn.active {
  background:
    linear-gradient(180deg, rgba(255,255,255,.4) 0%, rgba(255,255,255,.05) 50%),
    linear-gradient(180deg, #f0a030 0%, #c06010 100%);
  color: #fff;
  border-color: #8a4800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 -1px 0 rgba(255,140,0,.3);
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.tab-btn:hover:not(.active) {
  background:
    linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 55%),
    rgba(255,255,255,.14);
  color: #fff;
}

#header-right { margin-left:auto; color:rgba(255,255,255,.55); font-size:10px; white-space:nowrap; }

#layout {
  display: flex; position: fixed;
  top: var(--header-h); bottom: var(--player-h);
  left: 0; right: 0; overflow: hidden;
}

#sidebar {
  width: 196px; flex-shrink: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.15) 100%),
    linear-gradient(180deg, #daeaf8 0%, #c4d8ee 100%);
  border-right: 1px solid var(--bd-mid);
  overflow-y: auto; padding-bottom: 10px;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.5);
}

.sidebar-section { margin-top: 12px; }

.sidebar-heading {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px 4px;
  font-size: 9px; font-weight: bold; letter-spacing: 1.3px;
  color: var(--tx-muted); text-transform: uppercase;
  border-bottom: 1px solid var(--bd-light); margin-bottom: 4px;
}

.side-action-btn {
  background:
    linear-gradient(180deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.0) 50%),
    linear-gradient(180deg, #f0a030 0%, #c06010 100%);
  border: 1px solid #8a4000;
  border-radius: 3px;
  color: #fff; font-size: 13px; font-weight: bold;
  width: 18px; height: 18px; line-height: 16px;
  text-align: center; cursor: pointer; padding: 0;
  box-shadow: var(--sh-gloss), 0 1px 3px rgba(0,0,0,.25);
  transition: filter .1s;
}
.side-action-btn:hover { filter: brightness(1.12); }

#playlist-list { list-style: none; padding: 0 6px; }

.pl-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 8px; border-radius: 4px;
  cursor: pointer; font-size: 11px; color: var(--blue-6);
  border-bottom: 1px solid rgba(255,255,255,.6);
  transition: background .1s;
}
.pl-item:hover { background: rgba(26,90,150,.1); }
.pl-item.active { background: rgba(26,90,150,.18); font-weight: bold; }
.pl-item-name { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pl-item-export {
  font-size: 9px; color: var(--tx-muted); padding: 1px 4px;
  border: 1px solid var(--bd-light); border-radius: 3px;
  background: rgba(255,255,255,.5); cursor: pointer;
  margin-left: 4px; flex-shrink: 0;
  transition: background .1s;
}
.pl-item-export:hover { background: rgba(255,255,255,.9); color: var(--blue-5); }

#import-m3u-area { padding: 6px 10px; }
.import-label {
  display: block; text-align: center;
  padding: 4px 0;
  font-size: 10px; color: var(--blue-5); cursor: pointer;
  border: 1px dashed var(--bd-mid); border-radius: 4px;
  background: rgba(255,255,255,.4);
  transition: background .1s;
}
.import-label:hover { background: rgba(255,255,255,.7); }

#queue-list { list-style: none; padding: 0 6px; }
.queue-empty { padding: 8px; color: var(--tx-muted); font-style: italic; font-size: 11px; }

.queue-item {
  padding: 5px 8px; border-radius: 4px; cursor: pointer;
  font-size: 11px; color: var(--blue-6);
  border-bottom: 1px solid rgba(255,255,255,.6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .1s;
}
.queue-item:hover { background: rgba(26,90,150,.1); }
.queue-item.playing { color: var(--blue-5); font-weight: bold; }

#content { flex:1; overflow-y:auto; background:var(--bg-content); position:relative; }

.tab-pane { display:block; }
.tab-pane.hidden { display:none !important; }

#view-header, #view-header-playlists {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 100%),
    linear-gradient(180deg, #e4f0fc 0%, #d4e6f4 100%);
  border-bottom: 1px solid var(--bd-light);
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 1px 0 rgba(255,255,255,.7), 0 2px 4px rgba(0,40,100,.06);
}

#view-header-artists, #view-header-albums {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 16px 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 100%),
    linear-gradient(180deg, #e4f0fc 0%, #d4e6f4 100%);
  border-bottom: 1px solid var(--bd-light);
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 1px 0 rgba(255,255,255,.7), 0 2px 4px rgba(0,40,100,.06);
  text-align: center;
}

.view-title {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 16px; color: var(--blue-6); font-weight: bold;
  text-shadow: 0 1px 0 rgba(255,255,255,.8);
}
.view-subtitle { font-size: 10px; color: var(--tx-muted); }

#lib-sort-controls, #sort-controls {
  font-size: 11px; color: var(--tx-muted);
  display: flex; align-items: center; gap: 6px;
}
#lib-sort-controls select, #sort-controls select {
  font-family: Verdana, sans-serif; font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--bd-mid); border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.8) 0%, rgba(220,240,255,.5) 100%);
  color: var(--tx-main); outline: none;
  box-shadow: var(--sh-gloss), var(--sh-inset);
}

.tab-search-hero {
  padding: 28px 24px 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 100%),
    linear-gradient(180deg, #e4f0fc 0%, #d0e8f8 100%);
  border-bottom: 1px solid var(--bd-light);
  text-align: center;
}

.search-hero-title {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 22px; font-weight: bold;
  color: var(--blue-6);
  text-shadow: 0 1px 0 rgba(255,255,255,.9);
  margin-bottom: 4px;
}
.search-hero-sub { font-size: 11px; color: var(--tx-muted); margin-bottom: 16px; }

#search-bar-wrap {
  display: flex; justify-content: center; gap: 0; max-width: 520px; margin: 0 auto;
}

#search-input {
  flex: 1; height: 34px; padding: 0 14px;
  border: 1px solid var(--bd-dark); border-right: none;
  border-radius: 6px 0 0 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(230,245,255,.6) 100%);
  box-shadow: var(--sh-inset);
  font-family: Verdana, sans-serif; font-size: 12px;
  color: var(--tx-main); outline: none;
  transition: box-shadow .15s;
}
#search-input:focus { box-shadow: var(--sh-inset), 0 0 0 2px rgba(58,130,196,.3); }
#search-input::placeholder { color: var(--tx-muted); }

#search-go-btn {
  height: 34px; padding: 0 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.3) 0%, rgba(255,255,255,0) 50%),
    linear-gradient(180deg, #f0a030 0%, #c06010 100%);
  border: 1px solid #8a4000;
  border-radius: 0 6px 6px 0;
  color: #fff; font-family: Verdana, sans-serif; font-size: 12px; font-weight: bold;
  cursor: pointer;
  box-shadow: var(--sh-gloss), 0 2px 4px rgba(0,0,0,.25);
  text-shadow: 0 1px 1px rgba(0,0,0,.3);
  transition: filter .1s;
}
#search-go-btn:hover  { filter: brightness(1.08); }
#search-go-btn:active { filter: brightness(.9); }

#search-results-area { padding: 12px 0 0; }

.track-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}

.track-table thead tr {
  background:
    linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 100%),
    linear-gradient(180deg, #d8eaf8 0%, #c4d8ee 100%);
  border-bottom: 2px solid var(--bd-mid);
  position: sticky; top: 0; z-index: 5;
}

.track-table th {
  padding: 7px 10px; text-align: left;
  font-size: 10px; font-weight: bold; letter-spacing: .5px;
  color: var(--tx-muted); text-transform: uppercase;
  border-right: 1px solid var(--bd-light);
  user-select: none;
  text-shadow: 0 1px 0 rgba(255,255,255,.8);
}
.track-table th:last-child { border-right: none; }

.col-num     { width: 36px; text-align: center; }
.col-art     { width: 40px; }
.col-title   { min-width: 160px; }
.col-artist  { min-width: 120px; }
.col-album   { min-width: 120px; }
.col-fmt     { width: 60px; text-align: center; }
.col-actions { width: 80px; text-align: center; }

.track-table tbody tr {
  border-bottom: 1px solid var(--bd-light);
  cursor: pointer; transition: background .07s;
}
.track-table tbody tr:nth-child(odd)  {
  background:
    linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.1) 100%),
    #eef6fd;
}
.track-table tbody tr:nth-child(even) {
  background:
    linear-gradient(180deg, rgba(255,255,255,.4) 0%, rgba(255,255,255,.05) 100%),
    #e4f0fa;
}
.track-table tbody tr:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,.2) 100%),
    #d0e8f8 !important;
}
.track-table tbody tr.playing {
  background:
    linear-gradient(180deg, rgba(255,255,255,.6) 0%, rgba(255,255,255,.1) 100%),
    #c4e0f8 !important;
  font-weight: bold; color: var(--blue-6);
}
.track-table tbody tr.playing .track-title-cell { color: var(--blue-5); }

.track-table td {
  padding: 6px 10px; vertical-align: middle;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 200px; border-right: 1px solid var(--bd-light);
}
.track-table td:last-child { border-right: none; }

.td-num { text-align: center; color: var(--tx-muted); font-size: 11px; }

.td-art-thumb {
  width: 30px; height: 30px; border-radius: 3px;
  border: 1px solid var(--bd-light); object-fit: cover; display: block;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

.format-badge {
  display: inline-block; padding: 1px 6px;
  border-radius: 3px; font-size: 9px; font-weight: bold;
  letter-spacing: .5px; text-transform: uppercase;
  background: linear-gradient(180deg,rgba(255,255,255,.6) 0%,rgba(255,255,255,.0) 100%), #c8e0f4;
  color: var(--blue-6); border: 1px solid var(--bd-mid);
  box-shadow: var(--sh-gloss);
}
.format-badge.flac { background: linear-gradient(180deg,rgba(255,255,255,.6) 0%,rgba(255,255,255,.0) 100%), #d0efd8; color: #1a6628; border-color: #80c890; }
.format-badge.wav  { background: linear-gradient(180deg,rgba(255,255,255,.6) 0%,rgba(255,255,255,.0) 100%), #f4e8d0; color: #7a4800; border-color: #c8a060; }
.format-badge.ogg  { background: linear-gradient(180deg,rgba(255,255,255,.6) 0%,rgba(255,255,255,.0) 100%), #e8d4f0; color: #5a1880; border-color: #b070d8; }

.loading-row { text-align:center; padding:40px; color:var(--tx-muted); font-style:italic; }

.playing-icon { color:var(--blue-4); animation:pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { from{opacity:1} to{opacity:.35} }

.add-btn {
  font-size: 10px; padding: 3px 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 50%),
    linear-gradient(180deg, #f0a030 0%, #c06010 100%);
  border: 1px solid #8a4000;
  border-radius: 4px; color: #fff; cursor: pointer; font-weight: bold;
  box-shadow: var(--sh-gloss), 0 1px 3px rgba(0,0,0,.2);
  text-shadow: 0 1px 1px rgba(0,0,0,.25);
  white-space: nowrap; transition: filter .1s;
}
.add-btn:hover  { filter: brightness(1.1); }
.add-btn:active { filter: brightness(.88); }
.add-btn.added  {
  background: linear-gradient(180deg, rgba(255,255,255,.4) 0%,rgba(255,255,255,0) 50%), #c8e8d0;
  color: #1a6628; border-color: #60a870; text-shadow: none;
  box-shadow: var(--sh-gloss);
}

.remove-btn {
  font-size: 10px; padding: 2px 6px;
  background: rgba(200,40,40,.08); border: 1px solid #e0a0a0;
  border-radius: 4px; color: #a02020; cursor: pointer;
  transition: background .1s;
}
.remove-btn:hover { background: rgba(200,40,40,.18); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• CARD GRID â•â•â•â•â• */
.card-grid {
  display: flex; flex-wrap: wrap; gap: 14px; padding: 16px;
}

.grid-card {
  width: 138px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.8) 0%, rgba(255,255,255,.2) 50%),
    linear-gradient(180deg, #e4f0fc 0%, #cce0f4 100%);
  border: 1px solid var(--bd-mid);
  border-radius: 6px; padding: 12px 10px 10px;
  cursor: pointer; text-align: center;
  box-shadow: var(--sh-card), var(--sh-gloss);
  transition: box-shadow .15s, transform .12s;
}
.grid-card:hover {
  box-shadow: var(--sh-card-h);
  transform: translateY(-3px);
  border-color: var(--blue-4);
}
.grid-card:active { transform: translateY(-1px); }

.grid-card-art {
  width: 100%; aspect-ratio: 1; border-radius: 4px;
  border: 1px solid var(--bd-light);
  background: linear-gradient(135deg, #c0d8f0 0%, #80b0d8 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: rgba(26,90,150,.45);
  margin-bottom: 8px; overflow: hidden;
  box-shadow: var(--sh-inset);
}
.grid-card-art img { width:100%; height:100%; object-fit:cover; border-radius:3px; }

.grid-card-name {
  font-size: 11px; font-weight: bold; color: var(--blue-6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}
.grid-card-sub { font-size: 10px; color: var(--tx-muted); margin-top: 2px; }

.pl-card-play-btn {
  margin-top: 6px; font-size: 10px; padding: 3px 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 50%),
    linear-gradient(180deg, #f0a030, #c06010);
  border: 1px solid #8a4000; border-radius: 4px;
  color: #fff; cursor: pointer; font-weight: bold;
  box-shadow: var(--sh-gloss), 0 1px 2px rgba(0,0,0,.2);
  text-shadow: 0 1px 1px rgba(0,0,0,.25);
  transition: filter .1s;
}
.pl-card-play-btn:hover { filter: brightness(1.1); }

.back-btn {
  display: inline-block; margin: 10px 16px;
  padding: 4px 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 50%),
    linear-gradient(180deg, #c8dcee, #a8c4de);
  border: 1px solid var(--bd-mid); border-radius: 4px;
  color: var(--blue-6); cursor: pointer; font-size: 11px;
  box-shadow: var(--sh-gloss), 0 1px 3px rgba(0,0,0,.1);
  transition: filter .1s;
}
.back-btn:hover { filter: brightness(1.06); }

#pl-header-actions { display:flex; gap:8px; align-items:center; }

.pl-action-btn {
  font-size: 10px; padding: 4px 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 50%),
    linear-gradient(180deg, #f0a030, #c06010);
  border: 1px solid #8a4000; border-radius: 4px;
  color: #fff; cursor: pointer; font-weight: bold;
  box-shadow: var(--sh-gloss), 0 1px 3px rgba(0,0,0,.2);
  text-shadow: 0 1px 1px rgba(0,0,0,.25);
  transition: filter .1s;
}
.pl-action-btn:hover { filter: brightness(1.1); }
.pl-action-btn.danger {
  background:
    linear-gradient(180deg, rgba(255,255,255,.4) 0%,rgba(255,255,255,0) 50%),
    linear-gradient(180deg, #e05050, #b02020);
  border-color: #800000;
}

#ctx-menu {
  position: fixed; z-index: 1000;
  min-width: 180px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(240,250,255,.95) 100%);
  border: 1px solid var(--bd-dark);
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0,40,100,.25), var(--sh-gloss);
  overflow: hidden;
}
#ctx-menu-inner { padding: 4px 0; }
.ctx-heading {
  padding: 5px 12px 3px;
  font-size: 9px; font-weight: bold; letter-spacing: 1px;
  color: var(--tx-muted); text-transform: uppercase;
}
.ctx-item {
  padding: 6px 14px; font-size: 11px; color: var(--tx-main);
  cursor: pointer; transition: background .08s;
}
.ctx-item:hover { background: var(--blue-4); color: #fff; }
.ctx-item.ctx-new { color: var(--blue-5); font-style: italic; }
.ctx-divider { height: 1px; background: var(--bd-light); margin: 3px 0; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--tx-muted); }
.es-icon { font-size: 48px; margin-bottom: 14px; opacity: .4; }
.empty-state h3 { font-size: 16px; color: var(--tx-main); margin-bottom: 8px; }
.empty-state p { font-size: 12px; line-height: 1.6; max-width: 380px; margin: 0 auto; }
.empty-state code {
  background: #e0ecf8; border: 1px solid var(--bd-mid);
  border-radius: 3px; padding: 2px 6px;
  font-family: 'Courier New', monospace; font-size: 11px;
}

#player-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--player-h);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 30%),
    linear-gradient(180deg, #253a52 0%, #111e2d 55%, #080e18 100%);
  box-shadow: var(--sh-player), inset 0 1px 0 rgba(255,255,255,.09);
  border-top: 1px solid #050b14;
  display: flex; align-items: center;
  padding: 0 16px; gap: 14px; z-index: 200;
}

#player-left { display:flex; align-items:center; gap:12px; width:240px; flex-shrink:0; }

#now-playing-art {
  width: 52px; height: 52px; border-radius: 4px;
  border: 1px solid #3a5a7a;
  background: linear-gradient(135deg, #2a4a6a 0%, #1a2f4a 100%);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08);
}
#np-art-img { width:100%; height:100%; object-fit:cover; display:none; }
#np-art-placeholder { font-size:22px; color:rgba(122,184,232,.35); }

#now-playing-info { overflow: hidden; }
#np-title  { font-size:12px; font-weight:bold; color:#e8f4ff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#np-artist { font-size:10px; color:#7ab8e8; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

#player-center { flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; }
#player-controls { display:flex; align-items:center; gap:4px; }

.ctrl-btn {
  background: none; border: none; color: #c8a878;
  cursor: pointer; padding: 4px 8px; border-radius: 4px;
  font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .1s, color .1s;
}
.ctrl-btn img { height: 20px; width: auto; object-fit: contain; }
.ctrl-btn:hover { background: rgba(232,137,26,.15); color: #f0a030; }
.ctrl-btn.active { color: var(--orange); }

.play-btn {
  width: 42px; height: 42px; border-radius: 50%; padding: 0;
  background:
    radial-gradient(circle at 38% 32%, rgba(255,255,255,.4) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(160deg, #f0a030 0%, #c06010 100%);
  border: 1px solid #8a4000 !important;
  box-shadow: 0 3px 10px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.3);
  color: #fff !important;
}
.play-btn img { height:18px; }
.play-btn:hover { filter: brightness(1.12); background:
  radial-gradient(circle at 38% 32%, rgba(255,255,255,.4) 0%, rgba(255,255,255,0) 60%),
  linear-gradient(160deg, #f0a030 0%, #c06010 100%) !important; }
.play-btn:active { filter: brightness(.85); }

#progress-area { display:flex; align-items:center; gap:8px; width:100%; max-width:520px; }

#time-current, #time-total {
  font-size:10px; color:#4a7aaa; width:34px; text-align:center;
  flex-shrink:0; font-variant-numeric:tabular-nums;
}

#progress-bar-wrap { flex:1; position:relative; height:16px; display:flex; align-items:center; }

#progress-bar {
  width:100%; height:5px;
  background: linear-gradient(180deg, #0a1828 0%, #162333 100%);
  border: 1px solid #040c18;
  border-radius: 3px; position: relative; cursor: pointer;
  box-shadow: var(--sh-inset), 0 1px 0 rgba(255,255,255,.06);
}

#progress-fill {
  height:100%; border-radius:3px; width:0%;
  background: linear-gradient(90deg, #f0b050 0%, #d06010 100%);
  box-shadow: 0 0 5px rgba(232,137,26,.5);
  transition: width .25s linear;
}

#progress-thumb {
  width:13px; height:13px; position:absolute;
  top:50%; left:0%; transform:translate(-50%,-50%);
  background: radial-gradient(circle at 38% 32%, #fff4e0, #e8891a);
  border: 1px solid #a04800; border-radius:50%;
  box-shadow: 0 2px 5px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.6);
  cursor:pointer; transition:left .25s linear;
}

#player-right { display:flex; align-items:center; gap:8px; width:130px; flex-shrink:0; justify-content:flex-end; }
#vol-icon { font-size:14px; cursor:pointer; color:#4a7aaa; }

#volume-slider {
  -webkit-appearance:none; width:80px; height:4px;
  background: linear-gradient(180deg, #0a1828, #162333);
  border-radius:3px; outline:none; cursor:pointer;
  border: 1px solid #040c18;
  box-shadow: var(--sh-inset);
}
#volume-slider::-webkit-slider-thumb {
  -webkit-appearance:none; width:13px; height:13px;
  background: radial-gradient(circle at 38% 32%, #fff4e0, #e8891a);
  border: 1px solid #a04800; border-radius:50%; cursor:pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.5);
}

.hidden { display:none !important; }