/* Team radio (src/team-radio.js) — desktop drawer and mobile "Radio" tab.
   Reuses the news feed's drawer, filters, locked panel and toast
   (src/news-feed.css); uses the colour tokens both styles.css define. */

.tr {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tr-live {
  color: #ff5a52;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.tr-live.hidden,
.tr-session.hidden,
.nf-status-line.hidden {
  display: none;
}

.tr-session {
  color: var(--muted);
  font-size: 0.85rem;
}

.tr-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tr-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 10px;
  padding: 8px 12px 10px;
}

.tr-card.is-new {
  animation: tr-arrive 2.4s ease-out;
}

@keyframes tr-arrive {
  0% { background: rgba(225, 6, 0, 0.22); }
  100% { background: var(--panel); }
}

.tr-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tr-play {
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--panel-soft);
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
}

.tr-play:hover,
.tr-play:focus-visible,
.tr-play.is-playing {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
  outline: none;
}

.tr-driver {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.tr-code {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tr-name {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tr-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-left: auto;
  flex: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.tr-lap {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--text);
  font-weight: 700;
}

.tr-transcript {
  margin: 6px 0 0 40px;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* The English original under a Spanish translation */
.tr-original {
  margin: 3px 0 0 40px;
  color: var(--muted);
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.35;
}

.tr-compact .tr-original {
  margin-left: 0;
}

.tr-muted {
  color: var(--muted);
  font-style: italic;
  font-size: 0.85rem;
}

.tr-compact .tr-transcript {
  margin-left: 0;
}

.tr-compact .tr-name {
  display: none;
}

/* Desktop header button: same pill as F1 News, darker so the two read apart */
.radio-open-btn {
  background: linear-gradient(135deg, #2b3542 0%, #161b22 100%);
  border-color: rgba(225, 6, 0, 0.55);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.radio-open-btn:hover,
.radio-open-btn:focus-visible {
  box-shadow: 0 8px 28px rgba(225, 6, 0, 0.35);
}

.radio-open-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.tr-toast .nf-toast-title.tr-toast-waiting {
  color: var(--muted);
  font-style: italic;
  font-weight: 400;
}

.tr-toast .tr-code {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .tr-card.is-new {
    animation: none;
  }
}
