
.f1-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.f1-tab {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    color: #ccc;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.f1-tab.active {
    background: rgba(255,255,255,0.25);
    color: black;
    font-weight: bold;
}

.f1-tab:hover {
    background: rgba(255,255,255,0.2);
}

.f1-sub-tabs {
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.f1-sub-tab {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
}

.f1-main-tab {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
}

.fantasy-driver-qual {
    font-size: 0.75rem;
    color: var(--text-muted, #888);
    margin-left: auto;
    margin-right: 0.5rem;
}

.news-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0;
}

.news-card {
    padding: 1rem;
    border-left: 4px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

.news-headline {
    display: block;
    font-weight: bold;
    font-size: 1rem;
    color: red;
    text-decoration: none;
    margin-bottom: 0.4rem;
}

.news-headline:hover {
    text-decoration: underline;
}

.news-description {
    color: #black;
    font-size: 0.875rem;
    margin: 0 0 0.4rem 0;
    line-height: 1.5;
}

.news-date {
    font-size: 0.75rem;
    color: #888;
}

.race-countdown {
    margin-bottom: 1rem;
    text-align: center;
}

.countdown-box {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    color: #ccc;
    font-size: 0.9rem;
}

.countdown-label {
    color: black;
    font-size: 0.85rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.countdown-unit {
    color: #888;
    font-size: 0.85rem;
}

.countdown-num {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: Red;
    line-height: 1;
}

/* ─────────────────────────────────────────────────────────────────────────
   Fantasy Tab Styles  –  append to static/css/da_f1_css.css
───────────────────────────────────────────────────────────────────────── */

/* ── Layout ── */
.fantasy-section {
  margin-bottom: 2rem;
}

.fantasy-section-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #888);
  border-bottom: 1px solid var(--border, #333);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

.fantasy-notice {
  color: var(--text-muted, #888);
  font-size: 0.9rem;
  padding: 1rem 0;
}

.qual {
    color: yellow;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ── Season Standings ── */
.fantasy-standings-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fantasy-standing-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--border, #333);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.fantasy-standing-card.fantasy-leader {
  border-color: #e10600;
  background: rgba(225, 6, 0, 0.08);
}

.fantasy-standing-rank {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted, #888);
  width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
}

.fantasy-leader .fantasy-standing-rank {
  color: #e10600;
}

.fantasy-standing-name {
  flex: 1;
  font-weight: 600;
  font-size: 1rem;
  color: red;
}

.fantasy-standing-pts {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e10600;
}

.fantasy-standing-pts span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted, #888);
  margin-left: 2px;
}

.fantasy-standing-back {
  font-size: 0.85rem;
  color: var(--text-muted, #888);
  min-width: 3rem;
  text-align: right;
}

/* ── Race Block ── */
.fantasy-race-block {
  margin-bottom: 1.5rem;
}

.fantasy-race-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.fantasy-race-round {
  background: #e10600;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.fantasy-race-name {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ── Player Cards Grid ── */
.fantasy-race-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .fantasy-race-cards {
    grid-template-columns: 1fr;
  }
}

/* ── Individual Player Card ── */
.fantasy-player-card {
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--border, #333);
  border-radius: 8px;
  padding: 0.75rem;
}

.fantasy-player-card.fantasy-upcoming {
  border-style: dashed;
}

.fantasy-player-name {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted, #aaa);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fantasy-player-pts {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e10600;
  margin-bottom: 0.5rem;
}

/* ── Driver List ── */
.fantasy-driver-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.fantasy-driver-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid var(--border-subtle, #2a2a2a);
}

.fantasy-driver-row:last-child {
  border-bottom: none;
}

.fantasy-driver-name {
  color: var(--text-primary, #eee);
}

.fantasy-driver-pts {
  font-weight: 600;
  color: #e10600;
  min-width: 2.5rem;
  text-align: right;
}

.fantasy-driver-cost {
  font-size: 0.8rem;
  color: var(--text-muted, #888);
}

/* ── Budget Bar ── */
.fantasy-budget-bar {
  margin-top: 0.5rem;
}

.fantasy-budget-label {
  font-size: 0.75rem;
  color: var(--text-muted, #888);
  margin-bottom: 0.25rem;
}

.fantasy-budget-track {
  height: 4px;
  background: var(--border, #333);
  border-radius: 2px;
  overflow: hidden;
}

.fantasy-budget-fill {
  height: 100%;
  background: #e10600;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.fantasy-no-picks {
  font-size: 0.85rem;
  color: var(--text-muted, #666);
  font-style: italic;
  padding: 0.5rem 0;
}

@media (max-width: 768px) {
    .f1-hide-mobile {
        display: none;
    }
}