/* ===========================================
   Auth Modal - Professional & Beautiful
   Uses same colors as original Login page
   =========================================== */

/* Modal Overlay */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-overlay);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  animation: authFadeIn 0.2s ease-out;
}

@keyframes authFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal Container */
.auth-modal {
  background: var(--bg-elevated);
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px var(--black-50);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: authSlideUp 0.3s ease-out;
}

@keyframes authSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Header */
.auth-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--white-10);
}

.auth-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.auth-modal-close {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s;
}

.auth-modal-close svg {
  width: 20px;
  height: 20px;
}

.auth-modal-close:hover {
  background: var(--white-10);
  color: var(--accent-red);
}

/* Modal Body */
.auth-modal-body {
  padding: 24px;
  overflow-y: auto;
}

/* Error/Success Message */
.auth-modal-error {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
}

/* Error styling */
.auth-modal-error:not(:has(✅)) {
  background: var(--accent-red-muted);
  border: 1px solid var(--accent-red-muted);
  color: var(--accent-red);
}

/* Success styling */
.auth-modal-error:has(✅) {
  background: var(--accent-green-muted);
  border: 1px solid var(--accent-green-muted);
  color: var(--accent-green);
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Input Group */
.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin: 0;
}

/* Input Wrapper */
.auth-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 14px;
  transition: all 0.2s;
}

.auth-input-wrapper:focus-within {
  border-color: var(--link-blue-hover);
  background: var(--bg-quaternary);
}

.auth-input-icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  fill: var(--text-tertiary);
  flex-shrink: 0;
  transition: fill 0.2s;
}

.auth-input-wrapper:focus-within .auth-input-icon {
  fill: var(--link-blue-hover);
}

.auth-input {
  flex: 1 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  outline: none;
  font-size: 16px; /* Prevents zoom on iOS */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.auth-input::placeholder {
  color: var(--text-quaternary);
}

/* Date input specific styles */
.auth-input-date {
  color-scheme: dark;
  cursor: pointer;
}

.auth-input-date::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* Forgot Password Link */
.auth-forgot-password {
  text-align: right;
  margin-top: -8px;
  margin-bottom: 8px;
}

.auth-forgot-password a,
.auth-forgot-btn {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.auth-forgot-password a:hover,
.auth-forgot-btn:hover {
  color: var(--link-blue-hover);
  text-decoration: underline;
}

/* Forgot Password Subtitle */
.auth-forgot-subtitle {
  color: var(--text-tertiary);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
  text-align: center;
}

/* Forgot Password Success State */
.auth-forgot-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  text-align: center;
}

.auth-forgot-success-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  color: var(--accent-green);
}

.auth-forgot-success-icon svg {
  width: 100%;
  height: 100%;
}

.auth-forgot-success-text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 280px;
}

/* Submit Button */
.auth-submit-btn {
  background: var(--btn-auth-bg);
  border: none;
  border-radius: 8px;
  color: var(--link-blue-hover);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  padding: 14px;
  margin-top: 8px;
  transition: all 0.2s;
  position: relative;
}

.auth-submit-btn:hover:not(:disabled) {
  background: var(--btn-auth-bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-blue-muted);
}

.auth-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading Spinner */
.auth-loading-spinner {
  display: inline-block;
  animation: authPulse 1s infinite;
}

@keyframes authPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Modal Footer */
.auth-modal-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--white-10);
  text-align: center;
  font-size: 14px;
  color: var(--text-tertiary);
}

