/* ── PANEL HEADER (Last.fm uses this instead of panel-titlebar) ── */
.panel-header {
  background: linear-gradient(to bottom, #a00000 0%, #6e0000 8%, #520000 45%, #2b0000 55%, #160000 100%);
  padding: 3px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #d05050;
  border-left: 1px solid #b03030;
  border-right: 1px solid #240000;
  border-bottom: 1px solid #120000;
  font-size: 9px;
  color: #ffcccc;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: bold;
  position: relative;
  overflow: hidden;
}

.panel-header::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 45%;
  background: linear-gradient(to bottom, rgba(255,255,255,.16), rgba(255,255,255,0));
  pointer-events: none;
}

/* ── LAYOUT ── */
#lfm-dash-wrap {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* ── PROFILE SIDE ── */
#lfm-profile-side {
  width: 155px;
  flex-shrink: 0;
  border-right: 1px solid #1a1a1a;
  padding-right: 14px;
}

#lfm-avatar {
  width: 80px;
  height: 80px;
  display: block;
  margin: 0 auto 10px auto;
  object-fit: cover;
  border-top: 1px solid #444444;
  border-left: 1px solid #444444;
  border-right: 1px solid #111111;
  border-bottom: 1px solid #111111;
  background: #0d0d0d;
}

#lfm-user-block {
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #1a1a1a;
  margin-bottom: 8px;
}

#lfm-userlink {
  font-size: 11px;
  font-weight: bold;
  color: #cc4444;
  text-decoration: none;
  display: block;
}

#lfm-userlink:hover { color: #ff6666; }

#lfm-realname {
  font-size: 9px;
  color: #666666;
  margin-top: 3px;
}

#lfm-playcount {
  font-size: 9px;
  color: #444444;
  margin-top: 4px;
}

/* ── STAT BOX ── */
#lfm-statbox { }

.lfm-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 4px 0;
  border-bottom: 1px solid #151515;
  gap: 6px;
}

.lfm-stat-row:last-child { border-bottom: none; }

.lfm-stat-row > span {
  font-size: 7px;
  color: #664444;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
  padding-top: 1px;
}

.lfm-stat-row > b {
  font-size: 9px;
  color: #aaaaaa;
  font-weight: normal;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 95px;
}

/* ── MAIN FEED ── */
#lfm-main-feed {
  flex: 1;
  min-width: 0;
}

#lfm-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #1a1a1a;
}

#lfm-feed-title {
  font-size: 9px;
  color: #664444;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: Verdana, Arial, sans-serif;
}

#lfm-feed-meta {
  font-size: 8px;
  color: #332222;
  letter-spacing: 0.5px;
  font-family: Verdana, Arial, sans-serif;
}

/* ── TRACK ROWS ── */
.lfm-track {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #151515;
}

.lfm-track:last-child { border-bottom: none; }

.lfm-track-art {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  object-fit: cover;
  border-top: 1px solid #444444;
  border-left: 1px solid #444444;
  border-right: 1px solid #111111;
  border-bottom: 1px solid #111111;
  background: #0d0d0d;
  display: block;
}

.lfm-track-info {
  flex: 1;
  min-width: 0;
}

.lfm-track-title {
  font-size: 11px;
  color: #ffffff;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: Verdana, Arial, sans-serif;
}

.lfm-track-title a {
  color: #ffffff;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lfm-track-title a:hover { color: #cc4444; }

.lfm-track-meta {
  font-size: 9px;
  color: #666666;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: Verdana, Arial, sans-serif;
}

.lfm-track-album {
  font-size: 9px;
  color: #444444;
  font-style: italic;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: Verdana, Arial, sans-serif;
}

.lfm-nowplaying {
  color: #cc4444;
  font-weight: bold;
}

/* ── LIVE BARS ── */
.lfm-live-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  flex-shrink: 0;
}

.lfm-live-bars span {
  width: 3px;
  background: #cc4444;
  display: block;
  border-radius: 1px;
  transform-origin: bottom;
}

.lfm-live-bars span:nth-child(1) {
  height: 8px;
  animation: lfm-bar 0.9s ease-in-out infinite;
}

.lfm-live-bars span:nth-child(2) {
  height: 12px;
  animation: lfm-bar 0.9s ease-in-out infinite 0.2s;
}

.lfm-live-bars span:nth-child(3) {
  height: 6px;
  animation: lfm-bar 0.9s ease-in-out infinite 0.4s;
}

@keyframes lfm-bar {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(0.25); }
}

.lfm-empty {
  font-size: 9px;
  color: #443333;
  padding: 8px 0;
  font-family: Verdana, Arial, sans-serif;
}