/* Simracing Norway — dark-first theme (see private/docs/teamcolors.md) */

:root,
[data-bs-theme="dark"] {
  --srn-red: #ff0000;
  --srn-neon: #ddff00;
  --srn-neon-dim: rgba(221, 255, 0, 0.35);
  --srn-bg-deep: #070708;
  --srn-bg-elevated: #101014;
  --srn-bg-muted: #18181f;
  --srn-text: #ebe8e2;
  --srn-text-muted: #9a958c;
  --srn-border: rgba(255, 255, 255, 0.07);
  --srn-glow-neon: rgba(200, 245, 66, 0.22);

  --bs-body-bg: var(--srn-bg-deep);
  --bs-body-color: var(--srn-text);
  --bs-secondary-color: var(--srn-text-muted);
  --bs-border-color: var(--srn-border);
  --bs-link-color: var(--srn-neon);
  --bs-link-hover-color: #eeff88;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "DM Sans", system-ui, sans-serif;
  font-optical-sizing: auto;
  background-color: var(--srn-bg-deep);
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -25%, rgba(255, 0, 0, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 45% at 100% 0%, rgba(221, 255, 0, 0.05), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 35%);
  background-attachment: fixed;
}

/* Subtle film grain */
body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, h5, h6,
.srn-font-display {
  font-family: "Sora", system-ui, sans-serif;
  letter-spacing: -0.03em;
}

.skip-link:focus {
  position: absolute;
  z-index: 1080;
}

/* Logo — wordmark is in the asset; no duplicate title in the bar */
.srn-navbar-brand {
  margin-right: 1rem;
}

.srn-logo-img {
  display: block;
  height: clamp(2.75rem, 5vw, 3.5rem);
  width: auto;
  max-width: min(320px, 72vw);
  object-fit: contain;
  object-position: left center;
}

/* Header — flat bar, no “pill” gradients; one crisp bottom edge */
.srn-header {
  position: relative;
  z-index: 1020;
  background: rgba(10, 10, 12, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 0, 0, 0.5);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

/* Hairline accent — reads as a straight line, not a bubble */
.srn-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(221, 255, 0, 0.15) 50%,
    transparent 100%
  );
  pointer-events: none;
}

/* Nav: neon underline grows on hover; stays on active */
.srn-header .srn-nav-link {
  position: relative;
  color: var(--srn-text-muted) !important;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  background: transparent !important;
  border-radius: 0;
  transition: color 0.2s ease;
}

.srn-header .srn-nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--srn-neon);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.95;
  pointer-events: none;
}

.srn-header .srn-nav-link:hover,
.srn-header .srn-nav-link:focus-visible {
  color: var(--srn-text) !important;
}

.srn-header .srn-nav-link:hover::after,
.srn-header .srn-nav-link:focus-visible::after {
  transform: scaleX(1);
}

.srn-header .srn-nav-link.active {
  color: var(--srn-text) !important;
  font-weight: 600;
}

.srn-header .srn-nav-link.active::after {
  transform: scaleX(1);
  box-shadow: 0 0 14px rgba(221, 255, 0, 0.28);
}

.srn-header .srn-nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(221, 255, 0, 0.35);
  border-radius: 4px;
}

.srn-nav-toggler {
  border-color: rgba(255, 255, 255, 0.12) !important;
  border-radius: 0.35rem;
}

@media (max-width: 991.98px) {
  .srn-header .srn-nav-link::after {
    left: 0;
    right: 0;
    bottom: 0.2rem;
  }
}

.srn-nav-auth {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.65rem;
}

@media (min-width: 992px) {
  .srn-nav-auth {
    border-top: none;
    padding-top: 0;
  }
}

.srn-nav-auth__avatar {
  flex-shrink: 0;
  object-fit: cover;
}

.srn-nav-auth__btn {
  white-space: nowrap;
}

.srn-account-menu__toggle {
  max-width: 100%;
}

.srn-account-menu__toggle--active {
  border-color: rgba(255, 255, 255, 0.45);
  background-color: rgba(255, 255, 255, 0.08);
}

.srn-account-menu__panel {
  min-width: 12rem;
}

.srn-account-menu .dropdown-item:active {
  background-color: rgba(255, 255, 255, 0.12);
}

.srn-badge-srn {
  font-family: var(--bs-font-sans-serif);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0d0d0f;
  background: linear-gradient(135deg, #f4e6a8 0%, #e8c440 45%, #c9a227 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.srn-badge-srn--nav {
  flex-shrink: 0;
}

.srn-alert-member {
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(125deg, rgba(40, 80, 55, 0.45) 0%, rgba(25, 45, 35, 0.55) 100%);
  border: 1px solid rgba(120, 200, 150, 0.22) !important;
}

.srn-account-avatar-preview {
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

/* Hero */
.srn-hero {
  position: relative;
  padding: clamp(2.75rem, 7vw, 5rem) 0;
  overflow: hidden;
}

.srn-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, transparent 35%, rgba(221, 255, 0, 0.028) 100%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 48px,
      rgba(255, 255, 255, 0.012) 48px,
      rgba(255, 255, 255, 0.012) 49px
    );
  pointer-events: none;
}

.srn-hero-inner {
  position: relative;
  z-index: 1;
}

/* Hero kicker — flat label (not a pill) */
.srn-hero-badge {
  display: inline-block;
  padding: 0.35rem 0 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--srn-neon);
  background: transparent;
  border: none;
  border-left: 3px solid var(--srn-neon);
  border-radius: 0;
  box-shadow: none;
}

.srn-hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3rem);
  line-height: 1.08;
  max-width: 22ch;
  font-weight: 700;
}

.srn-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--srn-text-muted);
  max-width: 46ch;
}

.srn-home-welcome {
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.srn-home-welcome__block {
  padding: 1.25rem 1.35rem 1.45rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.38) 52%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 14px 44px -20px rgba(0, 0, 0, 0.7);
}

.srn-home-welcome__block:first-child {
  border-left: 3px solid rgba(221, 255, 0, 0.32);
}

.srn-home-welcome__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.srn-home-welcome__flag-img {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  display: block;
}

.srn-home-welcome__lang-text {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(200, 196, 188, 0.95);
}

.srn-home-welcome__title {
  font-size: clamp(1rem, 1.65vw, 1.28rem);
  line-height: 1.28;
  max-width: none;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.srn-home-welcome__block p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--srn-text-muted);
  margin-bottom: 1rem;
}

.srn-home-welcome__block p:last-of-type {
  margin-bottom: 0;
}

.srn-hero .srn-home-welcome h1.srn-home-welcome__title,
.srn-hero .srn-home-welcome h2.srn-home-welcome__title {
  max-width: none;
  font-size: clamp(1rem, 1.65vw, 1.28rem);
  line-height: 1.28;
}

