.f1-tabela {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  margin-bottom: 30px;
  font-size: 15px;
  border: 1px solid #ddd;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  overflow: hidden;
}

.f1-tabela thead {
  background: #e53945;
  color: #fff;
  text-transform: uppercase;
}

.f1-tabela th,
.f1-tabela td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
}

.f1-tabela tbody tr:nth-child(even) {
  background: #f9f9f9;
}

.f1-tabela tbody tr:hover {
  background: #f1f1f1;
}

.f1-pos {
  font-weight: bold;
  color: #e53945;
  font-size: 15px;
  width: 24px;
  text-align: center;
  padding: 0;
}

.f1-piloto-cell,
.f1-construtor-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.f1-piloto-foto {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #ccc;
  background: #fff;
}

.f1-carro-miniatura {
  width: 100px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #ccc;
  background: #fff;
}

.f1-piloto-info {
  display: flex;
  flex-direction: column;
}

.f1-piloto-nome {
  font-weight: bold;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}

.f1-piloto-nome img {
  width: 20px;
  height: 15px;
  vertical-align: middle;
}

.f1-tabela td:last-child {
  font-weight: bold;
  text-align: right;
  color: #111;
  width: 60px;
}

.f1-widget,
.f1-widget-tabela {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 15px 18px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  color: #111;
  border-radius: 6px;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.f1-widget:not(.f1-compact-widget) {
  background: #fcfcfc;
  padding: 18px 20px 20px;
}

.f1-widget h3,
.f1-widget-tabela h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #111;
  padding-left: 10px;
  border-left: 4px solid #ff1f40;
}

.f1-widget-tabela .f1-linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #eee;
  padding: 8px 0;
}

.f1-widget-tabela .f1-linha:last-child,
.f1-session:last-child {
  border-bottom: none;
}

.f1-widget-tabela .f1-piloto {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-grow: 1;
  overflow: hidden;
  min-width: 0;
}

.f1-widget-tabela .f1-nome,
.f1-widget-tabela .f1-pontos {
  font-size: 14px;
}

.f1-widget-tabela .f1-nome {
  font-weight: bold;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.f1-calendario-lista {
  margin: 40px 0;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111;
}

.f1-gp-bloco {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.f1-gp-cabecalho {
  background: #f5f5f5;
  padding: 14px 18px;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.f1-gp-cabecalho:hover {
  background: #eee;
}

.f1-gp-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.f1-gp-info strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.1em;
  font-weight: 700;
}

.f1-gp-data,
.f1-circuito {
  font-size: 15px;
  color: #444;
  font-weight: normal;
}

.f1-gp-toggle-hint {
  color: #666;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.f1-gp-toggle-hint .toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.f1-gp-cabecalho.open .toggle-icon {
  transform: rotate(90deg);
}

.f1-gp-sessoes {
  padding: 15px 20px;
  background: #fafafa;
}

.f1-session {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  gap: 8px;
}

.f1-session--calendar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 122px;
  column-gap: 16px;
  align-items: center;
}

.f1-session-name,
.f1-time {
  color: #222 !important;
}

.f1-session--calendar .f1-session-name {
  min-width: 0;
}

.f1-time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  display: inline-flex;
  gap: 6px;
  margin-right: 8px;
}

.f1-session--calendar .f1-time {
  justify-self: start;
  margin-right: 0;
}

.f1-time .f1-date {
  margin-right: 4px;
  color: #666;
  font-weight: normal;
}

.f1-relato-btn,
.f1-ao-vivo-btn {
  padding: 4px 12px;
  font-size: 13px;
  border-radius: 4px;
  text-decoration: none;
  color: #fff !important;
  background: #ff1f40 !important;
  border: none;
  font-weight: bold;
}

.f1-session--calendar .f1-relato-btn,
.f1-session--calendar .f1-ao-vivo-btn,
.f1-session--calendar .f1-session-action-placeholder {
  width: 122px;
  justify-self: end;
  text-align: center;
  box-sizing: border-box;
}

.f1-session-action-placeholder {
  display: inline-block;
  height: 1px;
}

.f1-ao-vivo-btn.pulse {
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 31, 64, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 31, 64, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 31, 64, 0); }
}

.f1-widget .f1-session-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
}

.f1-widget:not(.f1-compact-widget) .f1-session {
  padding: 10px 0;
  border-bottom-color: #ececec;
}

.f1-widget:not(.f1-compact-widget) .f1-session-name {
  font-size: 14px;
  font-weight: 500;
  color: #222;
}

.f1-widget:not(.f1-compact-widget) .f1-time,
.f1-widget:not(.f1-compact-widget) .f1-relato-btn,
.f1-widget:not(.f1-compact-widget) .f1-ao-vivo-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.f1-widget:not(.f1-compact-widget) .f1-time {
  font-size: 14px;
  font-weight: 600;
  color: #2a2a2a !important;
}

.f1-widget .f1-session-name,
.f1-compact-widget .f1-session-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.f1-widget .f1-gp-nome,
.f1-compact-widget .f1-gp-nome {
  font-size: 17px;
  font-weight: bold;
  color: #111;
  margin: 4px 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.f1-widget .f1-day {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  padding-top: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: #161616;
}

.f1-widget .f1-day:first-of-type {
  margin-top: 8px;
  padding-top: 0;
}

.f1-widget .f1-day + .f1-session {
  padding-top: 8px;
}

.f1-widget .f1-gp-circuito {
  margin: 0 0 8px;
  font-size: 14px;
  color: #585858;
}

.f1-widget .f1-gp-nome {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.15;
}

.f1-widget h3 {
  margin-bottom: 14px;
}

.f1-widget .f1-gp-nome + .f1-gp-circuito {
  margin-top: -2px;
}

.f1-compact-widget .f1-day {
  margin-top: 12px;
  margin-bottom: 4px;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
}

.f1-compact-widget .f1-day:first-of-type {
  margin-top: 6px;
  padding-top: 0;
}

.f1-compact-widget .f1-gp-circuito {
  margin: 0 0 6px;
  color: #585858;
}

.f1-proxima-corrida {
  border: 2px solid #ff1f40;
  background: #fff3f5;
  box-shadow: 0 0 8px rgba(255, 31, 64, 0.1);
  margin-bottom: 40px;
  border-radius: 8px;
}

.f1-proxima-corrida .f1-gp-cabecalho {
  background: #ff1f40;
  color: #fff;
}

.f1-proxima-corrida .f1-gp-cabecalho strong,
.f1-proxima-corrida .f1-gp-data,
.f1-proxima-corrida .f1-gp-toggle-hint,
.f1-proxima-corrida .f1-circuito,
.f1-status-ultima .f1-gp-cabecalho strong,
.f1-status-ultima .f1-gp-cabecalho .f1-gp-data,
.f1-status-ultima .f1-gp-cabecalho .f1-gp-toggle-hint,
.f1-status-ultima .f1-circuito {
  color: #fff !important;
}

.f1-status-ultima .f1-gp-cabecalho {
  background: #444;
  color: #fff;
}

.f1-compact-widget {
  font-size: 13px;
  background: #fdfdfd;
}

.f1-compact-widget .f1-session,
.f1-compact-widget .f1-time {
  font-size: 13px;
}

@media (max-width: 767px) {
  .f1-piloto-nome img {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .f1-session--calendar {
    display: flex;
  }

  .f1-tabela th,
  .f1-tabela td,
  .f1-gp-cabecalho,
  .f1-gp-sessoes {
    padding: 10px;
  }

  .f1-gp-cabecalho,
  .f1-session {
    flex-direction: column;
    align-items: flex-start;
  }
}
