.smart-breadcrumb-container {
  position: relative;
  z-index: 10;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  font-size: 14px;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-item.series-link {
  color: var(--text-secondary, #9CA3AF);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.breadcrumb-item.series-link:hover {
  background: rgba(185, 255, 102, 0.1);
  color: #b9ff66;
  border-color: rgba(185, 255, 102, 0.3);
}

/* Active state for series link */
.breadcrumb-item.series-link.active {
  background: rgba(185, 255, 102, 0.15);
  color: #b9ff66;
  border-color: rgba(185, 255, 102, 0.4);
  font-weight: 600;
}

.breadcrumb-icon {
  font-size: 12px;
  opacity: 0.8;
}

.breadcrumb-text {
  font-weight: 500;
}

.breadcrumb-separator {
  margin: 0 4px;
  color: var(--text-muted, #6B7280);
  font-size: 10px;
  opacity: 0.5;
}

.stage-selector-wrapper {
  position: relative;
}

.stage-selector-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
}

.stage-selector-trigger:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.stage-selector-trigger[aria-expanded="true"] {
  background: rgba(185, 255, 102, 0.1);
  border-color: #b9ff66;
  color: #b9ff66;
}

/* Active state for stage selector when on a stage page */
.stage-selector-wrapper.active .stage-selector-trigger {
  background: rgba(185, 255, 102, 0.15);
  color: #b9ff66;
  border-color: rgba(185, 255, 102, 0.4);
  font-weight: 600;
}

.stage-selector-wrapper.active .stage-selector-trigger:hover {
  background: rgba(185, 255, 102, 0.2);
  border-color: rgba(185, 255, 102, 0.5);
}

.dropdown-icon {
  font-size: 10px;
  transition: transform 0.2s;
  margin-left: 2px;
}

.dropdown-icon.open {
  transform: rotate(180deg);
}

.stage-selector-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 380px;
  max-width: 420px;
  background: var(--panel-bg, #1F2937);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: fadeInDown 0.2s ease-out;
}

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

.stage-selector-panel .panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
}

.panel-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.stage-count {
  font-size: 12px;
  color: var(--text-muted, #9CA3AF);
}

.stages-list {
  max-height: 400px;
  overflow-y: auto;
}

.stages-list::-webkit-scrollbar {
  width: 6px;
}

.stages-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.stages-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.stages-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

.stage-item {
  display: flex;
  align-items: center;
  /* gap: 12px; */
  padding: 12px 20px;
  width: 100%;
  background: transparent;
  border: none;
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.05); */
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  color: inherit;
}

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

.stage-item:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.03);
}

.stage-item.current {
  background: rgba(185, 255, 102, 0.08);
  cursor: default;
}

.stage-item:disabled {
  opacity: 0.8;
}

.stage-number {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background removed - no gray circle */
  border-radius: 50%;
  font-weight: 600;
  flex-shrink: 0;
  font-size: 14px;
}

.stage-item.current .stage-number {
  background: #b9ff66;
  color: white;
}

.stage-info {
  flex: 1;
  min-width: 0;
}

.stage-name {
  font-weight: 500;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.current-badge {
  font-size: 10px;
  padding: 2px 6px;
  background: #b9ff66;
  color: white;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stage-meta,
.stage-location {
  font-size: 12px;
  color: var(--text-muted, #9CA3AF);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.stage-meta svg,
.stage-location svg {
  font-size: 10px;
  opacity: 0.7;
}

.stage-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.status-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-upcoming {
  background: rgba(139, 92, 246, 0.1);
  color: rgba(139, 92, 246, 1);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.status-ongoing {
  background: rgba(34, 197, 94, 0.1);
  color: #22C55E;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-ended {
  background: rgba(156, 163, 175, 0.1);
  color: #9CA3AF;
  border: 1px solid rgba(156, 163, 175, 0.2);
}

.participant-count {
  font-size: 12px;
  color: var(--text-muted, #9CA3AF);
  display: flex;
  align-items: center;
  gap: 4px;
}

.participant-count svg {
  font-size: 10px;
}

.panel-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.series-progress {
  text-align: center;
}

.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #b9ff66;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.progress-text {
  font-size: 12px;
  color: var(--text-muted, #9CA3AF);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .breadcrumb-nav {
    font-size: 13px;
  }
  
  .breadcrumb-item.series-link,
  .stage-selector-trigger {
    padding: 5px 10px;
  }
  
  .stage-selector-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    min-width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    animation: slideUp 0.3s ease-out;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
  }
  
  @keyframes slideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }
  
  .stages-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .stage-selector-panel {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .panel-header,
  .panel-footer {
    background: rgba(0, 0, 0, 0.4);
  }
}