/* Hero photo — full bleed inside frame (no padded thumbnail look) */
/* 16:9 matches typical sim / broadcast screenshots */
.srn-hero-media {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  min-height: clamp(200px, 32vw, 360px);
  border-radius: 1.125rem;
  overflow: hidden;
  background: #08080a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 28px 64px -32px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(0, 0, 0, 0.35) inset;
}

/* Home hero — right column: panel; on lg the image area grows to match left column height */
.srn-hero-visual {
  gap: 1rem;
  padding: 1.1rem 1.05rem 1.2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.42) 55%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 16px 48px -24px rgba(0, 0, 0, 0.75);
}

@media (min-width: 992px) {
  .srn-hero-visual {
    min-height: 0;
  }

  .srn-hero-visual .srn-hero-media {
    flex: 1 1 auto;
    min-height: 280px;
    aspect-ratio: unset;
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 6px 28px -14px rgba(0, 0, 0, 0.5);
  }
}

@media (max-width: 991.98px) {
  .srn-hero-visual .srn-hero-media {
    flex: none;
  }
}

.srn-hero-visual__foot {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 992px) {
  .srn-hero-visual__foot {
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }
}

.srn-hero-visual__caption {
  line-height: 1.45;
}

.srn-hero-visual__quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.45rem;
  font-size: 0.81rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.srn-hero-visual__quick a {
  color: rgba(235, 232, 226, 0.9);
  text-decoration: none;
}

.srn-hero-visual__quick a:hover {
  color: var(--srn-neon);
}

.srn-hero-visual__quick-sep {
  color: rgba(255, 255, 255, 0.22);
  user-select: none;
}

.srn-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Photos: avoid zoom-on-hover (causes blur); hint sharp browser scaling */
.srn-photo {
  image-rendering: auto;
  backface-visibility: hidden;
}

.srn-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    transparent 40%,
    transparent 70%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

/* Don’t stack a vignette over the carousel (would hide controls) */
.srn-hero-media.srn-hero-carousel-wrap::after {
  display: none;
}

/* Hero carousel — fills the same frame as a single hero image */
.srn-hero-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.srn-hero-carousel .carousel-inner {
  height: 100%;
}

.srn-hero-carousel .carousel-item {
  height: 100%;
}

.srn-hero-carousel .srn-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.srn-carousel-indicators {
  z-index: 2;
  margin-bottom: 0.65rem;
}

.srn-carousel-indicators [type="button"] {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  border: none;
  margin: 0 0.2rem;
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.srn-carousel-indicators [type="button"].active {
  background: var(--srn-neon);
  transform: scale(1.35);
}

.srn-carousel-btn {
  z-index: 2;
  width: 2.75rem;
  opacity: 0.85;
}

.srn-carousel-btn .carousel-control-prev-icon,
.srn-carousel-btn .carousel-control-next-icon {
  filter: invert(1) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.65));
  width: 1.75rem;
  height: 1.75rem;
}

.srn-carousel-btn:hover {
  opacity: 1;
}

/* Screenshot grid — letterboxed 16:9, contain (no aggressive crop / upscale weirdness) */
.srn-shot-card {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--srn-border);
  background: #08080a;
  box-shadow: 0 18px 44px -28px rgba(0, 0, 0, 0.75);
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.srn-shot-card:hover {
  border-color: rgba(221, 255, 0, 0.15);
  box-shadow: 0 22px 50px -24px rgba(0, 0, 0, 0.85);
  transform: translateY(-2px);
}

.srn-shot-aspect {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, #141418 0%, #08080a 100%);
}

.srn-shot-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Sponsors */
.srn-sponsors {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
}

.srn-sponsor-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 2.75rem;
}

.srn-sponsor-item {
  flex: 0 1 auto;
}

.srn-sponsor-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 0.85rem 1.35rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.srn-sponsor-frame:hover {
  border-color: rgba(221, 255, 0, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.srn-sponsor-logo {
  max-width: min(220px, 42vw);
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.2) brightness(0.92);
  opacity: 0.9;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.srn-sponsor-frame:hover .srn-sponsor-logo {
  filter: grayscale(0) brightness(1);
  opacity: 1;
  transform: translateY(-2px);
}

/* Buttons */
.btn-srn-primary {
  --bs-btn-color: #0a0a0c;
  --bs-btn-bg: var(--srn-red);
  --bs-btn-border-color: var(--srn-red);
  --bs-btn-hover-bg: #e60000;
  --bs-btn-hover-border-color: #e60000;
  --bs-btn-hover-color: #fff;
  --bs-btn-focus-shadow-rgb: 255, 0, 0;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
}

.btn-srn-ghost {
  --bs-btn-color: var(--srn-text);
  --bs-btn-bg: rgba(255, 255, 255, 0.03);
  --bs-btn-border-color: var(--srn-border);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.07);
  --bs-btn-hover-border-color: var(--srn-neon-dim);
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
}

.btn-srn-ghost:hover {
  color: var(--srn-neon);
  box-shadow: 0 0 0 1px rgba(221, 255, 0, 0.15);
}

/* Cards + unified stroke icons */
.srn-card {
  background: linear-gradient(165deg, var(--srn-bg-elevated) 0%, rgba(16, 16, 20, 0.6) 100%);
  border: 1px solid var(--srn-border);
  border-radius: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

a.srn-card {
  text-decoration: none;
  color: inherit;
}

a.srn-card:hover {
  border-color: rgba(221, 255, 0, 0.22);
  box-shadow: 0 16px 48px -20px var(--srn-glow-neon);
  transform: translateY(-3px);
}

.srn-card-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--srn-border);
  color: var(--srn-neon);
}

.srn-icon-svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

/* Section */
.srn-explore {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 100%);
}

.srn-section-title {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.srn-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--srn-text-muted);
}

/* Footer */
.srn-footer {
  margin-top: auto;
  background: rgba(0, 0, 0, 0.35);
  border-color: var(--srn-border) !important;
}

/* Placeholder panels */
.srn-placeholder-panel {
  background: var(--srn-bg-muted);
  border: 1px dashed var(--srn-border);
  border-radius: 1rem;
}

/* —— Races list (session cards) —— */
.srn-race-page-title {
  font-family: "Sora", system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.srn-race-page-lead {
  font-size: 1rem;
  line-height: 1.6;
}

.srn-race-page-count {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  opacity: 0.85;
}

.srn-race-card {
  position: relative;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(20, 20, 26, 0.95) 0%, rgba(10, 10, 12, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 50px -28px rgba(0, 0, 0, 0.75);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.srn-race-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  bottom: 0.65rem;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--srn-red) 0%, rgba(255, 0, 0, 0.35) 60%, rgba(221, 255, 0, 0.25) 100%);
  opacity: 0.9;
}

.srn-race-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 56px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(221, 255, 0, 0.06);
}

.srn-race-feed {
  gap: 1rem !important;
}

@media (min-width: 992px) {
  .srn-race-feed {
    gap: 1.25rem !important;
  }
}

