﻿:root {
  --bg-0: #0b0f14;
  --bg-1: #0f1a24;
  --bg-2: #172533;
  --glass: rgba(15, 23, 32, 0.75);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f5f6f8;
  --muted: #a3b1bf;
  --accent: #ff7b2f;
  --accent-2: #2ad1c5;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

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

body {
  font-family: "Urbanist", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #1b2c3a, transparent 45%),
    radial-gradient(circle at 80% 20%, #23364a, transparent 40%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 40%, var(--bg-2));
  min-height: 100vh;
  padding: 0 56px 200px;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.45;
  mix-blend-mode: screen;
}

.orb-one {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 123, 47, 0.7), transparent 65%);
  top: -120px;
  left: -80px;
}

.orb-two {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(42, 209, 197, 0.7), transparent 65%);
  top: 180px;
  right: -120px;
}

.orb-three {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(247, 203, 92, 0.5), transparent 65%);
  bottom: -120px;
  left: 35%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 0 -56px 16px;
  padding: 8px 56px;
  border-radius: 0;
  border: 1px solid var(--border);
  border-left: none;
  border-right: none;
  background: rgba(15, 23, 32, 0.95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 10px;
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: "Syne", sans-serif;
}

h1 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.topbar-stats {
  display: flex;
  gap: 16px;
  align-items: center;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.tab-button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 6px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-button.active {
  color: #0b0f14;
  background: linear-gradient(140deg, rgba(255, 123, 47, 0.9), rgba(42, 209, 197, 0.9));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.tab-button:hover {
  color: #ffffff;
}

.stat {
  text-align: right;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--muted);
  display: block;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stat-value {
  font-size: 1.2rem;
  font-family: "Syne", sans-serif;
  font-weight: 700;
}

.status {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  background: rgba(9, 14, 20, 0.88);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 0.95rem;
  color: var(--muted);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.loading-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 14, 0.65);
  backdrop-filter: blur(6px);
  z-index: 6;
}

.loading-overlay.active {
  display: flex;
}

.loading-card {
  background: rgba(10, 16, 24, 0.92);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 26px;
  display: grid;
  gap: 12px;
  justify-items: center;
  box-shadow: var(--shadow);
  min-width: 200px;
}

.visualizer {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 26px;
}

.visualizer span {
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-2), rgba(42, 209, 197, 0.4));
  animation: loadingBars 1s ease-in-out infinite;
  transform-origin: bottom;
}

.visualizer span:nth-child(2) {
  animation-delay: 0.1s;
}

.visualizer span:nth-child(3) {
  animation-delay: 0.2s;
}

.visualizer span:nth-child(4) {
  animation-delay: 0.3s;
}

.visualizer span:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes loadingBars {
  0%,
  100% {
    transform: scaleY(0.4);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
}

.panel {
  background: rgba(15, 23, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
  padding: 18px;
  backdrop-filter: blur(12px);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.panel-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.84rem;
  color: var(--text);
}

.toggle input {
  accent-color: var(--accent-2);
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease;
}

.ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.4);
}

.album-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.album {
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  cursor: pointer;
  transition: border 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.album:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.25);
}

.album.active {
  border-color: var(--accent);
  background: rgba(255, 123, 47, 0.12);
}

.album-title {
  font-weight: 700;
  color: #ffffff;
}

.album-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

.search-row {
  margin-bottom: 14px;
}

.search-row input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
}

.search-row input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px rgba(42, 209, 197, 0.2);
}

.track-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
}

.track {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease;
}

.track.active {
  border-color: var(--accent-2);
  background: rgba(42, 209, 197, 0.1);
}

.track-cover {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}

.track-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.track-cover img.hidden {
  display: none;
}

