/* Live History Page Specific Styles */
.live-history-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: clamp(1rem, 4vw, 2rem);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-title {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 300;
  text-align: center;
  color: #000;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.page-description {
  text-align: center;
  color: #666;
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
}

.loading-container {
  text-align: center;
  padding: 3rem 1rem;
}

.loading-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid #e5e5e5;
  border-top: 2px solid #666;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem auto;
}

.loading-text {
  color: #666;
  font-weight: 300;
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
}

.error-container {
  text-align: center;
  padding: 3rem 1rem;
  color: #ef4444;
}

.error-text {
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
}

.year-filter {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 0 1rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: clamp(0.75rem, 2.5vw, 0.85rem);
  font-weight: 500;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 60px;
}

.filter-btn.active {
  background: #666;
  color: #fff;
}

.filter-btn:hover {
  background-color: #f9f9f9;
  border-color: #999;
}

.filter-btn.active:hover {
  background: #555;
}

.live-events {
  margin-bottom: 2.5rem;
}

.year-section {
  margin-bottom: 2.5rem;
}

.year-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.year-badge {
  background: #666;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 20px;
  font-weight: 300;
  font-size: clamp(1rem, 3vw, 1.1rem);
}

.year-divider {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(102, 102, 102, 0.3), transparent);
}

.year-events {
  margin-left: clamp(0rem, 2vw, 1rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.live-event-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.live-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.live-event-content {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.live-event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.live-event-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.live-event-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.live-announcement {
  font-size: clamp(0.65rem, 2vw, 0.75rem);
  color: #666;
  background: rgba(245, 245, 245, 0.8);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  display: inline-block;
  width: fit-content;
}

.live-event-name {
  font-size: clamp(1rem, 3vw, 1.1rem);
  font-weight: 300;
  color: #000;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.live-event-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.live-detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.75rem, 2.5vw, 0.85rem);
  color: #666;
  line-height: 1.4;
}

.live-detail-icon {
  color: #666;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.live-setlist {
  border-left: none;
  border-top: 1px solid #e5e5e5;
  padding-left: 0;
  padding-top: 1.5rem;
}

.live-setlist-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.live-setlist-title {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 300;
  color: #000;
}

.live-setlist-icon {
  color: #666;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.live-setlist-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.live-setlist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(249, 249, 249, 0.8);
  border-radius: 10px;
}

.live-setlist-number {
  flex-shrink: 0;
  color: #666;
  font-weight: 500;
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  min-width: 20px;
}

.live-setlist-song {
  color: #666;
  font-weight: 300;
  font-size: clamp(0.75rem, 2.5vw, 0.85rem);
  line-height: 1.4;
  width: 100%;
}

.no-data-message {
  padding: 0.75rem;
  background: rgba(249, 249, 249, 0.8);
  border-radius: 10px;
  color: #666;
  font-weight: 300;
  font-size: clamp(0.75rem, 2.5vw, 0.85rem);
  line-height: 1.4;
  text-align: center;
}

.stats-section {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-left: clamp(0rem, 2vw, 1rem);
  margin-right: clamp(0rem, 2vw, 1rem);
}

.stats-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stats-title {
  font-size: clamp(1rem, 3vw, 1.1rem);
  font-weight: 300;
  color: #000;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.4;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background: rgba(249, 249, 249, 0.6);
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}

.stat-number {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 300;
  color: #333;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: clamp(0.75rem, 2.5vw, 0.85rem);
  color: #666;
  font-weight: 300;
  line-height: 1.3;
}

.stats-note {
  margin-top: 1rem;
  text-align: center;
  padding: 0 1rem;
}

.stats-note p {
  font-size: clamp(0.65rem, 2vw, 0.75rem);
  color: #666;
  font-weight: 300;
  line-height: 1.5;
}

.song-ranking {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.song-ranking-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(249, 249, 249, 0.6);
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.song-ranking-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.song-ranking-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.song-ranking-position {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #666, #555);
  color: #fff;
  border-radius: 50%;
  font-size: clamp(0.75rem, 2.5vw, 0.85rem);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(102, 102, 102, 0.3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.song-ranking-name {
  color: #333;
  font-weight: 300;
  font-size: clamp(0.8rem, 2.5vw, 0.9rem);
  line-height: 1.4;
  flex: 1;
}

.song-ranking-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
  gap: 1rem;
}

.song-ranking-count {
  color: #333;
  font-weight: 500;
  font-size: clamp(0.75rem, 2.5vw, 0.85rem);
}

.song-ranking-bar {
  width: 5rem;
  height: 0.5rem;
  background: #e5e5e5;
  border-radius: 25px;
  overflow: hidden;
  flex-shrink: 0;
}

.song-ranking-progress {
  height: 100%;
  background: linear-gradient(to right, #3b82f6, #1d4ed8);
  border-radius: 25px;
  transition: width 0.5s ease-out;
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
  grid-column: 1 / -1;
}

/* Responsive Styles for Live History */
@media (min-width: 768px) {
  .live-event-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
  }

  .live-setlist {
    border-left: 1px solid #e5e5e5;
    border-top: none;
    padding-left: 2rem;
    padding-top: 0;
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    gap: 2rem !important;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
