@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  --bg: #111311;
  --panel: #191e17;
  --green: #c6f36b;
  --muted: #929b8b;
  --line: #2b3226;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: #f3f6ed;
  font: 14px "DM Sans", Arial, sans-serif;
}

button, input { font: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
button:hover { color: var(--green); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.sidebar {
  position: fixed;
  inset: 0 auto 96px 0;
  width: 240px;
  padding: 32px 22px;
  background: #0d100d;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 45px;
  font: 800 30px Manrope, Arial, sans-serif;
  letter-spacing: -1.5px;
}

.brand-icon {
  width: 35px;
  height: 35px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #1c2910;
  font: 24px Arial;
}

.brand-dot { color: var(--green); }

.nav-label, .library-head, .eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.nav-label { margin: 0 14px 14px; }

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  margin: 4px 0;
  border-radius: 8px;
  text-align: left;
  color: #a6afa0;
}

.nav span { width: 24px; font-size: 24px; }
.nav b { font-size: 13px; font-weight: 600; }

.nav.active {
  background: #242e1c;
  color: var(--green);
}

.library-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 8px 12px;
  letter-spacing: 1.3px;
}

.library-head button { font-size: 24px; }

.playlist-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 8px;
  width: 100%;
  text-align: left;
  border-radius: 7px;
}

.playlist-link:hover { background: #20271b; }

.playlist-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: #283121;
  border-radius: 6px;
  color: var(--green);
}

.playlist-link > div { overflow-wrap: anywhere; font-size: 12px; }
.playlist-link small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }

.sidebar-note {
  margin-top: auto;
  padding: 35px 7px 25px;
  font-size: 10px;
  color: #bac6af;
}

.sidebar-note small { display: block; margin-top: 9px; color: #727e68; }

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
}

.settings {
  padding: 18px 5px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  font-size: 12px;
  color: var(--muted);
}

.workspace { margin-left: 240px; padding-bottom: 115px; }

header {
  height: 94px;
  padding: 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid #22271e;
}

.history { display: flex; align-items: center; gap: 14px; }
.history span { font-size: 11px; color: var(--muted); }

.history button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 25px;
}

#searchForm {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(390px, 45%);
  padding: 0 16px;
  height: 44px;
  border: 1px solid #343e2b;
  border-radius: 25px;
  background: #232a1e;
}

#searchForm > span { font-size: 26px; color: #c0ccb5; }

input {
  min-width: 0;
  background: none;
  border: 0;
  color: inherit;
}

#search { width: 100%; outline: none; font-size: 12px; }
#search::placeholder { color: #909b87; }

.profile { display: flex; align-items: center; gap: 18px; }
.profile-label { font-size: 11px; color: #b9c6ad; }

.profile b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #c8d8b6;
  color: #26371b;
}

main { max-width: 1500px; margin: auto; padding: 32px 36px 0; }

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 9px 0 25px;
}

h1 { font: 800 30px Manrope, Arial, sans-serif; letter-spacing: -1px; }
.title-row > span { font-size: 11px; color: var(--muted); }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  margin-bottom: 32px;
  border-radius: 14px;
  background: radial-gradient(ellipse at 90% 100%, #50653a, #283723 75%);
}

.hero-copy { position: relative; z-index: 2; padding: 34px 36px; width: 65%; }

.pill {
  display: inline-block;
  padding: 6px 11px;
  border: 1px solid #778e61;
  border-radius: 20px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #d6e8bf;
}

.hero h2 {
  margin: 20px 0 13px;
  font: 800 36px/1.18 Manrope, Arial, sans-serif;
  letter-spacing: -1.2px;
}

.hero p { color: #bdcbb1; font-size: 12px; line-height: 1.8; }

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 24px;
  padding: 13px 22px;
  background: var(--green);
  color: #1a290f;
  font-size: 12px;
  font-weight: 700;
}

.primary:hover { background: #dcffa4; color: #1a290f; }
.hero .primary { margin-top: 22px; }
.hero-caption { font-size: 10px; color: #a7ba95; margin-left: 12px; }

.hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 42%;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  width: 390px;
  height: 390px;
  border: 1px solid #9bbd6c35;
  border-radius: 50%;
  box-shadow: 0 0 0 35px #9bbd6c0b;
}

.vinyl {
  display: grid;
  place-items: center;
  width: 265px;
  height: 265px;
  border: 7px solid #171d13;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #161b13 0 2px, #303629 3px, #161b13 4px);
  box-shadow: 15px 22px 35px #0007;
  transform: rotate(-15deg);
  z-index: 1;
}

.vinyl-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #c9ed8a;
  color: #2a3d19;
}