.auth-switch-btn {
  background: none;
  border: none;
  color: var(--link-blue-hover);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-switch-btn:hover {
  color: var(--link-blue);
  text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .auth-modal-overlay {
    padding: 0;
    align-items: flex-start; /* Changed from flex-end to fix positioning */
    padding-top: 20px;
  }

  .auth-modal {
    max-width: 100%;
    max-height: 85vh; /* Reduced from 95vh to ensure it fits on screen */
    border-radius: 16px;
    margin: 0 8px;
    animation: authSlideDown 0.3s ease-out;
  }

  @keyframes authSlideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .auth-modal-header {
    padding: 16px 20px;
  }

  .auth-modal-title {
    font-size: 18px;
  }

  .auth-modal-body {
    padding: 20px;
  }

  .auth-input-wrapper {
    padding: 14px;
  }

  .auth-submit-btn {
    padding: 16px;
    font-size: 17px;
  }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
  .auth-modal {
    max-width: 460px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .auth-modal-overlay,
  .auth-modal,
  .auth-input-wrapper,
  .auth-submit-btn,
  .auth-modal-close {
    animation: none;
    transition: none;
  }
}

/* AllSportsSidebar.css - Desktop sidebar styles only */
/* Mobile menu styles are in AllSportsMenu.css */

/* ============================================
   SEARCH SECTION
   ============================================ */

/* Sticky container for search + favorites */
.sidebar-sticky-top {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-primary);
  padding: 8px 10px 1px;
  box-sizing: border-box;
  width: 100%;
}

/* Search box inside sticky container */
.sidebar-search-box {
  margin-bottom: 8px;
}

.sidebar-search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--separator);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  box-sizing: border-box;
}

.sidebar-search-trigger:hover {
  background: var(--bg-tertiary);
  border-color: var(--separator-light);
}

.sidebar-search-icon {
  color: var(--text-tertiary);
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.sidebar-search-text {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 13px;
  color: var(--text-tertiary);
}

.sidebar-search-active {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--separator-light);
  border-radius: 6px;
  box-sizing: border-box;
}

.sidebar-search-input {
  flex: 1 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: 'Proxima Nova', sans-serif;
  font-size: 13px;
  padding: 0;
  min-width: 0;
}

.sidebar-search-input::placeholder {
  color: var(--text-tertiary);
}

.sidebar-search-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.sidebar-search-close:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

/* Search Results */
.sidebar-search-results {
  padding: 10px;
}

.sidebar-search-hint,
.sidebar-search-loading,
.sidebar-search-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-tertiary);
  font-family: 'Proxima Nova', sans-serif;
  font-size: 14px;
}

.sidebar-search-section {
  margin-bottom: 16px;
}

.sidebar-search-title {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid var(--separator);
  margin-bottom: 8px;
}

.sidebar-search-item {
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-search-item:hover {
  background: var(--bg-tertiary);
}

.sidebar-search-item-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  width: 100%;
  gap: 8px;
}

