:root {
  color-scheme: dark;
  font-family: "Rajdhani", "Bahnschrift", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  min-width: 280px;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.player-widget {
  position: relative;
  display: grid;
  grid-template-columns: minmax(108px, 34%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 4vw, 20px);
  width: 100%;
  height: 100%;
  min-height: 96px;
  padding: clamp(10px, 3.2vw, 14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #0b0d11;
  color: #f5f1e9;
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
}

.player-widget:focus-visible {
  outline: 3px solid #f5f1e9;
  outline-offset: -4px;
}

.widget-backdrop,
.widget-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.widget-backdrop { inset: -24px; }

.widget-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) saturate(0.75);
  opacity: 0.58;
  transform: scale(1.15);
}

.widget-backdrop-empty {
  background: radial-gradient(circle at 20% 30%, #27303d, #0b0d11 62%);
}

.widget-scrim {
  z-index: -1;
  background: linear-gradient(90deg, rgba(6, 7, 9, 0.7), rgba(6, 7, 9, 0.92));
}

.widget-art {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #202531;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

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

.widget-art-empty b {
  color: rgba(255, 255, 255, 0.58);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.widget-content {
  display: grid;
  align-content: center;
  min-width: 0;
  height: 100%;
}

.widget-title {
  color: #dfe1e5;
  font-size: clamp(0.78rem, 3.4vw, 0.94rem);
  font-weight: 700;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-count-row {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2.6vw, 12px);
  margin-top: 3px;
}

.widget-count-row strong {
  font-size: clamp(2.25rem, 11vw, 3.7rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.9;
}

.widget-count-row span {
  display: grid;
  grid-template-columns: 7px auto;
  align-items: center;
  gap: 3px 6px;
  color: #a8ff5f;
}

.widget-count-row span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px rgba(168, 255, 95, 0.75);
}

.widget-count-row span b {
  font-size: clamp(0.64rem, 2.6vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.widget-attribution {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: auto;
  color: #aeb3bc;
  font-size: clamp(0.6rem, 2.4vw, 0.72rem);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.widget-attribution b { color: #f5f1e9; }

.widget-attribution i {
  margin-left: auto;
  color: #f5f1e9;
  font-size: 0.9rem;
  font-style: normal;
  transition: transform 150ms ease;
}

.player-widget:hover .widget-attribution i { transform: translateX(3px); }

@media (max-width: 330px) {
  .player-widget { grid-template-columns: 98px minmax(0, 1fr); }
  .widget-count-row strong { font-size: 2.15rem; }
}
