/* =========================================================
   PLAYERWON DESIGN TOKENS
   ========================================================= */

:root {
  --pw-primary: #2563eb;
  --pw-primary-hover: #1d4ed8;
  --pw-primary-soft: #eff6ff;

  --pw-text: #1f2937;
  --pw-heading: #111827;
  --pw-muted: #6b7280;

  --pw-border: #e5e7eb;
  --pw-border-strong: #d1d5db;

  --pw-surface: #ffffff;
  --pw-surface-muted: #f8fafc;
  --pw-surface-dark: #111827;
  --pw-surface-dark-soft: #1f2937;

  --pw-radius-sm: 6px;
  --pw-radius-md: 10px;
  --pw-radius-lg: 14px;

  --pw-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --pw-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);

  --pw-container-padding: 1rem;
  --pw-transition: 150ms ease;
}


/* =========================================================
   GLOBAL PAGE STRUCTURE
   ========================================================= */

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--pw-text);
  background: var(--pw-surface);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.pw-main {
  flex: 1 0 auto;
  min-width: 0;
}

a {
  transition:
    color var(--pw-transition),
    background-color var(--pw-transition),
    border-color var(--pw-transition),
    box-shadow var(--pw-transition);
}

img {
  max-width: 100%;
}


/* =========================================================
   BOOTSTRAP COMPONENT ALIGNMENT
   ========================================================= */

.btn {
  border-radius: var(--pw-radius-sm);
  font-weight: 650;
}

.btn-primary {
  background-color: var(--pw-primary);
  border-color: var(--pw-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--pw-primary-hover) !important;
  border-color: var(--pw-primary-hover) !important;
}

.card {
  border-color: var(--pw-border);
}

.dropdown-menu {
  min-width: 14rem;
  padding: 0.45rem;
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius-md);
  box-shadow: var(--pw-shadow-md);
}

.dropdown-item {
  padding: 0.58rem 0.7rem;
  border-radius: var(--pw-radius-sm);
  color: var(--pw-text);
  font-size: 0.9rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--pw-heading);
  background: var(--pw-surface-muted);
}

.dropdown-divider {
  border-color: var(--pw-border);
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.pw-navbar {
  width: 100%;
  padding: 0.65rem 0;
  background: var(--pw-surface-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pw-navbar-container {
  max-width: 1500px;
  padding-left: 1rem;
  padding-right: 1rem;
}

.pw-navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0;
  margin-right: 1.5rem;
  color: #ffffff;
  text-decoration: none;
}

.pw-navbar-brand:hover,
.pw-navbar-brand:focus {
  color: #ffffff;
}

.pw-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 8px;
  background: var(--pw-primary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pw-brand-name {
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.pw-navbar-toggler {
  padding: 0.35rem 0.5rem;
  border-color: rgba(255, 255, 255, 0.2);
}

.pw-navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.3);
}

.pw-navbar-nav {
  gap: 0.15rem;
}

.pw-navbar .nav-link {
  padding: 0.55rem 0.68rem;
  border-radius: var(--pw-radius-sm);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  font-weight: 560;
}

.pw-navbar .nav-link:hover,
.pw-navbar .nav-link:focus,
.pw-navbar .nav-link.show {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.pw-navbar-cta-wrap {
  margin-left: 0.55rem;
}

.pw-navbar-cta {
  padding: 0.48rem 0.75rem;
  white-space: nowrap;
}

.pw-account-nav {
  margin-left: 0.45rem;
}

.pw-account-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.pw-account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 750;
}

.pw-account-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pw-account-summary {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--pw-muted);
  font-size: 0.78rem;
}

.pw-account-summary strong {
  max-width: 190px;
  overflow: hidden;
  color: var(--pw-heading);
  font-size: 0.88rem;
  text-overflow: ellipsis;
}

.pw-register-link {
  color: #ffffff !important;
}


/* =========================================================
   COOKIE NOTICE
   ========================================================= */

.pw-cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1080;
  display: none;
  max-width: 720px;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius-md);
  background: var(--pw-surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.pw-cookie-banner.is-visible {
  display: block;
}

.pw-cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pw-cookie-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--pw-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.pw-cookie-text strong {
  color: var(--pw-heading);
  font-size: 0.9rem;
}

.pw-cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 0 0 auto;
}

.pw-cookie-link {
  color: var(--pw-primary);
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
}

.pw-cookie-link:hover {
  color: var(--pw-primary-hover);
  text-decoration: underline;
}


/* =========================================================
   TABLE HELPERS
   ========================================================= */

.table-responsive,
.table-wide {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compact-table th,
.compact-table td {
  padding: 0.3rem 0.5rem;
  white-space: nowrap;
  font-size: 0.75rem;
}

th.sortable {
  position: relative;
  cursor: pointer;
  user-select: none;
}

th.sortable::after {
  margin-left: 0.3rem;
  color: currentColor;
  content: "↕";
  font-size: 0.7rem;
  opacity: 0.45;
}

th.sortable.asc::after {
  content: "↑";
  opacity: 1;
}

th.sortable.desc::after {
  content: "↓";
  opacity: 1;
}

th.sortable:focus-visible {
  outline: 2px solid var(--pw-primary);
  outline-offset: -2px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.pw-footer {
  flex-shrink: 0;
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--pw-border);
  background: var(--pw-surface-muted);
}

.pw-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(120px, 1fr));
  gap: 2rem;
}

.pw-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--pw-heading);
  font-weight: 750;
  text-decoration: none;
}

.pw-footer-brand:hover {
  color: var(--pw-heading);
}

.pw-footer-description {
  max-width: 320px;
  margin: 1rem 0 0;
  color: var(--pw-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.pw-footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pw-footer-heading {
  margin: 0 0 0.25rem;
  color: var(--pw-heading);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.pw-footer-column a {
  color: var(--pw-muted);
  font-size: 0.86rem;
  text-decoration: none;
}

.pw-footer-column a:hover {
  color: var(--pw-primary);
}

.pw-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--pw-border);
  color: var(--pw-muted);
  font-size: 0.78rem;
}


/* =========================================================
   RESPONSIVE NAVIGATION
   ========================================================= */

@media (max-width: 1199.98px) {
  .pw-navbar {
    padding: 0.7rem 0;
  }

  .pw-navbar-collapse {
    padding-top: 0.8rem;
  }

  .pw-navbar-nav {
    align-items: stretch !important;
    gap: 0.2rem;
    padding-top: 0.9rem;
  }

  .pw-navbar .nav-link {
    width: 100%;
    padding: 0.72rem 0.75rem;
  }

  .pw-navbar .dropdown-menu {
    margin: 0.15rem 0 0.45rem;
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
  }

  .pw-navbar .dropdown-item {
    padding: 0.65rem 0.8rem;
    color: rgba(255, 255, 255, 0.78);
  }

  .pw-navbar .dropdown-item:hover,
  .pw-navbar .dropdown-item:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
  }

  .pw-navbar .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.12);
  }

  .pw-navbar-cta-wrap {
    margin: 0.8rem 0 0.35rem;
  }

  .pw-navbar-cta {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0.7rem 0.9rem;
  }

  .pw-account-nav,
  .pw-login-link {
    margin: 0.45rem 0 0;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .pw-account-link {
    justify-content: flex-start;
  }

  .pw-account-name {
    max-width: none;
  }

  .pw-footer-grid {
    grid-template-columns: 1.4fr repeat(2, 1fr);
  }
}


@media (max-width: 767.98px) {
  .pw-cookie-content {
    flex-direction: column;
    align-items: stretch;
  }

  .pw-cookie-actions {
    justify-content: space-between;
  }

  .pw-footer {
    margin-top: 3rem;
    padding-top: 2.25rem;
  }

  .pw-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1.25rem;
  }

  .pw-footer-brand-column {
    grid-column: 1 / -1;
  }

  .pw-footer-bottom {
    flex-direction: column;
    gap: 0.35rem;
  }
}


