/* TS Audio Player — Trumpetstar look. Original. No AudioIgniter styles. */

.audioigniter-root {
  --ts-blue: #008cfd;
  --ts-blue-mid: #0087fa;
  --ts-blue-dark: #0068db;
  --ts-gold: #f5a623;
  --ts-text: #222222;
  --ts-bg: #f8f9fa;
  --ts-white: #ffffff;
  --ts-ice: #d5e8f0;
  --ts-line: #e6edf2;
  --ts-hero: linear-gradient(180deg, #008cfd 0%, #0068db 40%, #0087fa 100%);
  display: block;
  width: 100%;
  margin: 0 auto 1.5rem;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ts-text);
  box-sizing: border-box;
}

.audioigniter-root *,
.audioigniter-root *::before,
.audioigniter-root *::after {
  box-sizing: border-box;
}

.ts-ap {
  background: var(--ts-white);
  border: 1px solid var(--ts-line);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(34, 34, 34, 0.06);
  overflow: hidden;
}

/* Header / seek share one vertical brand gradient */
.ts-ap-hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 12px;
  background: var(--ts-hero);
  color: var(--ts-white);
}

.ts-ap-hero-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ts-ap-cover {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16) center/cover no-repeat;
}

.ts-ap-cover:empty,
.ts-ap-cover[hidden] {
  display: none;
}

.ts-ap-now {
  flex: 1 1 auto;
  min-width: 0;
}

.ts-ap-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ts-ap-sub {
  margin-top: 2px;
  font-size: 13px;
  opacity: 0.88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ts-ap-seek-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  background: transparent;
}

.ts-ap-seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  margin: 0;
  background: rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.ts-ap-seek::-webkit-slider-runnable-track {
  height: 8px;
  background: #ffffff;
  border-radius: 999px;
}

.ts-ap-seek::-moz-range-track {
  height: 8px;
  background: #ffffff;
  border-radius: 999px;
  border: 0;
}

.ts-ap-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -4px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #0068db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.ts-ap-seek::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #0068db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.ts-ap-time {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  opacity: 0.95;
  white-space: nowrap;
  line-height: 1;
}

.ts-ap-sep {
  opacity: 0.7;
}

/* Controls: one clean row, no grey bubbles */
.ts-ap-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  padding: 8px 10px 6px;
  background: var(--ts-white);
}

.ts-ap-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ts-blue-dark);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 0;
}

.ts-ap-btn:hover,
.ts-ap-btn:focus-visible {
  background: rgba(0, 104, 219, 0.08);
  outline: none;
}

.ts-ap-btn.is-on {
  background: transparent;
  color: var(--ts-gold);
}

.ts-ap-btn.is-on:hover,
.ts-ap-btn.is-on:focus-visible {
  background: rgba(245, 166, 35, 0.12);
}

.ts-ap-play {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  background: var(--ts-gold);
  color: #222222;
}

.ts-ap-play:hover,
.ts-ap-play:focus-visible {
  background: #e39812;
  color: #222222;
}

.ts-ap-vol {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 120px;
  flex: 1 1 120px;
  max-width: 200px;
  color: var(--ts-blue-dark);
  height: 44px;
}

.ts-ap-vol-icon {
  display: inline-flex;
  flex: 0 0 auto;
}

.ts-ap-volume {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 auto;
  width: 90px;
  height: 6px;
  background: var(--ts-ice);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  accent-color: var(--ts-blue-dark);
}

.ts-ap-volume::-webkit-slider-runnable-track {
  height: 6px;
  background: var(--ts-ice);
  border-radius: 999px;
}

.ts-ap-volume::-moz-range-track {
  height: 6px;
  background: var(--ts-ice);
  border-radius: 999px;
  border: 0;
}

.ts-ap-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--ts-blue-dark);
  border: 0;
  cursor: pointer;
}

.ts-ap-volume::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ts-blue-dark);
  border: 0;
  cursor: pointer;
}

/* Tempo: quiet full-width bar, label left, one percent right */
.ts-ap-tempo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0;
  padding: 10px 16px 12px;
  background: var(--ts-white);
  border-top: 1px solid var(--ts-line);
}

.ts-ap-tempo-label {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ts-text);
}

.ts-ap-tempo-range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 0;
  min-width: 0;
  height: 8px;
  background: var(--ts-ice);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  accent-color: var(--ts-gold);
}

.ts-ap-tempo-range::-webkit-slider-runnable-track {
  height: 8px;
  background: var(--ts-ice);
  border-radius: 999px;
}

.ts-ap-tempo-range::-moz-range-track {
  height: 8px;
  background: var(--ts-ice);
  border-radius: 999px;
  border: 0;
}

.ts-ap-tempo-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--ts-gold);
  border: 2px solid var(--ts-white);
  box-shadow: 0 1px 4px rgba(34, 34, 34, 0.2);
  cursor: pointer;
}

.ts-ap-tempo-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ts-gold);
  border: 2px solid var(--ts-white);
  box-shadow: 0 1px 4px rgba(34, 34, 34, 0.2);
  cursor: pointer;
}

.ts-ap-tempo-val {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 3.2em;
  text-align: right;
  color: var(--ts-text);
}

.ts-ap-pitch-warn {
  flex: 1 0 100%;
  margin: 0;
  font-size: 12px;
  color: #5b6570;
}

.ts-ap-extras {
  display: flex;
  gap: 10px;
  padding: 0 16px 10px;
}

.ts-ap-buy,
.ts-ap-dl {
  color: var(--ts-blue-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.ts-ap-buy:hover,
.ts-ap-dl:hover {
  text-decoration: underline;
}

/* Tracklist: flat rows, 1px separators, ice active + left bar */
.ts-ap-list-wrap {
  border-top: 1px solid var(--ts-line);
  background: var(--ts-white);
}

.ts-ap-list-toggle {
  appearance: none;
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ts-blue-dark);
  cursor: pointer;
}

.ts-ap-list-toggle:hover,
.ts-ap-list-toggle:focus-visible {
  background: var(--ts-bg);
  outline: none;
}

.ts-ap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
}

.ts-ap-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px;
  margin: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  border: 0;
  border-top: 1px solid var(--ts-line);
  border-left: 3px solid transparent;
}

.ts-ap-item:hover {
  background: var(--ts-bg);
}

.ts-ap-item.is-active {
  background: var(--ts-ice);
  border-left-color: var(--ts-gold);
}

.ts-ap-item-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ts-ap-item-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ts-ap-item.is-active .ts-ap-item-title {
  font-weight: 700;
  color: var(--ts-blue-dark);
}

.ts-ap-item-sub {
  font-size: 12px;
  color: #5b6570;
}

.ts-ap-thumb {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--ts-ice) center/cover no-repeat;
}

.ts-ap-error {
  margin: 0;
  padding: 10px 16px 14px;
  color: #9b1c1c;
  font-size: 14px;
}

.ts-ap--simple .ts-ap-hero {
  padding: 12px 14px 10px;
}

.ts-ap--simple .ts-ap-play {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}

.ts-ap--simple .ts-ap-title {
  font-size: 14px;
}

@media (max-width: 640px) {
  .ts-ap-controls {
    flex-wrap: wrap;
  }

  .ts-ap-vol {
    flex: 1 1 100%;
    max-width: none;
    width: 100%;
    margin-left: 0;
  }

  .ts-ap-volume {
    flex: 1 1 auto;
    width: auto;
  }

  .ts-ap-tempo-range {
    flex: 1 1 100%;
    min-height: 8px;
  }
}
