:root {
  color-scheme: dark;
  --bg: #0f0f0f;
  --panel: #181818;
  --panel-hover: #252525;
  --border: #303030;
  --text: #f1f1f1;
  --muted: #a3a3a3;
  --accent: #c4a7ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input {
  font: inherit;
}
.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 54px);
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.6px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--text);
  color: #111;
  border-radius: 9px;
  font-size: 12px;
}
.brand-muted {
  color: var(--muted);
  font-weight: 500;
}
.top-note,
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--muted);
  font-weight: 750;
}
.layout {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 30px clamp(16px, 3.2vw, 48px) 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
  align-items: start;
}
.main-column {
  margin-top: 60px;
  min-width: 0;
}
.player-shell {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
  border: 1px solid #282828;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 55px #0005;
}
video {
  width: 100%;
  height: 100%;
  display: block;
  background: #050505;
  object-fit: contain;
}
.empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 22px;
  background: radial-gradient(
    ellipse at 50% 30%,
    #29213b 0%,
    #111 55%,
    #050505 100%
  );
  pointer-events: none;
}
.empty-state.hidden {
  display: none;
}
.empty-icon {
  width: 58px;
  height: 58px;
  border: 1px solid #ffffff2c;
  background: #ffffff0c;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 31px;
  color: var(--accent);
  margin-bottom: 10px;
}
.empty-state h2 {
  margin: 6px 0;
  font-size: clamp(17px, 2vw, 24px);
  letter-spacing: -0.6px;
}
.empty-state p {
  margin: 5px 0;
  max-width: 420px;
  color: #b5b5b5;
  line-height: 1.6;
  font-size: 13px;
}
code {
  color: #e0ceff;
  background: #ffffff10;
  padding: 2px 5px;
  border-radius: 4px;
}
.track-info {
  padding: 23px 2px 18px;
}
.track-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.eyebrow {
  margin: 0 0 7px;
  color: #bca2f5;
}
h1 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.8px;
  overflow-wrap: anywhere;
}
.muted {
  color: var(--muted);
}
#track-subtitle {
  margin: 8px 0 0;
  font-size: 13px;
}
.icon-button {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: #1a1a1a;
  color: var(--text);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}
.icon-button:hover,
.small-button:hover {
  background: var(--panel-hover);
}
.tag-row {
  display: flex;
  gap: 7px;
  margin-top: 16px;
}
.tag {
  border: 1px solid #343434;
  border-radius: 5px;
  padding: 5px 7px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #a7a7a7;
}
.below-player {
  padding-top: 23px;
}
.below-player h2 {
  font-size: 16px;
  margin: 0 0 8px;
}
.below-player p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.tip {
  background: #19171e;
  border: 1px solid #332b43;
  border-radius: 9px;
  padding: 12px 14px;
  color: #c9c1d7;
  font-size: 12px;
  line-height: 1.6;
}
.tip strong {
  color: #eee5ff;
}
.playlist-panel {
  background: #141414;
  border: 1px solid #292929;
  border-radius: 14px;
  overflow: hidden;
  position: sticky;
  top: 88px;
}
.playlist-header {
  padding: 20px 18px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.playlist-header h2 {
  font-size: 17px;
  margin: 0 0 5px;
  letter-spacing: -0.3px;
}
.playlist-header p {
  margin: 0;
  font-size: 12px;
}
.small-button {
  color: #ddd;
  background: #202020;
  border: 1px solid #333;
  border-radius: 7px;
  padding: 7px 9px;
  cursor: pointer;
  font-size: 11px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px 12px;
  padding: 0 11px;
  height: 38px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #0f0f0f;
  color: #9c9c9c;
}
.search-box span {
  font-size: 20px;
}
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 12px;
}
.playlist-list {
  padding: 0 8px 8px;
  max-height: min(66vh, 720px);
  overflow-y: auto;
  gap: 8px;
  display: flex;
  flex-direction: column;
}
.track {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 20px;
  gap: 9px;
  align-items: center;
  padding: 10px 9px;
  border: 0;
  border-radius: 8px;
  text-align: left;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.track:hover {
  background: #222;
}
.track.active {
  background: #2b2536;
}
.track-number {
  color: #777;
  font-size: 11px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.track.active .track-number {
  color: #d6c1ff;
}
.track-title {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.track-meta {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: #8d8d8d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-play {
  color: #cbb2ff;
  font-size: 14px;
  opacity: 0;
}
.track:hover .track-play,
.track.active .track-play {
  opacity: 1;
}
.playlist-empty {
  padding: 25px 18px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}
.playlist-footer {
  border-top: 1px solid #292929;
  padding: 13px 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8c8c8c;
  font-size: 10px;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: #b8a0ec;
  border-radius: 50%;
  box-shadow: 0 0 10px #b8a0ec80;
}
footer {
  padding: 0 20px 26px;
  text-align: center;
  font-size: 11px;
  color: #656565;
}
footer span {
  color: #bca2f5;
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 18px;
  }
  .playlist-panel {
    position: static;
  }
  .playlist-list {
    max-height: 420px;
  }
  .top-note {
    display: none;
  }
}
@media (max-width: 520px) {
  .topbar {
    height: 58px;
  }
  .layout {
    padding-inline: 10px;
  }
  .player-shell {
    border-radius: 9px;
  }
  .playlist-panel {
    border-radius: 10px;
  }
  .track-info {
    padding-top: 17px;
  }
}