.srn-race-card__inner {
  padding: 0.95rem 1rem 0.95rem 1.2rem;
}

@media (min-width: 768px) {
  .srn-race-card__inner {
    padding: 1.1rem 1.2rem 1.1rem 1.45rem;
  }
}

.srn-race-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.srn-race-card__title {
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.3rem;
  color: var(--srn-text);
  max-width: 46ch;
}

@media (min-width: 768px) {
  .srn-race-card__title {
    font-size: 1.12rem;
  }
}

.srn-race-card__srn-peek {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
  flex-wrap: wrap;
}

.srn-race-card__srn-avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.srn-race-card__peek-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(15, 15, 18, 0.95);
  margin-left: -8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.srn-race-card__srn-avatars .srn-race-card__peek-avatar:first-child {
  margin-left: 0;
}

.srn-race-card__srn-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(221, 255, 0, 0.9);
  background: rgba(221, 255, 0, 0.08);
  border: 1px solid rgba(221, 255, 0, 0.25);
  flex-shrink: 0;
}

.srn-race-card__srn-peek-meta {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--srn-text-muted);
}

.srn-race-card__srn-count {
  font-weight: 600;
  color: rgba(235, 232, 226, 0.92);
}

.srn-race-card__srn-best {
  color: rgba(235, 232, 226, 0.75);
}

.srn-race-card__srn-win {
  color: rgba(255, 210, 100, 0.95);
  font-weight: 600;
}

.srn-race-card__meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--srn-text-muted);
}

.srn-race-card__meta-sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.srn-race-card__season {
  color: rgba(221, 255, 0, 0.65);
}

.srn-race-card__linkout {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--srn-text);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.srn-race-card__linkout:hover {
  color: var(--srn-neon);
  border-color: rgba(221, 255, 0, 0.35);
  background: rgba(221, 255, 0, 0.05);
}

.srn-race-card__linkout-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

/* Collapsible session details (track, car, winner, SoF) */
.srn-race-card__details {
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.srn-race-card__details-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
  padding: 0.38rem 0.35rem;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(235, 232, 226, 0.75);
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 0.35rem;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.srn-race-card__details-toggle:hover {
  color: var(--srn-text);
  background: rgba(255, 255, 255, 0.04);
}

.srn-race-card__details-chevron {
  flex-shrink: 0;
  transition: transform 0.22s ease;
  opacity: 0.75;
}

.srn-race-card__details-toggle[aria-expanded="true"] .srn-race-card__details-chevron {
  transform: rotate(180deg);
}

.srn-race-card__details-collapse:not(.show) {
  margin: 0;
}

.srn-race-card__details-collapse {
  padding-top: 0.4rem;
}

/* Load more */
.srn-race-pagination {
  margin-top: 1rem;
  padding-top: 1rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.srn-race-pagination__status {
  margin-bottom: 0;
}

.srn-race-load-more {
  min-width: 10rem;
  --bs-btn-padding-y: 0.45rem;
  --bs-btn-padding-x: 1.1rem;
  font-weight: 600;
}

/* Summary grid */
.srn-race-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem 0.55rem;
  margin-bottom: 0;
}

@media (min-width: 576px) {
  .srn-race-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .srn-race-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem 0.55rem;
  }
}

.srn-race-stat {
  padding: 0.5rem 0.6rem;
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.srn-race-stat--highlight {
  background: rgba(255, 0, 0, 0.06);
  border-color: rgba(255, 0, 0, 0.12);
}

.srn-race-stat--sof .srn-race-stat__value--num {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.srn-race-stat__label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--srn-text-muted);
  margin-bottom: 0.2rem;
}

.srn-race-stat__value {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.15rem;
  color: var(--srn-text);
}

.srn-race-stat__detail {
  font-size: 0.72rem;
  color: var(--srn-text-muted);
  margin: 0 0 0.25rem;
  line-height: 1.35;
}

.srn-race-stat__sep {
  opacity: 0.45;
  margin: 0 0.2rem;
}

.srn-race-stat__hint {
  font-size: 0.65rem;
  color: var(--srn-text-muted);
  margin: 0.15rem 0 0;
  opacity: 0.85;
}

.srn-race-stat__tag {
  display: inline-block;
  margin-top: auto;
  padding-top: 0.2rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.srn-race-stat__tag--free {
  color: rgba(120, 220, 140, 0.95);
}

.srn-race-stat__tag--paid {
  color: rgba(255, 140, 130, 0.9);
}

.srn-race-empty {
  padding: 0.5rem 0 0;
  margin-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

/* SRN results (compact, often first in card) */
.srn-race-results {
  margin-bottom: 0.65rem;
}

.srn-race-results__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.srn-race-results__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--srn-text-muted);
  margin: 0;
}

.srn-race-win-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(40, 28, 0, 0.95);
  background: linear-gradient(135deg, #f0d060, #c9a227);
  border: 1px solid rgba(255, 220, 120, 0.45);
  white-space: nowrap;
}

.srn-race-win-pill__icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.srn-race-table-wrap {
  border-radius: 0.4rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.35);
}

.srn-race-table {
  width: 100%;
  margin: 0;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  border-collapse: collapse;
}

