:root {
  /* Light theme (default) */
  --primary-bg: #f5f5f7;
  --secondary-bg: #ffffff;
  --card-bg: #ffffff;
  --text-primary: #333333;
  --text-secondary: #666666;
  --accent-color: #7646e5;
  --accent-hover: #9963f1;
  --spotify-color: #1DB954;
  --spotify-hover: #1ed760;
  --youtube-color: #FF0000;
  --youtube-hover: #ff3333;
  --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  --border-radius: 16px;
  --transition-speed: 0.3s;
  --header-height: 70px;
  --footer-height: 60px;
}

/* Dark theme variables - will be applied when .dark-theme class is added to body */
body.dark-theme {
  --primary-bg: #121212;
  --secondary-bg: #1e1e1e;
  --card-bg: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

body {
  background-color: var(--primary-bg);
  color: var(--text-primary);
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  transition: background-color 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}

/* All elements should transition smoothly during theme changes */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Base container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  padding-top: var(--header-height);
}

/* Main navigation */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--secondary-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}

.dark-theme .main-nav {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.main-nav.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.dark-theme .main-nav.scrolled {
  background-color: rgba(30, 30, 30, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 30px;
  margin: 0 auto;
  max-width: 1400px;
}

.logo {
  display: flex;
  align-items: center;
}

#logo {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

#logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text-secondary) !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: all 0.3s ease;
  padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary) !important;
  padding: 10px;
  border-radius: 10px 10px 0 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  cursor: pointer;
}

.bar {
  width: 30px;
  height: 3px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
}

/* Hero Banner */
.hero-banner {
  height: 500px;
  background: linear-gradient(rgba(44, 37, 65, 0.53), rgba(44, 37, 65, 0.9)), url('https://ngxd-tv.de/assets/img/hero_banner.png');
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: 0 5px 20px rgba(79, 70, 229, 0.2);
}

body.dark-theme .hero-banner {
  box-shadow: 0 1px 23px -8px rgb(35 4 77 / 40%);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../../assets/img/hero-pattern.png');
  opacity: 0.1;
  animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 100% 100%;
  }
}

.hero-content {
  text-align: center;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(to right, #ffffff, #d4d4d8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin: 20px 0 40px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  color: white;
}

.hero-cta {
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-button {
  display: inline-block;
  background-color: var(--text-primary);
  color: var(--primary-bg) !important;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Theme toggle */
#theme-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.05);
}

.dark-theme #theme-toggle {
  background-color: rgba(255, 255, 255, 0.1);
}

#theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.dark-theme #theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline-block;
  width: 14rem;
}

nav ul li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.song-tile:hover {
  cursor: pointer;
  box-shadow: 0 0 28px 0px #2a2a2a;
}

a.active {
  background-color: rgb(86 94 166 / 7%);
}

nav ul li a:hover {
  background-color: rgb(200 200 200/ 50%);
}

.hero-section {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 100px;
  text-align: center;
}

h2 {
  font-size: 48px;
}

.cta-button {
  display: inline-block;
  background-color: rgb(60 66 117 / 20%);
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  font-size: 18px;
  margin-top: 20px;
}

footer {
  width: 100%;
  text-align: center;
  color: black;
}

/* Song sections */
section.song-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin: 60px auto;
  padding: 0 20px;
}

.section-header {
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  padding-left: 15px;
}

.section-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background-color: var(--accent-color);
  border-radius: 3px;
}

/* Song Tile Styling */
.song-tile {
  position: relative;
  height: 400px;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.4s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.dark-theme .song-tile {
  border-color: rgba(255, 255, 255, 0.05);
}

.song-tile:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.dark-theme .song-tile:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.song-tile img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: all 0.5s ease;
}

.song-tile:hover img {
  transform: scale(1.05);
}

.song-tile::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 280px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.song-tile:hover::after {
  opacity: 1;
}

.song-tile a img {
  width: 20px !important;
  height: 20px !important;
  margin: 0 8px;
  transition: transform 0.3s ease;
  position: relative;
}

.song-tile a:hover img {
  transform: scale(1.2);
}

.Titel {
  padding: 15px;
  background: var(--card-bg);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  z-index: 2;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  width: calc(100% - 30px);
  /* Korrigiert für das Padding */
  position: relative;
}

.song-tile h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 5px 0;
  color: var(--text-primary);
  text-align: center;
  transition: all 0.3s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  padding: 0 5px;
  box-sizing: border-box;
}

.song-tile p {
  font-size: 0.9rem;
  margin: 0 0 8px 0;
  color: var(--text-secondary);
  text-align: center;
  transition: all 0.3s ease;
  max-width: 100%;
  padding: 0 5px;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-tile itemprop[byArtist] a {
  color: var(--accent-color) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.song-tile itemprop[byArtist] a:hover {
  color: var(--accent-hover) !important;
  text-decoration: underline;
}

.song-tile .link-container {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.music-platform-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 8px;
}

.platform-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 1.2em;
  color: white !important;
}

.platform-link.spotify {
  background-color: var(--spotify-color);
}

.platform-link.youtube {
  background-color: var(--youtube-color);
}

.platform-link:hover {
  transform: scale(1.1);
}

a {
  color: var(--text-primary) !important;
  text-decoration: none;
}

.dark-theme a {
  color: white !important;
}

h1.artist {
  margin: 0;
  margin-top: 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
}

.header {
  background-color: #f0f0f0;
  padding: 10px;
  display: flex;
  align-items: center;
}

.artist {
  font-size: 24px;
  margin: 0;
  padding-left: 20px;
}

.back-link {
  display: inline-block;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background-color: #2c2c2c;
  color: #fff;
  font-size: 12px;
  text-align: center;
  line-height: 22px;
  text-decoration: none;
  margin: 8px;
  transition: background-color 0.2s;
}

.back-link:hover {
  background-color: #cc0000;
}

/* Modal Overlay */
#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#overlay.show {
  opacity: 1;
}