.sidebar-search-item-time {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 11px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.sidebar-search-item-live {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.sidebar-search-item-sport {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: rgba(74, 144, 226, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Sport-specific badge colors */
.sidebar-search-item-sport[data-sport="1"] { background: #1a3f1f; } /* Soccer */
.sidebar-search-item-sport[data-sport="2"] { background: #513517; } /* Tennis */
.sidebar-search-item-sport[data-sport="3"] { background: #3e1f0d; } /* Basketball */
.sidebar-search-item-sport[data-sport="4"] { background: #3F4853; } /* Ice Hockey */
.sidebar-search-item-sport[data-sport="5"] { background: #7F2F00; } /* Volleyball */
.sidebar-search-item-sport[data-sport="6"] { background: #0E2A5A; } /* Handball */
.sidebar-search-item-sport[data-sport="7"] { background: #512A0D; } /* American Football */
.sidebar-search-item-sport[data-sport="8"] { background: #1B222B; } /* MMA */
.sidebar-search-item-sport[data-sport="9"] { background: #14213d; } /* Baseball */
.sidebar-search-item-sport[data-sport="10"] { background: #1e3a8a; } /* E-Sports */
.sidebar-search-item-sport[data-sport="11"] { background: #4A0E14; } /* Cricket */

.sidebar-search-item-teams {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-search-item-vs {
  color: var(--text-tertiary);
  font-weight: 400;
  font-size: 12px;
}

.sidebar-search-item-league {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ============================================
   MAIN STYLES
   ============================================ */

/* Когда элемент .sidebar-sport-item активен, меняем цвет .sidebar-sport-name */
.sidebar-sport-item.active .sidebar-sport-name {
  color: var(--accent-blue);
  color: var(--active-sport-color, var(--accent-blue));
}

.sidebar-scroll-area {
  width: 269px;
  overflow: visible;
  flex-shrink: 0;
}

.sidebar-list {
  display: flex;
  top: 0;
  margin-bottom: 150px;
  flex-direction: column;
  gap: 0;
  max-height: none;
  overflow: visible;
  position: relative;
  width: 100%;
}

.sidebar-sport-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0;
  border-radius: 2px;
  background-color: var(--bg-primary);
  border: 0;
  padding: 10px;
  width: 100%;
  color: var(--text-secondary);
  font-family: 'Proxima Nova', sans-serif;
  font-size: 31px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-sport-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.sidebar-sport-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
  text-transform: uppercase;
  gap: 10px;
  width: 100%;
  justify-content: space-between;
  display: flex;
  }

.sidebar-event-count {
  color: color(display-p3 0.68 0.787 0.985);
  font-family: 'Proxima Nova Cond', sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.drag-indicator {
  width: 60px;
  height: 5px;
  border-radius: 5px;
  background-color: var(--bg-tertiary);
  margin: 10px auto;
  cursor: pointer;
}

.sidebar-sport-item {
  position: relative;
  display: flex;
  cursor: pointer;
  align-items: center;
}

.sidebar-sport-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 45px;
  right: 0px;
  height: 1px;
  z-index: 3;
  background-color: var(--separator);
}

/* Removed duplicate .all-sports-overlay.closing - defined in AllSportsMenu.css */

h3 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

.sidebar-sport-section {
  padding: 0;
  margin: 0 10px;
  position: relative;
  scroll-margin-top: 56px; /* Account for sticky search wrapper */
}



.sidebar-league-country {
  border: none;
  position: relative;
  align-items: center;
  font-family: 'Proxima Nova', sans-serif;
  background: 0;
  scroll-margin-top: 100px; /* Account for sticky search + sport header */
  cursor: pointer;
  display: flex;
  font-size: 14px;
  width: 100%;
  font-weight: normal;
  gap: 15px;
  margin: 0px;
  padding: 8px 16px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-league-country.last::after {
  display: none;
}


.sidebar-league-country::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--separator);
}

.sidebar-country-flag {
  width: 20px;
  height: 16px;
  object-fit: contain;
  border-radius: 2px; /* Немного скруглим флаг */
  min-width: 20px; /* Минимальная ширина для видимости */
}

.sidebar-country-flag::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 14px;
  background-color: var(--separator-light); /* Флаг занимает пространство даже без изображения */
}

.sidebar-league-item {
  border: none;
  position: relative;
  color: var(--text-primary);
  font-family: Proxima Nova,sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 15px 5px 15px;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  transition: background-color 0.2s ease, color 0.2s ease;
}


.sidebar-league-item:last-child::after {
  display: none;
}

.sidebar-league-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--separator);
}

.sidebar-league-item:last-child {
  border-bottom: none;
}

.sidebar-league-event-count {
  color: var(--link-blue);
}
.sidebar-top-league-event-count {
  color: var(--link-blue);
  display: none;
}

/* Адаптируем паддинг и внешний вид */
.sidebar-leagues-wrapper {
  background-color: var(--bg-secondary);
  border-radius: 4px;
  opacity: 1;
  overflow: visible;
  padding: 5px 0 0;
  margin: 5px 0;
  color: var(--text-secondary) !important;
  font-family: 'Proxima Nova', sans-serif;
}


.sidebar-league-list {
  background-color: var(--bg-tertiary);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1px 0;
  margin-bottom: 5px;
  /*box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.38);*/
}

.sidebar-country-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 12px;
}

/* Скелетон для загрузки лиг */
.sidebar-leagues-wrapper .sidebar-skeleton {
  border-radius: 8px;
  background-color: var(--bg-tertiary);
  background-image: linear-gradient(
    90deg,
    var(--bg-tertiary) 0px,
    var(--bg-quaternary) 40px,
    var(--bg-tertiary) 80px
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: 200px 0;
  }
}
/* Skeleton for AllSportsMenu (bp-skeleton) */
.sidebar-skeleton-container {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sidebar-skeleton-line {
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--bg-tertiary) 0%,
    var(--bg-quaternary) 20%,
    var(--bg-tertiary) 40%
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

.sidebar-country-flag {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  will-change: opacity;
}

.sidebar-country-flag.loaded {
  opacity: 1;
}

.sidebar-sport-item.active {
  position: sticky;
  top: 123px;
  z-index: 50;
  cursor: pointer;
  background-color: var(--bg-primary);
}

.sidebar-sport-item.active:hover {
  z-index: 50;
  cursor: pointer;
  background-color: var(--bg-primary);
}

.sidebar-sport-item.active::after {
  background-color: var(--accent-blue);
  bottom: 0;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  cursor: pointer;
}

.sidebar-league-country.active {
  background-color: var(--bg-card-bottom);
  /* box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.38); */
  margin: 0;
  width: -webkit-fill-available;
}
.sidebar-league-country.active:hover {
  background-color: var(--bg-card-bottom);
}

.sidebar-league-country.active::after {
  display: none;
}

/* Removed duplicate .sidebar-search-trigger - defined above in SEARCH SECTION */

/* LIVE button styles */
.sidebar-live-button {
  align-items: center;
  background-color: var(--accent-red);
  border-radius: 4px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  font-family: Proxima Nova,sans-serif;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  justify-content: start;
  margin: 10px 15px;
  padding: 5px 15px 5px 10px;
  width: fit-content;
  width: -webkit-fit-content;
  transition: background-color .2s ease;
}

.sidebar-live-button:hover {
  background-color: #bb3e3d;
}

.sidebar-live-icon {
  width: 16px;
  height: 16px;
  background-color: var(--text-primary);
  -webkit-mask: url(/static/media/live.305452975aaea3c5f238.svg) no-repeat center;
          mask: url(/static/media/live.305452975aaea3c5f238.svg) no-repeat center;
  mask-size: contain;
  -webkit-mask: url(/static/media/live.305452975aaea3c5f238.svg) no-repeat center;
  -webkit-mask-size: contain;
}

.sidebar-top-leagues-header {
  color: var(--text-secondary);
  font-family: Proxima Nova;
  font-weight: 600;
  padding: 10px 5px 15px 20px;
}

.sidebar-az-leagues-header {
  color: var(--text-tertiary);
  font-family: "Proxima Nova", sans-serif;
  font-weight: 500;
  font-size: 10px;
  padding: 5px 5px 10px 15px;
}


.sidebar-top-league-list {
border-radius: 0;
display: flex;
flex-direction: column;
gap: 0;
margin-bottom: 25px;
padding: 1px 0;
}
.sidebar-top-league-icon {
  height: 25px;
  width: 25px;
}


.sidebar-top-league-item::after {
  background-color: transparent;
  bottom: -2px;
  content: "";
  height: 1px;
  left: 50px;
  position: absolute;
  right: 15px;
  }

  .sidebar-country-name:hover
   {
    color:   color(display-p3 .68 .787 .985);
    cursor: pointer;
  }

  .sidebar-league-item:hover {
    /*background-color: color(srgb 0.2557 0.2557 0.265);*/
    color: var(--link-blue);
    cursor: pointer;
  }
  .sidebar-league-item.active {
    /*background-color: color(srgb 0.2557 0.2557 0.265);*/
    cursor: pointer;
    color: var(--link-blue);
    font-weight: 600;
  }

  .sidebar-sport-item:hover {
    color: var(--link-blue);
    cursor: pointer;
  }


  .sidebar-league-country:hover {
    background-color: var(--bg-card-bottom);
    color: var(--link-blue);
    cursor: pointer;
  }
  .sidebar-top-league-item:hover {
    color: var(--link-blue);
    cursor: pointer;
    background: var(--bg-secondary);
  }

  .sidebar-top-league-item.active {
    color: var(--accent-blue);
    cursor: pointer;
    background: var(--bg-secondary);
  }


  .sidebar-top-league-item {
    border: none;
    color: var(--text-primary);
    display: flex;
    gap: 10px;
    margin: 2px 10px;
    border-radius: 2px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-family: Proxima Nova Cond,sans-serif;
    font-size: 14px;
    align-items: center;
    font-weight: 600;
    padding: 4px 10px;
    position: relative;
    text-decoration: none;
  }
  
  .sidebar-top-league-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1 1;
    gap: 8px;
  }
/* 2.1 Цвет названия у активного спорта */
.sidebar-sport-item.active .sidebar-sport-name {
  color: var(--accent-blue);
  color: var(--active-sport-color, var(--accent-blue)); /* подставь свой цвет или управляй переменной */
}

/* 2.2 Общий цвет активного пункта — нужен, чтобы тот же цвет получил и иконка */
.sidebar-sport-item.active {
  color: var(--accent-blue);
  color: var(--active-sport-color, var(--accent-blue));
}

/* 2.3 Icon wrapper */
.sidebar-sport-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

/* 2.4 Active sport icon - blue color (Phosphor icons) */
.sidebar-sport-item.active .sidebar-sport-icon {
  color: var(--accent-blue);
}

/* Контейнер страны — в строку */
.sidebar-league-country {
  display: flex;
  align-items: center;
}

/* Имя страны — пусть занимает всё доступное */
.sidebar-country-name {
  flex: 1 1 auto;
  min-width: 0;           /* чтобы текст не выпирал */
  text-align: left;
}

/* Лига — флекс, чтобы прижать счётчик вправо */
.sidebar-league-item {
  display: flex;
  align-items: center;
}

.sidebar-league-name {
  flex: 1 1 auto;
  min-width: 0;
}
.all-sports-item,
.sidebar-sport-item { display:flex; align-items:center; }

.as-sport-name, .sidebar-sport-name { flex: 1 1 auto; min-width: 0; }

/* Keep as-sport-count for AllSports page with old style */
.as-sport-count {
  margin-left: auto;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 15px;
  background: rgb(0 0 0 / 34%);
  opacity: 1;
  display: flex;
  align-items: center;
}

/* Sport count in sidebar - just container for new badge */
.sidebar-sport-count {
  display: flex;
  align-items: center;
}

/* ============================================
   LIVE TOGGLE & INDICATORS
   ============================================ */

.sidebar-all-sports-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 10px;
}

.sidebar-all-sports-header .sidebar-top-leagues-header {
  margin-bottom: 0;
}

.sidebar-live-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: none;
  border-radius: 12px;
  background: #2a2a2a;
  background: var(--bg-tertiary, #2a2a2a);
  color: #888;
  color: var(--text-secondary, #888);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.sidebar-live-toggle:hover {
  background: #333;
  background: var(--bg-quaternary, #333);
}

.sidebar-live-toggle.active {
  background: #dc2626;
  color: white;
}

.sidebar-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc2626
}

.sidebar-live-toggle.active .sidebar-live-dot {
  background: white;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

/* Live indicator for top leagues */
.sidebar-live-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: #888;
  color: var(--text-secondary, #888);
  font-size: 12px;
  font-weight: 500;
}

.sidebar-live-indicator-dot {
  width: 6px;
  height: 6px;
  background: #dc2626;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: auto;
  animation: pulse-dot 1.5s infinite;
}

/* New count badge design: dot + number */
.sidebar-count-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #dc2626;
  border-radius: 50%;
  flex-shrink: 0;
}

.count-number {
  color: #888;
  color: var(--text-secondary, #888);
  font-size: 12px;
  font-weight: 500;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  min-width: 16px;
  text-align: right;
}

/* Slightly brighter on hover */
.sidebar-sport-item:hover .count-number,
.sidebar-league-country:hover .count-number,
.sidebar-league-item:hover .count-number {
  color: #fff;
  color: var(--text-primary, #fff);
}

/* Active state */
.sidebar-sport-item.active .count-number,
.sidebar-league-country.active .count-number,
.sidebar-league-item.active .count-number {
  color: #fff;
  color: var(--text-primary, #fff);
}

.sidebar-chevron-icon {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  filter: brightness(0) invert(1);
}

/* ============================================
   FILTER MODE BUTTONS (All / Live / Prematch)
   ============================================ */

.sidebar-filter-buttons {
  position: sticky;
  top: 0;
  z-index: 101;
  background-color: var(--bg-primary);
  padding: 2px 10px 10px 10px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--separator);
}

.sidebar-filter-btn {
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 10px;
  border: none;
  border-radius: 4px;
  background: var(--bg-secondary);
  color: #888;
  color: var(--text-secondary, #888);
  font-family: 'Proxima Nova', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.sidebar-filter-btn:hover {
  background: var(--bg-quaternary);
  color: var(--text-primary);
}

.sidebar-filter-btn.active {
  background: #4a90e2;
  background: var(--accent-blue, #4a90e2);
  color: white;
}

/* Live button specific - red when active */
.sidebar-filter-btn.active:nth-child(2) {
  background: #dc2626;
}

.sidebar-filter-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc2626;
}

.sidebar-filter-btn.active .sidebar-filter-live-dot {
  background: white;
  animation: pulse-dot 1.5s infinite;
}

.sidebar-filter-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}

/* Adjust sticky-top position when filter buttons are present */
.sidebar-sticky-top {
  top: 37px; /* Below filter buttons */
}
/* ============================================
   FAVORITES BUTTON
   ============================================ */

.sidebar-favorites-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
  border: 1px solid rgba(255, 215, 0, 0.25);
  padding: 7px 12px;
  width: 100%;
  color: var(--text-primary);
  font-family: 'Proxima Nova', sans-serif;
  font-size: 13px;
  font-weight: 600;
  min-height: 36px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.sidebar-favorites-btn:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
  border-color: rgba(255, 215, 0, 0.4);
}

[data-theme="day"] .sidebar-favorites-btn {
  background: linear-gradient(to bottom right, rgba(255, 193, 7, 0.5), rgba(255, 193, 7, 0.25));
  border-color: rgba(255, 193, 7, 0.7);
}

[data-theme="day"] .sidebar-favorites-btn:hover {
  background: linear-gradient(to bottom right, rgba(255, 193, 7, 0.6), rgba(255, 193, 7, 0.35));
  border-color: rgba(255, 193, 7, 0.8);
}

.sidebar-favorites-text {
  flex: 1 1;
  font-weight: 600;
}

.sidebar-favorites-count {
  margin-left: auto;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 10px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 15px;
  background: rgb(0 0 0 / 34%);
  color: var(--text-on-accent);
  display: flex;
  align-items: center;
}

/* ============================================
   NEXT TO GO - Horse Racing Sidebar
   ============================================ */

.sidebar-next-to-go {
  padding: 8px 10px;
  border-bottom: 1px solid var(--separator);
}

.ntg-list {
  display: flex;
  flex-direction: column;
}

.ntg-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ntg-item:last-child {
  border-bottom: none;
}

.ntg-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ntg-flag {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.ntg-track {
  flex: 1 1;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ntg-countdown {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  min-width: 45px;
  text-align: right;
}

/* Urgent - less than 5 minutes */
.ntg-countdown.ntg-urgent {
  color: #ef4444;
}

/* Blinking - less than 1 minute */
.ntg-countdown.ntg-blink {
  color: #ef4444;
  animation: ntg-blink 1s ease-in-out infinite;
}

/* Started - negative countdown */
.ntg-countdown.ntg-started {
  color: #f97316;
  font-weight: 700;
}

@keyframes ntg-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