.srn-race-table thead th {
  padding: 0.35rem 0.45rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--srn-text-muted);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.srn-race-table tbody td {
  padding: 0.38rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.srn-race-table tbody tr:last-child td {
  border-bottom: none;
}

.srn-race-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.srn-race-table__row--place-1 td {
  background: rgba(255, 200, 60, 0.07);
  box-shadow: inset 3px 0 0 #d4af37;
}

.srn-race-table__row--place-1:hover td {
  background: rgba(255, 200, 60, 0.12);
}

.srn-race-table__row--place-2 td {
  background: rgba(200, 200, 210, 0.06);
  box-shadow: inset 3px 0 0 #9ca3af;
}

.srn-race-table__row--place-2:hover td {
  background: rgba(200, 200, 210, 0.1);
}

.srn-race-table__row--place-3 td {
  background: rgba(205, 127, 50, 0.08);
  box-shadow: inset 3px 0 0 #b87333;
}

.srn-race-table__row--place-3:hover td {
  background: rgba(205, 127, 50, 0.13);
}

.srn-race-table__pos {
  width: 2.35rem;
}

.srn-race-table__pos-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.28rem;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.srn-race-table__pos-num--place-1 {
  background: linear-gradient(145deg, #f0d060, #b8860b);
  color: #1a1200;
}

.srn-race-table__pos-num--place-2 {
  background: linear-gradient(145deg, #e8e8ea, #8b9099);
  color: #1a1a1c;
}

.srn-race-table__pos-num--place-3 {
  background: linear-gradient(145deg, #d4945c, #7a4518);
  color: #fff8f0;
}

.srn-race-table__driver {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.srn-race-table__avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.srn-race-table__avatar--winner {
  border: 2px solid rgba(255, 200, 80, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 200, 80, 0.2);
}

.srn-race-table__name-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}

.srn-race-table__name {
  font-weight: 500;
  font-size: 0.78rem;
}

.srn-race-table__badge {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.1rem 0.3rem;
  border-radius: 0.22rem;
  line-height: 1.15;
  flex-shrink: 0;
}

.srn-race-table__badge--winner {
  background: rgba(255, 200, 60, 0.22);
  border: 1px solid rgba(255, 200, 60, 0.5);
  color: #ffe9a8;
}

.srn-race-table__badge--p2 {
  background: rgba(200, 200, 210, 0.18);
  border: 1px solid rgba(200, 200, 210, 0.45);
  color: #e8eaed;
}

.srn-race-table__badge--p3 {
  background: rgba(205, 127, 50, 0.2);
  border: 1px solid rgba(205, 127, 50, 0.45);
  color: #ffd4b0;
}

.srn-race-table__num {
  color: rgba(235, 232, 226, 0.95);
}

.srn-delta {
  display: inline-block;
  margin-left: 0.22rem;
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.95;
}

.srn-delta--down {
  color: #ff8a8a;
}

.srn-delta--up {
  color: #9beb9b;
}

.srn-race-table__gain {
  display: inline-block;
  margin-left: 0.22rem;
  font-size: 0.68rem;
  color: rgba(221, 255, 0, 0.75);
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .srn-race-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -0.15rem;
    margin-right: -0.15rem;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
  }

  .srn-race-table {
    min-width: 440px;
  }
}

/* —— Drivers / members roster —— */
.srn-drivers__title {
  font-family: "Sora", system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.srn-drivers__lead {
  font-size: 1rem;
  line-height: 1.6;
}

.srn-drivers__count {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  opacity: 0.85;
}

.srn-member-grid {
  margin: 0;
  padding: 0;
}

.srn-member-card {
  position: relative;
  border-radius: 0.85rem;
  background: linear-gradient(155deg, rgba(22, 22, 28, 0.96) 0%, rgba(12, 12, 15, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 40px -28px rgba(0, 0, 0, 0.75);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.srn-member-card.h-100 {
  display: flex;
  flex-direction: column;
}

.srn-member-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 48px -26px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(221, 255, 0, 0.05);
}

.srn-member-card__race-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.5rem;
  z-index: 2;
  padding: 0.22rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: rgba(255, 100, 100, 0.98);
  background: linear-gradient(135deg, rgba(35, 12, 12, 0.92), rgba(12, 12, 14, 0.88));
  border: 1px solid rgba(255, 90, 90, 0.4);
  border-radius: 0.3rem;
  transform: rotate(-11deg);
  transform-origin: center center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.srn-member-card__inner {
  padding: 1.15rem 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-height: 0;
}

/* Fixed vertical rhythm so license tables line up across cards (with/without social, etc.) */
.srn-member-card__slot--since {
  min-height: 1.45rem;
  flex-shrink: 0;
}

.srn-member-card__slot--peak {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 5.75rem;
  flex-shrink: 0;
}

.srn-member-card__slot--social {
  min-height: 2.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
}

.srn-member-card__inner--has-race {
  padding-right: 2.35rem;
}

.srn-member-card__top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.srn-member-card__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.srn-member-card__identity {
  min-width: 0;
  flex: 1;
}

.srn-member-card__name {
  font-family: "Sora", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
  color: var(--srn-text);
}

.srn-member-card__custid {
  margin: 0.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.srn-member-card__custid-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--srn-text-muted);
}

.srn-member-card__custid-value {
  font-variant-numeric: tabular-nums;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--srn-text-muted);
}

.srn-member-card__peak {
  margin: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 0.45rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.srn-member-card__peak-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--srn-text-muted);
  width: 100%;
}

.srn-member-card__peak-value {
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.srn-member-card__peak-disc {
  font-size: 0.8125rem;
  color: rgba(221, 255, 0, 0.75);
  font-weight: 500;
}

.srn-member-card__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.srn-member-card__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.35rem;
  color: rgba(235, 232, 226, 0.75);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.srn-member-card__social-link:hover {
  color: var(--srn-neon);
  border-color: rgba(221, 255, 0, 0.25);
  background: rgba(221, 255, 0, 0.06);
}

.srn-member-card__since {
  margin: 0;
  font-size: 0.72rem;
  color: var(--srn-text-muted);
  letter-spacing: 0.02em;
}

.srn-member-card__footer {
  margin-top: auto;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.srn-member-card__licenses {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.5rem;
  min-width: 0;
  width: 100%;
}

.srn-member-card__licenses-heading {
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--srn-text-muted);
}

.srn-member-card__table-wrap {
  padding: 0.35rem 0 0.15rem;
  overflow-x: auto;
  min-width: 0;
}

.srn-member-cat-table {
  table-layout: fixed;
  width: 100%;
  margin: 0;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  border-collapse: collapse;
}

.srn-member-cat-table__col-disc {
  width: 40%;
}

.srn-member-cat-table__col-ir {
  width: 15%;
}

.srn-member-cat-table__col-lic {
  width: 22%;
}

.srn-member-cat-table__col-sr {
  width: 23%;
}

.srn-member-cat-table thead th {
  padding: 0.35rem 0.35rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--srn-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: bottom;
}

.srn-member-cat-table thead th:nth-child(1) {
  padding-left: 0.5rem;
}

.srn-member-cat-table tbody td {
  padding: 0.4rem 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  min-width: 0;
}

.srn-member-cat-table tbody tr:last-child td {
  border-bottom: none;
}

.srn-member-cat-table__disc {
  position: relative;
  font-weight: 500;
  color: rgba(235, 232, 226, 0.95);
  padding-left: 0.5rem !important;
  overflow-wrap: anywhere;
}

/* Full-row hit target: overlay in first cell spans full table width (40% col → 250% of cell) */
.srn-member-cat-table__row--link {
  cursor: pointer;
}

.srn-member-cat-table__row--link:hover {
  background: rgba(221, 255, 0, 0.045);
}

.srn-member-cat-table__row-link {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: calc(100% / 0.4);
  z-index: 1;
  pointer-events: auto;
}

.srn-member-cat-table__row--link td {
  pointer-events: none;
}

.srn-member-cat-table__disc-text {
  font-weight: 600;
  pointer-events: none;
}

.srn-member-cat-table__row-link:focus-visible {
  outline: 2px solid rgba(221, 255, 0, 0.55);
  outline-offset: -2px;
  border-radius: 0.15rem;
}

.srn-member-cat-table__lic {
  font-size: 0.68rem;
  color: rgba(235, 232, 226, 0.88);
}

.srn-member-cat-table__num {
  color: rgba(235, 232, 226, 0.92);
}

.srn-member-cat-table__num--sub {
  font-size: 0.68rem;
  color: var(--srn-text-muted);
}

.srn-member-card__profile {
  display: block;
  padding-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(221, 255, 0, 0.88);
  text-align: center;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s ease;
}

.srn-member-card__profile:hover {
  color: var(--srn-neon);
}

/* —— Driver profile (/drivers/cust/category) —— */
.srn-profile__crumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--srn-text-muted);
}

.srn-profile__crumb-list li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  opacity: 0.45;
}

.srn-profile__crumb-list a {
  color: rgba(235, 232, 226, 0.85);
  text-decoration: none;
}

.srn-profile__crumb-list a:hover {
  color: var(--srn-neon);
}

.srn-profile__hero {
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, rgba(20, 20, 26, 0.92) 0%, rgba(10, 10, 12, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.srn-profile__hero-main {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.srn-profile__avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.srn-profile__kicker {
  margin: 0 0 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(221, 255, 0, 0.75);
}

.srn-profile__title {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}

.srn-profile__meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--srn-text-muted);
  line-height: 1.5;
}

.srn-profile__meta-sep {
  margin: 0 0.3rem;
  opacity: 0.45;
}

.srn-profile__meta-item--num {
  font-weight: 700;
  color: rgba(255, 100, 100, 0.9);
}

.srn-profile__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.srn-profile__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.4rem;
  color: rgba(235, 232, 226, 0.8);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.srn-profile__social-link:hover {
  color: var(--srn-neon);
  border-color: rgba(221, 255, 0, 0.25);
  background: rgba(221, 255, 0, 0.06);
}

.srn-profile__disciplines {
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.srn-profile__discipline-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.srn-profile__discipline-item {
  flex-shrink: 0;
  margin: 0;
}

.srn-profile__discipline {
  display: block;
  padding: 0.5rem 1rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--srn-text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.srn-profile__discipline:hover {
  color: rgba(235, 232, 226, 0.95);
}

.srn-profile__discipline--active {
  color: var(--srn-text);
  font-weight: 600;
  border-bottom-color: rgba(221, 255, 0, 0.85);
}

.srn-profile__panel {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 0.75rem;
  background: rgba(12, 12, 14, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.srn-profile__panel-title {
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  color: var(--srn-text);
}

.srn-profile__panel-head {
  margin-bottom: 0.65rem;
}

.srn-profile__panel-hint {
  margin-top: 0.25rem;
  line-height: 1.45;
}

.srn-profile__stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 576px) {
  .srn-profile__stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.srn-profile__stat {
  padding: 0.55rem 0.65rem;
  border-radius: 0.45rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--srn-lic, rgba(255, 255, 255, 0.15));
}

.srn-profile__stat-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--srn-text-muted);
  margin-bottom: 0.2rem;
}

.srn-profile__stat-value {
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(235, 232, 226, 0.95);
}

.srn-profile__stat-value--ir {
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.srn-profile__equip-details {
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.srn-profile__equip-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(235, 232, 226, 0.92);
  user-select: none;
}

.srn-profile__equip-summary::-webkit-details-marker {
  display: none;
}

.srn-profile__equip-summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.65;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.srn-profile__equip-details[open] .srn-profile__equip-summary::after {
  transform: rotate(-135deg);
}

.srn-profile__equip-summary:hover {
  color: var(--srn-neon);
}

.srn-profile__equip-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.5rem 1rem;
}

.srn-profile__equip-dl {
  margin: 0;
  display: grid;
  gap: 0.5rem 1rem;
}

@media (min-width: 768px) {
  .srn-profile__equip-dl {
    grid-template-columns: 1fr 1fr;
  }
}

.srn-profile__equip-row {
  margin: 0;
}

.srn-profile__equip-row dt {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--srn-text-muted);
  margin-bottom: 0.15rem;
}

.srn-profile__equip-row dd {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgba(235, 232, 226, 0.92);
}

.srn-profile__chart-wrap {
  position: relative;
  height: 220px;
  margin-top: 0.35rem;
}

.srn-profile__dynamic--loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.srn-profile__empty {
  margin: 0;
}

.srn-profile__race-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.srn-profile__race {
  margin: 0;
}

.srn-profile__race-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "body"
    "result"
    "stats";
  gap: 0.65rem 1rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  border-radius: 0.55rem;
  background: linear-gradient(165deg, rgba(18, 18, 22, 0.95) 0%, rgba(8, 8, 10, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  align-items: start;
}

@media (min-width: 768px) {
  .srn-profile__race-link {
    grid-template-columns: minmax(0, 1fr) auto minmax(12.5rem, 17rem);
    grid-template-areas: "body result stats";
    align-items: center;
  }
}

.srn-profile__race-link:hover {
  border-color: rgba(221, 255, 0, 0.18);
  background: rgba(221, 255, 0, 0.035);
  box-shadow: 0 0 0 1px rgba(221, 255, 0, 0.06);
}

.srn-profile__race-body {
  grid-area: body;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.srn-profile__race-series {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
  color: rgba(245, 243, 238, 0.98);
}

.srn-profile__race-sub {
  display: block;
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(180, 175, 168, 0.92);
}

.srn-profile__race-when {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--srn-text-muted);
  margin-top: 0.15rem;
  font-variant-numeric: tabular-nums;
}

.srn-profile__race-result {
  grid-area: result;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 3.75rem;
}

.srn-profile__race-result-pos {
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  padding: 0.4rem 0.55rem;
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.srn-profile__race-stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem 0.5rem;
  width: 100%;
  min-width: 0;
}

@media (max-width: 767.98px) {
  .srn-profile__race-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .srn-profile__race-result {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .srn-profile__race-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 0.75rem;
  }
}

.srn-profile__race-stat {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  text-align: center;
}

@media (min-width: 768px) {
  .srn-profile__race-stat {
    text-align: right;
    align-items: flex-end;
  }
}

.srn-profile__race-stat-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--srn-text-muted);
  line-height: 1.2;
}

.srn-profile__race-stat-value {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(235, 232, 226, 0.95);
  font-variant-numeric: tabular-nums;
}

.srn-profile__race-stat-value--num {
  font-weight: 700;
}

/* —— Drivers of the week —— */
.srn-dow__title {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.srn-dow__subtitle {
  font-size: 0.95rem;
  font-weight: 600;
}

.srn-dow__cats {
  margin-bottom: 1rem;
}

.srn-dow__cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.srn-dow__cat {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(235, 232, 226, 0.85);
  text-decoration: none;
  border-radius: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.srn-dow__cat:hover {
  color: var(--srn-neon);
  border-color: rgba(221, 255, 0, 0.25);
}

.srn-dow__cat--active {
  color: var(--srn-neon);
  border-color: rgba(221, 255, 0, 0.35);
  background: rgba(221, 255, 0, 0.06);
}

.srn-dow__weeknav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem !important;
}

.srn-dow__weekbtn {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: rgba(221, 255, 0, 0.9);
}

.srn-dow__weekbtn:hover {
  color: var(--srn-neon);
}

.srn-dow__weekbtn--muted {
  color: rgba(235, 232, 226, 0.75);
}

.srn-dow__weekbtn--disabled {
  color: var(--srn-text-muted);
  cursor: not-allowed;
  font-weight: 500;
}

/* Drivers of the week — podium stair (2nd · 1st · 3rd) */
.srn-dow__podium-stairs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr) minmax(0, 1fr);
  gap: clamp(0.35rem, 2vw, 0.65rem);
  align-items: end;
  margin-top: 1rem;
  padding-top: 0.5rem;
  position: relative;
}

