@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

* {
  box-sizing: border-box;
}

/* Custom Royal Navy & Gold Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #050a14;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4af37, #8c6b10);
  border-radius: 5px;
  border: 2px solid #050a14;
}
::-webkit-scrollbar-thumb:hover {
  background: #f7e6ac;
}

body {
  font-family: 'Tajawal', Tahoma, Arial, sans-serif;
  background-color: #050a14;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(13, 38, 79, 0.38) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(212, 175, 55, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 50% 10%, rgba(16, 52, 107, 0.28) 0%, transparent 60%);
  color: #e8ecf5;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(130px);
  z-index: 0;
}

.glow-1 {
  width: 450px;
  height: 450px;
  background: rgba(18, 56, 117, 0.3);
  top: -100px;
  left: 15%;
}

.glow-2 {
  width: 380px;
  height: 380px;
  background: rgba(212, 175, 55, 0.18);
  bottom: 100px;
  right: 15%;
}

.main-header {
  background: linear-gradient(135deg, rgba(10, 24, 52, 0.92), rgba(5, 12, 26, 0.96));
  border-bottom: 2px solid rgba(212, 175, 55, 0.35);
  padding: 42px 20px 36px 20px;
  text-align: center;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 50px rgba(16, 42, 92, 0.4);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(16px);
}

.header-content {
  max-width: 900px;
  margin: 0 auto;
}

.top-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 26, 52, 0.75);
  color: #f7e6ac;
  border: 1px solid rgba(212, 175, 55, 0.45);
  padding: 8px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.15);
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-home-btn:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(13, 26, 52, 0.85));
  border-color: #d4af37;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6), 0 0 28px rgba(212, 175, 55, 0.35);
}

.site-logo {
  width: 140px;
  height: 140px;
  margin: 0 auto 18px auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 6px 22px rgba(212, 175, 55, 0.45));
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.45s ease;
}

.site-logo:hover {
  transform: scale(1.08) rotate(3deg);
  filter: drop-shadow(0 8px 30px rgba(212, 175, 55, 0.75));
}

.header-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  color: #fce89d;
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 5px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.1);
}

header h1 {
  margin: 0 0 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  letter-spacing: -0.5px;
}

.title-line-1 {
  font-size: 2.7rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #e8f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-line-2 {
  font-size: 1.65rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fce89d 0%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.25));
}

header .credits {
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  color: #f7e6ac;
  padding: 7px 24px;
  border-radius: 30px;
  font-size: 1.08rem;
  font-weight: 500;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

.main-container {
  max-width: 950px;
  margin: 35px auto 60px auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.seasons-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.season-card {
  background: linear-gradient(145deg, rgba(13, 26, 52, 0.85), rgba(7, 15, 30, 0.92));
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(3, 8, 18, 0.65);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(14px);
  position: relative;
}

.season-card.open {
  border-color: rgba(212, 175, 55, 0.48);
  box-shadow: 0 16px 50px rgba(5, 10, 20, 0.75), 0 0 30px rgba(212, 175, 55, 0.12);
}

.season-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(3, 8, 18, 0.75), 0 0 30px rgba(212, 175, 55, 0.15);
}

.season-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease;
}

.season-header:hover {
  background: rgba(212, 175, 55, 0.05);
}

.season-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.season-icon {
  font-size: 1.5rem;
}

.season-title-wrap h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}

.song-count {
  background: rgba(212, 175, 55, 0.18);
  color: #f7e6ac;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.toggle-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.season-card.open .toggle-icon {
  transform: rotate(180deg);
  background: rgba(212, 175, 55, 0.22);
}

.season-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.season-card.open .season-body {
  max-height: 6000px;
  opacity: 1;
}

.season-player-box {
  background: rgba(5, 11, 22, 0.7);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  transition: all 0.3s ease;
}

.season-player-box.active-player {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(7, 18, 38, 0.85));
  border-bottom-color: #d4af37;
  box-shadow: 0 4px 25px rgba(212, 175, 55, 0.2);
}

.season-player-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 200px;
}

.now-playing-icon {
  font-size: 1.6rem;
  animation: pulse 2.5s infinite ease-in-out;
}

.current-song-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f7e6ac;
}

.season-audio {
  flex: 1;
  min-width: 260px;
  height: 42px;
  accent-color: #d4af37;
}

.songs-list {
  padding: 0 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
}

.song {
  background: rgba(14, 29, 58, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.song:hover {
  background: rgba(21, 44, 88, 0.5);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateX(-6px);
}

.song.active {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.22), rgba(14, 29, 58, 0.45));
  border-color: #d4af37;
  border-right: 4px solid #d4af37;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.18);
}

.song-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #e8ecf5;
  font-size: 1.05rem;
}

.song.active .song-name {
  color: #fce89d;
  font-weight: 700;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.actions button {
  background: linear-gradient(135deg, #f7e6ac 0%, #d4af37 50%, #9e760c 100%);
  color: #050a14;
  font-weight: 800;
  padding: 9px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.actions button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.55);
  filter: brightness(1.1);
}

.actions a {
  background: rgba(14, 29, 58, 0.6);
  color: #e8ecf5;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
}

.actions a:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: #d4af37;
  color: #f7e6ac;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.loading-state {
  color: #9fb2cf;
  text-align: center;
  padding: 30px 0;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.05rem;
}

.site-footer {
  text-align: center;
  padding: 30px 20px 45px 20px;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  background: linear-gradient(180deg, transparent, rgba(5, 11, 22, 0.85));
  margin-top: 40px;
}

.footer-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 26, 52, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 5px 18px;
  border-radius: 25px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), 0 0 18px rgba(212, 175, 55, 0.1);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.footer-content:hover {
  border-color: rgba(212, 175, 55, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 175, 55, 0.2);
}

.footer-text {
  font-size: 0.82rem;
  color: #e8ecf5;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.footer-text strong {
  color: #fce89d;
  font-weight: 700;
  background: linear-gradient(135deg, #fce89d 0%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.copyright-text {
  font-size: 0.88rem;
  color: #8fa4c7;
  margin: 14px 0 0 0;
  font-weight: 400;
  letter-spacing: 0.4px;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}

@media (max-width: 700px) {
  .main-header {
    padding: 24px 15px 22px 15px;
  }
  .back-home-btn {
    font-size: 0.84rem;
    padding: 6px 16px;
  }
  .site-logo {
    width: 90px;
    height: 90px;
    margin-bottom: 12px;
  }
  .title-line-1 {
    font-size: 1.4rem;
  }
  .title-line-2 {
    font-size: 0.95rem;
  }
  .season-header {
    padding: 12px 10px;
  }
  .season-title-wrap {
    gap: 6px;
  }
  .season-icon {
    font-size: 1.15rem;
  }
  .season-title-wrap h2 {
    font-size: 0.86rem;
    white-space: nowrap;
  }
  .song-count {
    font-size: 0.72rem;
    padding: 2px 8px;
    white-space: nowrap;
  }
  .toggle-icon {
    width: 30px;
    height: 30px;
  }
  .toggle-icon svg {
    width: 16px;
    height: 16px;
  }
  .song-name {
    font-size: 0.84rem;
    gap: 8px;
  }
  .song-name span:first-child {
    font-size: 0.95rem;
  }
  .current-song-label {
    font-size: 0.82rem;
  }
  .now-playing-icon {
    font-size: 1.15rem;
  }
  .song {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
  }
  .actions {
    width: 100%;
    justify-content: flex-end;
    gap: 6px;
  }
  .actions button,
  .actions a {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  .season-player-box {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }
  audio {
    width: 100%;
  }
  .footer-text {
    font-size: 0.78rem;
  }
  .copyright-text {
    font-size: 0.8rem;
  }
}