.toma-audio-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: .48em;
  row-gap: .12em;
}

.toma-audio-title-primary {
  font-size: 1.12rem;
}

.toma-audio-title-alternate {
  color: #64748b;
  font-size: .84rem;
  font-weight: 400;
}

.toma-audio-library {
  padding: clamp(24px, 4vw, 48px);
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .16), transparent 28%),
    linear-gradient(135deg, var(--toma-audio-accent), color-mix(in srgb, var(--toma-audio-accent) 62%, #001a4d));
  box-shadow: 0 18px 45px rgba(0, 35, 103, .18);
}

.toma-audio-library .toma-audio-intro {
  color: rgba(255, 255, 255, .9);
}

.toma-audio-library .toma-audio-track {
  border-color: rgba(255, 255, 255, .3);
  box-shadow: 0 12px 32px rgba(0, 20, 60, .2);
}

@media (max-width: 580px) {
  .toma-audio-library {
    padding: 18px;
    border-radius: 14px;
  }
}

body:has(.tt-welcome) .content-bottom:has(.toma-audio-library) {
  display: block !important;
}

.toma-audio-tracks:has(> .toma-audio-track:only-child) {
  grid-template-columns: minmax(280px, 560px);
  justify-content: center;
}

.toma-audio-tracks:has(> .toma-audio-track:first-child:nth-last-child(2)) {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

@media (max-width: 650px) {
  .toma-audio-tracks:has(> .toma-audio-track:only-child),
  .toma-audio-tracks:has(> .toma-audio-track:first-child:nth-last-child(2)) {
    grid-template-columns: 1fr;
  }
}

.toma-audio-modern-player {
  max-width: 920px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 16px;
  background: #f4f6f9;
  box-shadow: 0 18px 45px rgba(0, 20, 60, .28);
}

.toma-audio-modern-now {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  background: linear-gradient(135deg, #263a55, #101b2b);
  color: #fff;
}

.toma-audio-modern-art {
  display: grid;
  width: 150px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--toma-audio-accent), #001b50);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .32);
}

.toma-audio-modern-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toma-audio-modern-art span {
  font-size: 3.5rem;
}

.toma-audio-modern-label {
  margin: 0 0 7px;
  color: #a9c7ff;
  font-size: .7rem;
  letter-spacing: .15em;
}

.toma-audio-modern-current h3 {
  color: #fff;
  font-size: 1.35rem;
}

.toma-audio-modern-current .toma-audio-title-alternate {
  color: #c8d5e8;
}

.toma-audio-modern-meta {
  min-height: 1.2em;
  margin: 6px 0 12px;
  color: #c8d5e8;
  font-size: .82rem;
}

.toma-audio-modern-current audio {
  width: 100%;
}

.toma-audio-modern-controls {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}

.toma-audio-skip {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: .72rem;
  cursor: pointer;
}

.toma-audio-skip:hover {
  background: var(--toma-audio-accent);
}

.toma-audio-modern-player.has-visualizer {
  position: relative;
  padding-top: clamp(150px, 24vw, 260px);
  background: #101b2b;
}

.toma-audio-visualizer-wrap {
  position: absolute;
  inset: 0 0 auto;
  height: clamp(150px, 24vw, 260px);
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff, #dce9ff);
}

.toma-audio-visualizer-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.toma-audio-visualizer-glow {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, color-mix(in srgb, var(--toma-audio-accent) 35%, transparent), transparent);
  pointer-events: none;
}

.toma-audio-modern-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toma-audio-modern-list li + li {
  border-top: 1px solid #dce3ed;
}

.toma-audio-modern-row {
  display: grid;
  width: 100%;
  grid-template-columns: 38px 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 13px 18px;
  border: 0;
  background: #fff;
  color: #20334d;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.toma-audio-modern-row:hover,
.toma-audio-modern-row.is-current {
  background: #e8f0ff;
  color: var(--toma-audio-accent);
}

.toma-audio-modern-number {
  color: #8493a8;
  font-variant-numeric: tabular-nums;
}

.toma-audio-modern-row-play {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding-left: 2px;
  border-radius: 50%;
  background: var(--toma-audio-accent);
  color: #fff;
  font-size: .68rem;
}

.toma-audio-modern-row-copy {
  display: flex;
  min-width: 0;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 10px;
}

.toma-audio-modern-row-copy strong {
  font-size: .96rem;
}

.toma-audio-modern-row-copy small {
  color: #6e7e93;
  font-size: .78rem;
}

@media (max-width: 600px) {
  .toma-audio-modern-now {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .toma-audio-modern-art {
    width: 86px;
  }

  .toma-audio-modern-row {
    grid-template-columns: 28px 32px minmax(0, 1fr);
    padding: 12px;
  }

  .toma-audio-modern-controls {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 6px;
  }

  .toma-audio-skip {
    width: 32px;
    height: 32px;
    font-size: .6rem;
  }
}