@media (max-width: 479.98px) {
  .pw-navbar-container {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .pw-brand-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .pw-cookie-banner {
    right: 0.65rem;
    bottom: 0.65rem;
    left: 0.65rem;
  }

  .pw-cookie-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 0.55rem;
  }

  .pw-cookie-actions .btn {
    width: 100%;
  }

  .pw-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   HOMEPAGE
   Append this block to playerwon.css
   ========================================================= */

.pw-home {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.pw-home-hero {
  padding: 1.5rem 2rem;
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius-lg);
  background: var(--pw-surface-muted);
}

.pw-eyebrow {
  color: var(--pw-primary);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pw-home-hero-title {
  max-width: 760px;
  margin: 0.4rem 0 0.7rem;
  color: var(--pw-heading);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.pw-home-hero-copy {
  max-width: 730px;
  margin: 0 0 0.9rem;
  color: var(--pw-muted);
  font-size: 1.03rem;
  line-height: 1.65;
}

.pw-home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pw-home-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.25rem;
  color: var(--pw-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.pw-home-trust-row span {
  position: relative;
  padding-left: 0.85rem;
}

.pw-home-trust-row span::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pw-primary);
  content: "";
  transform: translateY(-50%);
}

.pw-card {
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius-lg);
  background: var(--pw-surface);
  box-shadow: var(--pw-shadow-sm);
}

.pw-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.pw-card-link:hover {
  color: inherit;
}

.pw-card-link .pw-card {
  transition: border-color var(--pw-transition), box-shadow var(--pw-transition);
}

.pw-card-link:hover .pw-card {
  border-color: var(--pw-border-strong);
  box-shadow: var(--pw-shadow-md);
}

.pw-home-overview {
  padding: 1rem;
}

.pw-home-overview-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.pw-home-overview-title {
  color: var(--pw-heading);
  font-size: 1rem;
  font-weight: 750;
}

.pw-home-overview-copy {
  margin-top: 0.2rem;
  color: var(--pw-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.pw-status-badge {
  align-self: flex-start;
  padding: 0.35rem 0.5rem;
  border: 1px solid #bfdbfe;
  border-radius: var(--pw-radius-sm);
  background: var(--pw-primary-soft);
  color: var(--pw-primary);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.pw-home-feature-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--pw-border);
}

.pw-home-feature {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--pw-border);
}

.pw-home-feature-number {
  color: var(--pw-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.pw-home-feature-title {
  color: var(--pw-heading);
  font-size: 0.88rem;
  font-weight: 700;
}

.pw-home-feature-copy {
  margin-top: 0.15rem;
  color: var(--pw-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.pw-home-free-note {
  margin-top: 1rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--pw-radius-sm);
  background: #ecfdf3;
  color: #166534;
  font-size: 0.82rem;
  font-weight: 650;
  text-align: center;
}

.pw-home-section {
  margin-top: 2.5rem;
}

.pw-home-section-compact {
  margin-top: 1.25rem;
}

.pw-section-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-end;
  margin-bottom: 1.15rem;
}

.pw-section-title {
  margin: 0.25rem 0 0.35rem;
  color: var(--pw-heading);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.025em;
}

.pw-section-copy {
  max-width: 760px;
  margin: 0;
  color: var(--pw-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.pw-section-link,
.pw-text-link {
  color: var(--pw-primary);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.pw-section-link:hover,
.pw-text-link:hover {
  color: var(--pw-primary-hover);
  text-decoration: underline;
}

.pw-section-meta {
  margin-bottom: 0.75rem;
  color: var(--pw-muted);
  font-size: 0.84rem;
}

.pw-result-snapshot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
}

.pw-result-date {
  color: var(--pw-muted);
  font-size: 0.84rem;
}

.pw-result-summary {
  text-align: right;
}

.pw-result-record {
  color: var(--pw-heading);
  font-size: 1.5rem;
  font-weight: 780;
}

.pw-result-detail {
  color: var(--pw-text);
  font-size: 0.88rem;
  font-weight: 600;
}

.pw-card-header,
.pw-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  color: var(--pw-muted);
  font-size: 0.8rem;
}

.pw-card-header {
  border-bottom: 1px solid var(--pw-border);
}

.pw-card-footer {
  border-top: 1px solid var(--pw-border);
}

.pw-card-footer-split {
  justify-content: space-between;
  padding: 1rem;
}

.pw-card-footer-title {
  color: var(--pw-heading);
  font-size: 0.9rem;
  font-weight: 700;
}

.pw-card-footer-copy {
  margin-top: 0.15rem;
  color: var(--pw-muted);
  font-size: 0.8rem;
}

.pw-mobile-games {
  display: none;
}

.pw-home-game-table {
  min-width: 900px;
  margin-bottom: 0;
}

.pw-home-game-table th {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--pw-border);
  background: var(--pw-surface-muted);
  color: var(--pw-muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pw-home-game-table td {
  padding: 1rem;
  border-color: var(--pw-border);
  text-align: center;
}

.pw-game-time {
  color: var(--pw-heading);
  font-size: 0.95rem;
  font-weight: 700;
}

.pw-desktop-matchup {
  display: grid;
  gap: 0.55rem;
}

.pw-desktop-team-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}

.pw-desktop-team-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 220px;
  color: var(--pw-heading);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.pw-desktop-team-link:hover {
  color: var(--pw-primary);
}

.pw-desktop-team-link img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.pw-desktop-team-data {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  white-space: nowrap;
}

.pw-desktop-versus {
  color: var(--pw-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pw-probability {
  color: var(--pw-heading);
  font-size: 0.98rem;
  font-weight: 780;
}

.pw-odds-line {
  color: var(--pw-muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.pw-current-pick-cell img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.pw-desktop-pick-actions,
.pw-mobile-pick-actions {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.pw-pick-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border: 1px solid var(--pw-border-strong);
  border-radius: var(--pw-radius-sm);
  background: var(--pw-surface);
  transition: border-color var(--pw-transition), background var(--pw-transition), box-shadow var(--pw-transition);
}

.pw-pick-button:hover {
  border-color: #94a3b8;
}

.pw-pick-button.active {
  border-color: var(--pw-primary);
  background: var(--pw-primary-soft);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.pw-pick-button img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.pw-lock-badge {
  display: inline-flex;
  padding: 0.35rem 0.5rem;
  border-radius: var(--pw-radius-sm);
  background: var(--pw-surface-muted);
  color: var(--pw-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.pw-home-leaderboard-table {
  min-width: 680px;
  margin-bottom: 0;
}

.pw-home-leaderboard-table th {
  padding: 0.75rem 1rem;
  background: var(--pw-surface-muted);
  color: var(--pw-muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pw-home-leaderboard-table td {
  padding: 0.85rem 1rem;
  border-color: var(--pw-border);
  text-align: center;
}

.pw-home-leaderboard-table th:nth-child(2),
.pw-home-leaderboard-table td:nth-child(2) {
  text-align: left;
}

.pw-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pw-surface-muted);
  color: var(--pw-heading);
  font-size: 0.78rem;
  font-weight: 750;
}

.pw-username-cell {
  color: var(--pw-heading);
  font-weight: 650;
}

.pw-accuracy-badge {
  display: inline-flex;
  padding: 0.35rem 0.5rem;
  border-radius: var(--pw-radius-sm);
  background: #ecfdf3;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 750;
}

.pw-positive {
  color: #15803d;
  font-weight: 700;
}

.pw-negative {
  color: #b91c1c;
  font-weight: 700;
}

.pw-neutral {
  color: var(--pw-muted);
  font-weight: 700;
}

.pw-model-summary {
  overflow: hidden;
}

.pw-model-summary-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--pw-border);
  color: var(--pw-muted);
  font-size: 0.8rem;
}

.pw-model-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  padding: 1rem;
}

.pw-model-panel {
  padding: 1rem;
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius-md);
  background: var(--pw-surface-muted);
}

.pw-model-panel-primary {
  border-color: #bfdbfe;
  background: var(--pw-primary-soft);
}

.pw-model-panel-title {
  color: var(--pw-heading);
  font-size: 1rem;
  font-weight: 750;
}

.pw-model-panel-copy {
  margin-top: 0.15rem;
  color: var(--pw-muted);
  font-size: 0.8rem;
}

.pw-model-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.pw-model-metrics div {
  text-align: center;
}

.pw-model-metrics strong {
  display: block;
  color: var(--pw-heading);
  font-size: 1.25rem;
  font-weight: 780;
}

.pw-model-metrics span {
  display: block;
  margin-top: 0.15rem;
  color: var(--pw-muted);
  font-size: 0.72rem;
}

.pw-model-note,
.pw-model-empty {
  margin-top: 0.9rem;
  color: var(--pw-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.pw-empty-state {
  padding: 2.5rem 1.25rem;
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius-lg);
  background: var(--pw-surface-muted);
  text-align: center;
}

.pw-empty-state-title {
  color: var(--pw-heading);
  font-size: 1rem;
  font-weight: 700;
}

.pw-empty-state-copy {
  max-width: 640px;
  margin: 0.35rem auto 0;
  color: var(--pw-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

@media (max-width: 991.98px) {
  .pw-home {
    padding-top: 1.25rem;
  }

  .pw-home-hero {
    padding: 1.5rem;
  }

  .pw-home-hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .pw-desktop-games {
    display: none;
  }

  .pw-mobile-games {
    display: block;
  }

  .pw-mobile-game {
    padding: 1rem;
    border-bottom: 1px solid var(--pw-border);
  }

  .pw-mobile-game:last-child {
    border-bottom: 0;
  }

  .pw-mobile-game-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
  }

  .pw-mobile-game-time {
    color: var(--pw-heading);
    font-size: 0.88rem;
    font-weight: 700;
  }

  .pw-mobile-game-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 1rem;
  }

  .pw-mobile-teams {
    min-width: 0;
  }

  .pw-mobile-team-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
  }

  .pw-mobile-team-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    color: var(--pw-heading);
    font-size: 0.85rem;
    font-weight: 650;
    text-decoration: none;
  }

  .pw-mobile-team-link img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex: 0 0 auto;
  }

  .pw-mobile-team-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pw-mobile-team-data {
    text-align: right;
  }

  .pw-mobile-versus {
    margin: 0.4rem 0;
    padding-left: 2.65rem;
    color: var(--pw-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .pw-mobile-pick-panel {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
  }

  .pw-mobile-current-pick {
    width: 100%;
    padding: 0.55rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    background: var(--pw-surface-muted);
    text-align: center;
  }

  .pw-mobile-current-pick img {
    width: 30px;
    height: 30px;
    object-fit: contain;
  }

  .pw-mobile-pick-label {
    margin-bottom: 0.25rem;
    color: var(--pw-muted);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .pw-mobile-no-pick {
    color: var(--pw-muted);
  }

  .pw-pick-button img {
    width: 28px;
    height: 28px;
  }

  .pw-model-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .pw-home-section {
    margin-top: 3rem;
  }

  .pw-section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }

  .pw-result-snapshot {
    align-items: flex-start;
    flex-direction: column;
  }

  .pw-result-summary {
    text-align: left;
  }

  .pw-card-footer-split {
    align-items: flex-start;
    flex-direction: column;
  }

  .pw-model-summary-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (max-width: 575.98px) {
  .pw-home {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .pw-home-hero {
    padding: 1.15rem;
  }

  .pw-home-hero-copy {
    font-size: 0.92rem;
  }

  .pw-home-hero-actions {
    display: grid;
  }

  .pw-home-hero-actions .btn {
    width: 100%;
  }

  .pw-home-overview {
    padding: 1rem;
  }

  .pw-mobile-game-body {
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 0.7rem;
  }

  .pw-mobile-team-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.3rem;
  }

  .pw-mobile-team-data {
    padding-left: 2.65rem;
    text-align: left;
  }

  .pw-mobile-pick-actions {
    flex-direction: column;
  }

  .pw-card-footer {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .pw-model-metrics {
    gap: 0.45rem;
  }

  .pw-model-metrics strong {
    font-size: 1.05rem;
  }
}

/* =========================================================
   MOBILE LEADERBOARD
   ========================================================= */

@media (max-width: 575.98px) {
  .pw-home-leaderboard-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  /* Hide Correct and Vs model on small phones */
  .pw-home-leaderboard-table th:nth-child(4),
  .pw-home-leaderboard-table td:nth-child(4),
  .pw-home-leaderboard-table th:nth-child(6),
  .pw-home-leaderboard-table td:nth-child(6) {
    display: none;
  }

  .pw-home-leaderboard-table th,
  .pw-home-leaderboard-table td {
    padding: 0.7rem 0.45rem;
    font-size: 0.78rem;
  }

  .pw-home-leaderboard-table th:nth-child(1),
  .pw-home-leaderboard-table td:nth-child(1) {
    width: 16%;
    text-align: center;
  }

  .pw-home-leaderboard-table th:nth-child(2),
  .pw-home-leaderboard-table td:nth-child(2) {
    width: 42%;
    text-align: left;
  }

  .pw-home-leaderboard-table th:nth-child(3),
  .pw-home-leaderboard-table td:nth-child(3) {
    width: 18%;
    text-align: center;
  }

  .pw-home-leaderboard-table th:nth-child(5),
  .pw-home-leaderboard-table td:nth-child(5) {
    width: 24%;
    text-align: center;
  }

  .pw-username-cell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pw-rank-badge {
    width: 27px;
    height: 27px;
    font-size: 0.72rem;
  }

  .pw-accuracy-badge {
    padding: 0.3rem 0.4rem;
    font-size: 0.72rem;
  }
}

/* =========================================================
   SCHEDULE PAGE
   ========================================================= */

.pw-schedule-page {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.pw-page-header {
  margin-bottom: 1.5rem;
}

.pw-page-title {
  margin: 0.25rem 0 0.45rem;
  color: var(--pw-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 760;
  letter-spacing: -0.035em;
}

.pw-page-subtitle {
  max-width: 820px;
  margin: 0;
  color: var(--pw-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.pw-filter-card {
  margin-bottom: 1.5rem;
  padding: 1rem;
}

.pw-filter-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--pw-heading);
  font-size: 0.8rem;
  font-weight: 700;
}

.pw-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pw-schedule-results {
  overflow: hidden;
}

.pw-schedule-mobile-list {
  display: none;
}

.pw-schedule-table {
  min-width: 920px;
  margin-bottom: 0;
}

.pw-schedule-table th {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--pw-border);
  background: var(--pw-surface-muted);
  color: var(--pw-muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pw-schedule-table td {
  padding: 1rem;
  border-color: var(--pw-border);
  text-align: center;
}

.pw-schedule-table tr.is-locked {
  background: #fafafa;
}

.pw-schedule-date {
  color: var(--pw-muted);
  font-size: 0.82rem;
}

.pw-schedule-time {
  margin: 0.2rem 0 0.35rem;
  color: var(--pw-heading);
  font-size: 0.95rem;
  font-weight: 700;
}

.pw-schedule-lock-note {
  margin-top: 0.7rem;
  color: var(--pw-muted);
  font-size: 0.75rem;
}

.pw-pagination-wrap {
  margin-top: 1.25rem;
}

.pw-pagination-wrap .pagination {
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0;
}

.pw-pagination-wrap .page-link {
  border-radius: var(--pw-radius-sm);
}

.pw-related-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--pw-border);
}

@media (max-width: 991.98px) {
  .pw-schedule-page {
    padding-top: 1.25rem;
  }

  .pw-schedule-desktop-view {
    display: none;
  }

  .pw-schedule-mobile-list {
    display: block;
  }

  .pw-schedule-mobile-game {
    padding: 1rem;
    border-bottom: 1px solid var(--pw-border);
  }

  .pw-schedule-mobile-game:last-child {
    border-bottom: 0;
  }

  .pw-schedule-mobile-game.is-locked {
    background: #fafafa;
  }

  .pw-schedule-mobile-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
  }

  .pw-schedule-mobile-date {
    color: var(--pw-muted);
    font-size: 0.78rem;
    font-weight: 600;
  }

  .pw-schedule-mobile-time {
    margin-top: 0.15rem;
    color: var(--pw-heading);
    font-size: 0.9rem;
    font-weight: 700;
  }

  .pw-schedule-mobile-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 1rem;
  }

  .pw-schedule-mobile-teams {
    min-width: 0;
  }

  .pw-schedule-mobile-team-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
  }

  .pw-schedule-mobile-team-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    color: var(--pw-heading);
    font-size: 0.85rem;
    font-weight: 650;
    text-decoration: none;
  }

  .pw-schedule-mobile-team-link:hover {
    color: var(--pw-primary);
  }

  .pw-schedule-mobile-team-link img {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    object-fit: contain;
  }

  .pw-schedule-mobile-team-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pw-schedule-mobile-team-data {
    text-align: right;
  }

  .pw-schedule-mobile-versus {
    margin: 0.4rem 0;
    padding-left: 2.8rem;
    color: var(--pw-muted);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .pw-schedule-mobile-pick-panel {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
  }
}

@media (max-width: 767.98px) {
  .pw-filter-card {
    padding: 0.9rem;
  }

  .pw-page-title {
    font-size: 1.65rem;
  }

  .pw-page-subtitle {
    font-size: 0.88rem;
  }
}

@media (max-width: 575.98px) {
  .pw-schedule-page {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .pw-schedule-mobile-game {
    padding: 0.85rem;
  }

  .pw-schedule-mobile-body {
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 0.7rem;
  }

  .pw-schedule-mobile-team-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.3rem;
  }

  .pw-schedule-mobile-team-data {
    padding-left: 2.8rem;
    text-align: left;
  }

  .pw-schedule-mobile-pick-panel .pw-mobile-pick-actions {
    flex-direction: column;
  }

  .pw-related-links {
    justify-content: flex-start;
  }
}


/* =========================================================
   STANDINGS PAGE
   ========================================================= */

.pw-standings-page {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.pw-standings-controls {
  margin-bottom: 1rem;
  padding: 1rem;
}

.pw-standings-switch {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  min-height: 38px;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius-sm);
  background: var(--pw-surface-muted);
}

.pw-standings-switch-title {
  color: var(--pw-heading);
  font-size: 0.82rem;
  font-weight: 700;
}

.pw-standings-switch-copy {
  margin-top: 0.1rem;
  color: var(--pw-muted);
  font-size: 0.72rem;
}

.pw-view-tabs {
  display: inline-flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  padding: 0.25rem;
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius-md);
  background: var(--pw-surface-muted);
}

.pw-view-tab {
  padding: 0.55rem 0.85rem;
  border-radius: var(--pw-radius-sm);
  color: var(--pw-muted);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.pw-view-tab:hover {
  color: var(--pw-heading);
  background: var(--pw-surface);
}

.pw-view-tab.is-active {
  background: var(--pw-primary);
  color: #ffffff;
  box-shadow: var(--pw-shadow-sm);
}

.pw-standings-content {
  display: grid;
  gap: 1.5rem;
}

.pw-standings-group {
  display: grid;
  gap: 0.65rem;
}

.pw-standings-group-header h2 {
  margin: 0;
  color: var(--pw-heading);
  font-size: 1.1rem;
  font-weight: 750;
}

.pw-standings-table-card {
  overflow: hidden;
}

.pw-standings-table {
  min-width: 760px;
  margin-bottom: 0;
}

.pw-standings-table th {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--pw-border);
  background: var(--pw-surface-dark);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.pw-standings-table td {
  padding: 0.75rem 0.85rem;
  border-color: var(--pw-border);
  color: var(--pw-text);
  font-size: 0.84rem;
  text-align: center;
  white-space: nowrap;
}

.pw-standings-table tbody tr:nth-child(even) {
  background: var(--pw-surface-muted);
}

.pw-rank-column {
  width: 70px;
}

.pw-team-column {
  min-width: 220px;
  text-align: left !important;
}

.pw-standings-team-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--pw-heading);
  font-weight: 650;
  text-decoration: none;
}

.pw-standings-team-link:hover {
  color: var(--pw-primary);
}

.pw-standings-team-link img {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  object-fit: contain;
}

.pw-standings-team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .pw-standings-page {
    padding-top: 1.25rem;
  }

  .pw-standings-table {
    min-width: 700px;
  }

  .pw-standings-table th,
  .pw-standings-table td {
    padding: 0.65rem 0.7rem;
    font-size: 0.78rem;
  }

  .pw-team-column {
    min-width: 180px;
  }
}

@media (max-width: 575.98px) {
  .pw-standings-page {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .pw-view-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .pw-view-tab {
    text-align: center;
  }

  .pw-standings-switch-copy {
    display: none;
  }

  .pw-standings-table {
    min-width: 620px;
  }

  .pw-standings-table th,
  .pw-standings-table td {
    padding: 0.6rem 0.6rem;
    font-size: 0.74rem;
  }

  .pw-rank-column {
    width: 54px;
  }

  .pw-team-column {
    min-width: 120px;
  }

  .pw-standings-team-link img {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .pw-standings-team-name {
    display: none;
  }
}

/* =========================================================
   GAME LOG AND GAME DETAIL
   ========================================================= */

.pw-game-log-page,
.pw-game-detail-page {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.pw-game-log-results {
  overflow: hidden;
  margin-top: 1.5rem;
}

.pw-game-log-scroll {
  max-height: 70vh;
  overflow-y: auto;
}

.pw-game-log-table {
  min-width: 760px;
  margin-bottom: 0;
}

.pw-game-log-table th,
.pw-player-boxscore-table th {
  padding: 0.72rem 0.8rem;
  background: var(--pw-surface-dark);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.pw-game-log-table td {
  padding: 0.7rem 0.8rem;
  border-color: var(--pw-border);
  font-size: 0.82rem;
  text-align: center;
  white-space: nowrap;
}

.pw-game-log-table tbody tr:nth-child(even),
.pw-player-boxscore-table tbody tr:nth-child(even) {
  background: var(--pw-surface-muted);
}

.pw-game-log-team {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--pw-heading);
  font-weight: 650;
  text-decoration: none;
}

.pw-game-log-team:hover {
  color: var(--pw-primary);
}

.pw-game-log-team img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.pw-game-log-score {
  display: inline-flex;
  gap: 0.35rem;
  font-weight: 700;
}

.pw-game-log-score .is-winner {
  color: #166534;
}

.pw-game-log-score .is-loser {
  color: var(--pw-muted);
}

.pw-game-log-score-divider {
  color: var(--pw-muted);
}

.pw-table-empty {
  padding: 1rem;
  color: var(--pw-muted);
  text-align: center;
}

.pw-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
  color: var(--pw-muted);
  font-size: 0.8rem;
}

.pw-breadcrumb a {
  color: var(--pw-muted);
  text-decoration: none;
}

.pw-breadcrumb a:hover {
  color: var(--pw-primary);
}

.pw-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pw-game-score-card {
  margin-bottom: 1.5rem;
  padding: 1.4rem;
}

.pw-game-score-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.pw-game-score-team {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  align-items: center;
  color: var(--pw-heading);
  font-size: 1.1rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.pw-game-score-team:hover {
  color: var(--pw-primary);
}

.pw-game-score-team img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.pw-game-score-center {
  min-width: 130px;
  text-align: center;
}

.pw-game-status {
  color: var(--pw-muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pw-game-score {
  margin-top: 0.25rem;
  color: var(--pw-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.pw-game-score-meta {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pw-border);
}

.pw-game-score-meta div {
  text-align: center;
}

.pw-game-score-meta span {
  display: block;
  color: var(--pw-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pw-game-score-meta strong {
  display: block;
  margin-top: 0.15rem;
  color: var(--pw-heading);
  font-size: 0.92rem;
}

.pw-game-score-copy {
  max-width: 850px;
  margin: 1rem auto 0;
  color: var(--pw-muted);
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: center;
}

.pw-game-score-copy a {
  color: var(--pw-primary);
  text-decoration: none;
}

.pw-team-boxscore {
  height: 100%;
  overflow: hidden;
}

.pw-team-boxscore-header {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--pw-border);
  background: var(--pw-surface-muted);
}

.pw-team-boxscore-title {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  align-items: center;
  color: var(--pw-heading);
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
}

.pw-team-boxscore-title img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.pw-goalie-list {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
}

.pw-goalie-summary {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius-sm);
  background: var(--pw-surface-muted);
  color: var(--pw-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.pw-goalie-summary a {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--pw-heading);
  font-weight: 700;
  text-decoration: none;
}

.pw-player-boxscore-table {
  min-width: 680px;
  margin-bottom: 0;
}

.pw-player-boxscore-table td {
  padding: 0.6rem 0.7rem;
  border-color: var(--pw-border);
  font-size: 0.76rem;
  text-align: center;
  white-space: nowrap;
}

.pw-player-boxscore-table td:first-child {
  text-align: left;
}

.pw-player-boxscore-table td a {
  color: var(--pw-heading);
  font-weight: 600;
  text-decoration: none;
}

.pw-player-boxscore-table td a:hover {
  color: var(--pw-primary);
}

@media (max-width: 767.98px) {
  .pw-game-log-page,
  .pw-game-detail-page {
    padding-top: 1.25rem;
  }

  .pw-game-score-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .pw-game-score-team {
    flex-direction: column;
    gap: 0.25rem;
  }

  .pw-game-score-center {
    order: -1;
  }

  .pw-game-score {
    font-size: 1.8rem;
  }

  .pw-game-score-meta {
    gap: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .pw-game-log-page,
  .pw-game-detail-page {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .pw-game-log-table {
    min-width: 520px;
  }

  .pw-game-log-table th,
  .pw-game-log-table td {
    padding: 0.6rem 0.55rem;
    font-size: 0.74rem;
  }

  .pw-game-log-team span {
    display: none;
  }

  .pw-game-log-team img {
    width: 30px;
    height: 30px;
  }

  .pw-game-log-shots {
    display: none;
  }

  .pw-game-score-card {
    padding: 1rem;
  }

  .pw-game-score-meta {
    flex-direction: column;
    gap: 0.65rem;
  }

  .pw-game-score-copy {
    font-size: 0.78rem;
  }
}

/* Mobile game log: fit table to screen */
@media (max-width: 575.98px) {
  .pw-game-log-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .pw-game-log-table th,
  .pw-game-log-table td {
    padding: 0.55rem 0.3rem;
    font-size: 0.7rem;
  }

  .pw-game-log-table th:nth-child(1),
  .pw-game-log-table td:nth-child(1) {
    width: 28%;
  }

  .pw-game-log-table th:nth-child(2),
  .pw-game-log-table td:nth-child(2),
  .pw-game-log-table th:nth-child(3),
  .pw-game-log-table td:nth-child(3) {
    width: 14%;
  }

  .pw-game-log-table th:nth-child(4),
  .pw-game-log-table td:nth-child(4) {
    width: 18%;
  }

  .pw-game-log-table th:nth-child(6),
  .pw-game-log-table td:nth-child(6) {
    width: 26%;
  }

  .pw-game-log-table .btn {
    padding: 0.3rem 0.45rem;
    font-size: 0.68rem;
  }

  .pw-game-log-team {
    justify-content: center;
  }
}

/* Mobile game-detail tables: fit all columns on screen */
@media (max-width: 575.98px) {
  .pw-player-boxscore-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .pw-player-boxscore-table th,
  .pw-player-boxscore-table td {
    padding: 0.42rem 0.15rem;
    font-size: 0.65rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pw-player-boxscore-table th:first-child,
  .pw-player-boxscore-table td:first-child {
    width: 34%;
    padding-left: 0.4rem;
    text-align: left;
    white-space: nowrap;
  }

  .pw-player-boxscore-table th:nth-child(2),
  .pw-player-boxscore-table td:nth-child(2) {
    width: 8%;
  }

  .pw-player-boxscore-table th:nth-child(3),
  .pw-player-boxscore-table td:nth-child(3),
  .pw-player-boxscore-table th:nth-child(4),
  .pw-player-boxscore-table td:nth-child(4),
  .pw-player-boxscore-table th:nth-child(5),
  .pw-player-boxscore-table td:nth-child(5),
  .pw-player-boxscore-table th:nth-child(6),
  .pw-player-boxscore-table td:nth-child(6),
  .pw-player-boxscore-table th:nth-child(7),
  .pw-player-boxscore-table td:nth-child(7),
  .pw-player-boxscore-table th:nth-child(8),
  .pw-player-boxscore-table td:nth-child(8),
  .pw-player-boxscore-table th:nth-child(9),
  .pw-player-boxscore-table td:nth-child(9) {
    width: 6%;
  }

  .pw-player-boxscore-table th:nth-child(10),
  .pw-player-boxscore-table td:nth-child(10) {
    width: 10%;
  }
}

/* =========================================================
   PLAYER STATS PAGE
   ========================================================= */

.pw-player-stats-page {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.pw-player-stats-results {
  overflow: hidden;
  margin-top: 1.5rem;
}

.pw-player-mobile-list {
  display: none;
}

.pw-player-stats-table {
  min-width: 860px;
  margin-bottom: 0;
}

.pw-player-stats-table th {
  padding: 0.72rem 0.75rem;
  border-bottom: 1px solid var(--pw-border);
  background: var(--pw-surface-dark);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.pw-player-stats-table td {
  padding: 0.72rem 0.75rem;
  border-color: var(--pw-border);
  font-size: 0.82rem;
  text-align: center;
  white-space: nowrap;
}

.pw-player-stats-table tbody tr:nth-child(even) {
  background: var(--pw-surface-muted);
}

.pw-player-name-column {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 200px;
  width: 200px;
  background: var(--pw-surface) !important;
  box-shadow: 1px 0 0 var(--pw-border);
  text-align: left !important;
}

.pw-player-stats-table thead .pw-player-name-column {
  z-index: 4;
  background: var(--pw-surface-dark) !important;
}

.pw-player-stats-table tbody tr:nth-child(even) .pw-player-name-column {
  background: var(--pw-surface-muted) !important;
}

.pw-sort-link {
  color: #fff;
  text-decoration: none;
}

.pw-sort-link:hover {
  color: #fff;
  text-decoration: underline;
}

.pw-player-table-name {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
}

.pw-player-team-logo {
  display: inline-flex;
  flex: 0 0 auto;
}

.pw-player-team-logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.pw-player-table-link {
  overflow: hidden;
  color: var(--pw-heading);
  font-weight: 650;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pw-player-table-link:hover {
  color: var(--pw-primary);
}

@media (max-width: 767.98px) {
  .pw-player-stats-page {
    padding-top: 1.25rem;
  }

  .pw-player-desktop-view {
    display: none;
  }

  .pw-player-mobile-list {
    display: block;
  }

  .pw-player-mobile-card {
    padding: 1rem;
    border-bottom: 1px solid var(--pw-border);
  }

  .pw-player-mobile-card:last-child {
    border-bottom: 0;
  }

  .pw-player-mobile-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.9rem;
  }

  .pw-player-mobile-name {
    display: block;
    color: var(--pw-heading);
    font-size: 0.98rem;
    font-weight: 750;
    text-decoration: none;
  }

  .pw-player-mobile-team {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.35rem;
    color: var(--pw-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
  }

  .pw-player-mobile-team img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  .pw-player-mobile-points {
    min-width: 58px;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    background: var(--pw-surface-muted);
    text-align: center;
  }

  .pw-player-mobile-points strong,
  .pw-player-mobile-points span {
    display: block;
  }

  .pw-player-mobile-points strong {
    color: var(--pw-heading);
    font-size: 1rem;
  }

  .pw-player-mobile-points span {
    margin-top: 0.1rem;
    color: var(--pw-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
  }

  .pw-player-mobile-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem 0.5rem;
  }

  .pw-player-mobile-grid div {
    min-width: 0;
    text-align: center;
  }

  .pw-player-mobile-grid span,
  .pw-player-mobile-grid strong {
    display: block;
  }

  .pw-player-mobile-grid span {
    color: var(--pw-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .pw-player-mobile-grid strong {
    margin-top: 0.1rem;
    color: var(--pw-heading);
    font-size: 0.84rem;
  }
}

@media (max-width: 575.98px) {
  .pw-player-stats-page {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .pw-player-mobile-card {
    padding: 0.85rem;
  }

  .pw-player-mobile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .pw-player-mobile-grid div {
    padding: 0.5rem 0.55rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    background: var(--pw-surface-muted);
    text-align: left;
  }
}

/* =========================================================
   GOALIE STATS PAGE
   Append this block to playerwon.css
   ========================================================= */

.pw-goalie-stats-page {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.pw-goalie-stats-results {
  overflow: hidden;
  margin-top: 1.5rem;
}

.pw-goalie-mobile-list {
  display: none;
}

.pw-goalie-stats-table {
  min-width: 860px;
  margin-bottom: 0;
}

.pw-goalie-stats-table th {
  padding: 0.72rem 0.75rem;
  border-bottom: 1px solid var(--pw-border);
  background: var(--pw-surface-dark);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.pw-goalie-stats-table td {
  padding: 0.72rem 0.75rem;
  border-color: var(--pw-border);
  color: var(--pw-text);
  font-size: 0.82rem;
  text-align: center;
  white-space: nowrap;
}

.pw-goalie-stats-table tbody tr:nth-child(even) {
  background: var(--pw-surface-muted);
}

.pw-goalie-name-column {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 200px;
  width: 200px;
  background: var(--pw-surface) !important;
  box-shadow: 1px 0 0 var(--pw-border);
  text-align: left !important;
}

.pw-goalie-stats-table thead .pw-goalie-name-column {
  z-index: 4;
  background: var(--pw-surface-dark) !important;
}

.pw-goalie-stats-table tbody tr:nth-child(even) .pw-goalie-name-column {
  background: var(--pw-surface-muted) !important;
}

.pw-goalie-table-name {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
}

.pw-goalie-team-logo {
  display: inline-flex;
  flex: 0 0 auto;
}

.pw-goalie-team-logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.pw-goalie-table-link {
  overflow: hidden;
  color: var(--pw-heading);
  font-weight: 650;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pw-goalie-table-link:hover {
  color: var(--pw-primary);
}

@media (max-width: 767.98px) {
  .pw-goalie-stats-page {
    padding-top: 1.25rem;
  }

  .pw-goalie-desktop-view {
    display: none;
  }

  .pw-goalie-mobile-list {
    display: block;
  }

  .pw-goalie-mobile-card {
    padding: 1rem;
    border-bottom: 1px solid var(--pw-border);
  }

  .pw-goalie-mobile-card:last-child {
    border-bottom: 0;
  }

  .pw-goalie-mobile-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.9rem;
  }

  .pw-goalie-mobile-name {
    display: block;
    color: var(--pw-heading);
    font-size: 0.98rem;
    font-weight: 750;
    line-height: 1.25;
    text-decoration: none;
  }

  .pw-goalie-mobile-name:hover {
    color: var(--pw-primary);
  }

  .pw-goalie-mobile-team {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.35rem;
    color: var(--pw-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
  }

  .pw-goalie-mobile-team img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  .pw-goalie-mobile-save {
    min-width: 66px;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    background: var(--pw-surface-muted);
    text-align: center;
  }

  .pw-goalie-mobile-save strong {
    display: block;
    color: var(--pw-heading);
    font-size: 0.98rem;
  }

  .pw-goalie-mobile-save span {
    display: block;
    margin-top: 0.1rem;
    color: var(--pw-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
  }

  .pw-goalie-mobile-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem 0.5rem;
  }

  .pw-goalie-mobile-grid div {
    min-width: 0;
    text-align: center;
  }

  .pw-goalie-mobile-grid span {
    display: block;
    color: var(--pw-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .pw-goalie-mobile-grid strong {
    display: block;
    margin-top: 0.1rem;
    color: var(--pw-heading);
    font-size: 0.84rem;
  }
}

@media (max-width: 575.98px) {
  .pw-goalie-stats-page {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .pw-goalie-mobile-card {
    padding: 0.85rem;
  }

  .pw-goalie-mobile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .pw-goalie-mobile-grid div {
    padding: 0.5rem 0.55rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    background: var(--pw-surface-muted);
    text-align: left;
  }
}

/* =========================================================
   AUTH PAGES - login
   ========================================================= */

.pw-auth-page {
  display: flex;
  align-items: center;
  min-height: 72vh;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pw-auth-shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.pw-auth-back {
  margin-bottom: 0.75rem;
  text-align: center;
}

.pw-auth-card {
  padding: 1.5rem;
}

.pw-auth-header {
  text-align: center;
}

.pw-auth-title {
  margin: 0.35rem 0 0.45rem;
  color: var(--pw-heading);
  font-size: 1.85rem;
  font-weight: 780;
  letter-spacing: -0.03em;
}

.pw-auth-subtitle {
  max-width: 430px;
  margin: 0 auto;
  color: var(--pw-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.pw-auth-free-note {
  margin: 1.15rem 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid #bbf7d0;
  border-radius: var(--pw-radius-sm);
  background: #f0fdf4;
  color: #166534;
  font-size: 0.82rem;
  font-weight: 650;
  text-align: center;
}

.pw-auth-messages {
  margin-bottom: 1rem;
}

.pw-auth-form {
  display: grid;
  gap: 1rem;
}

.pw-auth-card .form-control {
  min-height: 46px;
  border-color: var(--pw-border-strong);
  border-radius: var(--pw-radius-sm);
}

.pw-auth-card .form-control:focus {
  border-color: var(--pw-primary);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.pw-auth-submit {
  min-height: 46px;
  font-weight: 700;
}

.pw-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
  color: var(--pw-muted);
  font-size: 0.78rem;
}

.pw-auth-divider::before,
.pw-auth-divider::after {
  flex: 1;
  height: 1px;
  background: var(--pw-border);
  content: "";
}

.pw-auth-footer {
  margin-top: 1rem;
  text-align: center;
}

@media (max-width: 575.98px) {
  .pw-auth-page {
    min-height: auto;
    padding: 1.25rem 0.75rem 1rem;
  }

  .pw-auth-card {
    padding: 1.1rem;
  }

  .pw-auth-title {
    font-size: 1.55rem;
  }

  .pw-auth-subtitle {
    font-size: 0.84rem;
  }
}

/* =========================================================
   REGISTER PAGE
   ========================================================= */

.pw-auth-shell-wide {
  max-width: 620px;
}

.pw-auth-benefits {
  display: grid;
  gap: 0.65rem;
  margin: 1.15rem 0;
}

.pw-auth-benefits > div {
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius-sm);
  background: var(--pw-surface-muted);
}

.pw-auth-benefits strong {
  display: block;
  color: var(--pw-heading);
  font-size: 0.84rem;
  font-weight: 700;
}

.pw-auth-benefits span {
  display: block;
  margin-top: 0.15rem;
  color: var(--pw-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.pw-auth-legal,
.pw-auth-help {
  color: var(--pw-muted);
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: center;
}

.pw-auth-legal {
  margin-top: 1rem;
}

.pw-auth-help {
  margin-top: 0.65rem;
}

.pw-auth-legal a,
.pw-auth-help a {
  color: var(--pw-primary);
  text-decoration: none;
}

.pw-auth-legal a:hover,
.pw-auth-help a:hover {
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .pw-auth-benefits {
    gap: 0.5rem;
  }

  .pw-auth-benefits > div {
    padding: 0.65rem 0.7rem;
  }
}

/* =========================================================
   terms
   ========================================================= */

.pw-legal-page {
  max-width: 980px;
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.pw-legal-header {
  margin-bottom: 1.25rem;
}

.pw-legal-notice {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--pw-surface-muted);
}

.pw-legal-notice-title {
  margin-bottom: 0.25rem;
  color: var(--pw-heading);
  font-size: 0.85rem;
  font-weight: 750;
}

.pw-legal-notice p {
  margin: 0;
  color: var(--pw-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.pw-legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pw-legal-section {
  padding: 1.15rem;
}

.pw-legal-section h2,
.pw-legal-related h2 {
  margin: 0 0 0.75rem;
  color: var(--pw-heading);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.3;
}

.pw-legal-section p,
.pw-legal-section li,
.pw-legal-related p {
  color: var(--pw-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.pw-legal-section ul {
  margin: 0;
  padding-left: 1.1rem;
}

.pw-legal-section li + li {
  margin-top: 0.45rem;
}

.pw-legal-section-wide {
  margin-top: 1rem;
}

.pw-legal-section-wide p {
  margin: 0;
}

.pw-legal-related {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.15rem;
  background: var(--pw-surface-muted);
}

.pw-legal-related p {
  max-width: 560px;
  margin: 0;
}

.pw-legal-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 0 auto;
}

@media (max-width: 767.98px) {
  .pw-legal-page {
    padding-top: 1.25rem;
  }

  .pw-legal-grid {
    grid-template-columns: 1fr;
  }

  .pw-legal-related {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .pw-legal-page {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .pw-legal-section,
  .pw-legal-notice,
  .pw-legal-related {
    padding: 1rem;
  }

  .pw-legal-related-links {
    display: grid;
    width: 100%;
  }

  .pw-legal-related-links .btn {
    width: 100%;
  }
}

/* =========================================================
   TRANSPARENCY PAGE
   ========================================================= */

.pw-transparency-page {
  max-width: 1100px;
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.pw-transparency-header {
  margin-bottom: 1.25rem;
}

.pw-transparency-header-row {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
}

.pw-transparency-status {
  flex: 0 0 260px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius-md);
  background: var(--pw-surface-muted);
}

.pw-transparency-status span,
.pw-transparency-status strong {
  display: block;
}

.pw-transparency-status span {
  color: var(--pw-muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pw-transparency-status strong {
  margin-top: 0.2rem;
  color: var(--pw-heading);
  font-size: 0.82rem;
  line-height: 1.4;
}

.pw-transparency-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pw-transparency-summary-card {
  padding: 1rem;
}

.pw-transparency-summary-label {
  color: var(--pw-primary);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pw-transparency-summary-card h2 {
  margin: 0.35rem 0 0.45rem;
  color: var(--pw-heading);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.35;
}

.pw-transparency-summary-card p {
  margin: 0;
  color: var(--pw-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.pw-transparency-section {
  margin-top: 3rem;
  scroll-margin-top: 100px;
}

.pw-process-card {
  overflow: hidden;
}

.pw-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pw-process-step {
  padding: 1rem;
  border-right: 1px solid var(--pw-border);
}

.pw-process-step:last-child {
  border-right: 0;
}

.pw-process-step > span {
  color: var(--pw-primary);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.pw-process-step h3 {
  margin: 0.4rem 0 0.35rem;
  color: var(--pw-heading);
  font-size: 0.95rem;
  font-weight: 750;
}

.pw-process-step p {
  margin: 0;
  color: var(--pw-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.pw-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pw-source-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

.pw-source-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.pw-source-card-header h3 {
  margin: 0;
  color: var(--pw-heading);
  font-size: 0.98rem;
  font-weight: 750;
}

.pw-source-card-header span {
  color: var(--pw-muted);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.pw-source-card p {
  margin: 0;
  color: var(--pw-muted);
  font-size: 0.79rem;
  line-height: 1.5;
}

.pw-source-endpoint {
  display: block;
  overflow-x: auto;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius-sm);
  background: var(--pw-surface-muted);
  color: var(--pw-text);
  font-size: 0.7rem;
  line-height: 1.45;
  white-space: nowrap;
}

.pw-source-card .pw-text-link {
  margin-top: auto;
  align-self: flex-start;
}

.pw-transparency-notice {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  background: var(--pw-surface-muted);
}

.pw-transparency-notice-title {
  margin-bottom: 0.2rem;
  color: var(--pw-heading);
  font-size: 0.84rem;
  font-weight: 750;
}

.pw-transparency-notice p {
  margin: 0;
  color: var(--pw-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.pw-odds-usage-card {
  margin-top: 1rem;
  padding: 1rem;
}

.pw-odds-usage-card h3 {
  margin: 0 0 0.7rem;
  color: var(--pw-heading);
  font-size: 0.95rem;
  font-weight: 750;
}

.pw-odds-usage-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--pw-muted);
  columns: 2;
  column-gap: 2rem;
}

.pw-odds-usage-card li {
  margin-bottom: 0.4rem;
  font-size: 0.79rem;
  line-height: 1.45;
}

.pw-transparency-disclaimer {
  padding: 1rem;
  border-color: #fde68a;
  background: #fffbeb;
}

.pw-transparency-disclaimer-title {
  margin-bottom: 0.45rem;
  color: #92400e;
  font-size: 0.9rem;
  font-weight: 750;
}

.pw-transparency-disclaimer p {
  margin: 0;
  color: #78350f;
  font-size: 0.8rem;
  line-height: 1.55;
}

.pw-transparency-disclaimer p + p {
  margin-top: 0.55rem;
}

.pw-transparency-disclaimer a {
  color: #92400e;
  font-weight: 700;
}

.pw-transparency-related {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--pw-surface-muted);
}

.pw-transparency-related h2 {
  margin: 0 0 0.25rem;
  color: var(--pw-heading);
  font-size: 1rem;
  font-weight: 750;
}

.pw-transparency-related p {
  max-width: 560px;
  margin: 0;
  color: var(--pw-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.pw-transparency-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 0 auto;
}

@media (max-width: 991.98px) {
  .pw-transparency-header-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .pw-transparency-status {
    flex-basis: auto;
    width: 100%;
  }

  .pw-transparency-summary-grid {
    grid-template-columns: 1fr;
  }

  .pw-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pw-process-step {
    border-bottom: 1px solid var(--pw-border);
  }

  .pw-process-step:nth-child(2) {
    border-right: 0;
  }

  .pw-process-step:nth-child(3),
  .pw-process-step:nth-child(4) {
    border-bottom: 0;
  }
}

@media (max-width: 767.98px) {
  .pw-transparency-page {
    padding-top: 1.25rem;
  }

  .pw-source-grid {
    grid-template-columns: 1fr;
  }

  .pw-transparency-related {
    align-items: flex-start;
    flex-direction: column;
  }

  .pw-odds-usage-card ul {
    columns: 1;
  }
}

@media (max-width: 575.98px) {
  .pw-transparency-page {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .pw-process-grid {
    grid-template-columns: 1fr;
  }

  .pw-process-step {
    border-right: 0;
    border-bottom: 1px solid var(--pw-border);
  }

  .pw-process-step:nth-child(3) {
    border-bottom: 1px solid var(--pw-border);
  }

  .pw-process-step:last-child {
    border-bottom: 0;
  }

  .pw-transparency-related-links {
    display: grid;
    width: 100%;
  }

  .pw-transparency-related-links .btn {
    width: 100%;
  }
}

/* Transparency page mobile width fix */
@media (max-width: 767.98px) {
  .pw-transparency-page {
    width: 100%;
    max-width: 100%;
  }

  .pw-transparency-page > *,
  .pw-transparency-header-row,
  .pw-transparency-header-row > div,
  .pw-transparency-summary-grid,
  .pw-process-card,
  .pw-process-grid,
  .pw-source-grid,
  .pw-source-card,
  .pw-transparency-related {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .pw-transparency-summary-grid,
  .pw-source-grid,
  .pw-process-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pw-transparency-status {
    width: 100%;
    flex: none;
  }

  .pw-source-endpoint {
    width: 100%;
    max-width: 100%;
  }
}

/* =========================================================
   PRIVACY PAGE
   ========================================================= */

.pw-privacy-summary {
  border-color: #bfdbfe;
  background: var(--pw-primary-soft);
}

.pw-privacy-summary .pw-legal-notice-title {
  color: var(--pw-primary);
}

.pw-legal-section a {
  color: var(--pw-primary);
  font-weight: 650;
  text-decoration: none;
}

.pw-legal-section a:hover {
  color: var(--pw-primary-hover);
  text-decoration: underline;
}

/* =========================================================
   FAQ PAGE
   ========================================================= */

.pw-faq-page {
  max-width: 980px;
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.pw-faq-header {
  margin-bottom: 1rem;
}

.pw-faq-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pw-faq-card {
  overflow: hidden;
}

.pw-faq-accordion .accordion-item {
  border: 0;
  border-bottom: 1px solid var(--pw-border);
}

.pw-faq-accordion .accordion-item:last-child {
  border-bottom: 0;
}

.pw-faq-accordion .accordion-button {
  padding: 1rem 1.1rem;
  background: var(--pw-surface);
  color: var(--pw-heading);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: none;
}

.pw-faq-accordion .accordion-button:not(.collapsed) {
  background: var(--pw-primary-soft);
  color: var(--pw-primary-hover);
}

.pw-faq-accordion .accordion-button:focus {
  border-color: transparent;
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.pw-faq-accordion .accordion-body {
  padding: 0 1.1rem 1rem;
  background: var(--pw-surface);
  color: var(--pw-muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.pw-faq-accordion .accordion-body a {
  color: var(--pw-primary);
  font-weight: 650;
  text-decoration: none;
}

.pw-faq-accordion .accordion-body a:hover {
  color: var(--pw-primary-hover);
  text-decoration: underline;
}

.pw-faq-related {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--pw-surface-muted);
}

.pw-faq-related h2 {
  margin: 0 0 0.25rem;
  color: var(--pw-heading);
  font-size: 1rem;
  font-weight: 750;
}

.pw-faq-related p {
  margin: 0;
  color: var(--pw-muted);
  font-size: 0.8rem;
}

.pw-faq-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 0 auto;
}

@media (max-width: 767.98px) {
  .pw-faq-page {
    padding-top: 1.25rem;
  }

  .pw-faq-related {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .pw-faq-page {
    width: 100%;
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .pw-faq-page > *,
  .pw-faq-card,
  .pw-faq-accordion,
  .pw-faq-related {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .pw-faq-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pw-faq-quick-links .btn {
    width: 100%;
  }

  .pw-faq-accordion .accordion-button {
    min-height: 52px;
    padding: 0.9rem 1rem;
    font-size: 0.86rem;
  }

  .pw-faq-accordion .accordion-body {
    padding: 0 1rem 0.9rem;
    font-size: 0.8rem;
  }

  .pw-faq-related-links {
    display: grid;
    width: 100%;
  }

  .pw-faq-related-links .btn {
    width: 100%;
  }
}

/* =========================================================
   DISCLAIMER PAGE
   ========================================================= */

.pw-disclaimer-warning {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border-color: #fde68a;
  background: #fffbeb;
}

.pw-disclaimer-warning-title {
  margin-bottom: 0.25rem;
  color: #92400e;
  font-size: 0.88rem;
  font-weight: 750;
}

.pw-disclaimer-warning p {
  margin: 0;
  color: #78350f;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* CONTACT PAGE */
.pw-contact-page{max-width:900px;padding-top:2rem;padding-bottom:1rem}
.pw-contact-email-card{text-align:center;padding:2rem}
.pw-contact-label{color:var(--pw-muted);font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.pw-contact-email{display:block;margin:.5rem 0;color:var(--pw-primary);font-size:1.7rem;font-weight:800;text-decoration:none;word-break:break-word}
.pw-contact-email:hover{color:var(--pw-primary-hover)}
.pw-contact-response{margin:0;color:var(--pw-muted);font-size:.85rem}
.pw-contact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1rem 0}
.pw-contact-item{padding:1.2rem}.pw-contact-icon{font-size:2rem;margin-bottom:.5rem}
.pw-contact-item h2{font-size:1rem;font-weight:750;margin:0 0 .5rem;color:var(--pw-heading)}
.pw-contact-item p{margin:0;color:var(--pw-muted);font-size:.82rem;line-height:1.55}
.pw-contact-links{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;padding:1rem;background:var(--pw-surface-muted)}
.pw-contact-links h2{font-size:1rem;font-weight:750;margin:0 0 .25rem}.pw-contact-links p{margin:0;color:var(--pw-muted);font-size:.82rem}
.pw-contact-link-buttons{display:flex;flex-wrap:wrap;gap:.5rem}
@media(max-width:767.98px){.pw-contact-page{padding-top:1.25rem}.pw-contact-grid{grid-template-columns:1fr}.pw-contact-links{flex-direction:column;align-items:flex-start}}
@media(max-width:575.98px){.pw-contact-page{padding:.75rem}.pw-contact-email{font-size:1.25rem}.pw-contact-link-buttons{display:grid;width:100%}.pw-contact-link-buttons .btn{width:100%}}

/* =========================================================
   ABOUT PAGE
   Append this block to playerwon.css
   ========================================================= */

.pw-about-page {
  max-width: 1080px;
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.pw-about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 1.25rem;
  align-items: stretch;
  padding: 1.5rem;
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius-lg);
  background: var(--pw-surface-muted);
}

.pw-about-hero-copy {
  min-width: 0;
}

.pw-about-title {
  max-width: 760px;
  margin: 0.45rem 0 0.8rem;
  color: var(--pw-heading);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 790;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.pw-about-lead {
  max-width: 760px;
  margin: 0;
  color: var(--pw-text);
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.6;
}

.pw-about-copy {
  max-width: 760px;
  margin: 0.8rem 0 0;
  color: var(--pw-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.pw-about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.pw-about-status-card {
  display: grid;
  align-content: start;
  gap: 0;
  padding: 1rem;
}

.pw-about-status-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--pw-border);
}

.pw-about-status-item:first-child {
  padding-top: 0;
}

.pw-about-status-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.pw-about-status-item span,
.pw-about-status-item strong {
  display: block;
}

.pw-about-status-item span {
  color: var(--pw-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pw-about-status-item strong {
  margin-top: 0.2rem;
  color: var(--pw-heading);
  font-size: 0.84rem;
  line-height: 1.45;
}

.pw-about-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.pw-about-value-card {
  padding: 1rem;
}

.pw-about-value-number {
  color: var(--pw-primary);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.pw-about-value-card h2 {
  margin: 0.35rem 0 0.4rem;
  color: var(--pw-heading);
  font-size: 1rem;
  font-weight: 750;
}

.pw-about-value-card p,
.pw-about-story-card p,
.pw-about-story-card li,
.pw-about-platform-card li,
.pw-about-principle p {
  color: var(--pw-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.pw-about-value-card p,
.pw-about-story-card p,
.pw-about-principle p {
  margin: 0;
}

.pw-about-section {
  margin-top: 3rem;
}

.pw-about-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pw-about-story-card {
  padding: 1rem;
}

.pw-about-story-card h3,
.pw-about-platform-card h3 {
  margin: 0 0 0.55rem;
  color: var(--pw-heading);
  font-size: 0.95rem;
  font-weight: 750;
}

.pw-about-story-card ul,
.pw-about-platform-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.pw-about-story-card li + li,
.pw-about-platform-card li + li {
  margin-top: 0.35rem;
}

.pw-about-platform-card {
  padding: 1rem;
}

.pw-about-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2rem;
}

.pw-about-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.pw-about-principle {
  padding: 1rem;
  border-right: 1px solid var(--pw-border);
}

.pw-about-principle:last-child {
  border-right: 0;
}

.pw-about-principle span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--pw-heading);
  font-size: 0.9rem;
  font-weight: 750;
}

.pw-about-independent {
  margin-top: 3rem;
  padding: 1rem;
  border-color: #fde68a;
  background: #fffbeb;
}

.pw-about-independent-title {
  margin-bottom: 0.25rem;
  color: #92400e;
  font-size: 0.88rem;
  font-weight: 750;
}

.pw-about-independent p {
  margin: 0;
  color: #78350f;
  font-size: 0.8rem;
  line-height: 1.5;
}

.pw-about-related {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--pw-surface-muted);
}

.pw-about-related h2 {
  margin: 0 0 0.25rem;
  color: var(--pw-heading);
  font-size: 1rem;
  font-weight: 750;
}

.pw-about-related p {
  margin: 0;
  color: var(--pw-muted);
  font-size: 0.8rem;
}

.pw-about-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 0 auto;
}

@media (max-width: 991.98px) {
  .pw-about-hero {
    grid-template-columns: 1fr;
  }

  .pw-about-value-grid,
  .pw-about-principles {
    grid-template-columns: 1fr;
  }

  .pw-about-principle {
    border-right: 0;
    border-bottom: 1px solid var(--pw-border);
  }

  .pw-about-principle:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 767.98px) {
  .pw-about-page {
    padding-top: 1.25rem;
  }

  .pw-about-title {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  .pw-about-story-grid,
  .pw-about-platform-grid {
    grid-template-columns: 1fr;
  }

  .pw-about-related {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .pw-about-page {
    width: 100%;
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .pw-about-page > *,
  .pw-about-hero,
  .pw-about-hero > *,
  .pw-about-value-grid,
  .pw-about-story-grid,
  .pw-about-platform-grid,
  .pw-about-principles,
  .pw-about-related {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .pw-about-hero {
    padding: 1rem;
  }

  .pw-about-actions {
    display: grid;
  }

  .pw-about-actions .btn {
    width: 100%;
  }

  .pw-about-related-links {
    display: grid;
    width: 100%;
  }

  .pw-about-related-links .btn {
    width: 100%;
  }
}

/* =========================================================
   SEO PREDICTIONS PAGES
   ========================================================= */

.pw-seo-predictions-page {
  max-width: 960px;
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.pw-seo-update-line {
  margin-top: 0.6rem;
  color: var(--pw-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.pw-seo-games-card {
  overflow: hidden;
}

.pw-seo-game-list {
  display: grid;
}

.pw-seo-game-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(190px, 0.7fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--pw-border);
}

.pw-seo-game-row:last-child {
  border-bottom: 0;
}

.pw-seo-matchup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.pw-seo-team {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  color: var(--pw-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.pw-seo-team:hover {
  color: var(--pw-primary);
}

.pw-seo-team img {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  object-fit: contain;
}

.pw-seo-team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pw-seo-at {
  color: var(--pw-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pw-seo-probabilities {
  text-align: right;
}

.pw-seo-probability-primary {
  color: #166534;
  font-size: 0.86rem;
  font-weight: 750;
}

.pw-seo-probability-secondary {
  margin-top: 0.15rem;
  color: var(--pw-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.pw-seo-matchup-link {
  white-space: nowrap;
}

.pw-seo-cta {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--pw-surface-muted);
}

.pw-seo-cta h2 {
  margin: 0 0 0.25rem;
  color: var(--pw-heading);
  font-size: 1rem;
  font-weight: 750;
}

.pw-seo-cta p {
  margin: 0;
  color: var(--pw-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.pw-seo-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 0 auto;
}

@media (max-width: 767.98px) {
  .pw-seo-predictions-page {
    padding-top: 1.25rem;
  }

  .pw-seo-game-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .pw-seo-matchup {
    grid-column: 1 / -1;
  }

  .pw-seo-probabilities {
    text-align: left;
  }

  .pw-seo-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .pw-seo-predictions-page {
    width: 100%;
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .pw-seo-predictions-page > *,
  .pw-seo-games-card,
  .pw-seo-game-row,
  .pw-seo-matchup,
  .pw-seo-cta {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .pw-seo-game-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .pw-seo-matchup {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .pw-seo-at {
    padding-left: 2.5rem;
  }

  .pw-seo-probabilities {
    text-align: left;
  }

  .pw-seo-matchup-link {
    width: 100%;
  }

  .pw-seo-cta-actions {
    display: grid;
    width: 100%;
  }

  .pw-seo-cta-actions .btn {
    width: 100%;
  }
}

/* ==========================================================
   BETTING CALCULATOR
   ========================================================== */

.pw-betting-calculator-page {
  max-width: 1100px;
  padding-top: 2rem;
  padding-bottom: 1rem;
}


/* =========================
   Header
   ========================= */

.pw-calculator-header {
  margin-bottom: 1.25rem;
}

.pw-calculator-header-layout {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.pw-calculator-header-copy {
  min-width: 0;
}

.pw-calculator-team-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 250px;
  padding: 0.85rem 1rem;
}

.pw-calculator-team-card img {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
}

.pw-calculator-team-card span,
.pw-calculator-team-card strong {
  display: block;
}

.pw-calculator-team-card span {
  color: var(--pw-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pw-calculator-team-card strong {
  margin-top: 0.15rem;
  color: var(--pw-heading);
  font-size: 0.9rem;
  line-height: 1.3;
}

.pw-calculator-loaded-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pw-calculator-loaded-row > span {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius-sm);
  background: var(--pw-surface-muted);
  color: var(--pw-text);
  font-size: 0.75rem;
}

.pw-calculator-loaded-row strong {
  color: var(--pw-muted);
  font-weight: 700;
}


/* =========================
   Input Section
   ========================= */

.pw-calculator-input-card {
  padding: 1rem;
}

.pw-input-hint {
  margin-top: 0.35rem;
  color: var(--pw-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.pw-calculator-reset-field {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pw-calculator-reset-field .btn {
  min-height: 38px;
}


/* =========================
   Snapshot
   ========================= */

.pw-calculator-snapshot {
  margin-top: 1rem;
  overflow: hidden;
}

.pw-calculator-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.pw-calculator-snapshot-grid span {
  display: block;
  color: var(--pw-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pw-calculator-snapshot-grid strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--pw-heading);
  font-size: 0.9rem;
}


/* =========================
   Results
   ========================= */

.pw-calculator-results-section {
  margin-top: 2.5rem;
}

.pw-calculator-results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.pw-calculator-result-card {
  min-width: 0;
  padding: 1rem;
}

.pw-calculator-result-card > span {
  display: block;
  color: var(--pw-muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.pw-calculator-result-card > strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--pw-heading);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.pw-calculator-result-card small {
  display: block;
  margin-top: 0.2rem;
  color: var(--pw-muted);
  font-size: 0.66rem;
}


/* =========================
   Result Colours
   ========================= */

.positive,
.verdict-strong,
.verdict-positive {
  color: #15803d !important;
}

.negative,
.verdict-negative {
  color: #b91c1c !important;
}

.neutral,
.verdict-neutral {
  color: var(--pw-muted) !important;
}


/* =========================
   Guide
   ========================= */

.pw-calculator-guide-card {
  margin-top: 1rem;
  overflow: hidden;
}

.pw-calculator-guide .accordion-item {
  border: 0;
}

.pw-calculator-guide .accordion-button {
  padding: 1rem;
  background: var(--pw-surface);
  color: var(--pw-heading);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: none;
}

.pw-calculator-guide .accordion-button:not(.collapsed) {
  background: var(--pw-primary-soft);
  color: var(--pw-primary-hover);
}

.pw-calculator-guide .accordion-body {
  padding: 1rem;
}

.pw-calculator-guide-section + .pw-calculator-guide-section {
  margin-top: 1.25rem;
}

.pw-calculator-guide-section h3 {
  margin: 0 0 0.4rem;
  color: var(--pw-heading);
  font-size: 0.9rem;
  font-weight: 750;
}

.pw-calculator-guide-section p {
  margin: 0 0 0.55rem;
  color: var(--pw-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.pw-calculator-guide-section code {
  display: block;
  overflow-x: auto;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius-sm);
  background: var(--pw-surface-muted);
  color: var(--pw-text);
  font-size: 0.72rem;
  white-space: nowrap;
}

.pw-calculator-guide-section code + code {
  margin-top: 0.45rem;
}


/* =========================
   Summary
   ========================= */

.pw-calculator-summary {
  margin-top: 1rem;
  padding: 1rem;
}

.pw-calculator-summary h2 {
  margin: 0 0 0.75rem;
  color: var(--pw-heading);
  font-size: 0.95rem;
  font-weight: 750;
}

.pw-calculator-summary ul {
  margin: 0;
  padding-left: 1.1rem;
}

.pw-calculator-summary li {
  color: var(--pw-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.pw-calculator-summary li + li {
  margin-top: 0.35rem;
}


/* =========================
   Tablet
   ========================= */

@media (max-width: 991.98px) {
  .pw-calculator-header-layout {
    flex-direction: column;
  }

  .pw-calculator-team-card {
    width: 100%;
    flex-basis: auto;
  }

  .pw-calculator-results-grid,
  .pw-calculator-snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================
   Mobile
   ========================= */

@media (max-width: 767.98px) {
  .pw-betting-calculator-page {
    padding-top: 1.25rem;
  }

  .pw-calculator-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .pw-betting-calculator-page {
    width: 100%;
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .pw-betting-calculator-page > *,
  .pw-calculator-input-card,
  .pw-calculator-snapshot,
  .pw-calculator-results-grid,
  .pw-calculator-guide-card,
  .pw-calculator-summary {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .pw-calculator-loaded-row {
    display: grid;
  }

  .pw-calculator-loaded-row > span {
    justify-content: space-between;
  }

  .pw-calculator-results-grid,
  .pw-calculator-snapshot-grid {
    grid-template-columns: 1fr;
  }

  .pw-calculator-result-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
  }

  .pw-calculator-result-card > strong {
    margin-top: 0;
    text-align: right;
  }

  .pw-calculator-result-card small {
    grid-column: 1 / -1;
  }
}


/* ==========================================================
   MATCHUP DETAIL PAGE
   ========================================================== */

.pw-matchup-page {
  max-width: 1100px;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}


/* =========================
   Breadcrumb
   ========================= */

.pw-matchup-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  color: var(--pw-muted);
  font-size: 0.78rem;
}

.pw-matchup-breadcrumb a {
  color: var(--pw-muted);
  text-decoration: none;
}

.pw-matchup-breadcrumb a:hover {
  color: var(--pw-primary);
}

.pw-matchup-page-header {
  margin-bottom: 1rem;
}


/* =========================
   Hero
   ========================= */

.pw-matchup-hero {
  padding: 1.25rem;
}

.pw-matchup-date {
  margin-bottom: 1rem;
  color: var(--pw-muted);
  font-size: 0.78rem;
  font-weight: 650;
  text-align: center;
}

.pw-matchup-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.pw-matchup-team-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.8rem;
  border-radius: var(--pw-radius-md);
  color: var(--pw-heading);
  text-decoration: none;
}

.pw-matchup-team-link:hover {
  background: var(--pw-surface-muted);
  color: var(--pw-primary);
}

.pw-matchup-team-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: contain;
}

.pw-matchup-team-copy {
  min-width: 0;
}

.pw-matchup-team-label {
  display: block;
  color: var(--pw-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pw-matchup-team-copy h3 {
  margin: 0.15rem 0;
  color: var(--pw-heading);
  font-size: 1.15rem;
  font-weight: 780;
  line-height: 1.25;
}

.pw-matchup-team-copy p {
  margin: 0;
  color: var(--pw-muted);
  font-size: 0.78rem;
}

.pw-matchup-versus {
  color: var(--pw-muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
}

.pw-matchup-model-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pw-border);
  color: var(--pw-muted);
  font-size: 0.84rem;
}


/* =========================
   Sections
   ========================= */

.pw-matchup-section {
  margin-top: 2.5rem;
}


/* =========================
   Model versus market
   ========================= */

.pw-matchup-probability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pw-matchup-probability-card {
  padding: 1rem;
}

.pw-matchup-probability-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pw-matchup-probability-header img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.pw-matchup-probability-header span {
  display: block;
  color: var(--pw-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pw-matchup-probability-header h3 {
  margin: 0.15rem 0 0;
  color: var(--pw-heading);
  font-size: 0.95rem;
  font-weight: 750;
}

.pw-matchup-probability-main {
  margin: 1rem 0;
  color: var(--pw-heading);
  font-size: 2rem;
  font-weight: 820;
  letter-spacing: -0.04em;
}

.pw-matchup-probability-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.pw-matchup-probability-metrics > div {
  padding: 0.65rem;
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius-sm);
  background: var(--pw-surface-muted);
}

.pw-matchup-probability-metrics span {
  display: block;
  color: var(--pw-muted);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pw-matchup-probability-metrics strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--pw-heading);
  font-size: 0.82rem;
  font-weight: 750;
}

.pw-positive {
  color: #15803d !important;
}

.pw-negative {
  color: #b91c1c !important;
}


/* =========================
   Comparison tables
   ========================= */

.pw-matchup-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pw-matchup-table-wide {
  grid-column: 1 / -1;
}

.pw-matchup-table-card {
  overflow: hidden;
}

.pw-matchup-comparison-table {
  margin-bottom: 0;
  table-layout: fixed;
}

.pw-matchup-comparison-table th,
.pw-matchup-comparison-table td {
  padding: 0.65rem 0.45rem;
  border-color: var(--pw-border);
  text-align: center;
  font-size: 0.78rem;
}

.pw-matchup-comparison-table thead th {
  background: var(--pw-surface-muted);
  color: var(--pw-heading);
  font-weight: 750;
}

.pw-matchup-comparison-table tbody th {
  color: var(--pw-muted);
  font-weight: 700;
}

.pw-matchup-table-team {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.pw-matchup-table-team img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}


/* =========================
   Head to head
   ========================= */

.pw-matchup-h2h-card {
  overflow: hidden;
}

.pw-matchup-h2h-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--pw-border);
}

.pw-matchup-h2h-summary > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.pw-matchup-h2h-summary img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.pw-matchup-h2h-summary span {
  color: var(--pw-muted);
  font-size: 0.75rem;
}

.pw-matchup-h2h-center {
  display: grid !important;
  text-align: center;
}

.pw-matchup-h2h-center strong {
  font-size: 1.2rem;
}

.pw-matchup-h2h-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--pw-border);
}

.pw-matchup-h2h-metrics div {
  text-align: center;
}

.pw-matchup-h2h-metrics span {
  display: block;
  color: var(--pw-muted);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pw-matchup-h2h-metrics strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--pw-heading);
  font-size: 0.84rem;
}

.pw-matchup-h2h-table {
  min-width: 760px;
  margin-bottom: 0;
}

.pw-matchup-h2h-table th,
.pw-matchup-h2h-table td {
  padding: 0.65rem;
  border-color: var(--pw-border);
  font-size: 0.76rem;
  vertical-align: middle;
}

.pw-matchup-h2h-table thead th {
  background: var(--pw-surface-muted);
  color: var(--pw-heading);
  font-weight: 750;
}

.pw-matchup-h2h-teams {
  display: grid;
  gap: 0.25rem;
}

.pw-matchup-h2h-teams span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pw-matchup-h2h-teams img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.pw-matchup-h2h-teams small {
  padding-left: 1.65rem;
  color: var(--pw-muted);
}


/* =========================
   Model note
   ========================= */

.pw-matchup-model-info {
  margin-top: 1rem;
  padding: 1rem;
  color: var(--pw-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.pw-matchup-model-info a {
  color: var(--pw-primary);
  font-weight: 650;
  text-decoration: none;
}


/* =========================
   Tablet
   ========================= */

@media (max-width: 767.98px) {
  .pw-matchup-page {
    padding-top: 1rem;
  }

  .pw-matchup-probability-grid,
  .pw-matchup-comparison-grid {
    grid-template-columns: 1fr;
  }

  .pw-matchup-table-wide {
    grid-column: auto;
  }

  .pw-matchup-h2h-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================
   Mobile
   ========================= */

@media (max-width: 575.98px) {
  .pw-matchup-page {
    width: 100%;
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .pw-matchup-page > *,
  .pw-matchup-hero,
  .pw-matchup-probability-grid,
  .pw-matchup-comparison-grid,
  .pw-matchup-h2h-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .pw-matchup-hero {
    padding: 1rem;
  }

  .pw-matchup-hero-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .pw-matchup-team-link {
    justify-content: flex-start;
    width: 100%;
    padding: 0.65rem;
  }

  .pw-matchup-team-logo {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .pw-matchup-versus {
    padding-left: 4rem;
    text-align: left;
  }

  .pw-matchup-probability-metrics {
    grid-template-columns: 1fr;
  }

  .pw-matchup-comparison-table th,
  .pw-matchup-comparison-table td {
    padding: 0.55rem 0.25rem;
    font-size: 0.7rem;
  }

  .pw-matchup-table-team {
    gap: 0.25rem;
  }

  .pw-matchup-table-team img {
    width: 18px;
    height: 18px;
  }

  .pw-matchup-h2h-summary {
    grid-template-columns: 1fr;
  }

  .pw-matchup-h2h-summary > div {
    justify-content: flex-start;
  }

  .pw-matchup-h2h-center {
    justify-content: flex-start !important;
    text-align: left;
  }
}

/* ==========================================================
   MATCHUP H2H MOBILE FIXES
   ========================================================== */

@media (max-width: 575.98px) {

  /* Center both teams and the games-reviewed block */
  .pw-matchup-h2h-summary > div {
    justify-content: center;
    text-align: center;
  }

  .pw-matchup-h2h-center {
    justify-content: center !important;
    text-align: center;
  }


  /* Make the H2H table fit the mobile viewport */
  .pw-matchup-h2h-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .pw-matchup-h2h-table th,
  .pw-matchup-h2h-table td {
    padding: 0.5rem 0.2rem;
    font-size: 0.68rem;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .pw-matchup-h2h-table th:nth-child(1),
  .pw-matchup-h2h-table td:nth-child(1) {
    width: 22%;
  }

  .pw-matchup-h2h-table th:nth-child(2),
  .pw-matchup-h2h-table td:nth-child(2) {
    width: 24%;
  }

  .pw-matchup-h2h-table th:nth-child(3),
  .pw-matchup-h2h-table td:nth-child(3) {
    width: 16%;
  }

  .pw-matchup-h2h-table th:nth-child(4),
  .pw-matchup-h2h-table td:nth-child(4) {
    width: 16%;
  }

  .pw-matchup-h2h-table th:nth-child(5),
  .pw-matchup-h2h-table td:nth-child(5) {
    width: 22%;
  }


  /* Mobile matchup column: logos only, like the original page */
  .pw-matchup-h2h-teams {
    justify-items: center;
    gap: 0.2rem;
  }

  .pw-matchup-h2h-teams span {
    justify-content: center;
    font-size: 0;
  }

  .pw-matchup-h2h-teams img {
    width: 22px;
    height: 22px;
  }

  .pw-matchup-h2h-teams small {
    padding-left: 0;
    font-size: 0.65rem;
    text-align: center;
  }

  .pw-matchup-h2h-table .btn {
    padding: 0.3rem 0.45rem;
    font-size: 0.65rem;
  }
}

/* ==========================================================
   FAIR ODDS PAGE
   ========================================================== */

.pw-fair-odds-page {
    max-width: 1120px;
    padding-top: 2rem;
    padding-bottom: 1rem;
}


/* =========================
   Header
   ========================= */

.pw-fair-odds-header {
    margin-bottom: 1rem;
}

.pw-fair-odds-explainer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 0.9rem;
    color: var(--pw-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.pw-fair-odds-note {
    margin-top: 0.65rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    background: var(--pw-surface-muted);
    color: var(--pw-muted);
    font-size: 0.75rem;
    line-height: 1.45;
}


/* =========================
   Filters and Summary
   ========================= */

.pw-fair-odds-filter {
    padding: 1rem;
}

.pw-fair-odds-summary {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
}

.results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.results-meta {
    color: var(--pw-muted);
    font-size: 0.78rem;
}


/* =========================
   Shared Odds Styling
   ========================= */

.team-logo-sm {
    display: inline-block;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    object-fit: contain;
}

.edge-positive,
.ev-positive {
    color: #15803d !important;
    font-weight: 800;
}

.edge-negative,
.ev-negative {
    color: var(--pw-muted);
    font-weight: 700;
}

.badge-positive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    background: rgba(21, 128, 61, 0.1);
    color: #15803d;
    font-size: 0.65rem;
    font-weight: 750;
    white-space: nowrap;
}

.calc-link {
    color: var(--pw-primary);
    font-size: 0.72rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.calc-link:hover {
    color: var(--pw-primary-hover);
    text-decoration: underline;
}


/* =========================
   Results Container
   ========================= */

.pw-fair-odds-results {
    margin-top: 1rem;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}


/* =========================
   Desktop Game Cards
   ========================= */

.desktop-card-view {
    display: grid;
    gap: 1rem;
}

.pw-fair-game-card {
    overflow: hidden;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-lg);
    background: var(--pw-surface);
    box-shadow: var(--pw-shadow-sm);
}

.pw-fair-game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-fair-game-date {
    color: var(--pw-muted);
    font-size: 0.72rem;
    font-weight: 650;
}

.pw-fair-game-matchup {
    margin-top: 0.2rem;
    color: var(--pw-heading);
    font-size: 1rem;
    font-weight: 780;
}

.pw-fair-game-snapshot {
    flex: 0 0 auto;
    text-align: right;
}

.pw-fair-game-snapshot span,
.pw-fair-game-snapshot strong {
    display: block;
}

.pw-fair-game-snapshot span {
    color: var(--pw-muted);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pw-fair-game-snapshot strong {
    margin-top: 0.2rem;
    color: var(--pw-heading);
    font-size: 0.76rem;
}

.pw-fair-game-table {
    display: grid;
}

.pw-fair-game-table-head,
.pw-fair-game-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) repeat(2, minmax(0, 1fr));
}

.pw-fair-game-table-head {
    background: var(--pw-surface-muted);
}

.pw-fair-game-table-head > div,
.pw-fair-game-row > div {
    min-width: 0;
    padding: 0.72rem 0.85rem;
    border-right: 1px solid var(--pw-border);
}

.pw-fair-game-table-head > div:last-child,
.pw-fair-game-row > div:last-child {
    border-right: 0;
}

.pw-fair-game-row {
    border-top: 1px solid var(--pw-border);
}

.pw-fair-game-row:first-of-type {
    border-top: 0;
}

.pw-fair-metric-heading {
    display: flex;
    align-items: center;
    color: var(--pw-muted);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pw-fair-team-heading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.pw-fair-team-heading span,
.pw-fair-team-heading strong {
    display: block;
}

.pw-fair-team-heading span {
    color: var(--pw-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pw-fair-team-heading strong {
    margin-top: 0.1rem;
    color: var(--pw-heading);
    font-size: 0.82rem;
    line-height: 1.2;
}

.pw-fair-metric-label {
    color: var(--pw-muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.pw-fair-game-value {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--pw-heading);
    font-size: 0.8rem;
    font-weight: 750;
}

.pw-fair-game-value-primary {
    font-size: 0.95rem;
    font-weight: 820;
}

.pw-fair-game-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    border-top: 1px solid var(--pw-border);
    background: var(--pw-surface-muted);
}

.pw-fair-game-actions .btn {
    width: 100%;
}


/* =========================
   Mobile Cards
   ========================= */

.mobile-odds-list {
    display: none;
}

.mobile-odds-card {
    padding: 1rem;
    margin-bottom: 0.85rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-lg);
    background: var(--pw-surface);
    box-shadow: var(--pw-shadow-sm);
}

.mobile-odds-card:last-child {
    margin-bottom: 0;
}

.mobile-card-header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.mobile-date {
    margin-bottom: 0.2rem;
    color: var(--pw-muted);
    font-size: 0.76rem;
    font-weight: 650;
    line-height: 1.2;
}

.mobile-matchup {
    color: var(--pw-heading);
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.2;
}

.mobile-snapshot-note {
    margin-top: 0.3rem;
    color: var(--pw-muted);
    font-size: 0.72rem;
    line-height: 1.3;
}

.mobile-team-block {
    padding: 0.8rem;
    margin-bottom: 0.7rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-md);
    background: var(--pw-surface);
}

.mobile-team-block:last-child {
    margin-bottom: 0;
}

.mobile-team-block.positive-ev {
    border-color: rgba(21, 128, 61, 0.28);
    background: rgba(21, 128, 61, 0.03);
}

.mobile-team-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.mobile-team-name-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.mobile-team-name-wrap .team-logo-sm {
    width: 22px;
    height: 22px;
}

.mobile-team-name {
    color: var(--pw-heading);
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.2;
}

.mobile-prob {
    color: var(--pw-heading);
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
}

.mobile-tag-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
    flex-wrap: wrap;
}

.mobile-odds-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.4rem 0.75rem;
    margin-bottom: 0.55rem;
}

.mobile-odds-label {
    color: var(--pw-muted);
    font-size: 0.72rem;
    font-weight: 650;
}

.mobile-odds-value {
    color: var(--pw-heading);
    font-size: 0.8rem;
    font-weight: 750;
    text-align: right;
    white-space: nowrap;
}

.mobile-calc-row {
    display: flex;
    justify-content: flex-end;
}

.empty-state {
    padding: 1.25rem 1rem;
    color: var(--pw-muted);
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 991.98px) {
    .desktop-card-view {
        display: none;
    }

    .mobile-odds-list {
        display: block;
    }
}

@media (min-width: 992px) {
    .desktop-card-view {
        display: grid;
    }

    .mobile-odds-list {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .pw-fair-odds-page {
        width: 100%;
        max-width: 100%;
        padding-top: 1.25rem;
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .pw-fair-odds-page > *,
    .pw-fair-odds-results,
    .mobile-odds-list,
    .mobile-odds-card,
    .mobile-team-block {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .pw-fair-odds-filter .btn {
        width: 100%;
    }

    .results-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .mobile-odds-card {
        padding: 0.8rem;
    }

    .mobile-team-block {
        padding: 0.72rem;
    }

    .mobile-team-name {
        font-size: 0.86rem;
    }
}

/* ==========================================================
   ODDS GUIDE PAGE
   ========================================================== */

.pw-odds-guide-page {
    max-width: 1120px;
    padding-top: 2rem;
    padding-bottom: 1rem;
}


/* =========================
   Header
   ========================= */

.pw-odds-guide-header {
    margin-bottom: 1rem;
}


/* =========================
   Introduction
   ========================= */

.pw-odds-guide-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 1.25rem;
}

.pw-odds-guide-intro > div:first-child {
    max-width: 760px;
}

.pw-odds-guide-intro h2 {
    margin: 0.2rem 0 0.65rem;
    color: var(--pw-heading);
    font-size: 1.1rem;
    font-weight: 780;
}

.pw-odds-guide-intro p {
    color: var(--pw-muted);
    font-size: 0.84rem;
    line-height: 1.6;
}

.pw-odds-guide-intro-links {
    display: grid;
    flex: 0 0 210px;
    gap: 0.6rem;
}


/* =========================
   Section Navigation
   ========================= */

.pw-odds-guide-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
    padding: 0.8rem;
}

.pw-odds-guide-nav a {
    padding: 0.42rem 0.65rem;
    border: 1px solid var(--pw-border);
    border-radius: 999px;
    background: var(--pw-surface-muted);
    color: var(--pw-muted);
    font-size: 0.72rem;
    font-weight: 650;
    text-decoration: none;
}

.pw-odds-guide-nav a:hover {
    border-color: var(--pw-primary);
    color: var(--pw-primary);
}


/* =========================
   Page Layout
   ========================= */

.pw-odds-guide-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1rem;
    margin-top: 1rem;
}

.pw-odds-guide-main {
    display: grid;
    gap: 1rem;
    min-width: 0;
}


/* =========================
   Content Sections
   ========================= */

.pw-odds-guide-section {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.15rem;
    scroll-margin-top: 90px;
}

.pw-odds-guide-section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--pw-primary-soft);
    color: var(--pw-primary);
    font-size: 0.82rem;
    font-weight: 800;
}

.pw-odds-guide-section h2 {
    margin: 0 0 0.65rem;
    color: var(--pw-heading);
    font-size: 1.05rem;
    font-weight: 780;
}

.pw-odds-guide-section p,
.pw-odds-guide-section li {
    color: var(--pw-muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

.pw-odds-guide-section ul {
    margin-bottom: 0;
}


/* =========================
   Formula and Examples
   ========================= */

.pw-odds-guide-formula {
    overflow-x: auto;
    margin: 0.8rem 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--pw-border);
    border-left: 3px solid var(--pw-primary);
    border-radius: var(--pw-radius-sm);
    background: var(--pw-surface-muted);
    color: var(--pw-heading);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.45;
}

.pw-odds-guide-formula-group {
    display: grid;
    gap: 0.55rem;
    margin: 0.8rem 0;
}

.pw-odds-guide-formula-group .pw-odds-guide-formula {
    margin: 0;
}

.pw-odds-guide-example {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem 1rem;
    margin: 0.8rem 0;
    padding: 0.8rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-md);
    background: var(--pw-surface-muted);
}

.pw-odds-guide-example span {
    color: var(--pw-muted);
    font-size: 0.75rem;
    font-weight: 650;
}

.pw-odds-guide-example strong {
    color: var(--pw-heading);
    font-size: 0.78rem;
    text-align: right;
}

.pw-odds-guide-example-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0.8rem 0;
}

.pw-odds-guide-example-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pw-odds-guide-example-grid > div {
    padding: 0.75rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-md);
    background: var(--pw-surface-muted);
}

.pw-odds-guide-example-grid strong,
.pw-odds-guide-example-grid span {
    display: block;
}

.pw-odds-guide-example-grid strong {
    color: var(--pw-heading);
    font-size: 0.86rem;
}

.pw-odds-guide-example-grid span {
    margin-top: 0.2rem;
    color: var(--pw-muted);
    font-size: 0.72rem;
    line-height: 1.35;
}

.pw-odds-guide-definition {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
}

.pw-odds-guide-definition span {
    padding: 0.4rem 0.55rem;
    border: 1px solid var(--pw-border);
    border-radius: 999px;
    color: var(--pw-muted);
    font-size: 0.7rem;
}


/* =========================
   Steps
   ========================= */

.pw-odds-guide-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0.8rem 0;
}

.pw-odds-guide-steps > div {
    padding: 0.8rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-md);
    background: var(--pw-surface-muted);
}

.pw-odds-guide-steps span,
.pw-odds-guide-steps strong {
    display: block;
}

.pw-odds-guide-steps span {
    color: var(--pw-primary);
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pw-odds-guide-steps strong {
    margin-top: 0.15rem;
    color: var(--pw-heading);
    font-size: 0.8rem;
}

.pw-odds-guide-steps p {
    margin: 0.35rem 0 0;
    font-size: 0.74rem;
}


/* =========================
   Lists and Tools
   ========================= */

.pw-odds-guide-checklist {
    display: grid;
    gap: 0.45rem;
    padding-left: 1.1rem;
}

.pw-odds-guide-tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.pw-odds-guide-tool-grid a {
    display: block;
    padding: 0.8rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-md);
    background: var(--pw-surface-muted);
    text-decoration: none;
}

.pw-odds-guide-tool-grid a:hover {
    border-color: var(--pw-primary);
}

.pw-odds-guide-tool-grid strong,
.pw-odds-guide-tool-grid span {
    display: block;
}

.pw-odds-guide-tool-grid strong {
    color: var(--pw-heading);
    font-size: 0.8rem;
}

.pw-odds-guide-tool-grid span {
    margin-top: 0.2rem;
    color: var(--pw-muted);
    font-size: 0.72rem;
    line-height: 1.4;
}


/* =========================
   Sidebar
   ========================= */

.pw-odds-guide-sidebar {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.pw-odds-guide-sidebar-card {
    padding: 1rem;
}

.pw-odds-guide-sidebar-card:first-child {
    position: sticky;
    top: 1rem;
}

.pw-odds-guide-sidebar-card h2 {
    margin: 0.2rem 0 0.7rem;
    color: var(--pw-heading);
    font-size: 0.95rem;
    font-weight: 780;
}

.pw-odds-guide-sidebar-card p {
    color: var(--pw-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.pw-odds-guide-sidebar-card dl {
    margin: 0;
}

.pw-odds-guide-sidebar-card dl > div {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--pw-border);
}

.pw-odds-guide-sidebar-card dl > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.pw-odds-guide-sidebar-card dt {
    color: var(--pw-heading);
    font-size: 0.75rem;
    font-weight: 750;
}

.pw-odds-guide-sidebar-card dd {
    margin: 0.15rem 0 0;
    color: var(--pw-muted);
    font-size: 0.7rem;
    line-height: 1.4;
}


/* =========================
   Disclaimer
   ========================= */

.pw-odds-guide-disclaimer {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    color: var(--pw-muted);
    font-size: 0.76rem;
    line-height: 1.5;
}


/* =========================
   Tablet
   ========================= */

@media (max-width: 991.98px) {
    .pw-odds-guide-layout {
        grid-template-columns: 1fr;
    }

    .pw-odds-guide-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pw-odds-guide-sidebar-card:first-child {
        position: static;
    }
}


/* =========================
   Mobile
   ========================= */

@media (max-width: 767.98px) {
    .pw-odds-guide-intro {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .pw-odds-guide-intro-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        flex-basis: auto;
    }

    .pw-odds-guide-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .pw-odds-guide-page {
        width: 100%;
        max-width: 100%;
        padding-top: 1.25rem;
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .pw-odds-guide-page > *,
    .pw-odds-guide-layout,
    .pw-odds-guide-main,
    .pw-odds-guide-section {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .pw-odds-guide-intro {
        padding: 1rem;
    }

    .pw-odds-guide-intro-links {
        grid-template-columns: 1fr;
    }

    .pw-odds-guide-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.85rem;
        -webkit-overflow-scrolling: touch;
    }

    .pw-odds-guide-nav a {
        flex: 0 0 auto;
    }

    .pw-odds-guide-section {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        padding: 1rem;
    }

    .pw-odds-guide-section-number {
        width: 32px;
        height: 32px;
    }

    .pw-odds-guide-example-grid,
    .pw-odds-guide-example-grid-two,
    .pw-odds-guide-steps,
    .pw-odds-guide-tool-grid {
        grid-template-columns: 1fr;
    }

    .pw-odds-guide-example {
        gap: 0.4rem 0.75rem;
    }

    .pw-odds-guide-formula {
        font-size: 0.7rem;
    }
}

/* ==========================================================
   ODDS SNAPSHOT EXPLORER
   ========================================================== */

.pw-snapshot-page {
    padding: 2rem 1rem 1rem;
}

.pw-snapshot-header {
    max-width: 1120px;
    margin: 0 auto 1rem;
}

.pw-snapshot-filter {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.pw-snapshot-summary {
    max-width: 1400px;
    margin: 0.75rem auto 0;
    padding: 0.85rem 1rem;
}

.pw-snapshot-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: var(--pw-muted);
    font-size: 0.78rem;
}

.pw-snapshot-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pw-snapshot-active-filters span {
    padding: 0.25rem 0.45rem;
    border: 1px solid var(--pw-border);
    border-radius: 999px;
    background: var(--pw-surface-muted);
    font-size: 0.68rem;
}

.pw-snapshot-results {
    max-width: 1400px;
    margin: 1rem auto 0;
    overflow: hidden;
}

.pw-snapshot-desktop-table {
    display: block;
}

.pw-snapshot-table {
    width: 100%;
    min-width: 1080px;
    margin-bottom: 0;
}

.pw-snapshot-table th,
.pw-snapshot-table td {
    padding: 0.65rem 0.55rem;
    border-color: var(--pw-border);
    font-size: 0.78rem;
    vertical-align: middle;
}

.pw-snapshot-table thead th {
    background: var(--pw-surface-muted);
    color: var(--pw-heading);
    font-size: 0.7rem;
    font-weight: 750;
    white-space: nowrap;
}

.pw-snapshot-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.025);
}

.pw-snapshot-table .pulled-col {
    min-width: 145px;
    white-space: nowrap;
}

.pw-snapshot-table .event-col {
    min-width: 230px;
    text-align: left;
}

.pw-snapshot-table .book-col {
    min-width: 135px;
    text-align: left;
}

.pw-snapshot-table .market-col {
    min-width: 82px;
    text-align: center;
}

.pw-snapshot-table .outcome-col {
    min-width: 170px;
    text-align: left;
}

.pw-snapshot-table .price-col {
    min-width: 74px;
    text-align: center;
    font-weight: 800;
}

.pw-snapshot-table .point-col {
    min-width: 65px;
    text-align: center;
}

.pw-snapshot-table .region-col {
    min-width: 62px;
    text-align: center;
}

.pw-snapshot-table-matchup {
    display: grid;
    gap: 0.25rem;
}

.pw-snapshot-table-matchup span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--pw-heading);
    font-weight: 650;
}

.pw-snapshot-table-matchup small {
    padding-left: 1.7rem;
    color: var(--pw-muted);
}

.pw-snapshot-table-matchup img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.pw-snapshot-table .book-col strong,
.pw-snapshot-table .book-col span {
    display: block;
}

.pw-snapshot-table .book-col strong {
    color: var(--pw-heading);
    font-size: 0.76rem;
}

.pw-snapshot-table .book-col span {
    margin-top: 0.15rem;
    color: var(--pw-muted);
    font-size: 0.66rem;
}

.pw-snapshot-pill {
    display: inline-flex;
    padding: 0.2rem 0.45rem;
    border: 1px solid var(--pw-border);
    border-radius: 999px;
    background: var(--pw-surface-muted);
    color: var(--pw-muted);
    font-size: 0.66rem;
    font-weight: 750;
}

.price-positive {
    color: #15803d !important;
}

.price-negative {
    color: #b91c1c !important;
}

.pw-snapshot-empty {
    color: var(--pw-muted);
}

.pw-snapshot-mobile-list {
    display: none;
}

.pw-snapshot-mobile-card {
    padding: 0.9rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-snapshot-mobile-card:last-child {
    border-bottom: 0;
}

.pw-snapshot-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.8rem;
}

.pw-snapshot-time {
    margin-bottom: 0.25rem;
    color: var(--pw-muted);
    font-size: 0.72rem;
    font-weight: 650;
}

.pw-snapshot-matchup {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    color: var(--pw-heading);
    font-size: 0.88rem;
    font-weight: 750;
}

.pw-snapshot-matchup img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.pw-snapshot-matchup small {
    color: var(--pw-muted);
}

.pw-snapshot-outcome {
    margin-top: 0.35rem;
    color: var(--pw-heading);
    font-size: 0.82rem;
    font-weight: 750;
}

.pw-snapshot-bookline {
    margin-top: 0.2rem;
    color: var(--pw-muted);
    font-size: 0.72rem;
}

.pw-snapshot-price-box {
    flex: 0 0 auto;
    text-align: right;
}

.pw-snapshot-price {
    font-size: 1rem;
    font-weight: 820;
    white-space: nowrap;
}

.pw-snapshot-point {
    margin-top: 0.2rem;
    color: var(--pw-muted);
    font-size: 0.7rem;
}

.pw-snapshot-mobile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.4rem 0.75rem;
}

.pw-snapshot-mobile-grid span {
    color: var(--pw-muted);
    font-size: 0.72rem;
    font-weight: 650;
}

.pw-snapshot-mobile-grid strong {
    color: var(--pw-heading);
    font-size: 0.78rem;
    text-align: right;
    word-break: break-word;
}

.pw-snapshot-mobile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.pw-snapshot-mobile-tags span {
    padding: 0.2rem 0.45rem;
    border: 1px solid var(--pw-border);
    border-radius: 999px;
    background: var(--pw-surface-muted);
    color: var(--pw-muted);
    font-size: 0.65rem;
    font-weight: 750;
    text-transform: uppercase;
}

.pw-snapshot-guide {
    max-width: 1400px;
    margin: 1rem auto 0;
    overflow: hidden;
}

.pw-snapshot-guide .accordion-item {
    border: 0;
}

.pw-snapshot-guide .accordion-button {
    padding: 1rem;
    background: var(--pw-surface);
    color: var(--pw-heading);
    font-size: 0.86rem;
    font-weight: 750;
    box-shadow: none;
}

.pw-snapshot-guide .accordion-button:not(.collapsed) {
    background: var(--pw-primary-soft);
    color: var(--pw-primary-hover);
}

.pw-snapshot-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.pw-snapshot-guide-grid h3 {
    margin-bottom: 0.35rem;
    color: var(--pw-heading);
    font-size: 0.82rem;
    font-weight: 750;
}

.pw-snapshot-guide-grid p {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    .pw-snapshot-desktop-table {
        display: none;
    }

    .pw-snapshot-mobile-list {
        display: block;
    }

    .pw-snapshot-filter .row > div[class*="col-"] {
        width: 100%;
    }

    .pw-snapshot-filter .btn {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .pw-snapshot-guide-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .pw-snapshot-page {
        width: 100%;
        max-width: 100%;
        padding: 1.25rem 0.75rem 1rem;
    }

    .pw-snapshot-page > *,
    .pw-snapshot-filter,
    .pw-snapshot-summary,
    .pw-snapshot-results,
    .pw-snapshot-guide,
    .pw-snapshot-mobile-list,
    .pw-snapshot-mobile-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .pw-snapshot-summary-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .pw-snapshot-mobile-card {
        padding: 0.8rem;
    }

    .pw-snapshot-matchup {
        font-size: 0.82rem;
    }
}

/* ==========================================================
   DAILY EDGE BOARD
   ========================================================== */

.pw-edge-board-page {
    max-width: 1500px;
    padding: 2rem 1rem 1rem;
}


/* =========================
   Header
   ========================= */

.pw-edge-board-header {
    max-width: 1120px;
    margin: 0 auto 1rem;
}

.pw-edge-board-note {
    margin-top: 0.75rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    background: var(--pw-surface-muted);
    color: var(--pw-muted);
    font-size: 0.76rem;
    line-height: 1.45;
}


/* =========================
   Date Controls
   ========================= */

.pw-edge-board-controls {
    margin: 0 auto;
    padding: 1rem;
}

.pw-edge-board-controls .form-label {
    margin-bottom: 0.35rem;
}


/* =========================
   Best Value Summary
   ========================= */

.pw-edge-summary {
    margin-top: 1rem;
    padding: 1rem;
}

.summary-toolbar {
    padding-top: 0.75rem;
    border-top: 1px solid var(--pw-border);
}

.summary-threshold-box {
    min-width: 210px;
}

#modelProbThreshold {
    width: 160px;
}

.threshold-badge {
    display: inline-block;
    min-width: 42px;
    text-align: right;
}

#bestEvSummaryCount {
    color: var(--pw-muted);
}

.best-ev-summary-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.76rem;
}

.best-ev-summary-table th,
.best-ev-summary-table td {
    padding: 0.52rem 0.45rem;
    border-color: var(--pw-border);
    vertical-align: middle;
    white-space: nowrap;
}

.best-ev-summary-table thead th {
    background: var(--pw-surface-muted);
    color: var(--pw-heading);
    font-size: 0.68rem;
    font-weight: 750;
}

.best-ev-summary-table th:nth-child(2),
.best-ev-summary-table td:nth-child(2),
.best-ev-summary-table th:nth-child(3),
.best-ev-summary-table td:nth-child(3) {
    text-align: left;
}

.summary-positive-row {
    background: rgba(21, 128, 61, 0.055);
}

.summary-negative-row {
    background: rgba(185, 28, 28, 0.035);
}

.summary-matchup-cell,
.summary-side-cell {
    width: 1%;
    min-width: 0;
}

.summary-team-stack {
    display: inline-flex;
    flex-direction: column;
    gap: 0.24rem;
    align-items: flex-start;
}

.summary-team-line {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.summary-team-link {
    color: var(--pw-heading);
    text-decoration: none;
}

.summary-team-link:hover {
    color: var(--pw-primary);
}

.team-logo-summary {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    object-fit: contain;
}

.summary-calc-link {
    color: var(--pw-primary);
    font-weight: 700;
    text-decoration: none;
}

.summary-calc-link-inner,
.best-ev-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.best-ev-inline img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.summary-calc-arrow {
    color: var(--pw-primary);
    font-size: 0.78rem;
    font-weight: 800;
}


/* =========================
   Summary Mobile Cards
   ========================= */

.summary-mobile-card {
    padding: 0.85rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-md);
    background: var(--pw-surface);
}

.summary-mobile-card:last-child {
    margin-bottom: 0;
}

.summary-mobile-card.summary-positive-row {
    border-color: rgba(21, 128, 61, 0.25);
}

.summary-mobile-card.summary-negative-row {
    border-color: rgba(185, 28, 28, 0.18);
}

.summary-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.55rem;
}

.summary-mobile-matchup {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.summary-mobile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.summary-mobile-stat-label {
    color: var(--pw-muted);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.summary-mobile-stat-value {
    color: var(--pw-heading);
    font-size: 0.84rem;
    font-weight: 750;
}


/* =========================
   Detailed Board Toggle
   ========================= */

.pw-edge-detail-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 0;
}

.pw-edge-detail-toggle span {
    color: var(--pw-muted);
    font-size: 0.74rem;
}


/* =========================
   Detailed Desktop Table
   ========================= */

.pw-edge-detail-table {
    margin-top: 0.75rem;
    overflow: hidden;
}

.pw-edge-detail-table .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.edge-board-table {
    width: 100%;
    min-width: 1180px;
    margin-bottom: 0;
    table-layout: fixed;
    font-size: 0.76rem;
}

.edge-board-fit-table th,
.edge-board-fit-table td {
    border-color: var(--pw-border);
    vertical-align: middle;
    line-height: 1.15;
}

.edge-board-fit-table thead th {
    padding: 0.45rem 0.22rem;
    background: var(--pw-heading);
    color: #ffffff;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    font-size: 0.68rem;
    font-weight: 700;
}

.edge-board-fit-table tbody td {
    padding: 0.45rem 0.22rem;
    text-align: center;
    white-space: nowrap;
    font-size: 0.72rem;
}


/* Grouped Header */

.edge-board-group-header th {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.edge-board-away-group {
    border-right: 2px solid rgba(255, 255, 255, 0.35);
}

.edge-board-home-group {
    border-right: 2px solid rgba(255, 255, 255, 0.35);
}

.edge-board-metric-header th:nth-child(7) {
    border-right: 2px solid rgba(255, 255, 255, 0.35);
}

.edge-board-metric-header th:nth-child(14) {
    border-right: 2px solid rgba(255, 255, 255, 0.35);
}


/* Fixed Column Widths */

.time-col {
    width: 54px;
    white-space: nowrap !important;
}

.matchup-col {
    width: 170px;
    text-align: left !important;
}

.snapshot-col {
    width: 62px;
}

.metric-col {
    width: 50px;
}

.book-col {
    width: 62px;
}

.compact-col {
    width: 62px;
}

.best-ev-col,
.best-ev-cell {
    width: 72px;
}


/* Matchup */

.matchup-col img {
    flex-shrink: 0;
}

.matchup-team-row {
    min-height: 20px;
}

.matchup-col .team-link-inline {
    max-width: 100%;
}

.matchup-col .team-link-inline span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-logo-sm {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    object-fit: contain;
}

.team-logo-md {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    object-fit: contain;
}

.team-link-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    color: var(--pw-heading);
    text-decoration: none;
}

.team-link-inline:hover {
    color: var(--pw-primary);
}

.edge-matchup-link {
    display: inline-block;
    margin-top: 0.2rem;
    color: var(--pw-muted);
    font-size: 0.68rem;
    font-weight: 650;
    text-decoration: none;
}

.edge-matchup-link:hover {
    color: var(--pw-primary);
}


/* Snapshot */

.snapshot-time {
    color: var(--pw-muted);
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: normal;
}


/* Sportsbook */

.book-name {
    color: var(--pw-muted);
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.15;
    overflow-wrap: anywhere;
    white-space: normal;
}


/* Editable Odds */

.compact-col input {
    width: 54px;
    min-width: 54px;
    padding: 0.22rem 0.2rem;
    margin: 0 auto;
    text-align: center;
    font-size: 0.72rem;
}


/* Calculated Values */

.away-edge-cell,
.away-ev-cell,
.away-kelly-cell,
.home-edge-cell,
.home-ev-cell,
.home-kelly-cell,
.best-ev-cell {
    font-size: 0.7rem;
}

.best-ev-cell {
    white-space: nowrap !important;
}


/* Separate Away and Home Groups */

.edge-board-fit-table tbody td:nth-child(10),
.edge-board-fit-table tbody td:nth-child(17) {
    border-right: 2px solid var(--pw-border);
}


/* =========================
   Detailed Mobile Cards
   ========================= */

.pw-edge-mobile-game {
    padding: 1rem;
    margin-top: 0.75rem;
}

.pw-edge-mobile-game .card-body {
    padding: 0;
}

.matchup-header {
    background: var(--pw-surface-muted);
}

.mobile-matchup-stack {
    display: grid;
    gap: 0.5rem;
}

.mobile-team-line {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.mobile-at-divider {
    color: var(--pw-muted);
    font-size: 0.75rem;
    text-align: center;
}

.mobile-snapshot-note {
    color: var(--pw-muted);
    font-size: 0.74rem;
    line-height: 1.35;
}

.mobile-game-card .form-control {
    max-width: 180px;
}

.best-mobile-box {
    border-left: 4px solid var(--pw-border);
}

.best-mobile-box.best-positive {
    border-left-color: #15803d;
    background: rgba(21, 128, 61, 0.06) !important;
}

.best-mobile-box.best-negative {
    border-left-color: #b91c1c;
    background: rgba(185, 28, 28, 0.05) !important;
}


/* =========================
   Value States
   ========================= */

.positive-value {
    color: #15803d !important;
    font-weight: 700;
}

.negative-value {
    color: #b91c1c !important;
    font-weight: 700;
}

.neutral-value {
    color: var(--pw-text);
}

.soft-positive {
    background: rgba(21, 128, 61, 0.07);
}

.soft-negative {
    background: rgba(185, 28, 28, 0.05);
}


/* =========================
   Guide
   ========================= */

.pw-edge-guide {
    margin-top: 1rem;
    overflow: hidden;
}

.pw-edge-guide .accordion-item {
    border: 0;
}

.pw-edge-guide .accordion-button {
    padding: 1rem;
    background: var(--pw-surface);
    color: var(--pw-heading);
    font-size: 0.84rem;
    font-weight: 750;
    box-shadow: none;
}

.pw-edge-guide .accordion-button:not(.collapsed) {
    background: var(--pw-primary-soft);
    color: var(--pw-primary-hover);
}

.pw-edge-guide .accordion-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.pw-edge-guide .accordion-body > div {
    margin-bottom: 0 !important;
}

.pw-edge-guide h3 {
    color: var(--pw-heading);
    font-size: 0.82rem;
    font-weight: 750;
}

.pw-edge-guide p {
    color: var(--pw-muted);
    font-size: 0.74rem;
    line-height: 1.5;
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 1199.98px) {
    .pw-edge-board-page {
        max-width: 1100px;
    }
}

@media (max-width: 991.98px) {
    .summary-toolbar {
        padding-top: 0;
        border-top: 0;
    }

    .summary-threshold-box {
        width: 100%;
        min-width: 0;
    }

    #modelProbThreshold {
        width: 100%;
    }

    .summary-mobile-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pw-edge-guide .accordion-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .pw-edge-board-controls .col-md-auto.d-flex {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .pw-edge-board-controls .col-md-auto.d-flex .btn {
        width: 100%;
    }

    .pw-edge-detail-toggle {
        align-items: flex-start;
        flex-direction: column;
    }

    .pw-edge-detail-toggle .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .pw-edge-board-page {
        width: 100%;
        max-width: 100%;
        padding: 1.25rem 0.75rem 1rem;
    }

    .pw-edge-board-page > *,
    .pw-edge-summary,
    .pw-edge-board-controls,
    .pw-edge-mobile-game {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .pw-edge-board-controls {
        padding: 0.85rem;
    }

    .pw-edge-board-controls .col-md-auto.d-flex {
        grid-template-columns: 1fr;
    }

    .summary-mobile-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mobile-game-card .form-control {
        max-width: 100%;
    }
}

/* ==========================================================
   MY NHL PICKS
   ========================================================== */

.pw-my-picks-page {
    max-width: 1120px;
    padding-top: 2rem;
    padding-bottom: 1rem;
}


/* =========================
   Header
   ========================= */

.pw-my-picks-header {
    margin-bottom: 1rem;
}

.pw-my-picks-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}


/* =========================
   Filters
   ========================= */

.pw-my-picks-filter {
    padding: 1rem;
}

.pw-my-picks-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    gap: 1rem;
    align-items: end;
}

.pw-my-picks-filter-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.pw-my-picks-filter-note {
    margin: 0.75rem 0 0;
    color: var(--pw-muted);
    font-size: 0.75rem;
}


/* =========================
   Performance
   ========================= */

.pw-my-picks-performance {
    margin-top: 2rem;
}

.pw-my-picks-performance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.pw-my-picks-performance-card {
    padding: 1rem;
}

.pw-my-picks-performance-label {
    color: var(--pw-muted);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pw-my-picks-performance-value {
    margin-top: 0.35rem;
    color: var(--pw-heading);
    font-size: 2rem;
    font-weight: 820;
    letter-spacing: -0.04em;
}

.pw-my-picks-performance-detail {
    margin-top: 0.15rem;
    color: var(--pw-muted);
    font-size: 0.78rem;
}

.pw-my-picks-progress {
    height: 6px;
    margin-top: 0.85rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--pw-surface-muted);
}

.pw-my-picks-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--pw-primary);
}

.pw-my-picks-progress-model span {
    background: var(--pw-muted);
}


/* =========================
   Pick Sections
   ========================= */

.pw-my-picks-section {
    margin-top: 1rem;
    overflow: hidden;
}

.pw-my-picks-section-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
    padding: 1rem;
    border: 0;
    border-bottom: 1px solid var(--pw-border);
    background: var(--pw-surface);
    color: var(--pw-heading);
    text-align: left;
}

.pw-my-picks-section-toggle:hover {
    background: var(--pw-surface-muted);
}

.pw-my-picks-section-toggle > span:first-child {
    display: grid;
    gap: 0.15rem;
}

.pw-my-picks-section-toggle strong {
    font-size: 0.9rem;
}

.pw-my-picks-section-toggle small {
    color: var(--pw-muted);
    font-size: 0.72rem;
}

.pw-my-picks-chevron {
    color: var(--pw-muted);
    transition: transform 0.2s ease;
}

.pw-my-picks-section-toggle[aria-expanded="true"] .pw-my-picks-chevron {
    transform: rotate(180deg);
}


/* =========================
   Desktop Table
   ========================= */

.pw-my-picks-desktop-table {
    display: block;
}

.pw-my-picks-table {
    width: 100%;
    min-width: 760px;
    margin-bottom: 0;
}

.pw-my-picks-table th,
.pw-my-picks-table td {
    padding: 0.7rem 0.75rem;
    border-color: var(--pw-border);
    text-align: center;
    vertical-align: middle;
    font-size: 0.78rem;
}

.pw-my-picks-table thead th {
    background: var(--pw-surface-muted);
    color: var(--pw-heading);
    font-size: 0.68rem;
    font-weight: 750;
}

.pw-my-picks-matchup {
    display: grid;
    gap: 0.25rem;
    min-width: 210px;
    text-align: left;
}

.pw-my-picks-matchup > div {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.pw-my-picks-matchup img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.pw-my-picks-matchup small {
    padding-left: 1.7rem;
    color: var(--pw-muted);
}

.pw-my-picks-probability-pair {
    display: grid;
    gap: 0.25rem;
}

.pw-my-picks-probability-pair span {
    color: var(--pw-muted);
    font-size: 0.76rem;
}

.pw-model-favourite {
    color: var(--pw-heading) !important;
    font-weight: 800 !important;
}

.pw-my-picks-selection {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.pw-my-picks-selection img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.pw-my-picks-selection > div {
    display: grid;
    text-align: left;
}

.pw-my-picks-selection small {
    color: var(--pw-primary);
    font-size: 0.65rem;
    font-weight: 700;
}

.pw-user-disagree {
    padding: 0.35rem 0.5rem;
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: var(--pw-radius-sm);
    background: rgba(37, 99, 235, 0.05);
}

.pw-pick-result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: 0.32rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 750;
}

.pw-pick-win {
    color: #15803d !important;
    background: rgba(21, 128, 61, 0.1);
}

.pw-pick-loss {
    color: #b91c1c !important;
    background: rgba(185, 28, 28, 0.08);
}


/* =========================
   Mobile Cards
   ========================= */

.pw-my-picks-mobile-list {
    display: none;
}

.pw-my-picks-mobile-card {
    padding: 0.9rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-my-picks-mobile-card:last-child {
    border-bottom: 0;
}

.pw-my-picks-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.pw-my-picks-mobile-date {
    margin-bottom: 0.4rem;
    color: var(--pw-muted);
    font-size: 0.72rem;
    font-weight: 650;
}

.pw-my-picks-mobile-matchup {
    display: grid;
    gap: 0.3rem;
}

.pw-my-picks-mobile-matchup > div {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 0.45rem;
    align-items: center;
    color: var(--pw-heading);
    font-size: 0.82rem;
}

.pw-my-picks-mobile-matchup img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.pw-my-picks-mobile-matchup strong {
    color: var(--pw-muted);
    font-size: 0.72rem;
}

.pw-my-picks-mobile-matchup small {
    padding-left: 1.7rem;
    color: var(--pw-muted);
    font-size: 0.66rem;
}

.pw-my-picks-mobile-selection {
    display: grid;
    justify-items: center;
    flex: 0 0 74px;
    gap: 0.2rem;
    padding: 0.5rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-md);
    background: var(--pw-surface-muted);
}

.pw-my-picks-mobile-selection img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.pw-my-picks-mobile-selection span {
    color: var(--pw-muted);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pw-my-picks-mobile-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.8rem;
}

.pw-my-picks-mobile-results > div {
    padding: 0.65rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    background: var(--pw-surface-muted);
}

.pw-my-picks-mobile-results span,
.pw-my-picks-mobile-results strong {
    display: block;
}

.pw-my-picks-mobile-results span {
    color: var(--pw-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pw-my-picks-mobile-results strong {
    margin-top: 0.2rem;
    color: var(--pw-heading);
    font-size: 0.82rem;
}

.pw-my-picks-disagree-note {
    margin-top: 0.7rem;
    color: var(--pw-primary);
    font-size: 0.7rem;
    font-weight: 650;
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 767.98px) {
    .pw-my-picks-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pw-my-picks-filter-actions {
        grid-column: 1 / -1;
    }

    .pw-my-picks-desktop-table {
        display: none;
    }

    .pw-my-picks-mobile-list {
        display: block;
    }
}

@media (max-width: 575.98px) {
    .pw-my-picks-page {
        width: 100%;
        max-width: 100%;
        padding-top: 1.25rem;
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .pw-my-picks-page > *,
    .pw-my-picks-filter,
    .pw-my-picks-performance-grid,
    .pw-my-picks-section,
    .pw-my-picks-mobile-list,
    .pw-my-picks-mobile-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .pw-my-picks-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pw-my-picks-actions .btn {
        width: 100%;
    }

    .pw-my-picks-filter-grid {
        grid-template-columns: 1fr;
    }

    .pw-my-picks-filter-actions {
        display: grid;
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .pw-my-picks-performance-grid {
        grid-template-columns: 1fr;
    }

    .pw-my-picks-performance-value {
        font-size: 1.65rem;
    }

    .pw-my-picks-mobile-header {
        gap: 0.6rem;
    }

    .pw-my-picks-mobile-selection {
        flex-basis: 68px;
        padding: 0.45rem;
    }

    .pw-my-picks-mobile-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================================
   NHL PICKS LEADERBOARD
   ========================================================== */

.pw-leaderboard-page {
    max-width: 1120px;
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.pw-leaderboard-header { margin-bottom: 1rem; }

.pw-leaderboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.pw-leaderboard-model-summary { margin-top: 2rem; }

.pw-leaderboard-model-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.pw-leaderboard-model-card {
    padding: 1rem;
    text-align: center;
}

.pw-leaderboard-model-card span {
    display: block;
    color: var(--pw-muted);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pw-leaderboard-model-card strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--pw-heading);
    font-size: 1.6rem;
    font-weight: 820;
    letter-spacing: -0.03em;
}

.pw-leaderboard-model-note {
    margin-top: 0.65rem;
    color: var(--pw-muted);
    font-size: 0.7rem;
    text-align: center;
}

.pw-leaderboard-filter {
    margin-top: 1rem;
    padding: 1rem;
}

.pw-leaderboard-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(160px, auto) auto;
    gap: 1rem;
    align-items: end;
}

.pw-leaderboard-qualified-toggle {
    display: flex;
    align-items: center;
    min-height: 38px;
}

.pw-leaderboard-filter-actions {
    display: flex;
    gap: 0.6rem;
}

.pw-leaderboard-filter-note {
    margin: 0.75rem 0 0;
    color: var(--pw-muted);
    font-size: 0.75rem;
}

.pw-leaderboard-section {
    margin-top: 1rem;
    overflow: hidden;
}

.pw-leaderboard-section-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
    padding: 1rem;
    border: 0;
    border-bottom: 1px solid var(--pw-border);
    background: var(--pw-surface);
    color: var(--pw-heading);
    text-align: left;
}

.pw-leaderboard-section-toggle:hover { background: var(--pw-surface-muted); }
.pw-leaderboard-section-toggle > span:first-child { display: grid; gap: 0.15rem; }
.pw-leaderboard-section-toggle strong { font-size: 0.9rem; }
.pw-leaderboard-section-toggle small { color: var(--pw-muted); font-size: 0.72rem; }

.pw-leaderboard-chevron {
    color: var(--pw-muted);
    transition: transform 0.2s ease;
}

.pw-leaderboard-section-toggle[aria-expanded="true"] .pw-leaderboard-chevron { transform: rotate(180deg); }

.pw-leaderboard-section-meta {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--pw-border);
    color: var(--pw-muted);
    font-size: 0.75rem;
}

.pw-leaderboard-desktop-table { display: block; }

.pw-leaderboard-table {
    width: 100%;
    min-width: 860px;
    margin-bottom: 0;
}

.pw-leaderboard-table th,
.pw-leaderboard-table td {
    padding: 0.7rem 0.65rem;
    border-color: var(--pw-border);
    text-align: center;
    vertical-align: middle;
    font-size: 0.78rem;
}

.pw-leaderboard-table thead th {
    background: var(--pw-surface-muted);
    color: var(--pw-heading);
    font-size: 0.68rem;
    font-weight: 750;
}

.pw-leaderboard-rank-cell {
    width: 56px;
    color: var(--pw-heading);
    font-weight: 800;
}

.pw-leaderboard-username-cell {
    min-width: 210px;
    text-align: left !important;
}

.pw-leaderboard-username-cell > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.pw-leaderboard-qualification {
    display: inline-flex;
    padding: 0.22rem 0.45rem;
    border-radius: 999px;
    background: var(--pw-surface-muted);
    color: var(--pw-muted);
    font-size: 0.62rem;
    font-weight: 700;
    white-space: nowrap;
}

.pw-leaderboard-accuracy-badge {
    display: inline-flex;
    min-width: 58px;
    justify-content: center;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(21, 128, 61, 0.1);
    color: #15803d;
    font-size: 0.72rem;
    font-weight: 750;
}

.pw-leaderboard-accuracy-muted { background: var(--pw-surface-muted); color: var(--pw-muted); }
.pw-diff-positive { color: #15803d !important; font-weight: 800; }
.pw-diff-negative { color: #b91c1c !important; font-weight: 800; }
.pw-diff-neutral { color: var(--pw-muted) !important; font-weight: 750; }

.pw-leaderboard-mobile-list { display: none; }

.pw-leaderboard-mobile-card {
    padding: 0.9rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-leaderboard-mobile-card:last-child { border-bottom: 0; }

.pw-leaderboard-mobile-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.pw-leaderboard-mobile-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.55rem;
    border: 1px solid var(--pw-border);
    border-radius: 999px;
    background: var(--pw-surface-muted);
    color: var(--pw-heading);
    font-size: 0.8rem;
    font-weight: 800;
}

.pw-leaderboard-mobile-username {
    margin-top: 0.45rem;
    color: var(--pw-heading);
    font-size: 0.92rem;
    font-weight: 750;
}

.pw-leaderboard-mobile-top .pw-leaderboard-qualification { margin-top: 0.35rem; }

.pw-leaderboard-mobile-accuracy {
    display: grid;
    justify-items: center;
    flex: 0 0 82px;
    gap: 0.15rem;
    padding: 0.55rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-md);
    background: var(--pw-surface-muted);
}

.pw-leaderboard-mobile-accuracy strong { color: var(--pw-heading); font-size: 1rem; font-weight: 820; }
.pw-leaderboard-mobile-accuracy span { color: var(--pw-muted); font-size: 0.6rem; font-weight: 700; text-align: center; text-transform: uppercase; }

.pw-leaderboard-mobile-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.8rem;
}

.pw-leaderboard-mobile-stats > div {
    padding: 0.65rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    background: var(--pw-surface-muted);
}

.pw-leaderboard-mobile-stats span,
.pw-leaderboard-mobile-stats strong { display: block; }
.pw-leaderboard-mobile-stats span { color: var(--pw-muted); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.pw-leaderboard-mobile-stats strong { margin-top: 0.2rem; color: var(--pw-heading); font-size: 0.82rem; }

.pw-leaderboard-guide {
    margin-top: 1rem;
    overflow: hidden;
}

.pw-leaderboard-guide .accordion-item { border: 0; }
.pw-leaderboard-guide .accordion-button { padding: 1rem; background: var(--pw-surface); color: var(--pw-heading); font-size: 0.84rem; font-weight: 750; box-shadow: none; }
.pw-leaderboard-guide .accordion-button:not(.collapsed) { background: var(--pw-primary-soft); color: var(--pw-primary-hover); }

.pw-leaderboard-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.pw-leaderboard-guide-grid h3 { margin-bottom: 0.35rem; color: var(--pw-heading); font-size: 0.82rem; font-weight: 750; }
.pw-leaderboard-guide-grid p { margin: 0; color: var(--pw-muted); font-size: 0.75rem; line-height: 1.5; }

@media (max-width: 991.98px) {
    .pw-leaderboard-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .pw-leaderboard-desktop-table { display: none; }
    .pw-leaderboard-mobile-list { display: block; }
    .pw-leaderboard-guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .pw-leaderboard-page {
        width: 100%;
        max-width: 100%;
        padding-top: 1.25rem;
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .pw-leaderboard-page > *,
    .pw-leaderboard-model-grid,
    .pw-leaderboard-filter,
    .pw-leaderboard-section,
    .pw-leaderboard-mobile-list,
    .pw-leaderboard-mobile-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .pw-leaderboard-actions { display: grid; grid-template-columns: 1fr; }
    .pw-leaderboard-actions .btn { width: 100%; }
    .pw-leaderboard-model-grid { grid-template-columns: 1fr; }
    .pw-leaderboard-model-card strong { font-size: 1.4rem; }
    .pw-leaderboard-filter-grid { grid-template-columns: 1fr; }
    .pw-leaderboard-filter-actions { display: grid; grid-template-columns: 1fr; }
    .pw-leaderboard-filter-actions .btn { width: 100%; }
    .pw-leaderboard-mobile-accuracy { flex-basis: 76px; }
}

/* ==========================================================
   DATA HUB HOME
   ========================================================== */

.pw-datahub-home-page {
    max-width: 1120px;
    padding-top: 2rem;
    padding-bottom: 1rem;
}


/* =========================
   Header
   ========================= */

.pw-datahub-home-header {
    margin-bottom: 1rem;
}

.pw-datahub-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

.pw-datahub-feature-list span {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--pw-border);
    border-radius: 999px;
    background: var(--pw-surface-muted);
    color: var(--pw-muted);
    font-size: 0.7rem;
    font-weight: 700;
}


/* =========================
   Sections
   ========================= */

.pw-datahub-home-section {
    margin-top: 2.5rem;
}


/* =========================
   Dataset Cards
   ========================= */

.pw-datahub-dataset-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.pw-datahub-dataset-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1rem;
}

.pw-datahub-dataset-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 0.85rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-md);
    background: var(--pw-surface-muted);
    font-size: 1.25rem;
}

.pw-datahub-dataset-card h3 {
    margin-bottom: 0.45rem;
    color: var(--pw-heading);
    font-size: 0.95rem;
    font-weight: 780;
}

.pw-datahub-dataset-card p {
    margin-bottom: 1rem;
    color: var(--pw-muted);
    font-size: 0.76rem;
    line-height: 1.55;
}

.pw-datahub-dataset-card .btn {
    width: 100%;
    margin-top: auto;
}


/* =========================
   Workflow
   ========================= */

.pw-datahub-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
}

.pw-datahub-steps article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    padding: 1rem;
    border-right: 1px solid var(--pw-border);
}

.pw-datahub-steps article:last-child {
    border-right: 0;
}

.pw-datahub-steps article > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--pw-primary-soft);
    color: var(--pw-primary);
    font-size: 0.75rem;
    font-weight: 800;
}

.pw-datahub-steps h3 {
    margin-bottom: 0.35rem;
    color: var(--pw-heading);
    font-size: 0.82rem;
    font-weight: 750;
}

.pw-datahub-steps p {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.72rem;
    line-height: 1.45;
}


/* =========================
   Comparison
   ========================= */

.pw-datahub-compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.pw-datahub-compare-card {
    padding: 1rem;
}

.pw-datahub-compare-label {
    color: var(--pw-primary);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pw-datahub-compare-card h3 {
    margin: 0.25rem 0 0.65rem;
    color: var(--pw-heading);
    font-size: 0.92rem;
    font-weight: 780;
}

.pw-datahub-compare-card ul {
    display: grid;
    gap: 0.4rem;
    margin: 0;
    padding-left: 1.1rem;
    color: var(--pw-muted);
    font-size: 0.76rem;
    line-height: 1.45;
}


/* =========================
   Standard Pages
   ========================= */

.pw-datahub-standard-pages {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
    padding: 1rem;
}

.pw-datahub-standard-pages > div:first-child {
    max-width: 560px;
}

.pw-datahub-standard-pages h2 {
    margin: 0.2rem 0 0.45rem;
    color: var(--pw-heading);
    font-size: 1rem;
    font-weight: 780;
}

.pw-datahub-standard-pages p {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.pw-datahub-standard-links {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
}


/* =========================
   Free Note
   ========================= */

.pw-datahub-free-note {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1rem;
    padding: 1rem;
    border-color: rgba(21, 128, 61, 0.22);
    background: rgba(21, 128, 61, 0.04);
}

.pw-datahub-free-note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 999px;
    background: rgba(21, 128, 61, 0.12);
    color: #15803d;
    font-weight: 800;
}

.pw-datahub-free-note h2 {
    margin-bottom: 0.25rem;
    color: var(--pw-heading);
    font-size: 0.88rem;
    font-weight: 780;
}

.pw-datahub-free-note p {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.74rem;
    line-height: 1.45;
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 991.98px) {
    .pw-datahub-dataset-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pw-datahub-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pw-datahub-steps article:nth-child(2) {
        border-right: 0;
    }

    .pw-datahub-steps article:nth-child(-n + 2) {
        border-bottom: 1px solid var(--pw-border);
    }

    .pw-datahub-standard-pages {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .pw-datahub-standard-links {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .pw-datahub-home-page {
        width: 100%;
        max-width: 100%;
        padding-top: 1.25rem;
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .pw-datahub-home-page > *,
    .pw-datahub-dataset-grid,
    .pw-datahub-dataset-card,
    .pw-datahub-steps,
    .pw-datahub-compare-grid,
    .pw-datahub-standard-pages,
    .pw-datahub-free-note {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .pw-datahub-feature-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pw-datahub-feature-list span {
        justify-content: center;
        text-align: center;
    }

    .pw-datahub-dataset-grid,
    .pw-datahub-compare-grid {
        grid-template-columns: 1fr;
    }

    .pw-datahub-steps {
        grid-template-columns: 1fr;
    }

    .pw-datahub-steps article {
        border-right: 0;
        border-bottom: 1px solid var(--pw-border);
    }

    .pw-datahub-steps article:last-child {
        border-bottom: 0;
    }

    .pw-datahub-standard-links {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .pw-datahub-standard-links .btn {
        width: 100%;
    }

    .pw-datahub-free-note {
        align-items: flex-start;
    }
}

/* ==========================================================
   NHL TEAM DATA
   ========================================================== */

.pw-team-data-page {
    max-width: 1180px;
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.pw-team-data-header {
    margin-bottom: 1rem;
}

.pw-datahub-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.75rem;
}

.pw-datahub-nav-link {
    padding: 0.42rem 0.65rem;
    border: 1px solid var(--pw-border);
    border-radius: 999px;
    background: var(--pw-surface-muted);
    color: var(--pw-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

.pw-datahub-nav-link:hover {
    border-color: var(--pw-primary);
    color: var(--pw-primary);
}

.pw-datahub-nav-link.active {
    border-color: var(--pw-primary);
    background: var(--pw-primary);
    color: #fff;
}

.pw-team-data-summary-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.6fr 0.8fr 0.8fr;
    gap: 1rem;
    margin-top: 1rem;
}

.pw-team-data-summary-card {
    min-width: 0;
    padding: 1rem;
}

.pw-team-data-summary-card span {
    display: block;
    color: var(--pw-muted);
    font-size: 0.65rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pw-team-data-summary-card strong {
    display: block;
    margin-top: 0.3rem;
    color: var(--pw-heading);
    font-size: 0.82rem;
    line-height: 1.35;
}

.pw-team-data-export {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
}

.pw-team-data-export > div {
    max-width: 720px;
}

.pw-team-data-export h2,
.pw-team-data-standard-link h2 {
    margin: 0.2rem 0 0.35rem;
    color: var(--pw-heading);
    font-size: 0.95rem;
    font-weight: 780;
}

.pw-team-data-export p,
.pw-team-data-standard-link p {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

.pw-team-data-filter {
    margin-top: 1rem;
    padding: 1rem;
}

.pw-team-data-filter-grid {
    display: grid;
    grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1.2fr) auto;
    gap: 1rem;
    align-items: end;
}

.pw-team-data-filter-actions {
    display: flex;
    gap: 0.6rem;
}

.pw-team-data-mobile-sort {
    display: none;
    margin-top: 1rem;
    padding: 0.9rem;
}

.pw-team-data-mobile-sort-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
}

.pw-team-data-mobile-sort-header h2 {
    margin: 0.15rem 0 0;
    color: var(--pw-heading);
    font-size: 0.88rem;
    font-weight: 780;
}

.pw-team-data-mobile-sort-header > span {
    color: var(--pw-muted);
    font-size: 0.7rem;
}

.pw-team-data-sort-chips {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    -webkit-overflow-scrolling: touch;
}

.pw-team-data-sort-chips a {
    flex: 0 0 auto;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--pw-border);
    border-radius: 999px;
    background: var(--pw-surface-muted);
    color: var(--pw-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
}

.pw-team-data-sort-chips a.active {
    border-color: var(--pw-primary);
    background: var(--pw-primary);
    color: #fff;
}

.pw-team-data-preview {
    margin-top: 1rem;
    overflow: hidden;
}

.pw-team-data-preview-header {
    padding: 1rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-team-data-preview-header h2 {
    margin: 0.2rem 0 0.3rem;
    color: var(--pw-heading);
    font-size: 1rem;
    font-weight: 780;
}

.pw-team-data-preview-header p {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.72rem;
}

.pw-team-data-desktop-table {
    display: block;
}

.pw-team-data-table {
    width: 100%;
    min-width: 940px;
    margin-bottom: 0;
}

.pw-team-data-table th,
.pw-team-data-table td {
    padding: 0.62rem 0.5rem;
    border-color: var(--pw-border);
    text-align: center;
    vertical-align: middle;
    font-size: 0.76rem;
}

.pw-team-data-table thead th {
    background: var(--pw-surface-muted);
    font-size: 0.67rem;
    font-weight: 750;
}

.pw-team-data-table thead a {
    color: var(--pw-heading);
    text-decoration: none;
}

.pw-team-data-table thead a:hover {
    color: var(--pw-primary);
}

.pw-team-data-table th:first-child,
.pw-team-data-table td:first-child {
    min-width: 180px;
    text-align: left;
}

.pw-team-data-team-cell {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.pw-team-data-team-cell img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.pw-team-data-mobile-cards {
    display: none;
}

.pw-team-data-mobile-card {
    padding: 0.9rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-team-data-mobile-card:last-child {
    border-bottom: 0;
}

.pw-team-data-mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.pw-team-data-mobile-team {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.pw-team-data-mobile-team img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.pw-team-data-mobile-team strong {
    color: var(--pw-heading);
    font-size: 0.9rem;
}

.pw-team-data-mobile-card-header p {
    margin: 0.3rem 0 0;
    color: var(--pw-muted);
    font-size: 0.7rem;
}

.pw-team-data-mobile-points {
    display: grid;
    justify-items: end;
    flex: 0 0 auto;
}

.pw-team-data-mobile-points span {
    color: var(--pw-muted);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pw-team-data-mobile-points strong {
    color: var(--pw-heading);
    font-size: 1.1rem;
    font-weight: 820;
}

.pw-team-data-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.pw-team-data-mobile-grid > div {
    padding: 0.6rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    background: var(--pw-surface-muted);
}

.pw-team-data-mobile-grid span,
.pw-team-data-mobile-grid strong {
    display: block;
}

.pw-team-data-mobile-grid span {
    color: var(--pw-muted);
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pw-team-data-mobile-grid strong {
    margin-top: 0.2rem;
    color: var(--pw-heading);
    font-size: 0.8rem;
}

.pw-team-data-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.pw-team-data-pagination span {
    color: var(--pw-muted);
    font-size: 0.72rem;
}

.pw-team-data-guide {
    margin-top: 1rem;
    overflow: hidden;
}

.pw-team-data-guide .accordion-item {
    border: 0;
}

.pw-team-data-guide .accordion-button {
    padding: 1rem;
    background: var(--pw-surface);
    color: var(--pw-heading);
    font-size: 0.84rem;
    font-weight: 750;
    box-shadow: none;
}

.pw-team-data-guide .accordion-button:not(.collapsed) {
    background: var(--pw-primary-soft);
    color: var(--pw-primary-hover);
}

.pw-team-data-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.pw-team-data-guide-grid h3 {
    margin-bottom: 0.3rem;
    color: var(--pw-heading);
    font-size: 0.8rem;
    font-weight: 750;
}

.pw-team-data-guide-grid p {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.73rem;
    line-height: 1.45;
}

.pw-team-data-standard-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
}

.pw-team-data-standard-link > div {
    max-width: 680px;
}

@media (max-width: 991.98px) {
    .pw-team-data-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pw-team-data-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pw-team-data-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .pw-team-data-desktop-table {
        display: none;
    }

    .pw-team-data-mobile-cards,
    .pw-team-data-mobile-sort {
        display: block;
    }

    .pw-team-data-export,
    .pw-team-data-standard-link {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .pw-team-data-export .btn,
    .pw-team-data-standard-link .btn {
        width: 100%;
    }

    .pw-team-data-guide-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .pw-team-data-page {
        width: 100%;
        max-width: 100%;
        padding-top: 1.25rem;
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .pw-team-data-page > *,
    .pw-datahub-nav,
    .pw-team-data-summary-grid,
    .pw-team-data-filter,
    .pw-team-data-preview,
    .pw-team-data-mobile-cards,
    .pw-team-data-mobile-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .pw-datahub-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pw-datahub-nav-link {
        flex: 0 0 auto;
    }

    .pw-team-data-summary-grid,
    .pw-team-data-filter-grid {
        grid-template-columns: 1fr;
    }

    .pw-team-data-filter-actions {
        display: grid;
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .pw-team-data-filter-actions .btn {
        width: 100%;
    }

    .pw-team-data-pagination {
        flex-wrap: wrap;
    }
}

/* ==========================================================
   NHL PLAYER DATA
   ========================================================== */

.pw-player-data-page {
    max-width: 1180px;
    padding-top: 2rem;
    padding-bottom: 1rem;
}

/* =========================
   Header
   ========================= */

.pw-player-data-header {
    margin-bottom: 1rem;
}

/* =========================
   Dataset Summary
   ========================= */

.pw-player-data-summary-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 0.8fr 0.8fr;
    gap: 1rem;
    margin-top: 1rem;
}

.pw-player-data-summary-card {
    min-width: 0;
    padding: 1rem;
}

.pw-player-data-summary-card span {
    display: block;
    color: var(--pw-muted);
    font-size: .65rem;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.pw-player-data-summary-card strong {
    display: block;
    margin-top: .3rem;
    color: var(--pw-heading);
    font-size: .82rem;
    line-height: 1.35;
}

/* =========================
   Export
   ========================= */

.pw-player-data-export,
.pw-player-data-standard-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
}

.pw-player-data-export > div,
.pw-player-data-standard-link > div {
    max-width: 700px;
}

.pw-player-data-export h2,
.pw-player-data-standard-link h2 {
    margin: .2rem 0 .35rem;
    font-size: .95rem;
    font-weight: 780;
    color: var(--pw-heading);
}

.pw-player-data-export p,
.pw-player-data-standard-link p {
    margin: 0;
    color: var(--pw-muted);
    font-size: .75rem;
    line-height: 1.5;
}

/* =========================
   Filters
   ========================= */

.pw-player-data-filter {
    margin-top: 1rem;
    padding: 1rem;
}

.pw-player-data-filter-grid {
    display: grid;
    grid-template-columns: minmax(170px,.8fr) minmax(220px,1.2fr) auto;
    gap: 1rem;
    align-items: end;
}

.pw-player-data-filter-actions {
    display: flex;
    gap: .6rem;
}

/* =========================
   Mobile Sort
   ========================= */

.pw-player-data-mobile-sort {
    display: none;
    margin-top: 1rem;
    padding: .9rem;
}

.pw-player-data-mobile-sort-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
}

.pw-player-data-mobile-sort-header h2 {
    margin: .2rem 0 0;
    font-size: .88rem;
    font-weight: 780;
}

.pw-player-data-sort-chips {
    display: flex;
    gap: .45rem;
    overflow-x: auto;
    padding-bottom: .25rem;
}

.pw-player-data-sort-chips a {
    flex: 0 0 auto;
    padding: .4rem .65rem;
    border: 1px solid var(--pw-border);
    border-radius: 999px;
    background: var(--pw-surface-muted);
    text-decoration: none;
    color: var(--pw-muted);
    font-size: .7rem;
    font-weight: 700;
}

.pw-player-data-sort-chips a.active {
    background: var(--pw-primary);
    border-color: var(--pw-primary);
    color: #fff;
}

/* =========================
   Preview Table
   ========================= */

.pw-player-data-preview {
    margin-top: 1rem;
    overflow: hidden;
}

.pw-player-data-preview-header {
    padding: 1rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-player-data-preview-header h2 {
    margin: .2rem 0;
    font-size: 1rem;
    font-weight: 780;
}

.pw-player-data-preview-header p {
    margin: 0;
    color: var(--pw-muted);
    font-size: .72rem;
}

.pw-player-data-table {
    min-width: 980px;
    margin-bottom: 0;
}

.pw-player-data-table th,
.pw-player-data-table td {
    padding: .62rem .5rem;
    text-align: center;
    vertical-align: middle;
    font-size: .76rem;
}

.pw-player-data-table thead th {
    background: var(--pw-surface-muted);
    font-size: .67rem;
}

.pw-player-data-table th:first-child,
.pw-player-data-table td:first-child {
    min-width: 170px;
    text-align: left;
}

.pw-player-data-table th:nth-child(2),
.pw-player-data-table td:nth-child(2) {
    min-width: 150px;
    text-align: left;
}

.pw-player-data-name-cell {
    font-weight: 700;
}

.pw-player-data-team-cell {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.pw-player-data-team-cell img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* =========================
   Mobile Cards
   ========================= */

.pw-player-data-mobile-cards {
    display: none;
}

.pw-player-data-mobile-card {
    padding: .9rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-player-data-mobile-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: .8rem;
}

.pw-player-data-mobile-team {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .35rem;
    font-size: .7rem;
    color: var(--pw-muted);
}

.pw-player-data-mobile-team img {
    width: 20px;
    height: 20px;
}

.pw-player-data-mobile-points {
    text-align: right;
}

.pw-player-data-mobile-points span {
    display: block;
    font-size: .62rem;
    text-transform: uppercase;
    color: var(--pw-muted);
}

.pw-player-data-mobile-points strong {
    font-size: 1.1rem;
}

.pw-player-data-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: .65rem;
}

.pw-player-data-mobile-grid > div {
    padding: .6rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    background: var(--pw-surface-muted);
}

.pw-player-data-mobile-grid span {
    display: block;
    font-size: .61rem;
    color: var(--pw-muted);
    text-transform: uppercase;
}

.pw-player-data-mobile-grid strong {
    display: block;
    margin-top: .2rem;
}

/* =========================
   Pagination & Guide
   ========================= */

.pw-player-data-pagination {
    display: flex;
    justify-content: center;
    gap: .75rem;
    align-items: center;
    margin-top: 1rem;
}

.pw-player-data-guide {
    margin-top: 1rem;
}

.pw-player-data-guide .accordion-item {
    border: 0;
}

.pw-player-data-guide-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1rem;
}

/* =========================
   Responsive
   ========================= */

@media (max-width:991.98px){
    .pw-player-data-summary-grid{grid-template-columns:repeat(2,1fr);}
    .pw-player-data-filter-grid{grid-template-columns:repeat(2,1fr);}
    .pw-player-data-filter-actions{grid-column:1/-1;}
}

@media (max-width:767.98px){
    .pw-player-data-desktop-table{display:none;}
    .pw-player-data-mobile-cards,
    .pw-player-data-mobile-sort{display:block;}
    .pw-player-data-export,
    .pw-player-data-standard-link{
        flex-direction:column;
        align-items:stretch;
    }
    .pw-player-data-export .btn,
    .pw-player-data-standard-link .btn{
        width:100%;
    }
    .pw-player-data-guide-grid{grid-template-columns:1fr;}
}

@media (max-width:575.98px){
    .pw-player-data-page{
        max-width:100%;
        padding:1.25rem .75rem 1rem;
    }
    .pw-player-data-summary-grid,
    .pw-player-data-filter-grid{
        grid-template-columns:1fr;
    }
    .pw-player-data-filter-actions{
        display:grid;
        grid-template-columns:1fr;
    }
    .pw-player-data-filter-actions .btn{
        width:100%;
    }
}

/* ==========================================================
   NHL GOALIE DATA
   ========================================================== */

.pw-goalie-data-page {
    max-width: 1180px;
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.pw-goalie-data-header {
    margin-bottom: 1rem;
}

.pw-goalie-data-summary-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 0.8fr 0.8fr;
    gap: 1rem;
    margin-top: 1rem;
}

.pw-goalie-data-summary-card {
    min-width: 0;
    padding: 1rem;
}

.pw-goalie-data-summary-card span {
    display: block;
    color: var(--pw-muted);
    font-size: 0.65rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pw-goalie-data-summary-card strong {
    display: block;
    margin-top: 0.3rem;
    color: var(--pw-heading);
    font-size: 0.82rem;
    line-height: 1.35;
}

.pw-goalie-data-export,
.pw-goalie-data-standard-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
}

.pw-goalie-data-export > div,
.pw-goalie-data-standard-link > div {
    max-width: 700px;
}

.pw-goalie-data-export h2,
.pw-goalie-data-standard-link h2 {
    margin: 0.2rem 0 0.35rem;
    color: var(--pw-heading);
    font-size: 0.95rem;
    font-weight: 780;
}

.pw-goalie-data-export p,
.pw-goalie-data-standard-link p {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

.pw-goalie-data-filter {
    margin-top: 1rem;
    padding: 1rem;
}

.pw-goalie-data-filter-grid {
    display: grid;
    grid-template-columns: minmax(170px, 0.8fr) minmax(220px, 1.2fr) auto;
    gap: 1rem;
    align-items: end;
}

.pw-goalie-data-filter-actions {
    display: flex;
    gap: 0.6rem;
}

.pw-goalie-data-mobile-sort {
    display: none;
    margin-top: 1rem;
    padding: 0.9rem;
}

.pw-goalie-data-mobile-sort-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.pw-goalie-data-mobile-sort-header h2 {
    margin: 0.2rem 0 0;
    color: var(--pw-heading);
    font-size: 0.88rem;
    font-weight: 780;
}

.pw-goalie-data-mobile-sort-header > span {
    color: var(--pw-muted);
    font-size: 0.7rem;
}

.pw-goalie-data-sort-chips {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
}

.pw-goalie-data-sort-chips a {
    flex: 0 0 auto;
    padding: 0.4rem 0.65rem;
    border: 1px solid var(--pw-border);
    border-radius: 999px;
    background: var(--pw-surface-muted);
    color: var(--pw-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
}

.pw-goalie-data-sort-chips a.active {
    border-color: var(--pw-primary);
    background: var(--pw-primary);
    color: #ffffff;
}

.pw-goalie-data-preview {
    margin-top: 1rem;
    overflow: hidden;
}

.pw-goalie-data-preview-header {
    padding: 1rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-goalie-data-preview-header h2 {
    margin: 0.2rem 0;
    color: var(--pw-heading);
    font-size: 1rem;
    font-weight: 780;
}

.pw-goalie-data-preview-header p {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.72rem;
}

.pw-goalie-data-desktop-table {
    display: block;
}

.pw-goalie-data-table {
    width: 100%;
    min-width: 980px;
    margin-bottom: 0;
}

.pw-goalie-data-table th,
.pw-goalie-data-table td {
    padding: 0.62rem 0.5rem;
    border-color: var(--pw-border);
    text-align: center;
    vertical-align: middle;
    font-size: 0.76rem;
}

.pw-goalie-data-table thead th {
    background: var(--pw-surface-muted);
    font-size: 0.67rem;
    font-weight: 750;
}

.pw-goalie-data-table thead a {
    color: var(--pw-heading);
    text-decoration: none;
}

.pw-goalie-data-table thead a:hover {
    color: var(--pw-primary);
}

.pw-goalie-data-table th:first-child,
.pw-goalie-data-table td:first-child {
    min-width: 170px;
    text-align: left;
}

.pw-goalie-data-table th:nth-child(2),
.pw-goalie-data-table td:nth-child(2) {
    min-width: 150px;
    text-align: left;
}

.pw-goalie-data-name-cell {
    color: var(--pw-heading);
    font-weight: 700;
}

.pw-goalie-data-team-cell {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.pw-goalie-data-team-cell img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.pw-goalie-data-mobile-cards {
    display: none;
}

.pw-goalie-data-mobile-card {
    padding: 0.9rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-goalie-data-mobile-card:last-child {
    border-bottom: 0;
}

.pw-goalie-data-mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.pw-goalie-data-mobile-card-header > div:first-child > strong {
    color: var(--pw-heading);
    font-size: 0.9rem;
}

.pw-goalie-data-mobile-team {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
    color: var(--pw-muted);
    font-size: 0.7rem;
}

.pw-goalie-data-mobile-team img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.pw-goalie-data-mobile-save {
    display: grid;
    justify-items: end;
    flex: 0 0 auto;
}

.pw-goalie-data-mobile-save span {
    color: var(--pw-muted);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pw-goalie-data-mobile-save strong {
    color: var(--pw-heading);
    font-size: 1.1rem;
    font-weight: 820;
}

.pw-goalie-data-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.pw-goalie-data-mobile-grid > div {
    padding: 0.6rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    background: var(--pw-surface-muted);
}

.pw-goalie-data-mobile-grid span,
.pw-goalie-data-mobile-grid strong {
    display: block;
}

.pw-goalie-data-mobile-grid span {
    color: var(--pw-muted);
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pw-goalie-data-mobile-grid strong {
    margin-top: 0.2rem;
    color: var(--pw-heading);
    font-size: 0.8rem;
}

.pw-goalie-data-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.pw-goalie-data-pagination span {
    color: var(--pw-muted);
    font-size: 0.72rem;
}

.pw-goalie-data-guide {
    margin-top: 1rem;
    overflow: hidden;
}

.pw-goalie-data-guide .accordion-item {
    border: 0;
}

.pw-goalie-data-guide .accordion-button {
    padding: 1rem;
    background: var(--pw-surface);
    color: var(--pw-heading);
    font-size: 0.84rem;
    font-weight: 750;
    box-shadow: none;
}

.pw-goalie-data-guide .accordion-button:not(.collapsed) {
    background: var(--pw-primary-soft);
    color: var(--pw-primary-hover);
}

.pw-goalie-data-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.pw-goalie-data-guide-grid h3 {
    margin-bottom: 0.3rem;
    color: var(--pw-heading);
    font-size: 0.8rem;
    font-weight: 750;
}

.pw-goalie-data-guide-grid p {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.73rem;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .pw-goalie-data-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pw-goalie-data-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pw-goalie-data-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .pw-goalie-data-desktop-table {
        display: none;
    }

    .pw-goalie-data-mobile-cards,
    .pw-goalie-data-mobile-sort {
        display: block;
    }

    .pw-goalie-data-export,
    .pw-goalie-data-standard-link {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .pw-goalie-data-export .btn,
    .pw-goalie-data-standard-link .btn {
        width: 100%;
    }

    .pw-goalie-data-guide-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .pw-goalie-data-page {
        width: 100%;
        max-width: 100%;
        padding-top: 1.25rem;
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .pw-goalie-data-page > *,
    .pw-goalie-data-summary-grid,
    .pw-goalie-data-filter,
    .pw-goalie-data-preview,
    .pw-goalie-data-mobile-cards,
    .pw-goalie-data-mobile-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .pw-goalie-data-summary-grid,
    .pw-goalie-data-filter-grid {
        grid-template-columns: 1fr;
    }

    .pw-goalie-data-filter-actions {
        display: grid;
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .pw-goalie-data-filter-actions .btn {
        width: 100%;
    }

    .pw-goalie-data-pagination {
        flex-wrap: wrap;
    }
}

/* ==========================================================
   NHL GAME DATA
   ========================================================== */

.pw-game-data-page {
    max-width: 1180px;
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.pw-game-data-header {
    margin-bottom: 1rem;
}

.pw-game-data-summary-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 0.8fr 0.8fr;
    gap: 1rem;
    margin-top: 1rem;
}

.pw-game-data-summary-card {
    min-width: 0;
    padding: 1rem;
}

.pw-game-data-summary-card span {
    display: block;
    color: var(--pw-muted);
    font-size: 0.65rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pw-game-data-summary-card strong {
    display: block;
    margin-top: 0.3rem;
    color: var(--pw-heading);
    font-size: 0.82rem;
    line-height: 1.35;
}

.pw-game-data-export,
.pw-game-data-standard-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
}

.pw-game-data-export > div,
.pw-game-data-standard-link > div {
    max-width: 700px;
}

.pw-game-data-export h2,
.pw-game-data-standard-link h2 {
    margin: 0.2rem 0 0.35rem;
    color: var(--pw-heading);
    font-size: 0.95rem;
    font-weight: 780;
}

.pw-game-data-export p,
.pw-game-data-standard-link p {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

.pw-game-data-filter {
    margin-top: 1rem;
    padding: 1rem;
}

.pw-game-data-filter-grid {
    display: grid;
    grid-template-columns: minmax(180px, 320px) auto;
    gap: 1rem;
    align-items: end;
}

.pw-game-data-filter-actions {
    display: flex;
    gap: 0.6rem;
}

.pw-game-data-preview {
    margin-top: 1rem;
    overflow: hidden;
}

.pw-game-data-preview-header {
    padding: 1rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-game-data-preview-header h2 {
    margin: 0.2rem 0;
    color: var(--pw-heading);
    font-size: 1rem;
    font-weight: 780;
}

.pw-game-data-preview-header p {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.72rem;
}

.pw-game-data-desktop-table {
    display: block;
}

.pw-game-data-table {
    width: 100%;
    min-width: 760px;
    margin-bottom: 0;
}

.pw-game-data-table th,
.pw-game-data-table td {
    padding: 0.68rem 0.55rem;
    border-color: var(--pw-border);
    text-align: center;
    vertical-align: middle;
    font-size: 0.76rem;
}

.pw-game-data-table thead th {
    background: var(--pw-surface-muted);
    color: var(--pw-heading);
    font-size: 0.67rem;
    font-weight: 750;
}

.pw-game-data-table th:first-child,
.pw-game-data-table td:first-child {
    min-width: 115px;
    white-space: nowrap;
}

.pw-game-data-table th:nth-child(2),
.pw-game-data-table td:nth-child(2),
.pw-game-data-table th:nth-child(4),
.pw-game-data-table td:nth-child(4) {
    min-width: 170px;
    text-align: left;
}

.pw-game-data-team-cell {
    color: var(--pw-heading);
    font-weight: 700;
}

.pw-game-data-mobile-cards {
    display: none;
}

.pw-game-data-mobile-card {
    padding: 0.9rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-game-data-mobile-card:last-child {
    border-bottom: 0;
}

.pw-game-data-mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.pw-game-data-mobile-date {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--pw-muted);
    font-size: 0.68rem;
    font-weight: 650;
}

.pw-game-data-mobile-card-header h3 {
    margin: 0;
    color: var(--pw-heading);
    font-size: 0.9rem;
    font-weight: 780;
    line-height: 1.3;
}

.pw-game-data-mobile-score {
    display: grid;
    justify-items: end;
    flex: 0 0 auto;
}

.pw-game-data-mobile-score span {
    color: var(--pw-muted);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pw-game-data-mobile-score strong {
    color: var(--pw-heading);
    font-size: 1.05rem;
    font-weight: 820;
}

.pw-game-data-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.pw-game-data-mobile-grid > div {
    min-width: 0;
    padding: 0.6rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    background: var(--pw-surface-muted);
}

.pw-game-data-mobile-grid span,
.pw-game-data-mobile-grid strong {
    display: block;
}

.pw-game-data-mobile-grid span {
    color: var(--pw-muted);
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pw-game-data-mobile-grid strong {
    margin-top: 0.2rem;
    color: var(--pw-heading);
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

.pw-game-data-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.pw-game-data-pagination span {
    color: var(--pw-muted);
    font-size: 0.72rem;
}

.pw-game-data-guide {
    margin-top: 1rem;
    overflow: hidden;
}

.pw-game-data-guide .accordion-item {
    border: 0;
}

.pw-game-data-guide .accordion-button {
    padding: 1rem;
    background: var(--pw-surface);
    color: var(--pw-heading);
    font-size: 0.84rem;
    font-weight: 750;
    box-shadow: none;
}

.pw-game-data-guide .accordion-button:not(.collapsed) {
    background: var(--pw-primary-soft);
    color: var(--pw-primary-hover);
}

.pw-game-data-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.pw-game-data-guide-grid h3 {
    margin-bottom: 0.3rem;
    color: var(--pw-heading);
    font-size: 0.8rem;
    font-weight: 750;
}

.pw-game-data-guide-grid p {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.73rem;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .pw-game-data-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .pw-game-data-desktop-table {
        display: none;
    }

    .pw-game-data-mobile-cards {
        display: block;
    }

    .pw-game-data-export,
    .pw-game-data-standard-link {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .pw-game-data-export .btn,
    .pw-game-data-standard-link .btn {
        width: 100%;
    }

    .pw-game-data-guide-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .pw-game-data-page {
        width: 100%;
        max-width: 100%;
        padding-top: 1.25rem;
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .pw-game-data-page > *,
    .pw-game-data-summary-grid,
    .pw-game-data-filter,
    .pw-game-data-preview,
    .pw-game-data-mobile-cards,
    .pw-game-data-mobile-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .pw-game-data-summary-grid,
    .pw-game-data-filter-grid {
        grid-template-columns: 1fr;
    }

    .pw-game-data-filter-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pw-game-data-filter-actions .btn {
        width: 100%;
    }

    .pw-game-data-pagination {
        flex-wrap: wrap;
    }
}

/* ==========================================================
   GOALIE DETAIL
   ========================================================== */

.pw-goalie-detail-page {
    max-width: 1120px;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}


/* =========================
   Navigation
   ========================= */

.pw-goalie-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}


/* =========================
   Hero
   ========================= */

.pw-goalie-detail-hero {
    padding: 1.25rem;
}

.pw-goalie-detail-hero-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pw-goalie-detail-team-logo-link {
    display: inline-flex;
}

.pw-goalie-detail-team-logo {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    object-fit: contain;
}

.pw-goalie-detail-hero-copy {
    min-width: 0;
}

.pw-goalie-detail-hero-copy h1 {
    margin: 0.15rem 0 0.25rem;
    color: var(--pw-heading);
    font-size: 1.8rem;
    font-weight: 820;
    letter-spacing: -0.03em;
}

.pw-goalie-detail-season {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.8rem;
}

.pw-goalie-detail-team {
    margin-top: 0.3rem;
}

.pw-goalie-detail-team a,
.pw-goalie-detail-team span {
    color: var(--pw-heading);
    font-size: 0.86rem;
    font-weight: 750;
    text-decoration: none;
}

.pw-goalie-detail-team a:hover {
    color: var(--pw-primary);
}


/* =========================
   Sections
   ========================= */

.pw-goalie-detail-section {
    margin-top: 2.5rem;
}


/* =========================
   Metrics
   ========================= */

.pw-goalie-detail-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.pw-goalie-detail-metric-card {
    min-width: 0;
    padding: 1rem;
    text-align: center;
}

.pw-goalie-detail-metric-card span {
    display: block;
    color: var(--pw-muted);
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pw-goalie-detail-metric-card strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--pw-heading);
    font-size: 1.35rem;
    font-weight: 820;
    letter-spacing: -0.03em;
}


/* =========================
   History
   ========================= */

.pw-goalie-detail-history {
    margin-top: 2.5rem;
    overflow: hidden;
}

.pw-goalie-detail-history-header {
    padding: 1rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-goalie-detail-history-header h2 {
    margin: 0.2rem 0 0.3rem;
    color: var(--pw-heading);
    font-size: 1rem;
    font-weight: 780;
}

.pw-goalie-detail-history-header p {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.74rem;
}


/* =========================
   Desktop History Table
   ========================= */

.pw-goalie-detail-desktop-history {
    display: block;
}

.pw-goalie-detail-history-table {
    width: 100%;
    min-width: 920px;
    margin-bottom: 0;
}

.pw-goalie-detail-history-table th,
.pw-goalie-detail-history-table td {
    padding: 0.65rem 0.55rem;
    border-color: var(--pw-border);
    text-align: center;
    vertical-align: middle;
    font-size: 0.76rem;
    white-space: nowrap;
}

.pw-goalie-detail-history-table thead th {
    background: var(--pw-surface-muted);
    color: var(--pw-heading);
    font-size: 0.67rem;
    font-weight: 750;
}

.pw-goalie-detail-season-col,
.pw-goalie-detail-history-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 100px;
    background: var(--pw-surface);
    text-align: left !important;
    font-weight: 750;
    box-shadow: 1px 0 0 var(--pw-border);
}

.pw-goalie-detail-history-table thead th:first-child {
    z-index: 3;
    background: var(--pw-surface-muted);
}

.pw-goalie-detail-history-team {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--pw-heading);
    font-weight: 650;
    text-decoration: none;
}

a.pw-goalie-detail-history-team:hover {
    color: var(--pw-primary);
}

.pw-goalie-detail-history-logo {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    object-fit: contain;
}


/* =========================
   Mobile History
   ========================= */

.pw-goalie-detail-mobile-history {
    display: none;
}

.pw-goalie-detail-mobile-card {
    padding: 0.9rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-goalie-detail-mobile-card:last-child {
    border-bottom: 0;
}

.pw-goalie-detail-mobile-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.pw-goalie-detail-mobile-season {
    margin-bottom: 0.3rem;
    color: var(--pw-heading);
    font-size: 0.92rem;
    font-weight: 780;
}

.pw-goalie-detail-mobile-team {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--pw-muted);
    font-size: 0.74rem;
    font-weight: 650;
    text-decoration: none;
}

a.pw-goalie-detail-mobile-team:hover {
    color: var(--pw-primary);
}

.pw-goalie-detail-mobile-save {
    display: grid;
    justify-items: end;
    flex: 0 0 auto;
}

.pw-goalie-detail-mobile-save span {
    color: var(--pw-muted);
    font-size: 0.61rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pw-goalie-detail-mobile-save strong {
    color: var(--pw-heading);
    font-size: 1.05rem;
    font-weight: 820;
}

.pw-goalie-detail-mobile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.pw-goalie-detail-mobile-grid > div {
    min-width: 0;
    padding: 0.55rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    background: var(--pw-surface-muted);
}

.pw-goalie-detail-mobile-grid span,
.pw-goalie-detail-mobile-grid strong {
    display: block;
}

.pw-goalie-detail-mobile-grid span {
    color: var(--pw-muted);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pw-goalie-detail-mobile-grid strong {
    margin-top: 0.15rem;
    color: var(--pw-heading);
    font-size: 0.78rem;
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 991.98px) {
    .pw-goalie-detail-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .pw-goalie-detail-desktop-history {
        display: none;
    }

    .pw-goalie-detail-mobile-history {
        display: block;
    }
}

@media (max-width: 575.98px) {
    .pw-goalie-detail-page {
        width: 100%;
        max-width: 100%;
        padding-top: 1rem;
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .pw-goalie-detail-page > *,
    .pw-goalie-detail-hero,
    .pw-goalie-detail-metrics-grid,
    .pw-goalie-detail-history,
    .pw-goalie-detail-mobile-history,
    .pw-goalie-detail-mobile-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .pw-goalie-detail-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pw-goalie-detail-actions .btn {
        width: 100%;
    }

    .pw-goalie-detail-hero {
        padding: 1rem;
    }

    .pw-goalie-detail-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .pw-goalie-detail-team-logo {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .pw-goalie-detail-hero-copy h1 {
        font-size: 1.5rem;
    }

    .pw-goalie-detail-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
    }

    .pw-goalie-detail-metric-card {
        padding: 0.8rem;
    }

    .pw-goalie-detail-metric-card strong {
        font-size: 1.1rem;
    }

    .pw-goalie-detail-mobile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================================
   PLAYER DETAIL
   ========================================================== */

.pw-player-detail-page {
    max-width: 1120px;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}


/* =========================
   Navigation
   ========================= */

.pw-player-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}


/* =========================
   Hero
   ========================= */

.pw-player-detail-hero {
    padding: 1.25rem;
}

.pw-player-detail-hero-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pw-player-detail-team-logo-link {
    display: inline-flex;
}

.pw-player-detail-team-logo {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    object-fit: contain;
}

.pw-player-detail-hero-copy {
    min-width: 0;
}

.pw-player-detail-hero-copy h1 {
    margin: 0.15rem 0 0.25rem;
    color: var(--pw-heading);
    font-size: 1.8rem;
    font-weight: 820;
    letter-spacing: -0.03em;
}

.pw-player-detail-season {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.8rem;
}

.pw-player-detail-team {
    margin-top: 0.3rem;
}

.pw-player-detail-team a,
.pw-player-detail-team span {
    color: var(--pw-heading);
    font-size: 0.86rem;
    font-weight: 750;
    text-decoration: none;
}

.pw-player-detail-team a:hover {
    color: var(--pw-primary);
}


/* =========================
   Sections
   ========================= */

.pw-player-detail-section {
    margin-top: 2.5rem;
}


/* =========================
   Metrics
   ========================= */

.pw-player-detail-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.pw-player-detail-metric-card {
    min-width: 0;
    padding: 1rem;
    text-align: center;
}

.pw-player-detail-metric-card span {
    display: block;
    color: var(--pw-muted);
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pw-player-detail-metric-card strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--pw-heading);
    font-size: 1.35rem;
    font-weight: 820;
    letter-spacing: -0.03em;
}


/* =========================
   History
   ========================= */

.pw-player-detail-history {
    margin-top: 2.5rem;
    overflow: hidden;
}

.pw-player-detail-history-header {
    padding: 1rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-player-detail-history-header h2 {
    margin: 0.2rem 0 0.3rem;
    color: var(--pw-heading);
    font-size: 1rem;
    font-weight: 780;
}

.pw-player-detail-history-header p {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.74rem;
}


/* =========================
   Desktop History Table
   ========================= */

.pw-player-detail-desktop-history {
    display: block;
}

.pw-player-detail-history-table {
    width: 100%;
    min-width: 1040px;
    margin-bottom: 0;
}

.pw-player-detail-history-table th,
.pw-player-detail-history-table td {
    padding: 0.65rem 0.5rem;
    border-color: var(--pw-border);
    text-align: center;
    vertical-align: middle;
    font-size: 0.75rem;
    white-space: nowrap;
}

.pw-player-detail-history-table thead th {
    background: var(--pw-surface-muted);
    color: var(--pw-heading);
    font-size: 0.66rem;
    font-weight: 750;
}

.pw-player-detail-season-col,
.pw-player-detail-history-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 100px;
    background: var(--pw-surface);
    text-align: left !important;
    font-weight: 750;
    box-shadow: 1px 0 0 var(--pw-border);
}

.pw-player-detail-history-table thead th:first-child {
    z-index: 3;
    background: var(--pw-surface-muted);
}

.pw-player-detail-history-team {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--pw-heading);
    font-weight: 650;
    text-decoration: none;
}

a.pw-player-detail-history-team:hover {
    color: var(--pw-primary);
}

.pw-player-detail-history-logo {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    object-fit: contain;
}


/* =========================
   Mobile History
   ========================= */

.pw-player-detail-mobile-history {
    display: none;
}

.pw-player-detail-mobile-card {
    padding: 0.9rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-player-detail-mobile-card:last-child {
    border-bottom: 0;
}

.pw-player-detail-mobile-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.pw-player-detail-mobile-season {
    margin-bottom: 0.3rem;
    color: var(--pw-heading);
    font-size: 0.92rem;
    font-weight: 780;
}

.pw-player-detail-mobile-team {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--pw-muted);
    font-size: 0.74rem;
    font-weight: 650;
    text-decoration: none;
}

a.pw-player-detail-mobile-team:hover {
    color: var(--pw-primary);
}

.pw-player-detail-mobile-points {
    display: grid;
    justify-items: end;
    flex: 0 0 auto;
}

.pw-player-detail-mobile-points span {
    color: var(--pw-muted);
    font-size: 0.61rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pw-player-detail-mobile-points strong {
    color: var(--pw-heading);
    font-size: 1.05rem;
    font-weight: 820;
}

.pw-player-detail-mobile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.pw-player-detail-mobile-grid > div {
    min-width: 0;
    padding: 0.55rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    background: var(--pw-surface-muted);
}

.pw-player-detail-mobile-grid span,
.pw-player-detail-mobile-grid strong {
    display: block;
}

.pw-player-detail-mobile-grid span {
    color: var(--pw-muted);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pw-player-detail-mobile-grid strong {
    margin-top: 0.15rem;
    color: var(--pw-heading);
    font-size: 0.78rem;
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 991.98px) {
    .pw-player-detail-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .pw-player-detail-desktop-history {
        display: none;
    }

    .pw-player-detail-mobile-history {
        display: block;
    }
}

@media (max-width: 575.98px) {
    .pw-player-detail-page {
        width: 100%;
        max-width: 100%;
        padding-top: 1rem;
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .pw-player-detail-page > *,
    .pw-player-detail-hero,
    .pw-player-detail-metrics-grid,
    .pw-player-detail-history,
    .pw-player-detail-mobile-history,
    .pw-player-detail-mobile-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .pw-player-detail-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pw-player-detail-actions .btn {
        width: 100%;
    }

    .pw-player-detail-hero {
        padding: 1rem;
    }

    .pw-player-detail-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .pw-player-detail-team-logo {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .pw-player-detail-hero-copy h1 {
        font-size: 1.5rem;
    }

    .pw-player-detail-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
    }

    .pw-player-detail-metric-card {
        padding: 0.8rem;
    }

    .pw-player-detail-metric-card strong {
        font-size: 1.1rem;
    }

    .pw-player-detail-mobile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================================
   TEAM DETAIL
   ========================================================== */

.pw-team-detail-page {
    max-width: 1180px;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}


/* =========================
   Breadcrumb and Context
   ========================= */

.pw-team-detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    color: var(--pw-muted);
    font-size: 0.75rem;
}

.pw-team-detail-breadcrumb a {
    color: var(--pw-muted);
    text-decoration: none;
}

.pw-team-detail-breadcrumb a:hover {
    color: var(--pw-primary);
}

.pw-team-detail-context-link {
    margin-bottom: 0.75rem;
}

.pw-team-detail-context-link a {
    color: var(--pw-muted);
    font-size: 0.76rem;
    font-weight: 650;
    text-decoration: none;
}

.pw-team-detail-context-link a:hover {
    color: var(--pw-primary);
}


/* =========================
   Top Navigation
   ========================= */

.pw-team-detail-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.75rem;
}

.pw-team-detail-nav a {
    padding: 0.42rem 0.65rem;
    border: 1px solid var(--pw-border);
    border-radius: 999px;
    background: var(--pw-surface-muted);
    color: var(--pw-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

.pw-team-detail-nav a:hover {
    border-color: var(--pw-primary);
    color: var(--pw-primary);
}


/* =========================
   Hero
   ========================= */

.pw-team-detail-hero {
    margin-top: 1rem;
    padding: 1.25rem;
}

.pw-team-detail-hero-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pw-team-detail-logo {
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    object-fit: contain;
}

.pw-team-detail-hero h2 {
    margin: 0.15rem 0 0.25rem;
    color: var(--pw-heading);
    font-size: 1.8rem;
    font-weight: 820;
    letter-spacing: -0.03em;
}

.pw-team-detail-hero p {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.8rem;
}


/* =========================
   Primary Actions
   ========================= */

.pw-team-detail-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}


/* =========================
   Sections and Metrics
   ========================= */

.pw-team-detail-section {
    margin-top: 2.5rem;
}

.pw-team-detail-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.pw-team-detail-metric-card {
    padding: 1rem;
    text-align: center;
}

.pw-team-detail-metric-card span {
    display: block;
    color: var(--pw-muted);
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pw-team-detail-metric-card strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--pw-heading);
    font-size: 1.35rem;
    font-weight: 820;
    letter-spacing: -0.03em;
}


/* =========================
   Collapsible Sections
   ========================= */

.pw-team-detail-section-card {
    margin-top: 1rem;
    overflow: hidden;
}

.pw-team-detail-section-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
    padding: 1rem;
    border: 0;
    border-bottom: 1px solid var(--pw-border);
    background: var(--pw-surface);
    color: var(--pw-heading);
    text-align: left;
}

.pw-team-detail-section-toggle:hover {
    background: var(--pw-surface-muted);
}

.pw-team-detail-section-toggle > span:first-child {
    display: grid;
    gap: 0.15rem;
}

.pw-team-detail-section-toggle strong {
    font-size: 0.9rem;
}

.pw-team-detail-section-toggle small {
    color: var(--pw-muted);
    font-size: 0.7rem;
}

.pw-team-detail-chevron {
    color: var(--pw-muted);
    transition: transform 0.2s ease;
}

.pw-team-detail-section-toggle[aria-expanded="true"] .pw-team-detail-chevron {
    transform: rotate(180deg);
}


/* =========================
   Desktop Tables
   ========================= */

.pw-team-detail-desktop-table {
    display: block;
}

.pw-team-detail-table {
    width: 100%;
    margin-bottom: 0;
}

.pw-team-detail-player-table {
    min-width: 1040px;
}

.pw-team-detail-goalie-table {
    min-width: 1180px;
}

.pw-team-detail-history-table {
    min-width: 760px;
}

.pw-team-detail-table th,
.pw-team-detail-table td {
    padding: 0.62rem 0.5rem;
    border-color: var(--pw-border);
    text-align: center;
    vertical-align: middle;
    font-size: 0.74rem;
    white-space: nowrap;
}

.pw-team-detail-table thead th {
    background: var(--pw-surface-muted);
    color: var(--pw-heading);
    font-size: 0.65rem;
    font-weight: 750;
}

.pw-team-detail-sticky-name,
.pw-team-detail-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 165px;
    background: var(--pw-surface);
    text-align: left !important;
    box-shadow: 1px 0 0 var(--pw-border);
}

.pw-team-detail-table thead th:first-child {
    z-index: 3;
    background: var(--pw-surface-muted);
}

.pw-team-detail-sticky-name a {
    color: var(--pw-heading);
    font-weight: 700;
    text-decoration: none;
}

.pw-team-detail-sticky-name a:hover {
    color: var(--pw-primary);
}


/* =========================
   Mobile Cards
   ========================= */

.pw-team-detail-mobile-list {
    display: none;
}

.pw-team-detail-mobile-card {
    padding: 0.9rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-team-detail-mobile-card:last-child {
    border-bottom: 0;
}

.pw-team-detail-mobile-name {
    display: inline-block;
    margin-bottom: 0.65rem;
    color: var(--pw-heading);
    font-size: 0.9rem;
    font-weight: 780;
    text-decoration: none;
}

a.pw-team-detail-mobile-name:hover {
    color: var(--pw-primary);
}

.pw-team-detail-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.pw-team-detail-mobile-grid > div {
    min-width: 0;
    padding: 0.6rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    background: var(--pw-surface-muted);
}

.pw-team-detail-mobile-grid span,
.pw-team-detail-mobile-grid strong {
    display: block;
}

.pw-team-detail-mobile-grid span {
    color: var(--pw-muted);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pw-team-detail-mobile-grid strong {
    margin-top: 0.2rem;
    color: var(--pw-heading);
    font-size: 0.8rem;
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 991.98px) {
    .pw-team-detail-metrics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .pw-team-detail-desktop-table {
        display: none;
    }

    .pw-team-detail-mobile-list {
        display: block;
    }

    .pw-team-detail-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .pw-team-detail-page {
        width: 100%;
        max-width: 100%;
        padding-top: 1rem;
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .pw-team-detail-page > *,
    .pw-team-detail-nav,
    .pw-team-detail-hero,
    .pw-team-detail-actions,
    .pw-team-detail-metrics-grid,
    .pw-team-detail-section-card,
    .pw-team-detail-mobile-list,
    .pw-team-detail-mobile-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .pw-team-detail-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pw-team-detail-nav a {
        flex: 0 0 auto;
    }

    .pw-team-detail-hero {
        padding: 1rem;
    }

    .pw-team-detail-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .pw-team-detail-logo {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
    }

    .pw-team-detail-hero h2 {
        font-size: 1.5rem;
    }

    .pw-team-detail-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pw-team-detail-actions .btn {
        width: 100%;
    }

    .pw-team-detail-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
    }

    .pw-team-detail-metric-card {
        padding: 0.8rem;
    }

    .pw-team-detail-metric-card strong {
        font-size: 1.1rem;
    }
}

/* ==========================================================
   TEAM RESULTS
   ========================================================== */

.pw-team-results-page {
    max-width: 1120px;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}


/* =========================
   Breadcrumb and Context
   ========================= */

.pw-team-results-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    color: var(--pw-muted);
    font-size: 0.75rem;
}

.pw-team-results-breadcrumb a {
    color: var(--pw-muted);
    text-decoration: none;
}

.pw-team-results-breadcrumb a:hover {
    color: var(--pw-primary);
}

.pw-team-results-context-link {
    margin-bottom: 0.75rem;
}

.pw-team-results-context-link a {
    color: var(--pw-muted);
    font-size: 0.76rem;
    font-weight: 650;
    text-decoration: none;
}

.pw-team-results-context-link a:hover {
    color: var(--pw-primary);
}


/* =========================
   Top Navigation
   ========================= */

.pw-team-results-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.75rem;
}

.pw-team-results-nav a {
    padding: 0.42rem 0.65rem;
    border: 1px solid var(--pw-border);
    border-radius: 999px;
    background: var(--pw-surface-muted);
    color: var(--pw-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

.pw-team-results-nav a:hover {
    border-color: var(--pw-primary);
    color: var(--pw-primary);
}


/* =========================
   Hero
   ========================= */

.pw-team-results-hero {
    margin-top: 1rem;
    padding: 1.25rem;
}

.pw-team-results-hero-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pw-team-results-logo {
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    object-fit: contain;
}

.pw-team-results-hero h2 {
    margin: 0.15rem 0 0.25rem;
    color: var(--pw-heading);
    font-size: 1.8rem;
    font-weight: 820;
    letter-spacing: -0.03em;
}

.pw-team-results-hero p {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.8rem;
}

.pw-team-results-summary-copy {
    max-width: 760px;
    margin-top: 0.7rem;
    color: var(--pw-muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.pw-team-results-summary-copy a {
    color: var(--pw-primary);
    text-decoration: none;
}

.pw-team-results-summary-copy a:hover {
    text-decoration: underline;
}


/* =========================
   Actions
   ========================= */

.pw-team-results-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}


/* =========================
   Summary Metrics
   ========================= */

.pw-team-results-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.pw-team-results-summary-card {
    min-width: 0;
    padding: 1rem;
    text-align: center;
}

.pw-team-results-summary-card span {
    display: block;
    color: var(--pw-muted);
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pw-team-results-summary-card strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--pw-heading);
    font-size: 1.35rem;
    font-weight: 820;
    letter-spacing: -0.03em;
}


/* =========================
   Results Card
   ========================= */

.pw-team-results-card {
    margin-top: 1rem;
    overflow: hidden;
}

.pw-team-results-card-header {
    padding: 1rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-team-results-card-header h2 {
    margin: 0.2rem 0 0.3rem;
    color: var(--pw-heading);
    font-size: 1rem;
    font-weight: 780;
}

.pw-team-results-card-header p {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.74rem;
}


/* =========================
   Desktop Table
   ========================= */

.pw-team-results-desktop-table {
    display: block;
}

.pw-team-results-table {
    width: 100%;
    min-width: 880px;
    margin-bottom: 0;
}

.pw-team-results-table th,
.pw-team-results-table td {
    padding: 0.68rem 0.6rem;
    border-color: var(--pw-border);
    text-align: center;
    vertical-align: middle;
    font-size: 0.76rem;
    white-space: nowrap;
}

.pw-team-results-table thead th {
    background: var(--pw-surface-muted);
    color: var(--pw-heading);
    font-size: 0.67rem;
    font-weight: 750;
}

.pw-team-results-table th:nth-child(2),
.pw-team-results-table td:nth-child(2) {
    min-width: 190px;
    text-align: left;
}

.pw-team-results-opponent-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--pw-heading);
    font-weight: 700;
    text-decoration: none;
}

.pw-team-results-opponent-link:hover {
    color: var(--pw-primary);
}

.pw-team-results-opponent-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}


/* =========================
   Result Pills
   ========================= */

.pw-team-results-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
}

.pw-team-results-win {
    color: #15803d;
    background: rgba(21, 128, 61, 0.1);
}

.pw-team-results-loss {
    color: #b91c1c;
    background: rgba(185, 28, 28, 0.08);
}


/* =========================
   Mobile Cards
   ========================= */

.pw-team-results-mobile-list {
    display: none;
}

.pw-team-results-mobile-card {
    padding: 0.9rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-team-results-mobile-card:last-child {
    border-bottom: 0;
}

.pw-team-results-mobile-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.pw-team-results-mobile-date {
    color: var(--pw-muted);
    font-size: 0.72rem;
    font-weight: 650;
}

.pw-team-results-mobile-opponent {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    margin-bottom: 0.8rem;
}

.pw-team-results-opponent-logo-link {
    display: inline-flex;
}

.pw-team-results-opponent-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.pw-team-results-opponent-name {
    color: var(--pw-heading);
    font-size: 0.9rem;
    font-weight: 780;
    text-decoration: none;
}

.pw-team-results-opponent-name:hover {
    color: var(--pw-primary);
}

.pw-team-results-opponent-meta {
    margin-top: 0.15rem;
    color: var(--pw-muted);
    font-size: 0.68rem;
}

.pw-team-results-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.pw-team-results-mobile-grid > div {
    min-width: 0;
    padding: 0.6rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    background: var(--pw-surface-muted);
}

.pw-team-results-mobile-grid span,
.pw-team-results-mobile-grid strong {
    display: block;
}

.pw-team-results-mobile-grid span {
    color: var(--pw-muted);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pw-team-results-mobile-grid strong {
    margin-top: 0.2rem;
    color: var(--pw-heading);
    font-size: 0.82rem;
}

.pw-team-results-mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.pw-team-results-mobile-actions .btn {
    width: 100%;
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 991.98px) {
    .pw-team-results-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .pw-team-results-desktop-table {
        display: none;
    }

    .pw-team-results-mobile-list {
        display: block;
    }
}

@media (max-width: 575.98px) {
    .pw-team-results-page {
        width: 100%;
        max-width: 100%;
        padding-top: 1rem;
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .pw-team-results-page > *,
    .pw-team-results-nav,
    .pw-team-results-hero,
    .pw-team-results-actions,
    .pw-team-results-summary-grid,
    .pw-team-results-card,
    .pw-team-results-mobile-list,
    .pw-team-results-mobile-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .pw-team-results-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pw-team-results-nav a {
        flex: 0 0 auto;
    }

    .pw-team-results-hero {
        padding: 1rem;
    }

    .pw-team-results-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .pw-team-results-logo {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
    }

    .pw-team-results-hero h2 {
        font-size: 1.5rem;
    }

    .pw-team-results-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pw-team-results-actions .btn {
        width: 100%;
    }

    .pw-team-results-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
    }

    .pw-team-results-summary-card {
        padding: 0.8rem;
    }

    .pw-team-results-summary-card strong {
        font-size: 1.1rem;
    }
}

/* ==========================================================
   TEAM SCHEDULE
   ========================================================== */

.pw-team-schedule-page {
    max-width: 1120px;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}


/* =========================
   Breadcrumb and Context
   ========================= */

.pw-team-schedule-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    color: var(--pw-muted);
    font-size: 0.75rem;
}

.pw-team-schedule-breadcrumb a,
.pw-team-schedule-context-links a {
    color: var(--pw-muted);
    text-decoration: none;
}

.pw-team-schedule-breadcrumb a:hover,
.pw-team-schedule-context-links a:hover {
    color: var(--pw-primary);
}

.pw-team-schedule-context-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.pw-team-schedule-context-links a {
    font-size: 0.76rem;
    font-weight: 650;
}


/* =========================
   Top Navigation
   ========================= */

.pw-team-schedule-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.75rem;
}

.pw-team-schedule-nav a {
    padding: 0.42rem 0.65rem;
    border: 1px solid var(--pw-border);
    border-radius: 999px;
    background: var(--pw-surface-muted);
    color: var(--pw-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

.pw-team-schedule-nav a:hover {
    border-color: var(--pw-primary);
    color: var(--pw-primary);
}


/* =========================
   Hero
   ========================= */

.pw-team-schedule-hero {
    margin-top: 1rem;
    padding: 1.25rem;
}

.pw-team-schedule-hero-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pw-team-schedule-logo {
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    object-fit: contain;
}

.pw-team-schedule-hero h2 {
    margin: 0.15rem 0 0.25rem;
    color: var(--pw-heading);
    font-size: 1.8rem;
    font-weight: 820;
    letter-spacing: -0.03em;
}

.pw-team-schedule-hero p {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.8rem;
}

.pw-team-schedule-summary-copy {
    max-width: 760px;
    margin-top: 0.7rem;
    color: var(--pw-muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.pw-team-schedule-summary-copy a {
    color: var(--pw-primary);
    text-decoration: none;
}

.pw-team-schedule-summary-copy a:hover {
    text-decoration: underline;
}


/* =========================
   Actions
   ========================= */

.pw-team-schedule-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}


/* =========================
   Next Matchup
   ========================= */

.pw-team-schedule-feature {
    margin-top: 2rem;
    padding: 1rem;
}

.pw-team-schedule-feature-matchup {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.55rem;
}

.pw-team-schedule-feature-team {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--pw-heading);
    font-size: 0.9rem;
    font-weight: 780;
    text-decoration: none;
}

.pw-team-schedule-feature-team:hover {
    color: var(--pw-primary);
}

.pw-team-schedule-feature-team img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.pw-team-schedule-at {
    color: var(--pw-muted);
    font-weight: 800;
}

.pw-team-schedule-feature-meta {
    margin-top: 0.65rem;
    color: var(--pw-muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.pw-team-schedule-feature-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.75rem;
}


/* =========================
   Schedule Card
   ========================= */

.pw-team-schedule-card {
    margin-top: 1rem;
    overflow: hidden;
}

.pw-team-schedule-card-header,
.pw-team-schedule-results-header {
    padding: 1rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-team-schedule-card-header h2,
.pw-team-schedule-results-header h2 {
    margin: 0.2rem 0 0.3rem;
    color: var(--pw-heading);
    font-size: 1rem;
    font-weight: 780;
}

.pw-team-schedule-card-header p,
.pw-team-schedule-results-header p {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.74rem;
}


/* =========================
   Desktop Table
   ========================= */

.pw-team-schedule-desktop-table {
    display: block;
}

.pw-team-schedule-table {
    width: 100%;
    min-width: 860px;
    margin-bottom: 0;
}

.pw-team-schedule-table th,
.pw-team-schedule-table td {
    padding: 0.68rem 0.6rem;
    border-color: var(--pw-border);
    text-align: center;
    vertical-align: middle;
    font-size: 0.76rem;
    white-space: nowrap;
}

.pw-team-schedule-table thead th {
    background: var(--pw-surface-muted);
    color: var(--pw-heading);
    font-size: 0.67rem;
    font-weight: 750;
}

.pw-team-schedule-table th:nth-child(3),
.pw-team-schedule-table td:nth-child(3) {
    min-width: 190px;
    text-align: left;
}

.pw-team-schedule-table th:nth-child(5),
.pw-team-schedule-table td:nth-child(5) {
    min-width: 180px;
    text-align: left;
}

.pw-team-schedule-opponent-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--pw-heading);
    font-weight: 700;
    text-decoration: none;
}

.pw-team-schedule-opponent-link:hover {
    color: var(--pw-primary);
}

.pw-team-schedule-opponent-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}


/* =========================
   Mobile Schedule Cards
   ========================= */

.pw-team-schedule-mobile-list {
    display: none;
}

.pw-team-schedule-mobile-card {
    padding: 0.9rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-team-schedule-mobile-card:last-child {
    border-bottom: 0;
}

.pw-team-schedule-mobile-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--pw-muted);
    font-size: 0.72rem;
}

.pw-team-schedule-mobile-top strong {
    color: var(--pw-heading);
    font-size: 0.74rem;
}

.pw-team-schedule-mobile-opponent {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    margin-bottom: 0.8rem;
}

.pw-team-schedule-mobile-opponent img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.pw-team-schedule-mobile-opponent a {
    display: block;
    color: var(--pw-heading);
    font-size: 0.9rem;
    font-weight: 780;
    text-decoration: none;
}

.pw-team-schedule-mobile-opponent a:hover {
    color: var(--pw-primary);
}

.pw-team-schedule-mobile-opponent span {
    display: block;
    margin-top: 0.15rem;
    color: var(--pw-muted);
    font-size: 0.68rem;
}

.pw-team-schedule-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.pw-team-schedule-mobile-grid > div {
    min-width: 0;
    padding: 0.6rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    background: var(--pw-surface-muted);
}

.pw-team-schedule-mobile-grid span,
.pw-team-schedule-mobile-grid strong {
    display: block;
}

.pw-team-schedule-mobile-grid span {
    color: var(--pw-muted);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pw-team-schedule-mobile-grid strong {
    margin-top: 0.2rem;
    color: var(--pw-heading);
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

.pw-team-schedule-mobile-actions {
    margin-top: 0.75rem;
}

.pw-team-schedule-mobile-actions .btn {
    width: 100%;
}


/* =========================
   Recent Results Preview
   ========================= */

.pw-team-schedule-results-preview {
    margin-top: 1rem;
    overflow: hidden;
}

.pw-team-schedule-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-team-schedule-result-item:last-child {
    border-bottom: 0;
}

.pw-team-schedule-result-left {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    min-width: 0;
}

.pw-team-schedule-result-left img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.pw-team-schedule-result-left a {
    display: block;
    color: var(--pw-heading);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.pw-team-schedule-result-left a:hover {
    color: var(--pw-primary);
}

.pw-team-schedule-result-left span {
    display: block;
    margin-top: 0.15rem;
    color: var(--pw-muted);
    font-size: 0.68rem;
}

.pw-team-schedule-result-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 0 0 auto;
}

.pw-team-schedule-result-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 0.28rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
}

.pw-team-schedule-result-win {
    color: #15803d;
    background: rgba(21, 128, 61, 0.1);
}

.pw-team-schedule-result-loss {
    color: #b91c1c;
    background: rgba(185, 28, 28, 0.08);
}

.pw-team-schedule-result-right strong {
    color: var(--pw-heading);
    font-size: 0.82rem;
}

.pw-team-schedule-results-footer {
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--pw-border);
    text-align: center;
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 767.98px) {

    .pw-team-schedule-desktop-table {
        display: none;
    }

    .pw-team-schedule-mobile-list {
        display: block;
    }

}

@media (max-width: 575.98px) {

    .pw-team-schedule-page {
        width: 100%;
        max-width: 100%;
        padding-top: 1rem;
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .pw-team-schedule-page > *,
    .pw-team-schedule-nav,
    .pw-team-schedule-hero,
    .pw-team-schedule-actions,
    .pw-team-schedule-feature,
    .pw-team-schedule-card,
    .pw-team-schedule-mobile-list,
    .pw-team-schedule-mobile-card,
    .pw-team-schedule-results-preview {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .pw-team-schedule-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pw-team-schedule-nav a {
        flex: 0 0 auto;
    }

    .pw-team-schedule-hero {
        padding: 1rem;
    }

    .pw-team-schedule-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .pw-team-schedule-logo {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
    }

    .pw-team-schedule-hero h2 {
        font-size: 1.5rem;
    }

    .pw-team-schedule-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pw-team-schedule-actions .btn {
        width: 100%;
    }

    .pw-team-schedule-feature-matchup {
        flex-direction: column;
        align-items: flex-start;
    }

    .pw-team-schedule-at {
        padding-left: 0.45rem;
    }

    .pw-team-schedule-feature-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pw-team-schedule-feature-actions .btn {
        width: 100%;
    }

    .pw-team-schedule-result-item {
        align-items: flex-start;
    }

    .pw-team-schedule-result-right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.25rem;
    }

}

/* ==========================================================
   TEAM PREDICTION PAGE
   ========================================================== */

.pw-team-prediction-page {
    max-width: 1080px;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}


/* =========================
   Breadcrumb and Context
   ========================= */

.pw-team-prediction-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    color: var(--pw-muted);
    font-size: 0.75rem;
}

.pw-team-prediction-breadcrumb a {
    color: var(--pw-muted);
    text-decoration: none;
}

.pw-team-prediction-breadcrumb a:hover {
    color: var(--pw-primary);
}

.pw-team-prediction-context-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.pw-team-prediction-context-links a {
    color: var(--pw-muted);
    font-size: 0.76rem;
    font-weight: 650;
    text-decoration: none;
}

.pw-team-prediction-context-links a:hover {
    color: var(--pw-primary);
}


/* =========================
   Top Navigation
   ========================= */

.pw-team-prediction-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.75rem;
}

.pw-team-prediction-nav a {
    padding: 0.42rem 0.65rem;
    border: 1px solid var(--pw-border);
    border-radius: 999px;
    background: var(--pw-surface-muted);
    color: var(--pw-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

.pw-team-prediction-nav a:hover {
    border-color: var(--pw-primary);
    color: var(--pw-primary);
}


/* =========================
   Hero
   ========================= */

.pw-team-prediction-hero {
    margin-top: 1rem;
    padding: 1.25rem;
}

.pw-team-prediction-hero-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pw-team-prediction-logo {
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    object-fit: contain;
}

.pw-team-prediction-hero-copy {
    min-width: 0;
}

.pw-team-prediction-hero-copy h1 {
    margin: 0.15rem 0 0.3rem;
    color: var(--pw-heading);
    font-size: 1.8rem;
    font-weight: 820;
    letter-spacing: -0.03em;
}

.pw-team-prediction-hero-copy p {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.pw-team-prediction-hero-copy a,
.pw-team-prediction-summary-copy a,
.pw-team-prediction-snapshot-note a {
    color: var(--pw-primary);
    text-decoration: none;
}

.pw-team-prediction-hero-copy a:hover,
.pw-team-prediction-summary-copy a:hover,
.pw-team-prediction-snapshot-note a:hover {
    text-decoration: underline;
}

.pw-team-prediction-hero-probability {
    margin-top: 0.5rem;
    color: var(--pw-heading);
    font-size: 0.82rem;
}

.pw-team-prediction-summary-copy {
    max-width: 840px;
    margin: 1rem 0 0;
    color: var(--pw-muted);
    font-size: 0.76rem;
    line-height: 1.55;
}


/* =========================
   Next Game and Model
   ========================= */

.pw-team-prediction-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.pw-team-prediction-info-card {
    min-width: 0;
    padding: 1rem;
    text-align: center;
}

.pw-team-prediction-opponent-logo {
    width: 54px;
    height: 54px;
    margin: 0.75rem 0 0.45rem;
    object-fit: contain;
}

.pw-team-prediction-opponent-name,
.pw-team-prediction-opponent-name a {
    color: var(--pw-heading);
    font-size: 0.92rem;
    font-weight: 780;
    text-decoration: none;
}

.pw-team-prediction-opponent-name a:hover {
    color: var(--pw-primary);
}

.pw-team-prediction-info-meta {
    display: grid;
    gap: 0.15rem;
    margin-top: 0.45rem;
    color: var(--pw-muted);
    font-size: 0.72rem;
}

.pw-team-prediction-model-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pw-team-prediction-model-value {
    display: block;
    margin-top: 0.5rem;
    color: var(--pw-heading);
    font-size: 2.2rem;
    font-weight: 840;
    letter-spacing: -0.05em;
}

.pw-team-prediction-odds-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.8rem;
}

.pw-team-prediction-odds-grid > div {
    padding: 0.65rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    background: var(--pw-surface-muted);
}

.pw-team-prediction-odds-grid span,
.pw-team-prediction-odds-grid strong {
    display: block;
}

.pw-team-prediction-odds-grid span {
    color: var(--pw-muted);
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pw-team-prediction-odds-grid strong {
    margin-top: 0.2rem;
    color: var(--pw-heading);
    font-size: 0.85rem;
}

.pw-team-prediction-unavailable {
    margin: 0.75rem 0 0;
    color: var(--pw-muted);
    font-size: 0.78rem;
}


/* =========================
   Team Snapshot
   ========================= */

.pw-team-prediction-snapshot {
    margin-top: 1rem;
    overflow: hidden;
}

.pw-team-prediction-snapshot-header {
    padding: 1rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-team-prediction-snapshot-header h2 {
    margin: 0.2rem 0 0.3rem;
    color: var(--pw-heading);
    font-size: 1rem;
    font-weight: 780;
}

.pw-team-prediction-snapshot-header p {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.74rem;
}

.pw-team-prediction-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pw-team-prediction-snapshot-grid article {
    min-width: 0;
    padding: 1rem;
    border-right: 1px solid var(--pw-border);
    border-bottom: 1px solid var(--pw-border);
    text-align: center;
}

.pw-team-prediction-snapshot-grid article:nth-child(3n) {
    border-right: 0;
}

.pw-team-prediction-snapshot-grid article:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.pw-team-prediction-snapshot-grid span,
.pw-team-prediction-snapshot-grid strong {
    display: block;
}

.pw-team-prediction-snapshot-grid span {
    color: var(--pw-muted);
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pw-team-prediction-snapshot-grid strong {
    margin-top: 0.3rem;
    color: var(--pw-heading);
    font-size: 1rem;
    font-weight: 820;
}

.pw-team-prediction-snapshot-note {
    padding: 0.9rem 1rem;
    border-top: 1px solid var(--pw-border);
    color: var(--pw-muted);
    font-size: 0.72rem;
    line-height: 1.5;
    text-align: center;
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 767.98px) {
    .pw-team-prediction-snapshot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pw-team-prediction-snapshot-grid article,
    .pw-team-prediction-snapshot-grid article:nth-child(3n),
    .pw-team-prediction-snapshot-grid article:nth-last-child(-n + 3) {
        border-right: 1px solid var(--pw-border);
        border-bottom: 1px solid var(--pw-border);
    }

    .pw-team-prediction-snapshot-grid article:nth-child(2n) {
        border-right: 0;
    }

    .pw-team-prediction-snapshot-grid article:nth-last-child(-n + 2) {
        border-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .pw-team-prediction-page {
        width: 100%;
        max-width: 100%;
        padding-top: 1rem;
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .pw-team-prediction-page > *,
    .pw-team-prediction-nav,
    .pw-team-prediction-hero,
    .pw-team-prediction-info-grid,
    .pw-team-prediction-info-card,
    .pw-team-prediction-snapshot {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .pw-team-prediction-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pw-team-prediction-nav a {
        flex: 0 0 auto;
    }

    .pw-team-prediction-hero {
        padding: 1rem;
    }

    .pw-team-prediction-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .pw-team-prediction-logo {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
    }

    .pw-team-prediction-hero-copy h1 {
        font-size: 1.5rem;
    }

    .pw-team-prediction-summary-copy {
        text-align: center;
    }

    .pw-team-prediction-info-grid {
        grid-template-columns: 1fr;
    }

    .pw-team-prediction-model-value {
        font-size: 1.8rem;
    }
}

/* ==========================================================
   PRE-GAME MODEL PERFORMANCE
   ========================================================== */

.pw-model-performance-page {
    max-width: 1180px;
    padding-top: 2rem;
    padding-bottom: 1rem;
}


/* =========================
   Header
   ========================= */

.pw-model-performance-header {
    margin-bottom: 1rem;
}

.pw-model-performance-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}


/* =========================
   Filters
   ========================= */

.pw-model-performance-filter {
    padding: 1rem;
}

.pw-model-performance-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    gap: 1rem;
    align-items: end;
}

.pw-model-performance-filter-actions {
    display: flex;
    gap: 0.6rem;
}

.pw-model-performance-filter-note {
    margin: 0.75rem 0 0;
    color: var(--pw-muted);
    font-size: 0.74rem;
}


/* =========================
   Overall Summary
   ========================= */

.pw-model-performance-section {
    margin-top: 2.5rem;
}

.pw-model-performance-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.pw-model-performance-summary-card {
    padding: 1rem;
    text-align: center;
}

.pw-model-performance-summary-card span {
    display: block;
    color: var(--pw-muted);
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pw-model-performance-summary-card strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--pw-heading);
    font-size: 1.6rem;
    font-weight: 820;
    letter-spacing: -0.03em;
}

.pw-model-performance-update-note {
    margin-top: 0.65rem;
    color: var(--pw-muted);
    font-size: 0.7rem;
    text-align: center;
}


/* =========================
   Panels
   ========================= */

.pw-model-performance-panel {
    margin-top: 1rem;
    overflow: hidden;
}

.pw-model-performance-panel-header {
    padding: 1rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-model-performance-panel-header h2 {
    margin: 0.2rem 0 0.35rem;
    color: var(--pw-heading);
    font-size: 1rem;
    font-weight: 780;
}

.pw-model-performance-panel-header p {
    max-width: 900px;
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

.pw-model-performance-panel-note {
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--pw-border);
    color: var(--pw-muted);
    font-size: 0.7rem;
    line-height: 1.45;
}


/* =========================
   Tables
   ========================= */

.pw-model-performance-desktop-table {
    display: block;
}

.pw-model-performance-table {
    width: 100%;
    min-width: 720px;
    margin-bottom: 0;
}

.pw-model-performance-calibration-table {
    min-width: 840px;
}

.pw-model-performance-table th,
.pw-model-performance-table td {
    padding: 0.68rem 0.6rem;
    border-color: var(--pw-border);
    text-align: center;
    vertical-align: middle;
    font-size: 0.76rem;
}

.pw-model-performance-table thead th {
    background: var(--pw-surface-muted);
    color: var(--pw-heading);
    font-size: 0.67rem;
    font-weight: 750;
}

.pw-model-performance-range {
    color: var(--pw-heading);
    font-weight: 750;
}

.pw-model-performance-metric-pill,
.pw-model-performance-diff {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
}

.pw-model-performance-metric-pill {
    background: var(--pw-primary-soft);
    color: var(--pw-primary);
}

.pw-model-performance-low-sample {
    display: inline-flex;
    margin-top: 0.25rem;
    padding: 0.2rem 0.42rem;
    border-radius: 999px;
    background: var(--pw-surface-muted);
    color: var(--pw-muted);
    font-size: 0.58rem;
    font-weight: 700;
}

.pw-model-performance-diff-positive {
    background: rgba(245, 158, 11, 0.12);
    color: #a16207;
}

.pw-model-performance-diff-negative {
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
}

.pw-model-performance-diff-neutral {
    background: rgba(21, 128, 61, 0.1);
    color: #15803d;
}


/* =========================
   Mobile Cards
   ========================= */

.pw-model-performance-mobile-list {
    display: none;
}

.pw-model-performance-mobile-card {
    padding: 0.9rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-model-performance-mobile-card:last-child {
    border-bottom: 0;
}

.pw-model-performance-mobile-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
}

.pw-model-performance-mobile-card header > strong {
    color: var(--pw-heading);
    font-size: 0.88rem;
}

.pw-model-performance-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.pw-model-performance-mobile-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pw-model-performance-mobile-grid > div {
    min-width: 0;
    padding: 0.55rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    background: var(--pw-surface-muted);
}

.pw-model-performance-mobile-grid span,
.pw-model-performance-mobile-grid strong {
    display: block;
}

.pw-model-performance-mobile-grid span {
    color: var(--pw-muted);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pw-model-performance-mobile-grid strong {
    margin-top: 0.15rem;
    color: var(--pw-heading);
    font-size: 0.76rem;
}


/* =========================
   Charts
   ========================= */

.pw-model-performance-chart-wrap {
    position: relative;
    width: 100%;
    min-height: 340px;
    padding: 1rem;
}

.pw-model-performance-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}


/* =========================
   Team View
   ========================= */

.pw-model-performance-team-control {
    max-width: 340px;
    padding: 1rem 1rem 0;
}

.pw-model-performance-team-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
}

.pw-model-performance-team-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    object-fit: contain;
}

.pw-model-performance-team-header h3 {
    margin: 0;
    color: var(--pw-heading);
    font-size: 0.95rem;
    font-weight: 780;
}

.pw-model-performance-team-header p {
    margin: 0.2rem 0 0;
    color: var(--pw-muted);
    font-size: 0.72rem;
}

.pw-model-performance-team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    padding: 0 1rem 1rem;
}

.pw-model-performance-team-stat {
    min-width: 0;
    padding: 0.85rem;
    text-align: center;
}

.pw-model-performance-team-stat span {
    display: block;
    color: var(--pw-muted);
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pw-model-performance-team-stat strong {
    display: block;
    margin-top: 0.3rem;
    color: var(--pw-heading);
    font-size: 1rem;
    font-weight: 820;
}

.pw-model-performance-loading {
    display: none;
    padding: 0 1rem 0.75rem;
    color: var(--pw-muted);
    font-size: 0.72rem;
}


/* =========================
   Guide
   ========================= */

.pw-model-performance-guide {
    margin-top: 1rem;
    overflow: hidden;
}

.pw-model-performance-guide .accordion-item {
    border: 0;
}

.pw-model-performance-guide .accordion-button {
    padding: 1rem;
    background: var(--pw-surface);
    color: var(--pw-heading);
    font-size: 0.84rem;
    font-weight: 750;
    box-shadow: none;
}

.pw-model-performance-guide .accordion-button:not(.collapsed) {
    background: var(--pw-primary-soft);
    color: var(--pw-primary-hover);
}

.pw-model-performance-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.pw-model-performance-guide-grid h3 {
    margin-bottom: 0.3rem;
    color: var(--pw-heading);
    font-size: 0.8rem;
    font-weight: 750;
}

.pw-model-performance-guide-grid p {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.73rem;
    line-height: 1.45;
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 991.98px) {
    .pw-model-performance-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .pw-model-performance-desktop-table {
        display: none;
    }

    .pw-model-performance-mobile-list {
        display: block;
    }

    .pw-model-performance-guide-grid {
        grid-template-columns: 1fr;
    }

    .pw-model-performance-chart-wrap {
        min-height: 300px;
    }
}

@media (max-width: 575.98px) {
    .pw-model-performance-page {
        width: 100%;
        max-width: 100%;
        padding-top: 1.25rem;
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .pw-model-performance-page > *,
    .pw-model-performance-filter,
    .pw-model-performance-summary-grid,
    .pw-model-performance-panel,
    .pw-model-performance-mobile-list,
    .pw-model-performance-mobile-card,
    .pw-model-performance-team-grid,
    .pw-model-performance-guide {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .pw-model-performance-header-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pw-model-performance-header-actions .btn {
        width: 100%;
    }

    .pw-model-performance-filter-grid {
        grid-template-columns: 1fr;
    }

    .pw-model-performance-filter-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pw-model-performance-filter-actions .btn {
        width: 100%;
    }

    .pw-model-performance-summary-grid {
        grid-template-columns: 1fr;
    }

    .pw-model-performance-summary-card strong {
        font-size: 1.4rem;
    }

    .pw-model-performance-mobile-grid-three {
        grid-template-columns: 1fr;
    }

    .pw-model-performance-team-header {
        align-items: flex-start;
    }

    .pw-model-performance-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .pw-model-performance-chart-wrap {
        min-height: 260px;
        padding: 0.75rem;
    }
}

/* ==========================================================
   NHL PLAYER MODEL PERFORMANCE
   ========================================================== */

.pw-player-performance-page {
    max-width: 1180px;
    padding-top: 2rem;
    padding-bottom: 1rem;
}


/* =========================
   Header
   ========================= */

.pw-player-performance-header {
    margin-bottom: 1rem;
}


/* =========================
   Metric Guide
   ========================= */

.pw-player-performance-guide {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.pw-player-performance-guide-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--pw-primary-soft);
    color: var(--pw-primary);
    font-size: 0.85rem;
    font-weight: 800;
}

.pw-player-performance-guide h2 {
    margin-bottom: 0.35rem;
    color: var(--pw-heading);
    font-size: 0.95rem;
    font-weight: 780;
}

.pw-player-performance-guide > div:last-child > p {
    max-width: 860px;
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

.pw-player-performance-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.pw-player-performance-guide-grid > div {
    padding: 0.7rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    background: var(--pw-surface-muted);
}

.pw-player-performance-guide-grid span,
.pw-player-performance-guide-grid strong {
    display: block;
}

.pw-player-performance-guide-grid span {
    color: var(--pw-primary);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pw-player-performance-guide-grid strong {
    margin-top: 0.2rem;
    color: var(--pw-heading);
    font-size: 0.72rem;
    line-height: 1.4;
}


/* =========================
   Summary
   ========================= */

.pw-player-performance-section {
    margin-top: 2.5rem;
}

.pw-player-performance-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.pw-player-performance-summary-card {
    padding: 1rem;
    text-align: center;
}

.pw-player-performance-summary-card span {
    display: block;
    color: var(--pw-muted);
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pw-player-performance-summary-card strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--pw-heading);
    font-size: 1.6rem;
    font-weight: 820;
    letter-spacing: -0.03em;
}


/* =========================
   Filters
   ========================= */

.pw-player-performance-filter {
    margin-top: 1rem;
    padding: 1rem;
}

.pw-player-performance-filter-grid {
    display: grid;
    grid-template-columns:
        minmax(140px, 0.8fr)
        minmax(150px, 0.8fr)
        minmax(220px, 1.2fr)
        minmax(130px, 0.7fr)
        auto;
    gap: 1rem;
    align-items: end;
}

.pw-player-performance-filter-actions {
    display: flex;
    gap: 0.6rem;
}


/* =========================
   Mobile Sort
   ========================= */

.pw-player-performance-mobile-sort {
    display: none;
    margin-top: 1rem;
    padding: 0.9rem;
}

.pw-player-performance-mobile-sort-header h2 {
    margin: 0.2rem 0 0.7rem;
    color: var(--pw-heading);
    font-size: 0.88rem;
    font-weight: 780;
}

.pw-player-performance-sort-chips {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    -webkit-overflow-scrolling: touch;
}

.pw-player-performance-sort-chips a {
    flex: 0 0 auto;
    padding: 0.4rem 0.65rem;
    border: 1px solid var(--pw-border);
    border-radius: 999px;
    background: var(--pw-surface-muted);
    color: var(--pw-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
}

.pw-player-performance-sort-chips a.active {
    border-color: var(--pw-primary);
    background: var(--pw-primary);
    color: #ffffff;
}


/* =========================
   Results
   ========================= */

.pw-player-performance-results {
    margin-top: 1rem;
    overflow: hidden;
}

.pw-player-performance-results-header {
    padding: 1rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-player-performance-results-header h2 {
    margin: 0.2rem 0 0.3rem;
    color: var(--pw-heading);
    font-size: 1rem;
    font-weight: 780;
}

.pw-player-performance-results-header p {
    max-width: 850px;
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.74rem;
    line-height: 1.5;
}


/* =========================
   Desktop Table
   ========================= */

.pw-player-performance-desktop-table {
    display: block;
}

.pw-player-performance-table {
    width: 100%;
    min-width: 1050px;
    margin-bottom: 0;
}

.pw-player-performance-table th,
.pw-player-performance-table td {
    padding: 0.64rem 0.5rem;
    border-color: var(--pw-border);
    text-align: center;
    vertical-align: middle;
    font-size: 0.74rem;
    white-space: nowrap;
}

.pw-player-performance-table thead th {
    background: var(--pw-surface-muted);
    color: var(--pw-heading);
    font-size: 0.65rem;
    font-weight: 750;
}

.pw-player-performance-table thead a {
    color: var(--pw-heading);
    text-decoration: none;
}

.pw-player-performance-table thead a:hover {
    color: var(--pw-primary);
}

.pw-player-performance-table th:first-child,
.pw-player-performance-table td:first-child {
    min-width: 170px;
    text-align: left;
}

.pw-player-performance-table th:nth-child(2),
.pw-player-performance-table td:nth-child(2) {
    min-width: 105px;
    text-align: left;
}

.pw-player-performance-name-cell {
    color: var(--pw-heading);
    font-weight: 700;
}

.pw-player-performance-team-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.pw-player-performance-team-cell img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.pw-player-performance-diff {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
}

.pw-player-performance-diff-positive {
    background: rgba(21, 128, 61, 0.1);
    color: #15803d;
}

.pw-player-performance-diff-negative {
    background: rgba(185, 28, 28, 0.08);
    color: #b91c1c;
}

.pw-player-performance-diff-neutral {
    background: var(--pw-surface-muted);
    color: var(--pw-muted);
}


/* =========================
   Mobile Cards
   ========================= */

.pw-player-performance-mobile-list {
    display: none;
}

.pw-player-performance-mobile-card {
    padding: 0.9rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-player-performance-mobile-card:last-child {
    border-bottom: 0;
}

.pw-player-performance-mobile-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.pw-player-performance-mobile-top h3 {
    margin: 0;
    color: var(--pw-heading);
    font-size: 0.92rem;
    font-weight: 780;
}

.pw-player-performance-mobile-team {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.3rem;
    color: var(--pw-muted);
    font-size: 0.7rem;
}

.pw-player-performance-mobile-team img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.pw-player-performance-mobile-gp {
    display: grid;
    justify-items: end;
    flex: 0 0 auto;
}

.pw-player-performance-mobile-gp span {
    color: var(--pw-muted);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pw-player-performance-mobile-gp strong {
    color: var(--pw-heading);
    font-size: 1rem;
    font-weight: 820;
}

.pw-player-performance-mobile-production {
    overflow: hidden;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
}

.pw-player-performance-mobile-production-header,
.pw-player-performance-mobile-production > div:not(.pw-player-performance-mobile-production-header) {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 0.4rem;
    padding: 0.55rem 0.65rem;
    text-align: center;
}

.pw-player-performance-mobile-production-header {
    background: var(--pw-surface-muted);
    color: var(--pw-muted);
    font-size: 0.58rem;
    font-weight: 750;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pw-player-performance-mobile-production > div:not(.pw-player-performance-mobile-production-header) {
    border-top: 1px solid var(--pw-border);
    color: var(--pw-heading);
    font-size: 0.76rem;
}

.pw-player-performance-mobile-production > div:not(.pw-player-performance-mobile-production-header) strong {
    text-align: left;
}

.pw-player-performance-mobile-diffs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.pw-player-performance-mobile-diffs > div {
    padding: 0.6rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    background: var(--pw-surface-muted);
}

.pw-player-performance-mobile-diffs span,
.pw-player-performance-mobile-diffs strong {
    display: block;
}

.pw-player-performance-mobile-diffs span {
    color: var(--pw-muted);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pw-player-performance-mobile-diffs strong {
    margin-top: 0.2rem;
    font-size: 0.8rem;
}


/* =========================
   Model Notes
   ========================= */

.pw-player-performance-about {
    margin-top: 1rem;
    overflow: hidden;
}

.pw-player-performance-about .accordion-item {
    border: 0;
}

.pw-player-performance-about .accordion-button {
    padding: 1rem;
    background: var(--pw-surface);
    color: var(--pw-heading);
    font-size: 0.84rem;
    font-weight: 750;
    box-shadow: none;
}

.pw-player-performance-about .accordion-button:not(.collapsed) {
    background: var(--pw-primary-soft);
    color: var(--pw-primary-hover);
}

.pw-player-performance-about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.pw-player-performance-about-grid h3 {
    margin-bottom: 0.3rem;
    color: var(--pw-heading);
    font-size: 0.8rem;
    font-weight: 750;
}

.pw-player-performance-about-grid p {
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.73rem;
    line-height: 1.45;
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 1100px) {
    .pw-player-performance-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pw-player-performance-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .pw-player-performance-desktop-table {
        display: none;
    }

    .pw-player-performance-mobile-list,
    .pw-player-performance-mobile-sort {
        display: block;
    }

    .pw-player-performance-guide-grid {
        grid-template-columns: 1fr;
    }

    .pw-player-performance-about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .pw-player-performance-page {
        width: 100%;
        max-width: 100%;
        padding-top: 1.25rem;
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .pw-player-performance-page > *,
    .pw-player-performance-guide,
    .pw-player-performance-summary-grid,
    .pw-player-performance-filter,
    .pw-player-performance-results,
    .pw-player-performance-mobile-list,
    .pw-player-performance-mobile-card,
    .pw-player-performance-about {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .pw-player-performance-guide {
        grid-template-columns: 1fr;
    }

    .pw-player-performance-summary-grid {
        grid-template-columns: 1fr;
    }

    .pw-player-performance-summary-card strong {
        font-size: 1.4rem;
    }

    .pw-player-performance-filter-grid {
        grid-template-columns: 1fr;
    }

    .pw-player-performance-filter-actions {
        display: grid;
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .pw-player-performance-filter-actions .btn {
        width: 100%;
    }

    .pw-player-performance-mobile-diffs {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   PLAYER PREDICTIONS
   ========================================================== */

.pw-player-predictions-page {
    max-width: 1120px;
    padding-top: 2rem;
    padding-bottom: 1rem;
}


/* =========================
   Header
   ========================= */

.pw-player-predictions-header {
    margin-bottom: 1rem;
}


/* =========================
   Filters
   ========================= */

.pw-player-predictions-filter {
    padding: 1rem;
}

.pw-player-predictions-filter-grid {
    display: grid;
    grid-template-columns:
        minmax(150px, 0.8fr)
        minmax(240px, 1.4fr)
        minmax(150px, 0.8fr)
        auto;
    gap: 1rem;
    align-items: end;
}

.pw-player-predictions-filter-actions {
    display: flex;
    gap: 0.6rem;
}


/* =========================
   Results Toolbar
   ========================= */

.pw-player-predictions-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
}

.pw-player-predictions-toolbar-copy {
    color: var(--pw-muted);
    font-size: 0.74rem;
}

.pw-player-predictions-toolbar-copy strong {
    color: var(--pw-heading);
}

.pw-player-predictions-toolbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pw-player-predictions-table-note {
    color: var(--pw-muted);
    font-size: 0.68rem;
}


/* =========================
   Mobile Sort
   ========================= */

.pw-player-predictions-mobile-sort {
    display: none;
    margin-top: 1rem;
    padding: 0.9rem;
}

.pw-player-predictions-sort-chips {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    margin-top: 0.55rem;
    padding-bottom: 0.2rem;
    -webkit-overflow-scrolling: touch;
}

.pw-player-predictions-sort-chips a {
    flex: 0 0 auto;
    padding: 0.4rem 0.65rem;
    border: 1px solid var(--pw-border);
    border-radius: 999px;
    background: var(--pw-surface-muted);
    color: var(--pw-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
}

.pw-player-predictions-sort-chips a.active {
    border-color: var(--pw-primary);
    background: var(--pw-primary);
    color: #ffffff;
}


/* =========================
   Results
   ========================= */

.pw-player-predictions-results {
    margin-top: 1rem;
    overflow: hidden;
}

.pw-player-predictions-results-header {
    padding: 1rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-player-predictions-results-header h2 {
    margin: 0.2rem 0 0.3rem;
    color: var(--pw-heading);
    font-size: 1rem;
    font-weight: 780;
}

.pw-player-predictions-results-header p {
    max-width: 820px;
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.74rem;
    line-height: 1.5;
}


/* =========================
   Desktop Table
   ========================= */

.pw-player-predictions-desktop-table {
    display: block;
}

.pw-player-predictions-table {
    width: 100%;
    min-width: 720px;
    margin-bottom: 0;
}

.pw-player-predictions-table th,
.pw-player-predictions-table td {
    padding: 0.72rem 0.7rem;
    border-color: var(--pw-border);
    text-align: center;
    vertical-align: middle;
    font-size: 0.76rem;
}

.pw-player-predictions-table thead th {
    background: var(--pw-surface-muted);
    color: var(--pw-heading);
    font-size: 0.67rem;
    font-weight: 750;
}

.pw-player-predictions-table thead a {
    color: var(--pw-heading);
    text-decoration: none;
}

.pw-player-predictions-table thead a:hover {
    color: var(--pw-primary);
}

.pw-player-predictions-table th:first-child,
.pw-player-predictions-table td:first-child {
    min-width: 250px;
    text-align: left;
}

.pw-player-predictions-player-cell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.pw-player-predictions-player-cell img {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    object-fit: contain;
}

.pw-player-predictions-player-cell strong,
.pw-player-predictions-player-cell span {
    display: block;
}

.pw-player-predictions-player-cell strong {
    color: var(--pw-heading);
    font-size: 0.8rem;
    font-weight: 750;
}

.pw-player-predictions-player-cell span {
    margin-top: 0.12rem;
    color: var(--pw-muted);
    font-size: 0.68rem;
}

.pw-player-predictions-stat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 0.36rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.pw-player-predictions-goals {
    background: var(--pw-surface-muted);
    color: var(--pw-heading);
}

.pw-player-predictions-assists {
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
}

.pw-player-predictions-points {
    background: var(--pw-primary-soft);
    color: var(--pw-primary);
}


/* =========================
   Mobile Cards
   ========================= */

.pw-player-predictions-mobile-list {
    display: none;
}

.pw-player-predictions-mobile-card {
    padding: 0.9rem;
    border-bottom: 1px solid var(--pw-border);
}

.pw-player-predictions-mobile-card:last-child {
    border-bottom: 0;
}

.pw-player-predictions-mobile-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.pw-player-predictions-mobile-player {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    min-width: 0;
}

.pw-player-predictions-mobile-player img {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    object-fit: contain;
}

.pw-player-predictions-mobile-player h3 {
    margin: 0;
    color: var(--pw-heading);
    font-size: 0.92rem;
    font-weight: 780;
    line-height: 1.25;
}

.pw-player-predictions-mobile-player span {
    display: block;
    margin-top: 0.15rem;
    color: var(--pw-muted);
    font-size: 0.7rem;
}

.pw-player-predictions-mobile-points {
    display: grid;
    justify-items: end;
    flex: 0 0 auto;
}

.pw-player-predictions-mobile-points span {
    color: var(--pw-muted);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pw-player-predictions-mobile-points strong {
    color: var(--pw-primary);
    font-size: 1.05rem;
    font-weight: 820;
}

.pw-player-predictions-mobile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.pw-player-predictions-mobile-grid > div {
    min-width: 0;
    padding: 0.6rem;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-sm);
    background: var(--pw-surface-muted);
    text-align: center;
}

.pw-player-predictions-mobile-grid span,
.pw-player-predictions-mobile-grid strong {
    display: block;
}

.pw-player-predictions-mobile-grid span {
    color: var(--pw-muted);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pw-player-predictions-mobile-grid strong {
    margin-top: 0.18rem;
    color: var(--pw-heading);
    font-size: 0.82rem;
}


/* =========================
   Pagination
   ========================= */

.pw-player-predictions-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.pw-player-predictions-pagination span {
    color: var(--pw-muted);
    font-size: 0.72rem;
}


/* =========================
   Model Note
   ========================= */

.pw-player-predictions-note {
    margin-top: 1rem;
    padding: 1rem;
}

.pw-player-predictions-note h2 {
    margin: 0.2rem 0 0.35rem;
    color: var(--pw-heading);
    font-size: 0.92rem;
    font-weight: 780;
}

.pw-player-predictions-note p {
    max-width: 850px;
    margin: 0;
    color: var(--pw-muted);
    font-size: 0.74rem;
    line-height: 1.5;
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 991.98px) {
    .pw-player-predictions-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pw-player-predictions-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .pw-player-predictions-desktop-table {
        display: none;
    }

    .pw-player-predictions-mobile-list,
    .pw-player-predictions-mobile-sort {
        display: block;
    }

    .pw-player-predictions-table-note {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .pw-player-predictions-page {
        width: 100%;
        max-width: 100%;
        padding-top: 1.25rem;
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .pw-player-predictions-page > *,
    .pw-player-predictions-filter,
    .pw-player-predictions-toolbar,
    .pw-player-predictions-mobile-sort,
    .pw-player-predictions-results,
    .pw-player-predictions-mobile-list,
    .pw-player-predictions-mobile-card,
    .pw-player-predictions-note {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .pw-player-predictions-filter-grid {
        grid-template-columns: 1fr;
    }

    .pw-player-predictions-filter-actions {
        display: grid;
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .pw-player-predictions-filter-actions .btn {
        width: 100%;
    }

    .pw-player-predictions-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .pw-player-predictions-toolbar-actions {
        width: 100%;
    }

    .pw-player-predictions-toolbar-actions .btn {
        width: 100%;
    }

    .pw-player-predictions-mobile-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
    }
}

/* Bottom-page display ad */

.pw-bottom-ad {
    width: 100%;
    max-width: 1100px;
    min-height: 100px;
    margin: 2.5rem auto 1.5rem;
    padding: 1rem 0;
    text-align: center;
    overflow: hidden;
}

.pw-bottom-ad-label {
    margin-bottom: 0.5rem;
    color: var(--pw-text-muted, #6b7280);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}