/* NYC Marathon — Live Tracker: local layout + dark/orange dressing on top of
 * pristine's own component styling. */

.mt-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #17181c;
  color: #f2f2f2;
}

.wa-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.wa-view {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.wa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-title {
  margin: 0;
  color: #f2f2f2;
}

/* Top bar */
.mt-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid #2a2b30;
  background: #1b1c21;
  flex-shrink: 0;
}

.mt-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mt-bolt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(232, 98, 42, 0.15);
  color: #e8622a;
}

.mt-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.mt-brand-name {
  font-weight: 700;
  font-size: 15px;
  color: #f2f2f2;
}

.mt-brand-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e8622a;
}

.mt-nav-actions {
  display: flex;
  gap: 8px;
}

/* Hero */
.mt-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #23242a, #1c1d22);
  border: 1px solid #2c2d33;
  border-radius: 18px;
  padding: 28px 32px;
  flex-wrap: wrap;
}

.mt-hero-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.mt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #e8622a;
  background: rgba(232, 98, 42, 0.14);
  border: 1px solid rgba(232, 98, 42, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
}

.mt-hero-title {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  color: #f2f2f2;
  line-height: 1.1;
}

.mt-accent {
  color: #e8622a;
}

.mt-hero-desc {
  margin: 0;
  color: #b3b4ba;
  font-size: 14px;
  line-height: 1.5;
}

.mt-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mt-pill {
  font-size: 12px;
  color: #d6d7db;
  background: #26272d;
  border: 1px solid #34353c;
  border-radius: 999px;
  padding: 6px 12px;
}

.mt-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #e8622a;
  color: #17181c;
  border-radius: 16px;
  padding: 20px 28px;
  min-width: 140px;
}

.mt-hero-stat-num {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.mt-hero-stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* Stat cards */
.mt-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mt-stat-card {
  background: #1e1f24;
  border: 1px solid #2c2d33;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mt-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #f2f2f2;
}

.mt-stat-label {
  font-size: 12px;
  color: #9a9ba1;
}

@media (max-width: 640px) {
  .mt-stats {
    grid-template-columns: 1fr;
  }
}

/* Controls */
.mt-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mt-tabs {
  display: flex;
  gap: 6px;
  background: #1e1f24;
  border: 1px solid #2c2d33;
  border-radius: 10px;
  padding: 4px;
}

.mt-tab {
  border: none;
  background: transparent;
  color: #b3b4ba;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 7px;
  cursor: pointer;
}

.mt-tab-active {
  background: #e8622a;
  color: #17181c;
}

/* Table */
.mt-table-wrap {
  background: #1e1f24;
  border: 1px solid #2c2d33;
  border-radius: 14px;
  overflow: auto;
}

.mt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mt-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8f9096;
  padding: 12px 16px;
  border-bottom: 1px solid #2c2d33;
}

.mt-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #26272d;
  color: #e6e6e8;
  vertical-align: middle;
}

.mt-table tr:last-child td {
  border-bottom: none;
}

.mt-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #26272d;
  color: #d6d7db;
  font-weight: 700;
  font-size: 12px;
}

.mt-runner-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mt-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #34353c;
  color: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.mt-runner-info {
  display: flex;
  flex-direction: column;
}

.mt-runner-name {
  font-weight: 600;
  color: #f2f2f2;
}

.mt-runner-meta {
  font-size: 11px;
  color: #8f9096;
}

.mt-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
}

.mt-progress-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #2c2d33;
  overflow: hidden;
}

.mt-progress-fill {
  height: 100%;
  background: #e8622a;
  border-radius: 999px;
}

.mt-progress-label {
  font-size: 12px;
  color: #b3b4ba;
  min-width: 34px;
  text-align: right;
}

.mt-finished {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3ecf6e;
  font-weight: 600;
  font-size: 13px;
}

.mt-finish-time {
  color: #3ecf6e;
  font-weight: 600;
}