.vinyl-label strong { font: 800 17px/.97 Manrope, Arial; letter-spacing: -.5px; }
.vinyl-label small { font-size: 7px; }

.floating-tag {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  right: 22px;
  padding: 12px 17px;
  border-radius: 7px;
  transform: rotate(-7deg);
  background: #d7e9b9;
  color: #344925;
  font-size: 10px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title h2 { font: 700 19px Manrope, Arial; letter-spacing: -.5px; }
.section-title > span { font-size: 11px; color: var(--muted); }
.section-title .eyebrow { display: block; margin-bottom: 8px; font-size: 9px; }

.moods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 34px; }

.moods button {
  background: #1b2117;
  border: 1px solid var(--line);
  padding: 17px 14px;
  border-radius: 8px;
  text-align: left;
  font-size: 21px;
  color: #c0dca4;
}

.moods b { margin-left: 7px; color: #eaf1e2; font-size: 12px; font-weight: 500; }
.moods small { display: block; margin: 8px 0 0 32px; color: var(--muted); font-size: 10px; }
.moods button:hover { border-color: #819d5f; background: #26321e; }

.discovery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 17px; }
.discovery-card { min-width: 0; padding: 0; text-align: left; }

.cover {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1;
  border-radius: 9px;
  padding: 17px;
  transition: transform .2s;
}

.cover::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 20%;
  width: 110%;
  height: 110%;
  border: 30px solid #ffffff18;
  border-radius: 50%;
}

.cover::after {
  content: "▶";
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #1c2b12;
  opacity: 0;
}

.discovery-card:hover .cover { transform: translateY(-4px); }
.discovery-card:hover .cover::after { opacity: 1; }
.cover small { position: relative; font-size: 8px; letter-spacing: 2px; }
.cover strong { position: relative; white-space: pre-line; font: 800 clamp(18px, 2.3vw, 34px)/1 Manrope, Arial; letter-spacing: -1px; }
.discovery-card h3 { font-size: 12px; margin-top: 12px; }
.discovery-card p { font-size: 10px; line-height: 1.6; margin-top: 5px; color: var(--muted); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 36px;
  padding: 23px 0;
  border-top: 1px solid var(--line);
  color: #bac8ab;
  font-size: 12px;
}

