/* Sport dropdown + theme toggle alignment fix */

.pp-sport-select-wrap {
  display: grid;
  gap: 4px;
  min-width: 132px;
}

.pp-sport-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.pp-sport-select {
  height: 42px;
  min-width: 132px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-weight: 900;
  font-size: 18px;
  padding: 0 36px 0 12px;
  box-shadow: var(--shadow);
  outline: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 12px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.pp-sport-select option:disabled {
  color: #888;
}

/* hard override for sloppy toggle knob alignment */
.theme-toggle-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  line-height: 1 !important;
}

.theme-switch {
  position: relative !important;
  display: inline-block !important;
  width: 58px !important;
  height: 32px !important;
  min-width: 58px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}

.theme-switch::after {
  content: "" !important;
  position: absolute !important;
  top: 3px !important;
  left: 4px !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.24) !important;
  transform: translateX(0) !important;
  transition: transform .18s ease !important;
}

body[data-theme="dark"] .theme-switch::after {
  transform: translateX(26px) !important;
}

body[data-theme="light"] .theme-switch::after {
  transform: translateX(0) !important;
}

@media (max-width: 520px) {
  .pp-sport-select-wrap {
    min-width: 116px;
  }

  .pp-sport-select {
    min-width: 116px;
    height: 40px;
    font-size: 17px;
  }

  .theme-switch {
    width: 56px !important;
    min-width: 56px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
  }

  .theme-switch::after {
    width: 22px !important;
    height: 22px !important;
    top: 3px !important;
    left: 4px !important;
  }

  body[data-theme="dark"] .theme-switch::after {
    transform: translateX(25px) !important;
  }
}
