:root {
  --bg: #090b0f;
  --bg-2: #10131a;
  --surface: #151922;
  --surface-2: #1b202b;
  --surface-3: #242a36;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f7f8fb;
  --muted: #aab2c1;
  --muted-2: #747d8d;
  --red: #ef3d32;
  --red-dark: #bd241f;
  --cyan: #2dc8ff;
  --lime: #9be564;
  --amber: #f7b84b;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.4);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.hidden {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(9, 11, 15, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #000;
  border-radius: 7px;
  box-shadow: 0 12px 28px rgba(239, 61, 50, 0.28);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--text);
}

.account-strip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.account-badge,
.mini-stat,
.series-tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.account-badge.active {
  border-color: rgba(45, 200, 255, 0.42);
  background: rgba(45, 200, 255, 0.12);
  color: #c6f2ff;
}

.icon-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.icon-button:hover,
.button:hover {
  transform: translateY(-1px);
}

.text-button {
  min-height: 36px;
  padding: 0 13px;
  background: var(--surface-2);
  border-color: var(--line);
  border-radius: 6px;
  font-size: 13px;
}

.button {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 6px;
}

.button.primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 14px 30px rgba(239, 61, 50, 0.25);
}

.button.primary:hover {
  background: #ff4a3d;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--line-strong);
  color: #fff;
}

.button.report-center-button {
  border-color: rgba(247, 184, 75, 0.58);
  background: linear-gradient(135deg, #f7c948, #f59f00);
  color: #1c1300;
  box-shadow: 0 14px 30px rgba(247, 184, 75, 0.22);
}

.button.report-center-button:hover {
  border-color: rgba(255, 218, 121, 0.88);
  background: linear-gradient(135deg, #ffdc62, #ffb020);
}

.button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 84px 5vw 60px;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("assets/forza-horizon-hero.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 11, 15, 0.96) 0%, rgba(9, 11, 15, 0.72) 43%, rgba(9, 11, 15, 0.24) 100%),
    linear-gradient(180deg, rgba(9, 11, 15, 0.08) 0%, rgba(9, 11, 15, 0.96) 100%);
}

.hero-bg {
  background-image: var(--hero-bg-image, url("assets/forza-horizon-hero.jpg"));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 11px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7.5vw, 96px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 30px;
  color: #d9dee8;
  font-size: 19px;
}

.hero-actions,
.station-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(960px, 100%);
  margin-top: 42px;
}

.hero-stats div,
.admin-stats div {
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

.hero-stats strong,
.admin-stats strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
}

.hero-stats span,
.admin-stats span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.section {
  padding: 88px 5vw;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 32px;
}

.section-heading p:not(.eyebrow),
.poster-copy p,
.station-card p,
.detail-list dd,
.muted,
.site-footer {
  color: var(--muted);
}

.season-section {
  background: var(--bg);
}

.power-section {
  background: var(--bg);
}

.teams-section {
  background: var(--bg);
}

.season-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 24px;
  align-items: stretch;
  min-width: 0;
}

.poster-stage {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.poster-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #080a0e;
}

.poster-stage img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  background: #080a0e;
}

.poster-stage::after {
  display: none;
}

.poster-header {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 64px 24px 22px;
  background: linear-gradient(0deg, rgba(8, 10, 14, 0.92) 0%, rgba(8, 10, 14, 0.64) 58%, transparent 100%);
}

.poster-header .eyebrow {
  margin-bottom: 7px;
}

.poster-header h3 {
  margin-bottom: 14px;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.12;
}

.poster-copy {
  position: static;
  width: 100%;
  max-width: none;
  padding: 24px;
  border-top: 1px solid var(--line);
  background: #10141c;
}

.latest-status-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.latest-status-board div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.latest-status-board span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.latest-status-board strong {
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#stationIntensity,
#stationDefender,
.event-strength-highlight {
  color: var(--amber);
  font-weight: 900;
}

.latest-status-board .latest-power-value {
  color: var(--text);
}

.race-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.race-status.registration {
  border-color: rgba(155, 229, 100, 0.42);
  background: rgba(155, 229, 100, 0.16);
  color: #dffff0;
}

.race-status.settling {
  border-color: rgba(247, 184, 75, 0.46);
  background: rgba(247, 184, 75, 0.16);
  color: #ffe5ad;
}

.race-status.settled {
  border-color: rgba(239, 61, 50, 0.5);
  background: rgba(239, 61, 50, 0.18);
  color: #ffd1ce;
}

.ranking-board,
.info-panel,
.admin-panel,
.station-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.ranking-board,
.info-panel,
.admin-panel {
  padding: 24px;
}

.board-header,
.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.stations-section,
.admin-section {
  background: var(--bg);
}

.segmented-control {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segmented-control button {
  min-height: 38px;
  padding: 0 16px;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
}

.segmented-control button.active {
  background: var(--red);
  color: #fff;
}

.station-filter-stack {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-bottom: 24px;
}

.station-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}

.station-heading-row > div {
  max-width: 860px;
}

.station-results-link {
  flex: 0 0 auto;
}

.station-filter-stack .segmented-control {
  margin-bottom: 0;
}

.segmented-control.sub-filter {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.1);
}

.segmented-control.sub-filter button {
  min-height: 32px;
  padding: 0 13px;
  color: var(--muted);
  font-size: 12px;
}

