/* ================================================================
   TMLS Scorebar — Dark horizontal match bar
   ================================================================ */

.tmls-scorebar {
  position: relative;
  background: #000;
  color: #fff;
  overflow: hidden;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  border-bottom: 1px solid #222;
}

/* ── Track ── */

.tmls-scorebar__track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 40px;
}

.tmls-scorebar__track::-webkit-scrollbar {
  display: none;
}

/* ── Arrow buttons ── */

.tmls-scorebar__arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36px;
  z-index: 2;
  border: none;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  padding: 0;
  line-height: 1;
}

.tmls-scorebar__arrow:hover {
  background: rgba(0, 0, 0, 0.95);
}

.tmls-scorebar__arrow--left {
  left: 0;
  border-right: 1px solid #222;
}

.tmls-scorebar__arrow--right {
  right: 0;
  border-left: 1px solid #222;
}

.tmls-scorebar__arrow[disabled] {
  opacity: 0.25;
  cursor: default;
}

/* ── Match Card ── */

.tmls-scorebar__card {
  flex: 0 0 auto;
  min-width: 180px;
  max-width: 220px;
  padding: 10px 16px;
  border-right: 1px solid #222;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: #fff;
  transition: background 0.15s;
}

a.tmls-scorebar__card:hover {
  background: #111;
  color: #fff;
  text-decoration: none;
}

.tmls-scorebar__card:last-child {
  border-right: none;
}

/* ── Card Header ── */

.tmls-scorebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tmls-scorebar__time {
  color: #ccc;
  font-weight: 600;
}

.tmls-scorebar__date {
  color: #666;
  font-weight: 400;
}

/* ── Pills ── */

.tmls-scorebar__pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.tmls-scorebar__pill--live {
  background: #d00;
  color: #fff;
  animation: tmls-pulse 2s ease-in-out infinite;
}

.tmls-scorebar__pill--final {
  background: #333;
  color: #999;
}

.tmls-scorebar__pill--postponed {
  background: #553300;
  color: #ffaa00;
}

@keyframes tmls-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ── Teams ── */

.tmls-scorebar__teams {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tmls-scorebar__team {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.2;
}

.tmls-scorebar__logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.tmls-scorebar__abbr {
  font-weight: 600;
  flex: 1;
  white-space: nowrap;
}

.tmls-scorebar__score {
  font-weight: 700;
  font-size: 14px;
  min-width: 16px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Live card score emphasis */
.tmls-scorebar__card--live .tmls-scorebar__score {
  color: #fff;
  font-size: 16px;
}

/* Final card muted scores */
.tmls-scorebar__card--final .tmls-scorebar__score {
  color: #999;
}

.tmls-scorebar__card--final .tmls-scorebar__abbr {
  color: #aaa;
}

/* ── Broadcast ── */

.tmls-scorebar__broadcast {
  font-size: 10px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* ── Date Divider ── */

.tmls-scorebar__divider {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-right: 1px solid #222;
  writing-mode: horizontal-tb;
}

.tmls-scorebar__divider-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  white-space: nowrap;
}

/* ── Brasília Time ── */

.tmls-scorebar__time-br {
  display: block;
  font-size: 9px;
  color: #555;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 1px;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .tmls-scorebar__arrow {
    display: none;
  }

  .tmls-scorebar__track {
    padding: 0;
    scroll-snap-type: x mandatory;
  }

  .tmls-scorebar__card {
    scroll-snap-align: start;
    min-width: 160px;
    padding: 10px 12px;
  }
}
