/* tunamp: the Spotify "now playing" widget in three designs (classic, minimal, taskbar), matching the
   tannedtuna.com desktop. System fonts only, on purpose. Self-contained so it works on a transparent OBS page. */
.tunamp {
  --face: #c0c0c0;
  --hi: #ffffff;
  --lo: #808080;
  --dark: #0a0a0a;
  --navy: #000080;
  --lcd: #00e000;
  box-sizing: border-box;
  color: var(--dark);
  font: 14px/1.45 Tahoma, 'MS Sans Serif', Verdana, Geneva, sans-serif;
}
.tunamp.pop {
  animation: tunamp-in 0.3s ease-out;
}
@keyframes tunamp-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
}

/* ---- classic: a Win98 window with a Winamp display ---- */
.tunamp-classic {
  width: 380px;
  padding: 3px;
  background: var(--face);
  border: 2px solid;
  border-color: var(--hi) var(--dark) var(--dark) var(--hi);
  box-shadow: inset -1px -1px 0 var(--lo), inset 1px 1px 0 #dfdfdf, 4px 4px 0 rgba(0, 0, 0, 0.35);
}
.tunamp *,
.tunamp *::before {
  box-sizing: border-box;
}

.tunamp-classic .tunamp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 3px 3px 7px;
  background: linear-gradient(90deg, var(--navy), #1084d0);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.tunamp-classic .tunamp-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tunamp-classic .tunamp-buttons {
  flex: none;
  display: flex;
  gap: 2px;
}
.tunamp-classic .tunamp-buttons i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 16px;
  border: 2px solid;
  border-color: var(--hi) var(--dark) var(--dark) var(--hi);
  background: var(--face);
  color: var(--dark);
  font: normal 700 13px/1 Tahoma, sans-serif;
}
.tunamp-classic .tunamp-buttons .close {
  margin-left: 2px;
}
.tunamp-classic .tunamp-buttons .min::before {
  content: '';
  width: 7px;
  height: 2px;
  margin-top: 6px;
  background: var(--dark);
}
.tunamp-classic .tunamp-buttons .max::before {
  content: '';
  width: 9px;
  height: 8px;
  border: 1px solid var(--dark);
  border-top-width: 2px;
}

.tunamp-classic .tunamp-main {
  display: flex;
  gap: 8px;
  margin-top: 3px;
  padding: 6px;
  background: #23232f;
  border: 2px solid;
  border-color: var(--lo) var(--hi) var(--hi) var(--lo);
}
.tunamp-classic .tunamp-art {
  flex: none;
  width: 96px;
  height: 96px;
  border: 1px solid #000;
  object-fit: cover;
  background: #000;
}
.tunamp-art[hidden] {
  display: none;
}
.tunamp-classic .tunamp-lcd {
  flex: 1;
  min-width: 0;
  display: grid;
  align-content: space-between;
  padding: 6px 8px;
  background: #000;
  border: 1px solid #3a3a4a;
  color: var(--lcd);
  font: 13px/1.3 'Courier New', Courier, monospace;
}
.tunamp-classic .tunamp-label {
  margin: 0;
  color: #7a9a7a;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tunamp-ticker {
  overflow: hidden;
  white-space: pre;
  font-weight: 700;
}
.tunamp-ticker span {
  display: inline-block;
  animation: tunamp-ticker var(--ticker, 12s) linear infinite;
}
@keyframes tunamp-ticker {
  to {
    transform: translateX(-50%);
  }
}
.tunamp-classic .tunamp-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
}
.tunamp-classic .tunamp-time {
  font: 700 26px/1 'Courier New', Courier, monospace;
  letter-spacing: 0.04em;
}
.tunamp-classic .tunamp-viz {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 26px;
}
.tunamp-classic .tunamp-viz i {
  width: 4px;
  height: 100%;
  background: linear-gradient(0deg, #00c000, #e0e000 70%, #ff4020);
  transform-origin: bottom;
  animation: tunamp-viz 0.9s ease-in-out infinite alternate;
}
.tunamp-classic .tunamp-viz i:nth-child(3n) {
  animation-duration: 0.6s;
}
.tunamp-classic .tunamp-viz i:nth-child(3n + 1) {
  animation-duration: 1.15s;
  animation-delay: -0.4s;
}
.tunamp-classic .tunamp-viz i:nth-child(4n) {
  animation-delay: -0.7s;
}
@keyframes tunamp-viz {
  from {
    transform: scaleY(0.12);
  }
  to {
    transform: scaleY(1);
  }
}
.tunamp-classic .tunamp-seek {
  height: 12px;
  margin: 5px 1px 1px;
  background: #23232f;
  border: 2px solid;
  border-color: var(--lo) var(--hi) var(--hi) var(--lo);
}
.tunamp-classic .tunamp-seek span {
  display: block;
  width: 0;
  height: 100%;
  background: #00c000;
  transition: width 0.5s linear;
}

/* ---- minimal: a small dark card ---- */
.tunamp-minimal {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-width: 240px;
  max-width: 380px;
  padding: 10px 16px 10px 10px;
  border-radius: 12px;
  background: rgba(18, 18, 24, 0.82);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  color: #fff;
  font: 14px/1.3 'Segoe UI', system-ui, sans-serif;
}
.tunamp-minimal .tunamp-art {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 7px;
  object-fit: cover;
}
.tunamp-minimal .tunamp-text {
  flex: 1;
  min-width: 0;
}
.tunamp-minimal p {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tunamp-song {
  font-weight: 700;
  font-size: 15px;
}
.tunamp-artist {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}
.tunamp-minimal .tunamp-seek {
  height: 3px;
  margin-top: 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}
.tunamp-minimal .tunamp-seek span {
  display: block;
  width: 0;
  height: 100%;
  background: #1ed760;
  transition: width 0.5s linear;
}

/* ---- taskbar: a strip of the Win98 taskbar ---- */
.tunamp-taskbar {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 380px;
  height: 34px;
  padding: 3px;
  background: var(--face);
  border-top: 2px solid var(--hi);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
  font-size: 13px;
}
.tunamp-start,
.tunamp-button,
.tunamp-tray {
  display: flex;
  align-items: center;
  height: 26px;
  padding: 0 8px;
  border: 2px solid;
}
.tunamp-start {
  flex: none;
  border-color: var(--hi) var(--dark) var(--dark) var(--hi);
  color: #008080;
  font-weight: 700;
}
.tunamp-button {
  flex: 1;
  min-width: 0;
  gap: 6px;
  border-color: var(--dark) var(--hi) var(--hi) var(--dark);
  background: #d8d8d8;
  font-weight: 700;
}
.tunamp-note {
  flex: none;
  color: var(--navy);
}
.tunamp-tray {
  flex: none;
  border-color: var(--lo) var(--hi) var(--hi) var(--lo);
  font-variant-numeric: tabular-nums;
}
.tunamp-taskbar .tunamp-ticker {
  flex: 1;
  min-width: 0;
}