#enlarged-tile {
  position: relative;
  width: 90%;
  max-width: 900px;
  background-color: #55555545;
  border-radius: var(--border-radius);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-theme #enlarged-tile {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.05);
}

#overlay.show #enlarged-tile {
  transform: scale(1);
  opacity: 1;
}

.modal-content {
  display: flex;
  flex-direction: row;
  max-height: 80vh;
}

@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
  }

  .modal-header {
    flex: 0 0 auto;
  }

  .youtube-player {
    min-height: 250px;
  }
}

.modal-header {
  position: relative;
  flex: 0 0 50%;
  overflow: hidden;
}

/* YouTube Player in Modal */
.youtube-player {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 350px;
  background-color: #000;
}

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

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(3px);
}

.modal-close-btn:hover {
  background-color: rgba(255, 0, 0, 0.8);
  transform: rotate(90deg);
}

.modal-close-btn::before,
.modal-close-btn::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: white;
}

.modal-close-btn::before {
  transform: rotate(45deg);
}

.modal-close-btn::after {
  transform: rotate(-45deg);
}

#enlarged-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 80vh;
}

#enlarged-tile .youtube-player {
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#enlarged-tile .youtube-player iframe {
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

#enlarged-tile .Titel {
  position: static;
  height: auto;
  padding: 25px;
  background-color: var(--secondary-bg);
  text-align: left;
  border-radius: 0;
}

#enlarged-tile h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

#enlarged-tile p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  margin-top: -8px;
}

#enlarged-tile .music-links {
  display: flex;
  margin: 24px 0;
  gap: 15px;
  flex-direction: column;
}

#enlarged-tile .music-link {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

#enlarged-tile .music-link img {
  width: 24px !important;
  height: 24px !important;
  margin-right: 8px;
}

#enlarged-tile .music-link.spotify {
  background-color: var(--spotify-color);
}

#enlarged-tile .music-link.spotify:hover {
  background-color: var(--spotify-hover);
}

#enlarged-tile .music-link.youtube {
  background-color: var(--youtube-color);
}

#enlarged-tile .music-link.youtube:hover {
  background-color: var(--youtube-hover);
}

#enlarged-tile .release-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 20px;
  display: block;
}

footer {
  background-color: var(--secondary-bg);
  padding: 30px 0;
  text-align: center;
  color: var(--text-secondary);
  margin-top: 60px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 28px 28px 0 0;
}

.dark-theme footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin: 15px 0;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.dark-theme .social-link {
  background-color: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.social-link i {
  color: var(--text-primary);
  font-size: 1.2rem;
}

.footer-nav {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-nav a {
  color: var(--text-secondary) !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-nav a:hover {
  color: var(--text-primary) !important;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Neu Badge Styling */
.new-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-color);
  color: white;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  z-index: 5;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.4);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7);
    transform: scale(1);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
    transform: scale(1.05);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    transform: scale(1);
  }
}

/* Artist header styling */
.artist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0 20px;
  padding: 0 20px;
}

.back-to-all {
  display: flex;
  align-items: center;
  color: var(--accent-color) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.back-to-all i {
  margin-right: 5px;
  transition: transform 0.3s ease;
}

.back-to-all:hover {
  color: var(--accent-hover) !important;
  text-decoration: underline;
}

.back-to-all:hover i {
  transform: translateX(-3px);
}

/* No songs found styling */
.no-songs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 60px 0;
  color: var(--text-secondary);
  grid-column: 1 / -1;
}

.no-songs i {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-songs p {
  font-size: 1.2rem;
}

/* Cover container styling */
.cover-container {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.cover-container img {
  transition: transform 0.5s ease;
}

.song-tile:hover .cover-container img {
  transform: scale(1.05);
}

/* Music player styles for the modal */
.music-player-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 10;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateY(100%);
  opacity: 0;
}

.modal-header:hover .music-player-overlay {
  transform: translateY(0);
  opacity: 1;
}

.music-player-controls {
  display: flex;
  align-items: center;
  width: calc(100% - 46px);
  gap: 10px;
}

.music-control-button {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-color);
  transition: all 0.2s ease;
}

.music-control-button:hover {
  transform: scale(1.1);
  background-color: var(--accent-hover);
}

.music-progress-container {
  flex: 1;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.music-progress-bar {
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 2px;
  width: 0;
  transition: width 0.1s linear;
}

.music-time {
  color: white;
  font-size: 0.8rem;
  min-width: 40px;
  text-align: right;
}

#youtube-player-container {
  position: absolute;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  visibility: hidden;
}

/* Vertikale Animation für den Play Button */
@keyframes playButtonPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(118, 70, 229, 0.7);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(118, 70, 229, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(118, 70, 229, 0);
  }
}

/* Animation hinzufügen, wenn keine Maus-Aktionen erfolgen */
.modal-header:not(:hover) .music-player-overlay.active {
  transform: translateY(0);
  opacity: 0.7;
}