/* Explore Page Styles */
.explore-container {
  display: flex;
  height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
}

/* Sidebar Logo */
.sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  background: rgba(255, 255, 255, 0.8);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sidebar-logo:hover {
  transform: translateY(-1px);
}

.sidebar-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.sidebar-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.explore-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(34, 197, 94, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(59, 130, 246, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

/* Sidebar */
.sidebar {
  width: 380px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(229, 231, 235, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 10;
}

.search-container {
  padding: 24px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  background: rgba(255, 255, 255, 0.8);
  position: relative;
}

.search-container::before {
  content: "🔍";
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.6;
  z-index: 1;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 2px solid rgba(209, 213, 219, 0.6);
  border-radius: 12px;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  outline: none;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1), 0 4px 16px rgba(0, 0, 0, 0.08);
  background: white;
  transform: translateY(-1px);
}

.search-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.songs-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.song-group {
  margin-bottom: 20px;
}

/* Key Switcher Styling */
.chords-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.key-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(229, 231, 235, 0.6);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.key-switcher:hover {
  background: rgba(255, 255, 255, 1);
  border-color: #22c55e;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.key-switcher label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0;
  white-space: nowrap;
}

.key-switcher select {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  padding-right: 32px;
}

.key-switcher select:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  color: #0f172a;
}

.key-switcher select:focus {
  outline: none;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #14532d;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.song-group-header {
  position: sticky;
  top: 0;
  background: #f8f9fa;
  padding: 12px 24px;
  margin: 0;
  border-bottom: 2px solid #e5e7eb;
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.song-group-header.rating-perfect {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border-bottom-color: #f59e0b;
}

.song-group-header.rating-known {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border-bottom-color: #22c55e;
}

.song-group-header.rating-want {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border-bottom-color: #ef4444;
}

.song-group-header.rating-skip {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #374151;
  border-bottom-color: #6b7280;
}

.song-group-header.rating-unrated {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #3730a3;
  border-bottom-color: #6366f1;
}

.song-item {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(243, 244, 246, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  position: relative;
  border-left: 4px solid transparent;
}

.song-item:hover {
  background: rgba(249, 250, 251, 0.9);
  border-left-color: rgba(34, 197, 94, 0.3);
  transform: translateX(4px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.song-item.selected {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border-left-color: #15803d;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
  transform: translateX(6px);
}

.song-item.selected .song-meta {
  color: rgba(255, 255, 255, 0.9);
}

.song-item.selected::before {
  content: "♪";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0.7;
}

.song-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
  line-height: 1.4;
  color: #1f2937;
}

.song-meta {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.song-meta::before {
  content: "•";
  color: #d1d5db;
  font-weight: bold;
}

/* Main Content */
.main-content {
  flex: 1;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 5;
  transition: flex 0.3s ease;
}

/* Layout states for adjustable sidebar/main content */
.explore-container.no-selection .sidebar {
  flex: 0 0 380px;
  min-width: 380px;
}

.explore-container.no-selection .main-content {
  flex: 1;
  min-width: 0;
}

.explore-container.song-selected .sidebar {
  flex: 0 0 380px;
  min-width: 380px;
}

.explore-container.song-selected .main-content {
  flex: 1;
  min-width: 0;
}

/* Clear Selection Button */
.clear-selection-container {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.clear-selection-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(229, 231, 235, 0.6);
  border-radius: 8px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.clear-selection-btn:hover {
  background: rgba(255, 255, 255, 1);
  color: #374151;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.clear-selection-btn .material-icons {
  font-size: 18px;
}

/* Rating System Styles */
.rating-container {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.rating-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(229, 231, 235, 0.6);
  border-radius: 8px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Rating button color coding */
.rating-btn.rating-perfect {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
  color: #92400e;
}

.rating-btn.rating-known {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: #22c55e;
  color: #065f46;
}

.rating-btn.rating-want {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-color: #ef4444;
  color: #991b1b;
}

.rating-btn.rating-skip {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-color: #6b7280;
  color: #374151;
}

.rating-btn.rating-unrated {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(229, 231, 235, 0.6);
  color: #6b7280;
}

.dropdown-arrow {
  font-size: 18px !important;
  transition: transform 0.2s ease;
}

.rating-btn.open .dropdown-arrow {
  transform: rotate(180deg);
}

.rating-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: white;
  border: 1px solid rgba(229, 231, 235, 0.6);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  min-width: 200px;
  overflow: hidden;
  animation: dropdownSlide 0.2s ease-out;
}

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

.rating-btn:hover {
  background: rgba(255, 255, 255, 1);
  color: #374151;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rating-btn .material-icons {
  font-size: 18px;
}

/* Rating Modal Styles */
.rating-modal-content {
  max-width: 500px;
  width: 90%;
}

.rating-options {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rating-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
  font-size: 14px;
}

.rating-option:last-child {
  border-bottom: none;
}

.rating-option:hover {
  background: #f8f9fa;
}

.rating-option.selected {
  background: #e8f5e8;
}

.rating-option[data-rating="perfect"]:hover,
.rating-option[data-rating="perfect"].selected {
  border-color: #f59e0b;
  background: #fffbeb;
}

.rating-option[data-rating="known"]:hover,
.rating-option[data-rating="known"].selected {
  border-color: #22c55e;
  background: #f0fdf4;
}

.rating-option[data-rating="want"]:hover,
.rating-option[data-rating="want"].selected {
  border-color: #ef4444;
  background: #fef2f2;
}

.rating-option[data-rating="skip"]:hover,
.rating-option[data-rating="skip"].selected {
  border-color: #6b7280;
  background: #f9fafb;
}

.rating-option .material-icons {
  font-size: 24px;
  color: #6b7280;
}

.rating-option[data-rating="perfect"] .material-icons {
  color: #f59e0b;
}

.rating-option[data-rating="known"] .material-icons {
  color: #22c55e;
}

.rating-option[data-rating="want"] .material-icons {
  color: #ef4444;
}

.rating-option[data-rating="skip"] .material-icons {
  color: #6b7280;
}

.rating-label {
  font-size: 16px;
  font-weight: 500;
  color: #374151;
}

.rating-actions {
  padding: 8px 16px;
  border-top: 1px solid #f3f4f6;
  background: #f8f9fa;
}

.modal-clear-btn {
  padding: 8px 12px;
  border: 1px solid #fca5a5;
  border-radius: 4px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.modal-clear-btn:hover {
  background: #fee2e2;
  border-color: #f87171;
}

.song-details {
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.welcome-message {
  text-align: center;
  color: #6b7280;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.welcome-message::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #22c55e, #3b82f6, #8b5cf6, #f59e0b);
  background-size: 300% 100%;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.welcome-message h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-message p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #6b7280;
  max-width: 500px;
  margin: 0 auto;
}

/* Song Display */
.song-info {
  margin-bottom: 50px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.song-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 16px 16px 0 0;
}

.song-title-main {
  font-size: 2.8rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.song-meta-main {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 1.1rem;
  color: #6b7280;
  flex-wrap: wrap;
}

.key,
.type {
  font-weight: 600;
  color: #374151;
}

.demo-link {
  color: #22c55e;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border: 2px solid #22c55e;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.demo-link:hover {
  background: #22c55e;
  color: white;
}

/* Content Layout */
.song-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 1200px) {
  .song-content {
    flex-direction: row;
    gap: 60px;
  }

  .lyrics-section {
    flex: 1;
    margin-bottom: 0;
    order: 2; /* Move lyrics to the right */
  }

  .right-column {
    flex: 1;
    order: 1; /* Move chords/videos to the left */
  }

  /* For fiddle tunes (no lyrics) - create two-column layout with chords and videos */
  /* Only apply when there's no lyrics section (fiddle tunes) */
  .song-content:not(:has(.lyrics-section))
    .right-column:has(.chords-section):has(.video-section) {
    flex-direction: row;
    gap: 60px;
  }

  .song-content:not(:has(.lyrics-section))
    .right-column:has(.chords-section):has(.video-section)
    .chords-section {
    flex: 1;
    margin-bottom: 0;
  }

  .song-content:not(:has(.lyrics-section))
    .right-column:has(.chords-section):has(.video-section)
    .video-section {
    flex: 1;
  }

  /* Fallback for browsers that don't support :has() - use class-based approach */
  .right-column.fiddle-layout {
    flex-direction: row;
    gap: 60px;
  }

  .right-column.fiddle-layout .chords-section {
    flex: 1;
    margin-bottom: 0;
  }

  .right-column.fiddle-layout .video-section {
    flex: 1;
  }

  .song-details {
    max-width: 1200px;
  }
}

/* Lyrics Section */
.lyrics-section {
  margin-bottom: 40px;
}

.lyrics-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
}

.lyrics-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #374151;
  white-space: pre-line;
  font-family: "Inter", sans-serif;
}

/* Chorus tag styling */
.lyrics-content chorus {
  display: block;
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.1) 0%,
    rgba(34, 197, 94, 0.05) 100%
  );
  border-left: 4px solid #22c55e;
  padding: 20px 20px 16px 20px;
  margin: 20px 0;
  border-radius: 0 12px 12px 0;
  font-weight: 600;
  color: #1f2937;
  position: relative;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

.lyrics-content chorus::before {
  content: "CHORUS";
  position: absolute;
  top: -8px;
  left: 20px;
  background: #22c55e;
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}


/* Chords Section */
.chords-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
}

/* Video Section */
.video-section {
  margin-top: 40px;
}

.video-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
}

/* Community Recordings Section */
.community-recordings-section {
  margin-top: 40px;
}

.community-recordings-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.community-recordings-section h2::before {
  content: "👥";
  font-size: 1.2rem;
}

.community-recording {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(229, 231, 235, 0.6);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.community-recording:hover {
  background: rgba(255, 255, 255, 1);
  border-color: #22c55e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.recording-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(229, 231, 235, 0.6);
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
}

.recording-meta {
  font-size: 12px;
  color: #6b7280;
}

.duration {
  font-size: 12px;
  color: #6b7280;
  background: rgba(243, 244, 246, 0.8);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 500;
}

.recording-video {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.community-video {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.no-recordings {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  padding: 20px;
  background: rgba(249, 250, 251, 0.8);
  border-radius: 8px;
  border: 1px dashed rgba(209, 213, 219, 0.6);
}

/* New Community Recordings Layout */
.community-player {
  margin-bottom: 20px;
}

.community-player .community-video {
  width: 100%;
  height: 400px;
  background: #f3f4f6;
  border-radius: 8px;
  border: 2px dashed #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 14px;
}

.recordings-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid rgba(229, 231, 235, 0.6);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.recording-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.recording-item:hover {
  background: rgba(34, 197, 94, 0.05);
}

.recording-item.active {
  background: rgba(34, 197, 94, 0.1);
  border-left: 3px solid #22c55e;
}

.recording-item .recording-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.recording-item .user-info {
  display: flex;
  align-items: center;
}

.recording-item .user-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.recording-item .user-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 13px;
}

.recording-item .recording-meta {
  font-size: 11px;
  color: #6b7280;
}

.recording-item .duration {
  font-size: 11px;
  color: #6b7280;
  background: rgba(243, 244, 246, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

/* Jam Along Section */
.jam-along-section {
  margin-bottom: 30px;
}

.jam-along-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.jam-along-section h3::before {
  content: "🎵";
  font-size: 1.1rem;
}

.jam-along-player {
  margin-bottom: 20px;
}

.jam-along-video {
  width: 100%;
  height: 600px;
  background: #f3f4f6;
  border-radius: 8px;
  border: 2px dashed #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 14px;
  object-fit: cover;
}

.jam-along-list {
  max-height: 250px;
}

.jam-along-item.active {
  background: rgba(34, 197, 94, 0.1);
  border-left: 3px solid #22c55e;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f4f6;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .video-container {
    margin-bottom: 40px;
  }
}

.chord-section {
  margin-bottom: 32px;
  padding: 28px;
  background: rgba(249, 250, 251, 0.8);
  border-radius: 16px;
  border-left: 5px solid #22c55e;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
}

.chord-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-left-color: #16a34a;
}

.chord-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
}

.repeats {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 16px;
  font-weight: 500;
}

.chord-progression {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 100%;
}

.chord {
  background: white;
  color: #14532d;
  padding: 14px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-word;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

/* Add vertical dividers between chord sections */
.chord:nth-child(1),
.chord:nth-child(2),
.chord:nth-child(3) {
  border-right: 1px solid #e5e7eb;
}

.chord::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.chord:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
  background: #f0fdf4;
}

.chord:hover::before {
  left: 100%;
}

.chord.split-chord {
  flex-direction: row;
  gap: 4px;
  padding: 14px 12px;
  justify-content: space-between;
}

.chord.split-chord .chord-part {
  font-size: 1rem;
  line-height: 1.2;
  flex: 1;
  text-align: center;
}

.rest {
  background: #6b7280;
  color: white;
  padding: 12px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navigation Link */
.nav-link {
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  margin-right: 24px;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #22c55e;
}

/* User Section */
.user-section {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.login-button-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-btn {
  background: #22c55e;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.login-btn:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

.login-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.signup-btn {
  background: #3b82f6;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.signup-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.signup-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-name {
  color: #374151;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.logout-btn {
  background: #ef4444;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.logout-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* Modal Styles */
.modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideIn 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0 24px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 24px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
}

.close {
  color: #9ca3af;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close:hover {
  color: #374151;
}

.modal-body {
  padding: 0 24px 24px 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.modal-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.modal-input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.modal-login-btn {
  width: 100%;
  background: #22c55e;
  color: white;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.modal-login-btn:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

.modal-login-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.modal-signup-btn {
  background: #3b82f6;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.modal-signup-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.modal-signup-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.modal-back-btn {
  background: #6b7280;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  margin-top: 12px;
}

.modal-back-btn:hover {
  background: #4b5563;
  transform: translateY(-1px);
}

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

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

/* Session Counter */
.session-counter {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 16px;
  animation: slideIn 0.3s ease;
}

.counter-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.counter-icon {
  font-size: 16px;
}

.counter-text {
  white-space: nowrap;
}

/* Session Limit Modal */
.session-limit-modal {
  z-index: 10001; /* Higher than regular modals */
}

.session-limit-content {
  max-width: 450px;
  text-align: center;
}

.limit-message {
  font-size: 16px;
  color: #374151;
  margin-bottom: 24px;
  line-height: 1.5;
}

.limit-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.limit-actions .modal-signup-btn,
.limit-actions .modal-login-btn {
  flex: 1;
  min-width: 140px;
  margin: 0;
}

/* Mobile adjustments for session counter */
@media (max-width: 768px) {
  .session-counter {
    bottom: 10px;
    right: 10px;
    padding: 10px 12px;
  }

  .counter-content {
    font-size: 13px;
  }

  .limit-actions {
    flex-direction: column;
  }

  .limit-actions .modal-signup-btn,
  .limit-actions .modal-login-btn {
    width: 100%;
    min-width: auto;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .explore-container {
    flex-direction: column;
    height: auto;
  }

  .sidebar {
    width: 100%;
    height: 320px;
    border-right: none;
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  }

  /* Mobile layout states */
  .explore-container.no-selection .sidebar {
    flex: 1;
    height: calc(100vh - 0px);
  }

  .explore-container.no-selection .main-content {
    flex: 0;
    height: 0;
    overflow: hidden;
  }

  .explore-container.song-selected .sidebar {
    flex: 0 0 320px;
    height: 320px;
  }

  .explore-container.song-selected .main-content {
    flex: 1;
    height: auto;
    overflow-y: auto;
  }

  .search-container {
    padding: 20px;
  }

  .song-details {
    padding: 24px;
  }

  .welcome-message {
    padding: 40px 24px;
    margin: 20px;
  }

  .welcome-message h1 {
    font-size: 2rem;
  }

  .song-info {
    padding: 24px;
    margin-bottom: 32px;
  }

  .song-title-main {
    font-size: 2.2rem;
  }

  .song-meta-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .chord-progression {
    gap: 8px;
    grid-template-columns: repeat(4, 1fr);
  }

  .chord,
  .rest {
    padding: 12px 8px;
    font-size: 1rem;
    min-height: 44px;
  }

  .chord.split-chord .chord-part {
    font-size: 0.9rem;
  }

  .lyrics-content chorus {
    padding: 12px 16px;
    margin: 16px 0;
  }

  .lyrics-content chorus::before {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  /* Mobile header adjustments */
  .header-content {
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
  }

  .user-info {
    justify-content: center;
  }

  .user-name {
    max-width: none;
    text-align: center;
  }

  /* Mobile button adjustments */
  .login-button-container {
    flex-direction: row;
    gap: 6px;
  }

  .login-btn,
  .signup-btn {
    width: auto;
    font-size: 12px;
    padding: 6px 12px;
    min-width: 60px;
  }

  /* Mobile clear selection button */
  .clear-selection-container {
    top: 10px;
    right: 10px;
  }

  .clear-selection-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .clear-selection-btn .material-icons {
    font-size: 16px;
  }

  /* Mobile key switcher */
  .key-switcher {
    padding: 6px 12px;
    gap: 8px;
    border-radius: 8px;
  }

  .key-switcher label {
    font-size: 12px;
  }

  .key-switcher select {
    padding: 6px 12px;
    font-size: 12px;
    min-width: 60px;
    padding-right: 28px;
    background-size: 14px;
  }

  /* Mobile community recordings */
  .community-recording {
    padding: 12px;
  }

  .user-avatar {
    width: 32px;
    height: 32px;
  }

  .user-name {
    font-size: 13px;
  }

  .recording-meta {
    font-size: 11px;
  }

  .duration {
    font-size: 11px;
    padding: 3px 6px;
  }

  .community-video {
    max-height: 200px;
  }

  /* Mobile rating system */
  .rating-container {
    top: 10px;
    right: 10px;
  }

  .rating-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .rating-btn .material-icons {
    font-size: 16px;
  }

  .rating-modal-content {
    max-width: 90%;
    margin: 20px;
  }

  .rating-option {
    padding: 12px;
  }

  .rating-option .material-icons {
    font-size: 20px;
  }

  .rating-label {
    font-size: 14px;
  }
}

/* Scrollbar Styling */
.songs-list::-webkit-scrollbar,
.main-content::-webkit-scrollbar {
  width: 6px;
}

.songs-list::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.songs-list::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.songs-list::-webkit-scrollbar-thumb:hover,
.main-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Lyrics Tabs Styling */
.lyrics-tabs {
  margin-bottom: 24px;
}

.lyrics-tab-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 2px solid #e5e7eb;
}

.lyrics-tab-btn {
  background: none;
  border: none;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  border-radius: 6px 6px 0 0;
  position: relative;
  bottom: -2px;
}

.lyrics-tab-btn:hover {
  color: #22c55e;
  background-color: #f0fdf4;
}

.lyrics-tab-btn.active {
  color: #22c55e;
  font-weight: 600;
  border-bottom-color: #22c55e;
  background-color: #f0fdf4;
}

.lyrics-tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.lyrics-tab-content.active {
  display: block;
}

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

/* Demo Tabs Styling */
.demo-tabs {
  margin-bottom: 24px;
}

.demo-tab-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 2px solid #e5e7eb;
}

.demo-tab-btn {
  background: none;
  border: none;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  border-radius: 6px 6px 0 0;
  position: relative;
  bottom: -2px;
}

.demo-tab-btn:hover {
  color: #22c55e;
  background-color: #f0fdf4;
}

.demo-tab-btn.active {
  color: #22c55e;
  font-weight: 600;
  border-bottom-color: #22c55e;
  background-color: #f0fdf4;
}

.demo-tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.demo-tab-content.active {
  display: block;
}

/* Legacy alternates styling (kept for backward compatibility) */
.lyrics-alternate {
  margin-bottom: 24px;
}

.lyrics-alternate h3 {
  color: #22c55e;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #22c55e;
}

.lyrics-divider {
  border: none;
  height: 2px;
  background: linear-gradient(to right, #22c55e, transparent);
  margin: 24px 0;
}

.chord-alternate {
  margin-bottom: 32px;
}

.chord-alternate .alternate-title {
  color: #22c55e;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding: 8px 0;
  border-bottom: 2px solid #22c55e;
}

.chord-alternate .chord-section h4 {
  color: #374151;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 16px 0 8px 0;
}

.chord-divider {
  border: none;
  height: 2px;
  background: linear-gradient(to right, #22c55e, transparent);
  margin: 32px 0;
}

.song-meta-main .key {
  margin-right: 16px;
}