.srn-dow__podium-stairs::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.06)
  );
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.srn-dow__podium-slot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  min-width: 0;
  padding: 0.65rem 0.4rem 0.85rem;
  border-radius: 0.65rem 0.65rem 0.35rem 0.35rem;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 14px rgba(0, 0, 0, 0.35);
}

.srn-dow__podium-slot:not(.srn-dow__podium-slot--empty):hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 24px rgba(0, 0, 0, 0.45);
}

.srn-dow__podium-slot--1 {
  min-height: clamp(10.5rem, 28vw, 13rem);
  padding-bottom: 1rem;
  background: linear-gradient(
    165deg,
    rgba(201, 162, 39, 0.22) 0%,
    rgba(24, 24, 31, 0.92) 42%,
    rgba(10, 10, 14, 0.98) 100%
  );
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow:
    inset 0 2px 0 rgba(255, 220, 120, 0.18),
    0 0 0 1px rgba(201, 162, 39, 0.12),
    0 8px 28px rgba(0, 0, 0, 0.4);
}

.srn-dow__podium-slot--1:not(.srn-dow__podium-slot--empty):hover {
  border-color: rgba(230, 200, 90, 0.55);
}

.srn-dow__podium-slot--2 {
  min-height: clamp(7.75rem, 21vw, 9.75rem);
  background: linear-gradient(
    165deg,
    rgba(156, 163, 175, 0.16) 0%,
    rgba(22, 22, 28, 0.92) 45%,
    rgba(10, 10, 14, 0.98) 100%
  );
  border-color: rgba(180, 186, 198, 0.28);
}

