/* Root + base */
:root {
  --accent: #f4f4f4;
  --art-url: url("cover.png");
}

* { box-sizing: border-box; }

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #161616 0, #050505 55%);
  color: #f5f5f5;
}

/* Dynamic blurred background */
.bg-art {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(130%);
  opacity: 0.2;
  transform: scale(1.05);
  transition: background-image 0.6s ease, opacity 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.desktop-bg {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 12px;
}

/* App window */
.app-window {
  width: 900px;
  max-width: 100%;
  background: rgba(10, 10, 10, 0.92);
  border-radius: 14px;
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px) saturate(150%);
  animation: window-pop 420ms cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes window-pop {
  0% { transform: translateY(18px) scale(0.96); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background: linear-gradient(to bottom, #303030, #272727);
  border-bottom: 1px solid #141414;
}

.toolbar-tabs {
  display: flex;
  gap: 6px;
}

.tab {
  background: #3b3b3b;
  border-radius: 7px;
  border: 1px solid #171717;
  color: #f2f2f2;
  font-size: 12px;
  padding: 3px 11px;
  cursor: default;
  box-shadow: 0 1px 0 rgba(0,0,0,0.7);
}

.tab.active { background: #454545; }

.toolbar-spacer { flex: 1; }

.window-buttons {
  display: flex;
  gap: 5px;
}

.window-buttons .circle {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #555;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4);
}

.window-buttons .red { background: #ff5f57; }
.window-buttons .yellow { background: #febc2e; }
.window-buttons .green { background: #28c840; }

.content { padding: 12px 12px 10px; }

/* Layout */
.row {
  display: grid;
  grid-template-columns: 1.35fr 1.05fr;
  gap: 10px;
  margin-bottom: 8px;
}

/* Cards */
.card {
  background: #232323;
  border-radius: 9px;
  border: 1px solid #111;
  box-shadow: 0 2px 0 rgba(0,0,0,0.8);
  padding: 10px;
}

.glass {
  background: radial-gradient(circle at top left, rgba(255,255,255,0.05), rgba(10,10,10,0.95));
  border: 1px solid rgba(255,255,255,0.04);
}

/* Profile */
.profile-left { display: flex; gap: 10px; }

.avatar-frame {
  width: 110px;
  height: 110px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #050505;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03);
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-meta { flex: 1; font-size: 11px; }
.meta-line { margin-bottom: 4px; }
.strong { font-weight: 600; }

.note-label { margin-top: 6px; margin-bottom: 3px; }

.note-box {
  width: 100%;
  height: 60px;
  background: #171717;
  color: #e6e6e6;
  border-radius: 5px;
  border: 1px solid #101010;
  padding: 4px;
  font-size: 11px;
  resize: none;
}

/* Links */
.links-card { display: flex; flex-direction: column; justify-content: space-between; }

.links-title {
  font-family: "Space Grotesk", system-ui;
  font-size: 22px;
  font-weight: 600;
  text-align: right;
  margin-bottom: 6px;
}

.links-list {
  padding-top: 6px;
  border-top: 1px solid #3b3b3b;
  text-align: right;
}

.links-list a {
  display: block;
  color: #e0e0e0;
  font-size: 12px;
  text-decoration: none;
  padding: 2px 0;
}

.links-list a:hover {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255,255,255,0.4);
}

/* Section headers */
.section-header {
  font-size: 13px;
  background: #3b3b3b;
  padding: 6px 8px;
  border-radius: 5px;
  border: 1px solid #181818;
  box-shadow: 0 1px 0 rgba(0,0,0,0.9);
}

.center { text-align: center; }

/* Player */
.player-card { display: flex; flex-direction: column; gap: 8px; }

.player-top { display: flex; }

.cover-frame {
  background: #141414;
  border-radius: 8px;
  border: 1px solid #050505;
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02);
  position: relative;
  overflow: hidden;
}

/* Cover + glow stack (vinyl removed) */
.cover-inner {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.cover-frame img {
  width: 100%;
  max-width: 260px;
  height: 135px;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

/* Glow behind cover */
.cover-glow {
  position: absolute;
  inset: -30%;
  background-image: var(--art-url);
  background-size: cover;
  background-position: center;
  filter: blur(26px) saturate(180%);
  opacity: 0.25;
  z-index: 0;
}

/* Vinyl removed - clean cover display */

.cover-caption { font-size: 11px; margin-top: 6px; }
.track-title { font-weight: 600; }
.track-artist { color: #bcbcbc; }

/* Controls */
.player-controls { display: flex; gap: 6px; }

.btn {
  border-radius: 6px;
  border: 1px solid #161616;
  background: #353535;
  color: #f3f3f3;
  font-size: 12px;
  padding: 5px 16px;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0,0,0,0.8);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.1s ease;
}

.btn.primary { background: #f4f4f4; color: #111; }

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 0 rgba(0,0,0,0.9);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 0 0 rgba(0,0,0,0.9);
}

/* Waveform */
.waveform {
  display: flex;
  gap: 3px;
  margin: 4px 0 2px;
  height: 16px;
  align-items: flex-end;
}

.waveform .bar {
  flex: 1;
  max-width: 10px;
  border-radius: 999px;
  background: linear-gradient(to top, #888, #f4f4f4);
  height: 4px;
  opacity: 0.3;
}

/* Animated when playing */
.waveform.active .bar {
  opacity: 0.9;
  animation: wave 1.1s ease-in-out infinite;
}

.waveform.active .bar:nth-child(2) { animation-delay: 0.08s; }
.waveform.active .bar:nth-child(3) { animation-delay: 0.16s; }
.waveform.active .bar:nth-child(4) { animation-delay: 0.24s; }
.waveform.active .bar:nth-child(5) { animation-delay: 0.32s; }
.waveform.active .bar:nth-child(6) { animation-delay: 0.4s; }
.waveform.active .bar:nth-child(7) { animation-delay: 0.48s; }

@keyframes wave {
  0%, 100% { height: 4px; }
  50%      { height: 16px; }
}

/* Station wheel */
.station-table { margin-top: 4px; font-size: 11px; }

.station-header {
  display: grid;
  grid-template-columns: 30px 1fr 110px;
  padding: 4px 6px 3px;
  border-bottom: 1px solid #3a3a3a;
  color: #e2e2e2;
}

.station-body {
  max-height: 140px;
  overflow-y: auto;
  padding-right: 2px;
}

.station-body::-webkit-scrollbar { width: 6px; }
.station-body::-webkit-scrollbar-track { background: #181818; }
.station-body::-webkit-scrollbar-thumb { background: #3b3b3b; border-radius: 3px; }

.station-row {
  display: grid;
  grid-template-columns: 30px 1fr 110px;
  padding: 4px 6px;
  border-bottom: 1px solid #2b2b2b;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.station-row:hover { background: #333333; }

.station-row.active {
  background: linear-gradient(to right, rgba(255,255,255,0.07), rgba(0,0,0,0));
  box-shadow: inset 2px 0 0 var(--accent);
}

.col-index { text-align: left; }
.col-title { padding-left: 2px; }
.col-genre { text-align: right; color: #c2c2c2; }

/* Posts */
.posts-card { font-size: 11px; }

.post {
  border-radius: 6px;
  border: 1px solid #333333;
  padding: 7px;
  margin-bottom: 6px;
  background: rgba(20,20,20,0.9);
  box-shadow: 0 1px 0 rgba(0,0,0,0.9);
}

.post-title { margin-bottom: 4px; }
.post-body { color: #c7c7c7; }

.meta-grid {
  display: grid;
  grid-template-columns: 70px 1fr;
  row-gap: 4px;
  column-gap: 6px;
}

.meta-label { color: #b0b0b0; }
.meta-value { font-weight: 500; }

/* Activity bar */
.activity-bar {
  margin-top: 6px;
  padding: 6px 9px;
  background: rgba(40,40,40,0.95);
  border-radius: 7px;
  border: 1px solid #121212;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.9);
}

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

.activity-progress {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-bar {
  width: 120px;
  height: 4px;
  border-radius: 3px;
  overflow: hidden;
  background: #151515;
}

.progress-fill {
  width: 40%;
  height: 100%;
  background: var(--accent);
  animation: shimmer 2.5s linear infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-40%); }
  100% { transform: translateX(120%); }
}

.activity-time { color: #c5c5c5; }

/* Footer */
.footer {
  text-align: center;
  font-size: 10px;
  color: #b5b5b5;
  margin-top: 4px;
}