.track-num {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 2px 6px;
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(7, 16, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.track-title {
  font-weight: 500;
}

.track-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.track-duration {
  font-size: 0.78rem;
  color: var(--muted);
}

.empty-state {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 12px;
}

.empty-title {
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.empty-steps {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-steps li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: center;
}

.empty-steps li span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--text);
  font-size: 0.75rem;
}

.empty-steps li p {
  margin: 0;
}

.settings-panel {
  display: none;
  grid-column: 1 / -1;
  max-width: 1180px;
  margin: 0 auto;
}

.view-settings .settings-panel {
  display: block;
}

.view-settings .albums-panel,
.view-settings .tracks-panel {
  display: none;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.settings-card {
  grid-column: span 4;
  background: linear-gradient(180deg, rgba(14, 22, 32, 0.88), rgba(8, 13, 20, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.settings-card-wide {
  grid-column: 1 / -1;
}

.settings-card-half {
  grid-column: span 5;
}

.settings-card-mini {
  grid-column: span 2;
}

.settings-card h3 {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-card .meta {
  margin: 0;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
}

.theme-card {
  appearance: none;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 6px;
  cursor: pointer;
  transition: border 0.2s ease, transform 0.2s ease;
}

.theme-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.4);
}

.theme-card.active {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px rgba(42, 209, 197, 0.3);
}

.theme-swatch {
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-name {
  font-size: 0.78rem;
  font-weight: 700;
}

.cache-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cache-value {
  font-family: "Syne", sans-serif;
  font-weight: 700;
}

.settings-card input[type="file"] {
  width: 100%;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.82rem;
}

.player {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 18px;
  background: rgba(8, 14, 20, 0.88);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.4fr 0.7fr;
  align-items: center;
  gap: 12px;
  z-index: 2;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.now {
  display: flex;
  align-items: center;
  gap: 12px;
}

.art {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-family: "Syne", sans-serif;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.art-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-image.hidden {
  display: none;
}

.art-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #071018;
}

.art-initials.hidden {
  display: none;
}

.now-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.now-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.45);
}

.icon.primary {
  width: 40px;
  height: 40px;
  background: linear-gradient(140deg, rgba(255, 123, 47, 0.9), rgba(42, 209, 197, 0.9));
  border: none;
  color: #071018;
}

.shuffle-btn {
  background: transparent;
  color: var(--muted);
}

.shuffle-btn:hover {
  color: #ffffff;
}

.shuffle-btn.active {
  color: var(--accent-2);
  border-color: rgba(42, 209, 197, 0.6);
  background: rgba(42, 209, 197, 0.12);
  box-shadow: 0 0 10px rgba(42, 209, 197, 0.45), 0 0 24px rgba(42, 209, 197, 0.35);
}

.shuffle-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.repeat-btn,
.download-btn {
  position: relative;
  background: transparent;
  color: var(--muted);
}

.repeat-btn:hover,
.download-btn:hover {
  color: #ffffff;
}

.repeat-btn.active {
  color: var(--accent-2);
  border-color: rgba(42, 209, 197, 0.6);
  background: rgba(42, 209, 197, 0.12);
  box-shadow: 0 0 10px rgba(42, 209, 197, 0.45), 0 0 24px rgba(42, 209, 197, 0.2);
}

.repeat-icon,
.download-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.repeat-one {
  position: absolute;
  right: 4px;
  bottom: 2px;
  min-width: 9px;
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.download-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.download-btn:disabled:hover {
  transform: none;
  border-color: var(--border);
  color: var(--muted);
}

.play-toggle {
  position: relative;
}

.play-glyph {
  width: 18px;
  height: 20px;
  position: relative;
  display: block;
}

.play-glyph::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #071018;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.play-glyph::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 2px;
  width: 5px;
  height: 18px;
  background: #071018;
  box-shadow: 9px 0 0 #071018;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.play-toggle.is-playing .play-glyph::before {
  opacity: 0;
  transform: scale(0.7);
}

.play-toggle.is-playing .play-glyph::after {
  opacity: 1;
  transform: scale(1);
}

.progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.time {
  font-size: 0.75rem;
  color: var(--muted);
}

.progress input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}


.volume {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.volume-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--muted);
}

.volume-icon .speaker-body {
  fill: currentColor;
}

.volume-icon .wave-low,
.volume-icon .wave-high,
.volume-icon .mute-mark {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: none;
}

.volume-icon[data-level="low"] .wave-low,
.volume-icon[data-level="medium"] .wave-low,
.volume-icon[data-level="boost"] .wave-low {
  display: block;
}

.volume-icon[data-level="medium"] .wave-high,
.volume-icon[data-level="boost"] .wave-high {
  display: block;
}

.volume-icon[data-level="muted"] .mute-mark {
  display: block;
}

.volume-icon[data-level="medium"] {
  color: var(--text);
}

.volume-icon[data-level="boost"] {
  color: var(--accent-2);
  filter: drop-shadow(0 0 8px rgba(42, 209, 197, 0.45));
}

.volume-value {
  font-size: 0.72rem;
  color: var(--muted);
  min-width: 48px;
  text-align: right;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.volume input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 110px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.volume input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
  border-radius: 999px;
}

.volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(7, 16, 24, 0.4);
  margin-top: -4px;
  box-shadow: 0 0 0 2px rgba(42, 209, 197, 0.15);
}

.volume input[type="range"]::-moz-range-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.volume input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(7, 16, 24, 0.4);
  box-shadow: 0 0 0 2px rgba(42, 209, 197, 0.15);
}
.setup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 14, 0.8);
  z-index: 3;
}

.setup.active {
  display: flex;
}

.setup-card {
  background: #0f1822;
  border-radius: 20px;
  padding: 28px 30px;
  border: 1px solid var(--border);
  max-width: 460px;
  box-shadow: var(--shadow);
}

.setup-card h3 {
  margin-bottom: 12px;
}

.setup-card p {
  color: var(--muted);
  margin-bottom: 12px;
}

.setup-card ol {
  margin: 12px 0 12px 18px;
  color: var(--muted);
}

.meta {
  color: var(--muted);
}

@media (max-width: 980px) {
  body {
    padding: 0 24px 200px;
  }

  .topbar {
    margin: 0 -24px 16px;
    padding: 8px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-stats {
    width: 100%;
    justify-content: space-between;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .player {
    grid-template-columns: 1fr;
    gap: 10px;
    left: 16px;
    right: 16px;
  }

  .controls {
    justify-content: flex-start;
  }

  .volume {
    justify-content: flex-start;
  }

  .volume input[type="range"] {
    width: 100%;
    max-width: 220px;
  }
}



.settings-card .ghost {
  justify-self: start;
}

@media (max-width: 980px) {
  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-card,
  .settings-card-wide,
  .settings-card-half,
  .settings-card-mini {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