.srn-dow__podium-slot--3 {
  min-height: clamp(6.25rem, 17vw, 8rem);
  background: linear-gradient(
    165deg,
    rgba(180, 83, 9, 0.18) 0%,
    rgba(22, 20, 18, 0.92) 45%,
    rgba(10, 10, 14, 0.98) 100%
  );
  border-color: rgba(200, 120, 50, 0.32);
}

.srn-dow__podium-slot--empty {
  cursor: default;
  pointer-events: none;
  opacity: 0.55;
  background: rgba(0, 0, 0, 0.2);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.srn-dow__podium-slot--empty:hover {
  transform: none;
}

.srn-dow__podium-place-num {
  position: absolute;
  top: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.65rem;
  height: 1.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(245, 243, 238, 0.95);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.srn-dow__podium-slot--1 .srn-dow__podium-place-num {
  width: 1.85rem;
  height: 1.85rem;
  font-size: 0.95rem;
  background: linear-gradient(145deg, rgba(255, 215, 100, 0.35), rgba(40, 32, 8, 0.85));
  border-color: rgba(255, 210, 120, 0.45);
  box-shadow: 0 2px 10px rgba(201, 162, 39, 0.25);
}

.srn-dow__podium-slot--2 .srn-dow__podium-place-num {
  background: linear-gradient(145deg, rgba(200, 210, 220, 0.3), rgba(30, 32, 38, 0.88));
  border-color: rgba(180, 190, 205, 0.35);
}

.srn-dow__podium-slot--3 .srn-dow__podium-place-num {
  background: linear-gradient(145deg, rgba(220, 140, 70, 0.28), rgba(45, 28, 12, 0.88));
  border-color: rgba(210, 130, 60, 0.38);
}

.srn-dow__podium-slot-muted {
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--srn-text-muted);
  line-height: 1;
  margin-top: 1.75rem;
}

.srn-dow__podium-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
  margin-top: 1.85rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.srn-dow__podium-slot--1 .srn-dow__podium-avatar {
  width: 56px;
  height: 56px;
  border-color: rgba(255, 210, 120, 0.45);
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.25),
    0 6px 18px rgba(0, 0, 0, 0.45);
}

.srn-dow__podium-name {
  display: block;
  font-weight: 600;
  font-size: clamp(0.78rem, 2.1vw, 0.88rem);
  line-height: 1.25;
  color: rgba(245, 243, 238, 0.98);
  text-decoration: none;
  margin-top: 0.45rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 0.15rem;
}

a.srn-dow__podium-slot:hover .srn-dow__podium-name {
  color: var(--srn-neon);
}

.srn-dow__podium-delta {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  margin-top: 0.2rem;
}

.srn-dow__empty {
  margin: 0;
}

.srn-dow__table-wrap {
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.srn-dow__table {
  font-size: 0.82rem;
  margin: 0;
}

.srn-dow__table thead th {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--srn-text-muted);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.srn-dow__table tbody td {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.srn-dow__table tbody tr:last-child td {
  border-bottom: none;
}

.srn-dow__table tbody a {
  color: rgba(235, 232, 226, 0.92);
  text-decoration: none;
  font-weight: 500;
}

.srn-dow__table tbody a:hover {
  color: var(--srn-neon);
}

.srn-dow__row--inactive {
  opacity: 0.45;
}

/* Leagues hub */
.srn-league-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 1.75rem);
  padding: 1.15rem 1.2rem 1.35rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.srn-league-hero__logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  isolation: isolate;
}

.srn-league-hero__logo-wrap::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 75% at 50% 48%, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

.srn-league-hero--primary .srn-league-hero__logo-wrap::before {
  background: radial-gradient(
    ellipse 72% 78% at 48% 46%,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(221, 255, 0, 0.05) 38%,
    transparent 72%
  );
}

.srn-league-hero__logo {
  position: relative;
  z-index: 1;
  width: auto;
  height: clamp(3.25rem, 9vw, 5rem);
  max-width: min(220px, 48vw);
  object-fit: contain;
  object-position: left center;
  border-radius: 0.5rem;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.5));
}

.srn-league-hero__text {
  flex: 1;
  min-width: min(100%, 16rem);
}