.segmented-control.sub-filter button.active {
  background: rgba(247, 184, 75, 0.18);
  color: #ffe2a1;
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.station-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.station-pagination-summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.station-pagination-actions,
.station-page-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.station-page-button,
.station-page-nav {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.station-page-button:hover,
.station-page-nav:hover:not(:disabled) {
  border-color: rgba(247, 184, 75, 0.58);
  color: #ffe2a1;
}

.station-page-button.active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.station-page-nav:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.station-page-ellipsis {
  display: grid;
  width: 28px;
  height: 38px;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

.station-card {
  overflow: hidden;
  min-height: 360px;
}

.station-card-media {
  position: relative;
  min-height: 150px;
  background-color: #11151d;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.68)), var(--station-poster);
  background-position: center;
  background-size: cover;
}

.station-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.52));
}

.station-card-body {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.station-card-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.station-card-tags .series-tag,
.station-season-tag {
  justify-self: start;
  width: auto;
  min-width: 0;
  max-width: 48%;
  min-height: 30px;
  padding: 0 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station-season-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(247, 184, 75, 0.45);
  border-radius: 999px;
  background: rgba(247, 184, 75, 0.12);
  color: #ffe2a1;
  font-size: 12px;
  font-weight: 900;
}

.station-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.station-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.station-detail-section {
  background: var(--bg);
}

.station-window {
  display: grid;
  gap: 24px;
}

.station-visual {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.station-visual img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
}

.station-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 14, 0.9) 0%, rgba(8, 10, 14, 0.56) 48%, rgba(8, 10, 14, 0.16) 100%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.08) 0%, rgba(8, 10, 14, 0.9) 100%);
}

.station-visual-copy {
  position: absolute;
  left: 30px;
  bottom: 30px;
  z-index: 1;
  max-width: 620px;
}

.station-visual-copy h3 {
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.02;
}

.station-visual-copy p {
  max-width: 560px;
  color: #d8dee9;
}

.station-page .station-visual {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  min-height: auto;
  padding: 24px;
  overflow: visible;
}

.station-page .station-visual::after {
  display: none;
}

.station-poster-frame {
  position: static;
  width: min(100%, 380px);
  max-height: min(74vh, 680px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.station-page .station-visual img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.station-page .station-visual-copy {
  position: static;
  display: grid;
  gap: 18px;
  max-width: none;
}

.station-page .station-visual-copy h3 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.8vw, 62px);
}

.station-page .station-visual-copy p {
  max-width: 780px;
  margin-bottom: 0;
}

.station-hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.station-hero-facts div {
  min-width: 0;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.station-hero-facts span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 900;
}

.station-hero-facts strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.station-hero-facts strong.event-strength-highlight {
  color: var(--amber);
  font-weight: 900;
}

.series-tag.pro {
  border-color: rgba(239, 61, 50, 0.5);
  background: rgba(239, 61, 50, 0.16);
  color: #ffd1ce;
}

.series-tag.fun {
  border-color: rgba(155, 229, 100, 0.5);
  background: rgba(155, 229, 100, 0.14);
  color: #dffff0;
}

.station-info-grid,
.public-panels,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.detail-list div {
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-list dt {
  margin-bottom: 4px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 900;
}

.detail-list dd {
  margin: 0;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10141c;
}

.entries-scroll-wrap {
  max-height: min(58vh, 560px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--amber) #171c25;
  scrollbar-width: thin;
}

.entries-scroll-wrap:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.entries-scroll-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #10141c;
  box-shadow: 0 1px 0 var(--line);
}

.entries-scroll-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.entries-scroll-wrap::-webkit-scrollbar-track {
  background: #171c25;
}

.entries-scroll-wrap::-webkit-scrollbar-thumb {
  border: 2px solid #171c25;
  border-radius: 6px;
  background: var(--amber);
}

.entries-scroll-wrap::-webkit-scrollbar-thumb:hover {
  background: #ffd36a;
}

.season-ranking-wrap {
  max-height: min(58vh, 560px);
  overflow: auto;
}

.season-ranking-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #10141c;
}

.ranking-board {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.ranking-board .board-header {
  gap: 12px;
  margin-bottom: 16px;
}

.ranking-board .board-header h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
}

.ranking-board .eyebrow {
  margin-bottom: 8px;
  font-size: 13px;
}

.ranking-board .mini-stat {
  padding: 6px 12px;
  font-size: 12px;
}

#latestPoster,
#latestPosterImage {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  background: #080a0e;
}

.ranking-board .season-ranking-wrap {
  flex: 0 1 auto;
  max-height: min(46vh, 420px);
  min-height: 0;
}

.season-ranking-wrap th,
.season-ranking-wrap td {
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.25;
}

.season-ranking-wrap td {
  font-size: 13px;
}

.season-ranking-wrap .total-score-cell {
  padding-top: 6px;
  padding-bottom: 6px;
}

.season-ranking-wrap .score-data-bar {
  min-height: 24px;
  min-width: 96px;
  padding: 2px 8px;
  font-size: 13px;
}

.season-ranking-wrap .safety-badge {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 11px;
}

.season-results-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(247, 184, 75, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(239, 61, 50, 0.14), transparent 28%),
    var(--bg);
}

.archive-hero-section {
  padding-bottom: 28px;
}