footer > span { color: #829276; font-size: 10px; }

.player {
  position: fixed;
  z-index: 10;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  min-height: 96px;
  padding: 16px 26px;
  border-top: 1px solid #35432a;
  background: #151b11;
}

.now { display: flex; align-items: center; gap: 12px; width: 30%; min-width: 0; }

.now-art {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: #2d3d20;
  color: var(--green);
  font-size: 25px;
}

.now-art img, .now-art .track-placeholder { width: 100%; height: 100%; object-fit: cover; }
.now-info { min-width: 0; }
.now strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.now small { display: block; margin-top: 6px; font-size: 10px; color: var(--muted); }
.now button { font-size: 22px; }

.transport { width: 40%; max-width: 570px; }
.transport-buttons { display: flex; align-items: center; justify-content: center; gap: 23px; margin-bottom: 10px; }
.transport-buttons button { font-size: 17px; color: #b3c0a7; }

.transport-buttons .play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #1a290f;
  font-size: 14px;
}

.enabled { color: var(--green) !important; }
.timeline { display: flex; align-items: center; gap: 10px; font-size: 9px; color: var(--muted); }
.timeline span { min-width: 24px; }

input[type="range"] { accent-color: var(--green); height: 4px; cursor: pointer; }
.timeline input { width: 100%; }

.extras { display: flex; align-items: center; justify-content: flex-end; gap: 12px; width: 25%; color: #b1c19f; }
.extras input { width: 90px; }

.queue-panel {
  position: fixed;
  z-index: 11;
  top: 95px;
  bottom: 110px;
  right: 18px;
  width: 350px;
  overflow-y: auto;
  padding: 22px;
  background: #1d2717;
  border: 1px solid #485b37;
  border-radius: 12px;
  box-shadow: 0 10px 50px #0009;
}

.track { display: flex; align-items: center; gap: 14px; padding: 12px; border-bottom: 1px solid var(--line); }
.track:hover { background: #232e1c; }

.track > img, .track-placeholder {
  width: 45px;
  height: 45px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 5px;
}

.track-placeholder { display: grid; place-items: center; background: #34462a; color: var(--green); }
.track-number { font-size: 11px; color: var(--muted); }
.track-info { flex: 1; min-width: 0; }
.track-info strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.track-info small { display: block; margin-top: 6px; font-size: 10px; color: var(--muted); }
.track button { font-size: 20px; }

.track .track-play {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #1b2a11;
  font-size: 14px;
}

#status { margin-bottom: 20px; color: #b3c2a4; font-size: 13px; line-height: 1.8; }
#resultsSection { min-height: 400px; }

dialog {
  width: min(480px, 90vw);
  border: 1px solid #566e40;
  border-radius: 16px;
  padding: 28px;
  background: #212d19;
  color: #eff6e7;
}

dialog::backdrop { background: #000b; backdrop-filter: blur(4px); }
dialog h2 { font: 700 20px Manrope, Arial; }
dialog p { margin: 15px 0; color: #b4c3a5; font-size: 12px; line-height: 1.8; }
dialog label { display: block; margin: 15px 0 8px; font-size: 12px; }
dialog input { width: 100%; padding: 13px; border: 1px solid #4d6638; border-radius: 7px; background: #141d0e; }
.dialog-actions { display: flex; gap: 12px; margin-top: 20px; }

#toast {
  display: none;
  position: fixed;
  z-index: 30;
  bottom: 115px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 85vw;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--green);
  color: #1c2d11;
  font-size: 12px;
}

#toast.visible { display: block; }

@media (max-width: 1150px) {
  .sidebar { width: 200px; padding: 30px 15px; }
  .workspace { margin-left: 200px; }
  header { padding: 0 24px; }
  .history span, .profile-label { display: none; }
  #searchForm { width: 70%; }
  main { padding: 26px 24px 0; }
  .hero-copy { padding: 30px; }
  .hero h2 { font-size: 30px; }
  .hero-caption { display: none; }
  .vinyl { width: 220px; height: 220px; }
  .moods button { padding: 14px 10px; }
  .moods b { font-size: 10px; margin-left: 3px; }
  .moods small { margin-left: 0; }
  .discovery { gap: 12px; }
  .title-row > span { display: none; }
}

@media (max-width: 760px) {
  .sidebar { width: 65px; padding: 24px 10px; bottom: 110px; }
  .brand { margin-bottom: 25px; }
  .brand-name, .nav-label, .library-head,
  #playlists, .sidebar-note, .settings span { display: none; }
  .nav { padding: 12px 8px; }
  .nav b { display: none; }
  .settings { margin-top: auto; font-size: 20px; }
  .workspace { margin-left: 65px; padding-bottom: 125px; }
  header { height: 75px; padding: 0 15px; gap: 10px; }
  .history, .profile { display: none; }
  #searchForm { width: 100%; }
  main { padding: 25px 16px 0; }
  h1 { font-size: 25px; }
  .hero { min-height: 315px; }
  .hero-copy { width: 100%; padding: 27px 22px; }
  .hero-art { opacity: .2; width: 65%; right: -40px; }
  .hero h2 { font-size: 29px; }
  .moods { grid-template-columns: repeat(2, 1fr); }
  .section-title > span { display: none; }
  .discovery { grid-template-columns: repeat(2, 1fr); }
  .cover strong { font-size: 29px; }
  .player { min-height: 110px; padding: 12px; gap: 12px; }
  .now { width: 40%; gap: 8px; }
  .now-art { width: 36px; height: 36px; }
  .now small, .now button, .extras { display: none; }
  .transport { width: 60%; }
  .transport-buttons { gap: 14px; }
  footer > span { max-width: 150px; text-align: right; line-height: 1.7; }
  .queue-panel { width: calc(100% - 85px); right: 10px; top: 85px; bottom: 125px; }
  .track { gap: 7px; padding: 10px 3px; }
  .track-number { display: none; }
  .track-info strong { font-size: 11px; }
}