.srn-league-picker {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.srn-league-picker--seasons {
  margin-top: 0;
  gap: 0.65rem;
}

.srn-league-picker__featured {
  margin: 0;
  padding: 1.2rem 1.2rem 1.3rem 1.15rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(221, 255, 0, 0.42);
  background: rgba(0, 0, 0, 0.32);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.srn-league-picker__heading {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-transform: none;
  color: rgba(245, 243, 238, 0.97);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.srn-league-picker__heading--sub {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(154, 149, 140, 0.88);
  margin-top: 0;
}

.srn-league-picker__lede {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(235, 232, 226, 0.62);
  margin-bottom: 1.05rem;
  max-width: 38rem;
}

.srn-league-picker__lede--sub {
  font-size: 0.81rem;
  margin-bottom: 0.85rem;
}

.srn-league-picker__secondary {
  padding-top: 0.25rem;
}

.srn-league-picker__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.srn-league-picker__row {
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 0.95rem 1.05rem;
  text-decoration: none;
  color: inherit;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.srn-league-picker__list .srn-league-picker__row:last-child,
.srn-league-picker--seasons .srn-league-picker__row:last-child {
  margin-bottom: 0;
}

.srn-league-picker__row:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(221, 255, 0, 0.22);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.srn-league-picker__row:focus-visible {
  outline: 2px solid rgba(221, 255, 0, 0.55);
  outline-offset: 2px;
}

.srn-league-picker__row--primary {
  padding: 1rem 1.05rem;
  margin-top: 0.15rem;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.srn-league-picker__row--primary:hover {
  border-color: rgba(221, 255, 0, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.srn-league-picker__featured .srn-league-picker__row--primary {
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
  box-shadow: none;
}

.srn-league-picker__featured .srn-league-picker__row--primary:hover {
  border-color: rgba(221, 255, 0, 0.3);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.srn-league-picker__logo-slot {
  position: relative;
  flex-shrink: 0;
  width: 7.5rem;
  height: 4.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.srn-league-picker__logo-slot--primary {
  width: min(100%, 12rem);
  height: 5.25rem;
}

.srn-league-picker__logo-bloom {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(ellipse 78% 82% at 50% 48%, rgba(255, 255, 255, 0.07) 0%, transparent 72%);
}

.srn-league-picker__logo-slot--primary .srn-league-picker__logo-bloom {
  background: radial-gradient(
    ellipse 82% 86% at 48% 46%,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(221, 255, 0, 0.035) 48%,
    transparent 74%
  );
}

.srn-league-picker__logo-slot--empty {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.45rem;
}

.srn-league-picker__logo {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0.35rem;
  filter: drop-shadow(0 3px 18px rgba(0, 0, 0, 0.45));
}

.srn-league-picker__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.srn-league-picker__title {
  display: block;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(245, 243, 238, 0.98);
}

.srn-league-picker__row--primary .srn-league-picker__title {
  font-size: 1.125rem;
  letter-spacing: -0.028em;
  font-weight: 600;
}

.srn-league-picker__row:hover .srn-league-picker__title {
  color: var(--srn-neon);
}

.srn-league-picker__meta {
  display: block;
  font-size: 0.8rem;
  color: var(--srn-text-muted);
}

.srn-league-picker__chev {
  flex-shrink: 0;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(235, 232, 226, 0.48);
  transition: color 0.18s ease, transform 0.18s ease;
}

.srn-league-picker__row:hover .srn-league-picker__chev {
  color: rgba(221, 255, 0, 0.75);
  transform: translateX(3px);
}

/* League season list — active vs past */
.srn-league-seasons {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.srn-league-seasons__group {
  padding: 1.15rem 1.2rem 1.3rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.srn-league-seasons__group--active {
  border-color: rgba(221, 255, 0, 0.12);
  background: linear-gradient(165deg, rgba(221, 255, 0, 0.04) 0%, rgba(0, 0, 0, 0.32) 48%);
}

.srn-league-seasons__group--past {
  margin-top: 0;
  padding-top: 1.15rem;
  border-top: none;
}

.srn-league-seasons__group-title {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(235, 232, 226, 0.88);
  margin-bottom: 0.35rem;
}

.srn-league-seasons__group--past .srn-league-seasons__group-title {
  color: rgba(154, 149, 140, 0.95);
}

.srn-league-seasons__group-hint {
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(154, 149, 140, 0.88);
  margin-bottom: 0.85rem;
  max-width: 36rem;
}

.srn-league-seasons__badge-inactive {
  font-weight: 600;
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(200, 196, 188, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.srn-league-picker__row--inactive-season .srn-league-picker__title {
  color: rgba(220, 216, 208, 0.88);
  font-weight: 500;
}

.srn-league-picker__row--inactive-season:hover .srn-league-picker__title {
  color: var(--srn-neon);
}

.srn-league-picker--past .srn-league-picker__row {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.06);
}

.srn-league-picker__meta .badge {
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
  .srn-league-picker__row,
  .srn-league-picker__chev {
    transition: none;
  }

  .srn-league-picker__row:hover {
    transform: none;
  }

  .srn-league-picker__row:hover .srn-league-picker__chev {
    transform: none;
  }
}

.srn-league-breakdown-sep {
  color: rgba(154, 149, 140, 0.85);
  font-weight: 500;
}

.srn-league-pts-base {
  color: rgba(235, 232, 226, 0.92);
}

.srn-league-pts-pos {
  color: #5ee4a0;
  font-weight: 600;
}

.srn-league-pts-neg {
  color: #f87171;
  font-weight: 600;
}

/* Table body color must not override breakdown greens/reds */
.srn-league-table td.srn-league-breakdown .srn-league-pts-pos {
  color: #5ee4a0 !important;
}

.srn-league-table td.srn-league-breakdown .srn-league-pts-neg {
  color: #f87171 !important;
}

.srn-league-table td.srn-league-breakdown .srn-league-pts-base {
  color: rgba(235, 232, 226, 0.92) !important;
}

.srn-league-tabs-wrap {
  margin-bottom: 0;
}

.srn-league-print-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.45rem;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(235, 232, 226, 0.88);
  flex-shrink: 0;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background 0.18s ease;
}

.srn-league-print-icon-btn:hover {
  border-color: rgba(221, 255, 0, 0.35);
  color: var(--srn-neon);
  background: rgba(255, 255, 255, 0.05);
}

.srn-league-print-icon-btn:focus-visible {
  outline: 2px solid rgba(221, 255, 0, 0.55);
  outline-offset: 2px;
}

.srn-league-print-icon-btn__svg {
  display: block;
  pointer-events: none;
}

.srn-league-tabs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.srn-league-tabstrip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.srn-league-tabstrip__item {
  margin: 0;
}

.srn-league-tabstrip__link {
  display: block;
  padding: 0.55rem 0.9rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: rgba(235, 232, 226, 0.72);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.srn-league-tabstrip__link:hover {
  color: var(--srn-neon);
}

.srn-league-tabstrip__link--active {
  color: rgba(235, 232, 226, 0.98);
  border-bottom-color: var(--srn-neon);
}

/* Summary matrix: nested Qual / Heat / Feat per round */
.srn-league-summary-panel {
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(10, 10, 12, 0.6);
  overflow: auto;
}

.srn-league-summary-matrix {
  --srn-sum-pos-w: 2.35rem;
  --srn-sum-driver-w: min(10.5rem, 32vw);
  font-size: 0.78rem;
  margin: 0;
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.srn-league-summary-matrix th,
.srn-league-summary-matrix td {
  box-sizing: border-box;
}

@media (min-width: 1100px) {
  .srn-league-summary-matrix {
    --srn-sum-driver-w: min(12rem, 18vw);
  }
}

.srn-sum-col-pos {
  width: var(--srn-sum-pos-w);
}

.srn-sum-col-driver {
  width: var(--srn-sum-driver-w);
}

.srn-sum-col-round {
  min-width: 2.15rem;
}

.srn-sum-col-total {
  width: 3.1rem;
}

.srn-league-summary-matrix thead th {
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
  padding: 0.45rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
  color: rgba(235, 232, 226, 0.9);
}

.srn-league-summary-matrix thead tr:first-child th {
  border-bottom: none;
}

.srn-league-summary-matrix thead tr:nth-child(2) th {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--srn-text-muted);
  padding-top: 0.28rem;
  padding-bottom: 0.38rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.srn-sum-h-pos.srn-sum-pos,
.srn-sum-h-driver.srn-sum-driver {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(180, 176, 168, 0.95);
  vertical-align: bottom;
  padding-bottom: 0.5rem;
}

.srn-sum-h-round {
  line-height: 1.35;
  max-width: none;
  hyphens: auto;
}

.srn-sum-h-total {
  white-space: nowrap;
  vertical-align: bottom;
}

.srn-league-summary-matrix tbody td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.3rem;
  vertical-align: middle;
}

.srn-league-summary-matrix tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.srn-league-summary-matrix tbody tr:hover .srn-sum-pos,
.srn-league-summary-matrix tbody tr:hover .srn-sum-driver {
  background: rgba(22, 22, 26, 0.99);
}

.srn-league-summary-matrix tbody tr:last-child td {
  border-bottom: none;
}

.srn-league-summary-matrix .srn-league-summary-matrix__sticky {
  position: sticky;
  z-index: 2;
}

.srn-league-summary-matrix thead .srn-league-summary-matrix__sticky {
  z-index: 3;
}

/* Narrow rank rail */
.srn-sum-pos {
  left: 0;
  width: var(--srn-sum-pos-w);
  min-width: var(--srn-sum-pos-w);
  max-width: var(--srn-sum-pos-w);
  padding-left: 0.35rem;
  padding-right: 0.25rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.76rem;
  color: rgba(200, 196, 188, 0.72);
  background: linear-gradient(90deg, rgba(12, 12, 14, 1) 0%, rgba(16, 16, 19, 0.99) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.srn-league-summary-matrix thead .srn-sum-pos {
  background: rgba(8, 8, 10, 0.98);
}

/* Driver column: tight, separated from grid */
.srn-sum-driver {
  left: var(--srn-sum-pos-w);
  text-align: left;
  padding: 0.35rem 0.5rem 0.35rem 0.4rem;
  background: rgba(16, 16, 18, 0.98);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 10px 0 18px -10px rgba(0, 0, 0, 0.95);
}

.srn-league-summary-matrix thead .srn-sum-driver {
  background: rgba(10, 10, 12, 0.98);
}

.srn-sum-driver__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
  line-height: 1.28;
}

.srn-sum-driver__name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 500;
  font-size: 0.8rem;
  color: rgba(248, 246, 242, 0.96);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.srn-sum-driver__badge {
  flex: 0 0 auto;
  font-size: 0.58rem;
  padding: 0.12rem 0.35rem;
  margin: 0 !important;
}

.srn-sum-total {
  padding-left: 0.35rem;
  padding-right: 0.45rem;
  font-size: 0.8rem;
  color: rgba(252, 250, 246, 0.95);
}

.srn-sum-cell {
  white-space: nowrap;
}

.srn-sum-empty {
  color: rgba(255, 255, 255, 0.12);
}

.srn-sum-num {
  color: rgba(210, 206, 198, 0.88);
  font-weight: 500;
}

.srn-sum-pill {
  display: inline-block;
  min-width: 1.85em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.74em;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.srn-sum-pill--qual-1 {
  background: #3f3f48;
  color: #f4f2ee;
}

.srn-sum-pill--qual-2 {
  background: #2e2e35;
  color: #c9c5be;
}

.srn-sum-pill--qual-3 {
  background: #232328;
  color: #a6a29c;
}

.srn-sum-pill--medal-1 {
  background: linear-gradient(165deg, #f0dc5a 0%, #c9a21a 100%);
  color: #1c1608;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.srn-sum-pill--medal-2 {
  background: linear-gradient(165deg, #ececf2 0%, #a8a8b4 100%);
  color: #222226;
}

.srn-sum-pill--medal-3 {
  background: linear-gradient(165deg, #d4a078 0%, #8f5c38 100%);
  color: #1f1008;
}

/* Vertical separation between rounds (after each Feat column) */
.srn-league-summary-matrix thead tr:nth-child(2) th:nth-child(3n) {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.srn-league-summary-matrix tbody td:nth-child(3n + 5) {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.srn-league-table-wrap {
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.srn-league-table {
  font-size: 0.82rem;
  margin: 0;
}

.srn-league-table thead th {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--srn-text-muted);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.srn-league-table tbody td {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.srn-league-table tbody tr:last-child td {
  border-bottom: none;
}

.srn-league-table tbody a {
  color: rgba(235, 232, 226, 0.92);
  text-decoration: none;
  font-weight: 500;
}

.srn-league-table tbody a:hover {
  color: var(--srn-neon);
}

.srn-league-cat {
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(235, 232, 226, 0.9);
}

.srn-league-srn {
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(221, 255, 0, 0.2);
  color: var(--srn-neon);
}

/* Season overview (merged schedule + highlights) */
.srn-league-ov__meta a {
  color: rgba(235, 232, 226, 0.92);
  font-weight: 500;
  text-decoration: none;
}

.srn-league-ov__meta a:hover {
  color: var(--srn-neon);
}

.srn-league-ov-card {
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.28) 100%);
  padding: 1rem 1.1rem;
}

.srn-league-ov-card__title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--srn-text-muted);
  margin: 0 0 0.5rem;
}

.srn-league-ov-card__lead {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(248, 246, 242, 0.96);
  line-height: 1.35;
  margin: 0;
}

.srn-league-ov-countdown {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--srn-neon);
  letter-spacing: 0.02em;
}

.srn-league-ov-standings li:last-child {
  border-bottom: none !important;
}

.srn-league-ov-wins .srn-league-ov-win {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(248, 246, 242, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.srn-league-ov-win__srn {
  margin-left: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--srn-neon);
  opacity: 0.95;
}

.srn-league-ov-win__n {
  margin-left: 0.35rem;
  opacity: 0.85;
}

.srn-league-ov-schedule .h6 {
  letter-spacing: 0.02em;
}

.srn-league-ov-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 0.25rem;
}

.srn-league-ov-badge--up {
  background: rgba(59, 130, 246, 0.18);
  color: rgba(147, 197, 253, 0.95);
}

.srn-league-ov-badge--wait {
  background: rgba(255, 255, 255, 0.06);
  color: var(--srn-text-muted);
}
