/* ================================================================
   MotoGP Standings Widget CSS v1.1
   Dark theme — fully responsive (mobile-first)
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; }

/* ---------- Container ---------- */
.mgp-standings-widget,
.mgp-widget-simple,
.mgp-next-race-banner {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(255,255,255,.08);
}

/* ---------- Header ---------- */
.mgp-header {
  background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.mgp-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mgp-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
  white-space: nowrap;
}

.mgp-season-badge {
  background: rgba(255,255,255,.2);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}

.mgp-header-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mgp-year-select,
.mgp-class-select {
  background: rgba(0,0,0,.35);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 12px;
  cursor: pointer;
  outline: none;
  max-width: 90px;
  min-width: 0;
}

.mgp-update-time {
  font-size: 10px;
  color: rgba(255,255,255,.5);
  white-space: nowrap;
}

.mgp-race-info {
  font-size: 12px;
  color: rgba(255,255,255,.75);
}

.mgp-race-meta {
  padding: 7px 14px;
  background: rgba(255,255,255,.04);
  font-size: 12px;
  color: rgba(255,255,255,.5);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

/* ---------- Tabs ---------- */
.mgp-tabs {
  display: flex;
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.mgp-tab-btn {
  flex: 1;
  padding: 10px 8px;
  background: none;
  border: none;
  color: rgba(255,255,255,.4);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.mgp-tab-btn:hover  { color: rgba(255,255,255,.75); }
.mgp-tab-btn.active { color: #cc0000; border-bottom-color: #cc0000; }

.mgp-tab-panel        { display: none; }
.mgp-tab-panel.active { display: block; }

/* ---------- Table wrapper — horizontal scroll di mobile ---------- */
.mgp-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- Table ---------- */
.mgp-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 13px;
}

.mgp-table thead tr {
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.mgp-table th {
  padding: 7px 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: rgba(255,255,255,.38);
  font-weight: 600;
  white-space: nowrap;
}

.mgp-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .15s;
}
.mgp-table tbody tr:hover  { background: rgba(255,255,255,.04); }
.mgp-table tbody tr:last-child { border-bottom: none; }

.mgp-table td {
  padding: 8px 10px;
  vertical-align: middle;
}

/* Pos column */
.mgp-pos {
  text-align: right;
  font-weight: 700;
  font-size: 13px;
  color: rgba(255,255,255,.3);
  width: 32px;
}
.mgp-p1 { color: #ffd700 !important; }
.mgp-p2 { color: #c0c0c0 !important; }
.mgp-p3 { color: #cd7f32 !important; }

/* Number column */
.mgp-num {
  color: rgba(255,255,255,.4);
  font-weight: 700;
  font-size: 13px;
  width: 32px;
}

/* Rider name cell */
.mgp-cell-rider {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.mgp-name {
  font-weight: 600;
  font-size: 13px;
}

/* Muted secondary cells */
.mgp-cell-muted {
  font-size: 11px;
  color: rgba(255,255,255,.45);
}

/* Points */
.mgp-pts {
  font-weight: 700;
  color: #e8c62a;
  white-space: nowrap;
}

/* Gap column */
.mgp-gap {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  white-space: nowrap;
}

.r { text-align: right; }

/* Color dots */
.mgp-rider-dot,
.mgp-color-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- Riders Grid (widget [motogp_riders]) ---------- */
.mgp-riders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding: 12px;
}

.mgp-rider-card {
  background: rgba(255,255,255,.04);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 3px solid #cc0000;
  transition: background .15s;
}
.mgp-rider-card:hover { background: rgba(255,255,255,.07); }

.mgp-rider-number {
  font-size: 20px;
  font-weight: 900;
  min-width: 38px;
  line-height: 1;
}

.mgp-rider-info { flex: 1; min-width: 0; }
.mgp-rider-name {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mgp-rider-pts  { text-align: right; flex-shrink: 0; }
.mgp-pts-num    { display: block; font-size: 18px; font-weight: 900; color: #e8c62a; line-height: 1.1; }
.mgp-pts-label  { font-size: 9px; color: rgba(255,255,255,.4); text-transform: uppercase; }

/* ---------- Badges ---------- */
.mgp-badge-next,
.mgp-badge-live {
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: .5px;
  vertical-align: middle;
  background: #cc0000;
}
.mgp-badge-live { animation: mgp-pulse 1.2s infinite; }

@keyframes mgp-pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .5; }
}

.mgp-next-row   { background: rgba(204,0,0,.08) !important; }
.mgp-active-row { background: rgba(204,0,0,.12) !important; }
.mgp-past-row   { opacity: .6; }

.mgp-status-live     { color: #cc0000; font-weight: 700; font-size: 12px; }
.mgp-status-done     { color: rgba(255,255,255,.3); font-size: 12px; }
.mgp-status-upcoming { color: rgba(255,255,255,.4); font-size: 12px; }

/* ---------- Footer ---------- */
.mgp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 12px;
  font-size: 10px;
  color: rgba(255,255,255,.28);
  border-top: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.2);
  flex-wrap: wrap;
  gap: 4px;
}

.mgp-powered { font-weight: 600; }
.mgp-powered a {
  color: rgba(255,255,255,.45);
  text-decoration: none;
  font-weight: 700;
  transition: color .15s;
}
.mgp-powered a:hover { color: #cc0000; }

/* ---------- Loading ---------- */
.mgp-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  gap: 10px;
  color: rgba(255,255,255,.4);
  font-size: 12px;
}

.mgp-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(255,255,255,.1);
  border-top-color: #cc0000;
  border-radius: 50%;
  animation: mgp-spin .7s linear infinite;
}

@keyframes mgp-spin { to { transform: rotate(360deg); } }

.mgp-no-data {
  text-align: center;
  padding: 28px 16px;
  color: rgba(255,255,255,.3);
  font-size: 13px;
}

/* ================================================================
   NEXT RACE BANNER
   ================================================================ */
.mgp-next-race-banner {
  background: linear-gradient(160deg, #1a1a1a 0%, #0d0d0d 100%);
}

.mgp-banner-live {
  border: 1px solid rgba(204,0,0,.5) !important;
  box-shadow: 0 0 20px rgba(204,0,0,.15);
}

.mgp-banner-head {
  background: linear-gradient(135deg, #cc0000 0%, #880000 100%);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.mgp-live-badge {
  background: rgba(0,0,0,.4);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  animation: mgp-pulse 1s infinite;
  letter-spacing: 1px;
}

.mgp-up-badge {
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.mgp-banner-class-badge {
  background: rgba(0,0,0,.3);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.mgp-banner-main {
  padding: 16px 16px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.mgp-banner-info { flex: 1; min-width: 160px; }

.mgp-banner-gp {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
  flex-wrap: wrap;
}

.mgp-flag-lg { font-size: 26px; }

.mgp-banner-circuit,
.mgp-banner-dates {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  margin-top: 4px;
}

/* Countdown */
.mgp-countdown {
  text-align: center;
  background: rgba(204,0,0,.1);
  border: 1px solid rgba(204,0,0,.25);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 180px;
  flex-shrink: 0;
}

.mgp-countdown-title {
  font-size: 10px;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.mgp-countdown-blocks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.mgp-cd-block       { text-align: center; min-width: 40px; }
.mgp-cd-block span  { display: block; font-size: 26px; font-weight: 900; color: #cc0000; line-height: 1; font-variant-numeric: tabular-nums; }
.mgp-cd-block small { display: block; font-size: 9px; color: rgba(255,255,255,.3); text-transform: uppercase; margin-top: 2px; }
.mgp-cd-sep         { font-size: 20px; font-weight: 900; color: rgba(255,255,255,.2); padding-bottom: 10px; }

.mgp-race-now {
  font-size: 14px;
  font-weight: 800;
  color: #cc0000;
  animation: mgp-pulse 1s infinite;
}

/* Sessions */
.mgp-banner-sessions {
  background: rgba(0,0,0,.2);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 12px 16px;
}

.mgp-sessions-title {
  font-size: 10px;
  color: rgba(255,255,255,.38);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.mgp-sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 6px;
}

.mgp-session-item {
  background: rgba(255,255,255,.04);
  border-radius: 7px;
  padding: 8px 10px;
  border-left: 3px solid rgba(255,255,255,.1);
  transition: all .15s;
}
.mgp-session-main  { border-left-color: #cc0000; background: rgba(204,0,0,.08); }
.mgp-session-done  { opacity: .4; }
.mgp-session-live  { border-left-color: #cc0000; background: rgba(204,0,0,.15); animation: mgp-pulse 1.5s infinite; }

.mgp-session-type  { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.mgp-session-date  { font-size: 10px; color: rgba(255,255,255,.38); margin-bottom: 2px; }
.mgp-session-time  { font-size: 11px; color: rgba(255,255,255,.6); font-weight: 600; }
.mgp-done-mark     { color: rgba(255,255,255,.3); font-size: 14px; }

.mgp-banner-footer {
  padding: 7px 16px;
  font-size: 10px;
  color: rgba(255,255,255,.22);
  border-top: 1px solid rgba(255,255,255,.05);
}

/* ================================================================
   FLAG ICONS
   ================================================================ */
.fi {
  display: inline-block;
  width: 1.2em;
  height: .9em;
  vertical-align: middle;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  margin-right: 3px;
  flex-shrink: 0;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Tablet ≤ 640px */
@media (max-width: 640px) {
  .hide-sm { display: none !important; }

  .mgp-riders-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
  }

  .mgp-banner-main      { flex-direction: column; }
  .mgp-countdown        { width: 100%; min-width: unset; }
  .mgp-banner-gp        { font-size: 17px; }
  .mgp-cd-block span    { font-size: 22px; }

  .mgp-sessions-grid    { grid-template-columns: repeat(3, 1fr); }

  .mgp-header           { padding: 10px 12px; }
  .mgp-header-controls  { width: 100%; }
}

/* Mobile ≤ 480px */
@media (max-width: 480px) {
  .hide-xs { display: none !important; }

  .mgp-riders-grid { grid-template-columns: 1fr; }

  .mgp-title        { font-size: 13px; }
  .mgp-year-select,
  .mgp-class-select { font-size: 11px; padding: 3px 5px; max-width: 76px; }

  .mgp-table th,
  .mgp-table td     { padding: 6px 8px; }

  .mgp-name         { max-width: 110px; overflow: hidden; text-overflow: ellipsis; display: inline-block; }

  .mgp-sessions-grid { grid-template-columns: repeat(2, 1fr); }

  .mgp-cd-block span { font-size: 20px; }
  .mgp-cd-block      { min-width: 36px; }
}

/* Kecil ≤ 360px */
@media (max-width: 360px) {
  .mgp-banner-gp  { font-size: 15px; }
  .mgp-name       { max-width: 90px; }
  .mgp-header-controls { gap: 4px; }
}

/* ================================================================
   NEXT RACE BAR — landscape strip, padat
   Shortcode: [motogp_next_race_bar]
   ================================================================ */

.mgp-bar {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.08);
  border-left: 4px solid #cc0000;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* Baris atas */
.mgp-bar-row1 {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 52px;
}

/* Baris bawah — info sesi lengkap */
.mgp-bar-row2 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 6px 12px;
  background: rgba(0,0,0,.22);
  border-top: 1px solid rgba(255,255,255,.06);
  min-height: 30px;
  flex-wrap: wrap;
}

.mgp-bar-row2-sess {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mgp-bar-row2-sess-name {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.mgp-bar-row2-venue {
  font-size: 10px;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.mgp-bar-row2-venue::before {
  content: '📍 ';
}

.mgp-bar-row2-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}

.mgp-bar-row2-cd {
  display: flex;
  align-items: center;
  gap: 1px;
  font-size: 11px;
  font-weight: 700;
  color: #cc0000;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: .4px;
  flex-shrink: 0;
  margin-left: auto;
}

.mgp-bar-row2-cd span {
  color: #e8c62a;
  font-weight: 800;
  font-size: 12px;
}

.mgp-bar-row2-cd-sep {
  color: rgba(255,255,255,.25);
  font-size: 10px;
  padding: 0 1px;
}

.mgp-bar-live {
  border-left-color: #cc0000;
  box-shadow: 0 0 12px rgba(204,0,0,.18);
  animation: mgp-bar-pulse 2.5s ease-in-out infinite;
}

@keyframes mgp-bar-pulse {
  0%,100% { box-shadow: 0 0 10px rgba(204,0,0,.15); }
  50%      { box-shadow: 0 0 22px rgba(204,0,0,.35); }
}

/* -- Status badge (kiri) -- */
.mgp-bar-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 10px;
  min-width: 56px;
  border-right: 1px solid rgba(255,255,255,.06);
  align-self: stretch;
  background: rgba(0,0,0,.25);
  flex-shrink: 0;
}

.mgp-bar-badge {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
  font-size: 8px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mgp-bar-badge-live {
  background: #cc0000;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.mgp-bar-badge-live::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  animation: mgp-live-dot 0.9s ease-in-out infinite;
}

@keyframes mgp-live-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
  50%       { opacity: .3; box-shadow: 0 0 0 4px rgba(255,255,255,0); }
}

.mgp-bar-class {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  letter-spacing: .5px;
}

/* -- Info GP (tengah, flex 1) -- */
.mgp-bar-gp {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.mgp-bar-gp .fi {
  flex-shrink: 0;
  width: 1.15em;
  height: .85em;
}

.mgp-bar-gpname {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mgp-bar-circuit {
  font-size: 10px;
  color: rgba(255,255,255,.38);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
}

/* -- Tanggal -- */
.mgp-bar-dates {
  font-size: 10px;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
  padding: 0 10px;
  flex-shrink: 0;
  border-left: 1px solid rgba(255,255,255,.06);
  align-self: stretch;
  display: flex;
  align-items: center;
}

/* -- Sesi berikutnya / live -- */
.mgp-bar-sess {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0 10px;
  flex-shrink: 0;
  border-left: 1px solid rgba(255,255,255,.06);
  align-self: stretch;
  min-width: 62px;
}

.mgp-bar-sess-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
}

.mgp-bar-sess-time {
  font-size: 10px;
  color: rgba(255,255,255,.38);
}

/* -- Countdown -- */
.mgp-bar-cd {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 0 12px;
  flex-shrink: 0;
  border-left: 1px solid rgba(255,255,255,.06);
  align-self: stretch;
  font-size: 12px;
  font-weight: 700;
  color: #cc0000;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: .5px;
}

.mgp-bar-cd span {
  color: #e8c62a;
  font-weight: 800;
  font-size: 13px;
}

.mgp-bar-cd-sep {
  color: rgba(255,255,255,.2);
  font-size: 11px;
  padding: 0 1px;
}

/* -- Watermark (kanan) -- */
.mgp-bar-brand {
  padding: 0 10px;
  flex-shrink: 0;
  border-left: 1px solid rgba(255,255,255,.06);
  align-self: stretch;
  display: flex;
  align-items: center;
}

.mgp-bar-brand a {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,.22);
  text-decoration: none;
  letter-spacing: .3px;
  writing-mode: initial;
  white-space: nowrap;
  transition: color .15s;
}
.mgp-bar-brand a:hover { color: #cc0000; }

/* ---- Responsive bar ---- */
@media (max-width: 640px) {
  .mgp-bar-circuit { display: none; }
  .mgp-bar-dates   { display: none; }
  .mgp-bar-brand   { display: none; }
  .mgp-bar-gp      { padding: 0 8px; }
  .mgp-bar-gpname  { font-size: 12px; }
  .mgp-bar-row2-venue { max-width: 140px; }
}

@media (max-width: 420px) {
  .mgp-bar-sess    { display: none; }
  .mgp-bar-status  { min-width: 46px; padding: 0 6px; }
  .mgp-bar-row2    { gap: 5px; padding: 4px 8px 5px; }
}

/* ================================================================
   Full Standing — [motogp_full_standing]
   ================================================================ */

/* Scroll wrapper */
.mgp-full-standing-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: relative; /* penting untuk sticky left */
}

/* Tabel utama */
.mgp-full-table {
  border-collapse: separate; /* harus separate agar sticky+border berfungsi */
  border-spacing: 0;
  width: 100%;
  min-width: 500px;
  table-layout: auto;
}

.mgp-full-table th,
.mgp-full-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  vertical-align: middle;
  white-space: nowrap;
}

/* ── Freeze kolom kiri ── */
/* Pos */
.mgp-freeze-1 {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #1a1a1a;
  box-shadow: 2px 0 0 rgba(255,255,255,.06);
}
/* Pembalap / Konstruktor / Tim */
.mgp-freeze-2 {
  position: sticky;
  left: 36px; /* lebar kolom pos */
  z-index: 3;
  background: #1a1a1a;
}
/* Tim (tab rider) */
.mgp-freeze-3 {
  position: sticky;
  left: 176px; /* 36 + 140 */
  z-index: 3;
  background: #1a1a1a;
}
/* Pts (kolom freeze terakhir tab pembalap) */
.mgp-freeze-4 {
  position: sticky;
  left: 286px; /* 36 + 140 + 110 */
  z-index: 3;
  background: #1a1a1a;
  box-shadow: 2px 0 6px rgba(0,0,0,.4);
  border-right: 1px solid rgba(255,255,255,.12);
}

/* Tab konstruktor/tim: freeze-3 jadi kolom terakhir freeze */
.mgp-fs-panel .mgp-freeze-3:last-of-type,
.mgp-fs-panel .mgp-freeze-3 {
  box-shadow: 2px 0 6px rgba(0,0,0,.4);
  border-right: 1px solid rgba(255,255,255,.12);
}

/* Header rows sticky (top) */
.mgp-full-thead-top th {
  background: #111;
  color: rgba(255,255,255,.75);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
/* Freeze header cells perlu z-index lebih tinggi */
.mgp-full-thead-top .mgp-freeze-1,
.mgp-full-thead-top .mgp-freeze-2,
.mgp-full-thead-top .mgp-freeze-3,
.mgp-full-thead-top .mgp-freeze-4 {
  z-index: 5;
  background: #111;
}

.mgp-full-thead-bot th {
  background: #0e0e0e;
  position: sticky;
  top: 46px;
  z-index: 4;
}

/* Kolom aktif / mendatang */
.mgp-col-active {
  background: rgba(232,198,42,.12) !important;
  color: #e8c62a !important;
}
.mgp-col-future {
  color: rgba(255,255,255,.25) !important;
}

/* Nama pembalap */
.mgp-full-rider-name {
  font-size: 13px;
  font-weight: 600;
}

/* Poin per cell */
.mgp-pts-cell {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  min-width: 32px;
}
.mgp-pts-win  { color: #e8c62a; }
.mgp-pts-pod  { color: #ff9900; }
.mgp-pts-pts  { color: rgba(255,255,255,.75); }
.mgp-pts-zero { color: rgba(255,255,255,.2); font-weight: 400; }
.mgp-pts-future { color: rgba(255,255,255,.08); }

/* Total poin (freeze) */
.mgp-col-total {
  background: rgba(255,255,255,.02);
}

/* ── Tab navigator ── */
.mgp-fs-tabs {
  display: flex;
  gap: 0;
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,.08);
  overflow-x: auto;
}

.mgp-fs-tab {
  padding: 9px 16px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.45);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.mgp-fs-tab:hover {
  color: rgba(255,255,255,.8);
}
.mgp-fs-tab-active {
  color: #fff;
  border-bottom-color: #cc0000;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .mgp-full-table th,
  .mgp-full-table td { padding: 5px 5px; }
  .mgp-full-rider-name { font-size: 12px; }
  .mgp-pts-cell { font-size: 11px; min-width: 26px; }
  .mgp-freeze-2 { left: 30px; }
  .mgp-freeze-3 { left: 150px; }
  .mgp-freeze-4 { left: 240px; }
}