.archive-hero-surface {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    linear-gradient(120deg, rgba(247, 184, 75, 0.08), rgba(239, 61, 50, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.archive-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.archive-hero-copy h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
}

.archive-hero-copy p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.archive-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.archive-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.archive-stat-card,
.archive-summary-item,
.archive-round-item {
  background: rgba(8, 10, 14, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.archive-stat-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  min-width: 0;
}

.archive-stat-card span,
.archive-summary-item span {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 900;
}

.archive-stat-card strong,
.archive-summary-item strong {
  overflow: hidden;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-stat-card small,
.archive-summary-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.archive-board-section {
  padding-top: 20px;
}

.archive-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.archive-main,
.archive-side {
  display: grid;
  gap: 24px;
}

.archive-heading {
  display: grid;
  gap: 18px;
}

.archive-season-tabs {
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0;
}

.archive-season-tabs button {
  min-height: 38px;
  padding: 0 16px;
}

.archive-ranking-board {
  min-height: 0;
}

.archive-ranking-wrap {
  max-height: min(72vh, 820px);
}

.archive-driver-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.archive-driver-cell strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-driver-cell span,
.archive-round-date {
  color: var(--muted);
  font-size: 12px;
}

.archive-summary-grid {
  display: grid;
  gap: 12px;
}

.archive-summary-item {
  display: grid;
  gap: 7px;
  padding: 16px;
}

.archive-round-list {
  display: grid;
  gap: 12px;
}

.archive-round-item {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.archive-round-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.archive-round-top h4 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.25;
}

.archive-round-winner {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.archive-podium {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.archive-podium-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  background: rgba(247, 184, 75, 0.12);
  border: 1px solid rgba(247, 184, 75, 0.28);
  border-radius: 999px;
  color: #ffe2a1;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .archive-hero-surface,
  .archive-shell {
    grid-template-columns: 1fr;
  }

  .station-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .archive-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .station-heading-row {
    display: grid;
  }

  .station-results-link {
    width: 100%;
  }

  .station-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .station-pagination-actions {
    justify-content: space-between;
    width: 100%;
  }

  .station-page-numbers {
    justify-content: center;
    flex: 1;
    flex-wrap: wrap;
  }

  .archive-hero-surface {
    padding: 18px;
  }

  .archive-hero-copy h1 {
    font-size: clamp(34px, 13vw, 48px);
  }

  .archive-hero-copy p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.6;
  }

  .archive-hero-actions,
  .archive-hero-stats {
    grid-template-columns: 1fr;
  }

  .archive-hero-actions {
    display: grid;
  }

  .archive-hero-actions .button,
  .archive-season-tabs,
  .archive-season-tabs button {
    width: 100%;
  }

  .archive-heading,
  .archive-round-top {
    gap: 12px;
  }

  .archive-round-top {
    flex-direction: column;
  }

  .archive-driver-cell span {
    white-space: normal;
  }
}

.driver-power-ranking-wrap {
  max-height: min(68vh, 680px);
  overflow: auto;
}

.driver-power-ranking-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #10141c;
}

.compact-table .driver-power-ranking-table {
  min-width: 980px;
  table-layout: fixed;
}

.driver-power-ranking-table th:first-child,
.driver-power-ranking-table td:first-child {
  width: 74px;
}

.driver-power-ranking-table th:nth-child(2),
.driver-power-ranking-table td:nth-child(2) {
  width: 90px;
  text-align: center;
}

.driver-power-ranking-table th:nth-child(3),
.driver-power-ranking-table td:nth-child(3) {
  width: 220px;
}

.driver-power-ranking-table th:nth-child(4),
.driver-power-ranking-table td:nth-child(4) {
  width: 220px;
}

.driver-power-ranking-table th:nth-child(5),
.driver-power-ranking-table td:nth-child(5) {
  width: 88px;
  text-align: center;
}

.driver-power-ranking-table th:nth-child(6),
.driver-power-ranking-table td:nth-child(6) {
  width: 82px;
  text-align: center;
}

.driver-power-ranking-table th:nth-child(7),
.driver-power-ranking-table td:nth-child(7) {
  width: 160px;
}

.power-rank-cell {
  display: grid;
  gap: 2px;
  line-height: 1.15;
}

.power-rank-cell strong {
  color: var(--amber);
  font-size: 18px;
}

.power-rank-cell span {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 900;
}

.driver-avatar-thumb {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(247, 184, 75, 0.16), rgba(45, 200, 255, 0.1)),
    var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.driver-avatar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xbox-id-cell {
  overflow: hidden;
  color: #f5f7fb;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.power-score-cell {
  color: var(--amber);
  font-size: 16px;
  font-weight: 900;
}

.bilibili-id-cell {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-user-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.team-user-panel strong {
  color: var(--text);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.team-card {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  min-height: 190px;
  overflow: hidden;
  padding: 18px;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.team-card:hover {
  border-color: rgba(247, 184, 75, 0.5);
  transform: translateY(-2px);
}

.team-card-rank {
  position: absolute;
  top: 12px;
  right: 14px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
}

.team-logo,
.team-detail-logo,
.team-logo-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(247, 184, 75, 0.16), rgba(45, 200, 255, 0.1)),
    #10141c;
  color: var(--muted);
  font-weight: 900;
}

.team-logo {
  width: 74px;
  height: 74px;
  font-size: 18px;
}

.team-logo img,
.team-detail-logo img,
.team-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-main {
  display: grid;
  align-content: space-between;
  min-width: 0;
  gap: 14px;
}

.team-title-row {
  display: grid;
  gap: 4px;
  padding-right: 40px;
}

.team-title-row strong {
  color: #f5f7fb;
  font-size: 24px;
  line-height: 1;
}

.team-title-row span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-card-stats,
.team-detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 8px;
}

.team-card-stats {
  grid-template-columns: minmax(0, 0.95fr) minmax(42px, 0.55fr) minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 6px;
}

.team-card-stats div,
.team-detail-metrics div {
  min-width: 0;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.team-card-stats div {
  padding: 7px 7px;
}

.team-card-stats span,
.team-detail-metrics span {
  display: block;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 900;
}

.team-card-stats span {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-card-stats strong,
.team-detail-metrics strong {
  display: block;
  overflow: hidden;
  color: var(--amber);
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-card-stats strong {
  font-size: 12px;
  line-height: 1.15;
}

.team-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.team-logo-preview {
  width: 94px;
  height: 94px;
  flex: 0 0 auto;
}

.team-detail-panel {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow: hidden auto;
  padding: 18px;
}

.team-detail-view {
  display: grid;
  gap: 12px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
}

.team-detail-hero {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.team-detail-logo {
  width: 68px;
  height: 68px;
  font-size: 17px;
}

.team-detail-hero h2 {
  max-width: 100%;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.12;
}

.team-detail-actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 10px;
  justify-content: flex-start;
}

.team-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.team-detail-panel .button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.team-captain-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  background: rgba(247, 184, 75, 0.08);
  border: 1px solid rgba(247, 184, 75, 0.25);
  border-radius: 8px;
}

.team-transfer-box {
  display: flex;
  gap: 8px;
  min-width: min(320px, 100%);
}

.team-transfer-box select {
  min-width: 0;
}

.team-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.team-detail-card {
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.team-detail-card h3 {
  margin: 0 0 10px;
}

.team-detail-card p {
  margin: 0;
  color: var(--muted);
}

.team-detail-view > .team-detail-card:last-child {
  min-height: 0;
}

.team-detail-view > .team-detail-card:last-child .table-wrap {
  max-height: min(30vh, 260px);
  overflow: auto;
}

.team-application-list {
  display: grid;
  gap: 10px;
}

.team-application-row,
.admin-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.team-application-row > span,
.admin-team-row > span {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-application-row > div {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.team-member-table {
  min-width: 560px;
  font-size: 12px;
}

.team-member-table th,
.team-member-table td {
  padding: 9px 10px;
}

.team-member-table th:first-child,
.team-member-table td:first-child {
  width: 54px;
  text-align: center;
}

.compact-action {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.admin-team-list {
  display: grid;
  gap: 10px;
}

.compact-table table {
  min-width: 520px;
}

.compact-table .season-ranking-table {
  min-width: 620px;
  table-layout: fixed;
}

#seasonRankingBody {
  height: 100%;
}

#season .table-wrap {
  max-height: min(58vh, 560px);
}

.compact-table .station-entries-table {
  min-width: 680px;
}

.compact-table .safety-table {
  min-width: 600px;
}

.safety-table th:nth-child(2),
.safety-table td:nth-child(2) {
  display: none;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.pagination-actions .button {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.welcome-notice-admin {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.welcome-notice-admin textarea {
  min-height: 92px;
  resize: vertical;
}

.welcome-notice-preview {
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #edf1f7;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  white-space: pre-line;
}

.register-verify-field small {
  display: block;
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
}

.entry-field-removed {
  display: none !important;
}

.entry-stream-field input {
  width: 100%;
}

.entry-vehicle-source {
  display: none !important;
}

.vehicle-picker {
  position: relative;
  width: 100%;
}

.vehicle-picker-trigger,
.vehicle-picker-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10141c;
  color: #edf1f7;
  text-align: left;
}

.vehicle-picker-trigger {
  min-height: 64px;
  padding: 8px 12px;
}

.vehicle-picker-trigger:hover,
.vehicle-picker-option:hover {
  border-color: rgba(255, 199, 57, 0.55);
  background: #151a24;
}

.vehicle-picker-thumb {
  display: grid;
  width: 68px;
  aspect-ratio: 4 / 3;
  flex: 0 0 68px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.vehicle-picker-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-picker-thumb-empty {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 900;
}

.vehicle-picker-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px;
}

.vehicle-picker-copy strong,
.vehicle-picker-placeholder {
  overflow: hidden;
  color: #f5f7fb;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-picker-copy em {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-picker-arrow {
  color: var(--muted);
  font-size: 20px;
  font-weight: 900;
}

.vehicle-picker-menu {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 40;
  display: grid;
  gap: 8px;
  max-height: 300px;
  margin-top: 8px;
  padding: 8px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0f16;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
}

.vehicle-picker-option {
  min-height: 66px;
  padding: 8px;
  cursor: pointer;
}

.vehicle-picker-empty {
  padding: 12px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
}

.cancel-entry-button[hidden],
.vehicle-picker-menu[hidden] {
  display: none !important;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

td {
  color: #edf1f7;
}

tr:last-child td {
  border-bottom: 0;
}

.season-ranking-table th:first-child,
.season-ranking-table td:first-child {
  width: 56px;
  text-align: center;
}

.season-ranking-table th:nth-child(2),
.season-ranking-table td:nth-child(2) {
  width: 132px;
}

.season-ranking-table th:nth-child(3),
.season-ranking-table td:nth-child(3) {
  width: 108px;
}

.season-ranking-table th:nth-child(4),
.season-ranking-table td:nth-child(4),
.season-ranking-table th:nth-child(5),
.season-ranking-table td:nth-child(5),
.season-ranking-table th:nth-child(6),
.season-ranking-table td:nth-child(6) {
  width: 66px;
}

.season-ranking-table th:nth-child(7),
.season-ranking-table td:nth-child(7) {
  width: 72px;
}

.season-ranking-table td:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.total-score-cell {
  padding-top: 9px;
  padding-bottom: 9px;
}

.score-data-bar {
  position: relative;
  min-width: 112px;
  min-height: 30px;
  padding: 4px 10px;
  overflow: hidden;
  border: 1px solid rgba(155, 229, 100, 0.22);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
}

.score-data-bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--score-width);
  background: linear-gradient(90deg, rgba(112, 208, 113, 0.82), rgba(155, 229, 100, 0.42));
}

.score-data-bar span {
  position: relative;
  z-index: 1;
  color: #f5fff2;
  font-weight: 900;
}

.average-score-cell {
  background: rgba(112, 208, 113, var(--average-alpha));
  color: #f7fff5;
  font-weight: 900;
}

.empty-state {
  color: var(--muted);
  text-align: center;
}

.status-pill {
  min-height: 26px;
  background: rgba(247, 184, 75, 0.12);
  border-color: rgba(247, 184, 75, 0.32);
  color: var(--amber);
}

.status-pill.safety-deduction {
  background: rgba(239, 61, 50, 0.14);
  border-color: rgba(239, 61, 50, 0.34);
  color: #ffd1ce;
}

.safety-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.safety-badge.good {
  border-color: rgba(155, 229, 100, 0.42);
  background: rgba(155, 229, 100, 0.16);
  color: #dffff0;
}

.safety-badge.warning {
  border-color: rgba(247, 184, 75, 0.46);
  background: rgba(247, 184, 75, 0.16);
  color: #ffe5ad;
}

.safety-badge.banned {
  border-color: rgba(239, 61, 50, 0.5);
  background: rgba(239, 61, 50, 0.18);
  color: #ffd1ce;
}

.safety-status-text {
  font-weight: 900;
  white-space: nowrap;
}

.safety-status-text.good {
  color: var(--lime);
}

.safety-status-text.warning {
  color: var(--amber);
}

.safety-status-text.banned {
  color: #ff6b61;
}

.safety-summary-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-panel {
  display: grid;
  gap: 18px;
}

.admin-editor-grid,
.event-rule-grid,
.vehicle-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.event-rule-grid {
  grid-template-columns: minmax(360px, 0.78fr) minmax(560px, 1.22fr);
  align-items: stretch;
  gap: 22px;
}

.event-rule-grid > .info-panel {
  align-content: start;
}

.editor-column,
.editor-block {
  display: grid;
  gap: 16px;
  align-content: start;
}

.editor-block {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.editor-block h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.admin-locked,
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-locked p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.admin-toolbar {
  margin-bottom: 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.backup-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.backup-status-grid div {
  min-width: 0;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.backup-status-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 900;
}

.backup-status-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.backup-status-grid strong.active {
  color: var(--lime);
}

.backup-path,
.backup-error {
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.backup-error {
  border-color: rgba(239, 61, 50, 0.45);
  color: #ffb7b1;
}

.track-showcase,
.vehicle-image-preview {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(45, 200, 255, 0.06)),
    #0d1017;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.track-showcase {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.vehicle-image-preview {
  min-height: 220px;
}

.track-showcase::before {
  content: "赛道图片待上传";
}

.vehicle-image-preview::before {
  content: "车辆图片";
}

.track-showcase img,
.vehicle-image-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-list {
  display: grid;
  gap: 12px;
}

.public-vehicle-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.vehicle-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  width: 100%;
  min-height: 88px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-align: left;
}

.public-vehicle-list .vehicle-item {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: 14px;
}

.vehicle-select {
  cursor: pointer;
}

.vehicle-select.active,
.vehicle-select:hover {
  border-color: rgba(45, 200, 255, 0.42);
  background: rgba(45, 200, 255, 0.1);
}

.vehicle-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 76px;
  height: 68px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0d1017;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 900;
}

.public-vehicle-list .vehicle-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}

.public-vehicle-list .vehicle-item strong {
  display: block;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

@media (min-width: 1181px) {
  .event-rule-grid .track-showcase {
    max-height: 360px;
  }
}

.vehicle-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-bop-trigger {
  position: relative;
  padding: 0;
  appearance: none;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.vehicle-bop-trigger:hover,
.vehicle-bop-trigger:focus-visible {
  border-color: rgba(247, 184, 75, 0.8);
  box-shadow: 0 0 0 3px rgba(247, 184, 75, 0.14);
  transform: translateY(-2px);
  outline: none;
}

.vehicle-bop-trigger img {
  transition: transform 200ms ease;
}

.vehicle-bop-trigger:hover img,
.vehicle-bop-trigger:focus-visible img {
  transform: scale(1.035);
}

.vehicle-bop-trigger-label {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(247, 184, 75, 0.55);
  border-radius: 999px;
  background: rgba(9, 11, 15, 0.86);
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.vehicle-bop-no-image {
  color: var(--muted-2);
  font-size: 14px;
  font-weight: 900;
}

.vehicle-bop-modal-panel {
  width: min(1080px, 100%);
  padding: 32px;
  background:
    radial-gradient(circle at 86% 0%, rgba(247, 184, 75, 0.11), transparent 32%),
    var(--surface);
}

.vehicle-bop-header {
  padding-right: 48px;
  margin-bottom: 20px;
}

.vehicle-bop-header h2 {
  margin: 3px 0 6px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
}

.vehicle-bop-header > p:last-child {
  margin: 0;
  color: var(--muted);
}

.vehicle-bop-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.vehicle-bop-stat {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid rgba(247, 184, 75, 0.22);
  border-radius: 8px;
  background: rgba(247, 184, 75, 0.055);
}

.vehicle-bop-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.vehicle-bop-stat strong {
  color: var(--text);
  font-size: 16px;
}

.vehicle-bop-feature {
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
}

.vehicle-bop-feature strong {
  color: var(--amber);
}

.vehicle-bop-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.vehicle-bop-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.vehicle-bop-section h3 {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(247, 184, 75, 0.25);
  background: rgba(247, 184, 75, 0.07);
  color: var(--amber);
  font-size: 16px;
}

.vehicle-bop-section dl {
  margin: 0;
}

.vehicle-bop-section dl > div {
  display: grid;
  grid-template-columns: minmax(112px, 0.8fr) minmax(0, 1.4fr);
  gap: 12px;
  align-items: start;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.vehicle-bop-section dl > div:last-child {
  border-bottom: 0;
}

.vehicle-bop-section dt {
  color: var(--muted);
  font-size: 13px;
}

.vehicle-bop-section dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.vehicle-bop-section .is-stock dd {
  color: var(--muted-2);
  font-weight: 700;
}

.vehicle-bop-empty {
  padding: 34px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  color: var(--muted);
  text-align: center;
}

.vehicle-bop-empty strong {
  color: var(--text);
  font-size: 20px;
}

.vehicle-bop-empty p {
  margin: 4px 0 0;
}

@media (max-width: 820px) {
  .vehicle-bop-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vehicle-bop-sections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .vehicle-bop-modal-panel {
    padding: 18px 12px 22px;
  }

  .vehicle-bop-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-bop-section dl > div {
    grid-template-columns: minmax(94px, 0.75fr) minmax(0, 1.25fr);
    gap: 8px;
    padding: 9px 10px;
  }
}

.empty-panel {
  grid-column: 1 / -1;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.account-summary {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-summary-avatar,
.avatar-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(239, 61, 50, 0.16), rgba(45, 200, 255, 0.08)),
    #0d1017;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.account-summary-avatar {
  width: 58px;
  height: 58px;
  border-radius: 8px;
}

.account-summary-avatar img,
.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-field {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 8px;
}

.avatar-preview::before {
  content: "头像";
}

.avatar-preview.has-avatar::before {
  content: "";
}

.poster-preview {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0d1017;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.poster-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

label {
  display: grid;
  gap: 7px;
  color: #dce2ec;
  font-size: 14px;
  font-weight: 800;
}

.label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.required-mark {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(239, 61, 50, 0.38);
  border-radius: 999px;
  background: rgba(239, 61, 50, 0.14);
  color: #ffd2cf;
  font-size: 11px;
  font-weight: 900;
}

.field-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  background: #0d1017;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  outline: none;
}

input[readonly] {
  color: #ccd3df;
  background: #151922;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239, 61, 50, 0.14);
}

.signup-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.account-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 2px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.auth-tabs button.active {
  background: var(--red);
  color: #fff;
}

.auth-form {
  margin-top: 0;
}

.inline-input-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.inline-input-action .button {
  min-height: 46px;
  padding: 0 14px;
  white-space: nowrap;
}

.stacked-form {
  display: grid;
  gap: 16px;
}

.full-span {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.form-actions .button.primary {
  flex: 1;
}

.form-actions .button.ghost {
  min-width: 120px;
}

.checkbox-label {
  grid-template-columns: 18px 1fr;
  align-items: start;
  color: var(--muted);
  font-weight: 500;
}

.checkbox-label input {
  min-height: auto;
  margin-top: 5px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(7px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.account-modal-panel {
  width: min(760px, 100%);
}

.registration-success-panel {
  width: min(460px, 100%);
  padding: 34px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(69, 209, 146, 0.16), transparent 42%),
    var(--surface);
}

.registration-success-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border: 1px solid rgba(69, 209, 146, 0.55);
  border-radius: 50%;
  background: rgba(69, 209, 146, 0.12);
  color: #70e7ae;
  box-shadow: 0 0 34px rgba(69, 209, 146, 0.16);
  font-size: 34px;
  font-weight: 900;
}

.registration-success-panel h2 {
  margin: 6px 0 12px;
  font-size: 36px;
}

.registration-success-copy {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.75;
}

.registration-success-copy strong {
  color: #fff;
}

.registration-success-panel .button {
  min-width: 160px;
}

.wide-modal {
  width: min(920px, 100%);
}

.profile-center-panel {
  width: min(1040px, 100%);
}

.profile-center {
  display: grid;
  gap: 18px;
}

.profile-center-hero {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-center-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 86px;
  height: 86px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(239, 61, 50, 0.16), rgba(45, 200, 255, 0.08)),
    #0d1017;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.profile-center-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-center-hero h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.profile-center-meta,
.profile-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 13px;
}

.profile-center-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.profile-center-card {
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-center-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.driver-power-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.driver-power-score {
  min-height: 54px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #f5f7fb;
  font-weight: 900;
  line-height: 1.35;
}

.driver-power-score.valid {
  display: flex;
  align-items: center;
  font-size: 34px;
  color: var(--amber);
}

.driver-power-score.pending {
  color: var(--muted);
  font-size: 14px;
}

.driver-power-meta {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.profile-detail-list {
  grid-template-columns: 1fr;
}

.safety-season-list {
  display: grid;
  gap: 10px;
}

.safety-season-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.safety-penalty-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.safety-penalty-title {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 900;
}

.safety-penalty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.safety-penalty-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.safety-penalty-row strong {
  color: var(--red);
}

.safety-penalty-empty {
  padding: 9px 10px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  max-width: min(420px, calc(100vw - 48px));
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(16, 19, 26, 0.94);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 5vw;
  border-top: 1px solid var(--line);
  background: #07090c;
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 2px;
  }

  .account-strip {
    justify-content: flex-start;
  }

  .season-layout,
  .station-info-grid,
  .event-rule-grid,
  .public-panels,
  .team-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .station-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1500px) {
  .season-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .poster-stage,
  .ranking-board {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .ranking-board .season-ranking-wrap {
    max-height: min(54vh, 520px);
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    gap: 12px;
  }

  .brand {
    align-items: flex-start;
  }

  .brand span:last-child {
    overflow-wrap: anywhere;
  }

  .hero {
    min-height: auto;
    padding: 64px 20px 46px;
  }

  .hero-stats,
  .station-grid,
  .detail-list,
  .signup-form,
  .account-form,
  .team-form,
  .team-detail-grid,
  .team-card-stats,
  .team-detail-metrics,
  .admin-editor-grid,
  .vehicle-editor,
  .admin-stats,
  .backup-status-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 20px;
  }

  .station-visual,
  .station-visual img {
    min-height: 420px;
  }

  .station-page .station-visual,
  .station-page .station-visual img {
    min-height: 0;
  }

  .station-page .station-visual {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .profile-center-hero,
  .profile-center-grid,
  .team-detail-hero {
    grid-template-columns: 1fr;
  }

  .profile-center-hero {
    align-items: start;
  }

  .team-user-panel,
  .team-captain-tools,
  .team-transfer-box,
  .team-application-row,
  .admin-team-row {
    align-items: stretch;
    flex-direction: column;
  }

  .team-detail-actions {
    justify-content: flex-start;
  }

  .station-poster-frame {
    max-width: 320px;
  }

  .station-hero-facts {
    grid-template-columns: 1fr;
  }

  .poster-copy,
  .station-visual-copy {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .latest-status-board {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }

  .segmented-control {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .modal {
    padding: 12px;
  }

  .modal-panel {
    padding: 22px;
  }

  .avatar-field,
  .account-summary {
    grid-template-columns: 1fr;
  }

  .avatar-preview {
    width: 88px;
    height: 88px;
  }

  .site-footer {
    flex-direction: column;
  }
}
#hero-title span {
  display: block;
}

.latest-carousel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.latest-carousel-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-height: 30px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  cursor: pointer;
}

.latest-carousel-dot span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #111827;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
}

.latest-carousel-dot strong {
  overflow: hidden;
  max-width: 170px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.latest-carousel-dot.active {
  color: #111827;
  background: var(--amber);
  border-color: rgba(247, 184, 75, 0.92);
  box-shadow: 0 0 0 1px rgba(247, 184, 75, 0.22), 0 10px 24px rgba(247, 184, 75, 0.2);
}

.latest-carousel-dot.active span {
  background: #111827;
  color: var(--amber);
}

.latest-carousel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.latest-carousel-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.latest-carousel-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(16, 20, 28, 0.78);
  color: #fff;
  font: inherit;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.latest-carousel-arrow:hover {
  border-color: var(--amber);
  background: rgba(247, 184, 75, 0.18);
  color: #ffe2a1;
}

.latest-carousel-arrow:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.poster-stage.is-switching #latestPoster,
.poster-stage.is-switching .poster-header,
.poster-stage.is-switching .poster-copy {
  animation: latestSlideIn 0.55s ease both;
}

@keyframes latestSlideIn {
  from {
    opacity: 0.2;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  main,
  .section,
  .hero,
  .site-header {
    width: 100%;
    max-width: 100%;
  }

  .site-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    padding: 16px;
  }

  .brand {
    width: 100%;
    align-items: center;
    font-size: 16px;
    line-height: 1.25;
  }

  .brand span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .site-nav {
    justify-content: flex-start;
    width: 100%;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .account-strip {
    justify-content: flex-start;
    width: 100%;
    flex-wrap: wrap;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 34px 16px 34px;
  }

  .hero-bg {
    transform: none;
    background-position: center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(9, 11, 15, 0.78) 0%, rgba(9, 11, 15, 0.58) 45%, rgba(9, 11, 15, 0.96) 100%),
      linear-gradient(90deg, rgba(9, 11, 15, 0.62), rgba(9, 11, 15, 0.3));
  }

  .hero-content {
    width: 100%;
    max-width: none;
  }

  h1 {
    font-size: clamp(38px, 12vw, 52px);
    line-height: 1.02;
  }

  .hero-copy {
    max-width: none;
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-stats {
    margin-top: 28px;
    gap: 10px;
  }

  .hero-stats div {
    padding: 15px 16px;
  }

  .hero-stats strong {
    font-size: 26px;
  }

  .hero-stats span {
    white-space: normal;
  }

  .section {
    padding: 48px 16px;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .season-layout,
  .station-window,
  .station-info-grid,
  .event-rule-grid,
  .public-panels {
    width: 100%;
    max-width: 100%;
  }

  .poster-stage {
    aspect-ratio: auto;
    min-height: 0;
    overflow: hidden;
    background: #10141c;
  }

  .poster-stage::after {
    display: none;
  }

  .poster-stage img,
  #latestPoster,
  #latestPosterImage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }

  .poster-copy {
    position: static;
    width: 100%;
    padding: 16px;
    background: #10141c;
  }

  .poster-header {
    padding: 42px 14px 14px;
  }

  .poster-header h3 {
    margin-bottom: 10px;
    font-size: 22px;
  }

  .poster-copy h3 {
    font-size: 28px;
  }

  .latest-status-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .latest-status-board div {
    padding: 10px;
  }

  .latest-status-board strong {
    font-size: 14px;
    white-space: normal;
    text-overflow: clip;
  }

  .latest-status-board div:first-child,
  .latest-status-board div:nth-child(2) {
    grid-column: 1 / -1;
  }

  .station-jump {
    width: 100%;
  }

  .ranking-board,
  .info-panel,
  .admin-panel,
  .team-card,
  .station-card {
    border-radius: 8px;
  }

  .ranking-board .board-header,
  .panel-title-row,
  .station-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .season-ranking-wrap,
  .driver-power-ranking-wrap {
    max-height: 420px;
  }

  .station-page .section {
    padding-top: 28px;
  }

  .station-page-heading {
    display: grid;
    gap: 14px;
  }

  .station-page-heading .button {
    width: 100%;
  }

  .station-page .station-visual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    padding: 14px;
    overflow: hidden;
  }

  .station-poster-frame {
    width: min(72vw, 300px);
    max-width: 100%;
    max-height: none;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
  }

  .station-page .station-visual-copy {
    position: static;
    width: 100%;
    gap: 14px;
  }

  .station-page .station-visual-copy h3 {
    font-size: 30px;
    line-height: 1.12;
  }

  .station-page .station-visual-copy p {
    font-size: 14px;
  }

  .station-hero-facts {
    grid-template-columns: 1fr;
  }

  .station-actions,
  .station-actions .button {
    width: 100%;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .public-vehicle-list {
    grid-template-columns: 1fr;
  }

  .track-showcase {
    aspect-ratio: 4 / 3;
  }

  .modal {
    align-items: end;
    justify-items: stretch;
    padding: 0;
  }

  .modal-panel,
  .account-modal-panel,
  .wide-modal,
  .profile-center-panel,
  .team-detail-panel {
    width: 100%;
    max-height: calc(100dvh - 18px);
    padding: 16px 12px 20px;
    border-radius: 14px 14px 0 0;
  }

  .team-detail-view {
    gap: 10px;
    font-size: 12px;
  }

  .team-detail-hero {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .team-detail-logo {
    width: 58px;
    height: 58px;
    font-size: 14px;
  }

  .team-detail-hero h2 {
    margin-bottom: 6px;
    font-size: clamp(19px, 6vw, 25px);
  }

  .team-detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .team-detail-metrics div {
    padding: 7px;
  }

  .team-detail-metrics span {
    font-size: 10px;
  }

  .team-detail-metrics strong {
    font-size: 13px;
  }

  .team-detail-actions,
  .team-detail-actions .button,
  .team-status-pill {
    width: 100%;
  }

  .team-captain-tools {
    gap: 8px;
    padding: 9px;
  }

  .team-transfer-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .team-detail-card {
    padding: 10px;
  }

  .team-member-table {
    min-width: 500px;
  }

  .team-member-table th,
  .team-member-table td {
    padding: 8px;
  }

  .team-detail-view > .team-detail-card:last-child .table-wrap {
    max-height: 34vh;
  }

  .modal-close {
    top: 12px;
    right: 12px;
  }

  .signup-form,
  .account-form,
  .team-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .inline-input-action {
    grid-template-columns: 1fr;
  }

  .inline-input-action .button {
    width: 100%;
  }

  .signup-form label,
  .account-form label,
  .team-form label,
  .full-span {
    grid-column: 1 / -1;
    min-width: 0;
  }

  input,
  select,
  textarea {
    max-width: 100%;
  }

  .vehicle-picker-trigger,
  .vehicle-picker-option {
    gap: 10px;
  }

  .vehicle-picker-thumb {
    width: 58px;
    flex-basis: 58px;
  }

  .vehicle-picker-copy strong,
  .vehicle-picker-placeholder {
    white-space: normal;
  }

  .vehicle-picker-copy em {
    white-space: normal;
  }

  .vehicle-picker-menu {
    position: static;
    max-height: 42vh;
  }

  .form-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .form-actions .button,
  .signup-form > .button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .season-section,
  .season-layout,
  .poster-stage,
  .poster-copy,
  .ranking-board {
    min-width: 0;
    max-width: 100%;
  }

  .season-section {
    overflow: hidden;
  }

  .season-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .poster-stage,
  .ranking-board {
    width: 100%;
    max-width: calc(100vw - 32px);
    justify-self: stretch;
  }

  .poster-stage img,
  #latestPoster,
  #latestPosterImage {
    max-width: 100%;
  }

  .latest-carousel-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
  }

  .latest-carousel-dot {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
  }

  .latest-carousel-dot strong {
    min-width: 0;
    max-width: none;
    white-space: normal;
  }

  .poster-header .latest-carousel-meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .poster-header .latest-carousel-dot {
    flex: 0 0 auto;
    width: auto;
    max-width: min(78vw, 280px);
  }

  .poster-header .latest-carousel-dot strong {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .latest-carousel-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .latest-carousel-actions .station-jump {
    width: 100%;
  }

  .latest-status-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .latest-status-board div {
    min-width: 0;
  }

  .table-wrap,
  .compact-table,
  .season-ranking-wrap,
  .driver-power-ranking-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .season-ranking-table {
    min-width: 620px;
  }

  .table-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .pagination-actions,
  .pagination-actions .button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .button {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    white-space: nowrap;
    word-break: keep-all;
  }

  .teams-section .section-heading.board-header,
  .admin-locked {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  #openTeamCreate,
  #lockedAdminLogin {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 1180px) {
  .station-page,
  .station-page .section,
  .station-window,
  .station-page .station-visual,
  .station-page .station-visual-copy,
  .station-info-grid,
  .event-rule-grid,
  .public-panels {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .station-page {
    overflow-x: hidden;
  }

  .station-page .station-visual {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    overflow: hidden;
  }

  .station-poster-frame {
    justify-self: center;
    width: min(58vw, 360px);
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .station-poster-frame {
    width: min(74vw, 320px);
  }
}
