/* ---- Reset & Base ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  min-height: 100%;
  font-family: 'Inter', Arial, sans-serif;
  color: #f3f3f3;
  background-color: #000;
  overflow-x: hidden;
}
.background-container {
  background: url('../img/portrait.jpg') center center / cover no-repeat;
  position: fixed;
  inset: 0;
  z-index: -1;
}
.background-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* Much brighter - reduced overlay */
  filter: brightness(1.3); /* Significantly increased brightness */
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  position: relative;
  z-index: 1;
  padding: 1rem;
}

/* ---- Header / Künstlername ---- */
.header {
  width: 100%;
  text-align: center;
  padding: 4vh 1rem 3vh;
}

.artist-name, a.artist-name {
  font-family: 'Space Mono', 'Courier New', Courier, monospace;
  color: #e53935;
  font-size: clamp(2rem, 10vw, 3.5rem);
  letter-spacing: 0.02em;
  font-weight: 700;
  text-shadow: 0 2px 16px #000;
  text-decoration: none;
  transition: color 0.2s;
}

a.artist-name:hover {
  color: #ff5252;
}

/* ---- Navigation (Mobile First) ---- */
.navigation {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  gap: 1.5rem;
  width: 100%;
  margin-top: 4vh; /* Added vertical space to prevent overlap with the title */
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(20, 20, 20, 0.85);
  border-top: 6px solid #e53935;
  padding: 1.2rem;
  width: 90vw;
  max-width: 400px;
  border-radius: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.nav-item:hover, .nav-item:focus {
  background: rgba(35, 20, 20, 0.95);
  transform: translateY(-3px);
}
.nav-title {
  color: #e53935;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'Space Mono', 'Courier New', Courier, monospace;
  margin-bottom: 0.3em;
}
.nav-subtitle {
  color: #bbb;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 400;
}

/* ---- Desktop Navigation ---- */
@media (min-width: 901px) {
  .navigation {
    position: fixed;
    right: 5vw;
    top: 50%;
    transform: translateY(-50%);
    gap: 2rem;
    z-index: 2;
    align-items: flex-start; /* Reset alignment */
    width: auto; /* Reset width */
    margin-top: 0; /* Reset margin for fixed positioning */
  }
  .nav-item {
    border-top: 0;
    border-left: 6px solid #e53935;
    padding: 1.8rem 2.5rem 1.8rem 1.5rem;
    width: 320px;
    border-radius: 1rem 0 0 1rem;
  }
  .nav-item:hover, .nav-item:focus {
    transform: translateX(-5px) translateY(0); /* Adjust hover effect */
    border-left-color: #ff1744;
  }
}

/* ---- Handle wide but short viewports ---- */
@media (min-width: 901px) and (max-height: 450px) {
  .navigation {
    top: 180px; /* Push navigation down below the header */
    transform: translateY(0); /* Reset vertical transform */
    max-height: calc(100vh - 200px); /* Set max height to prevent overflow */
    overflow-y: auto; /* Enable scrolling for the navigation */

    /* Custom Scrollbar for Firefox */
    scrollbar-width: thin;
    scrollbar-color: #e53935 rgba(20, 20, 20, 0.85);
  }

  /* Custom Scrollbar for WebKit browsers (Chrome, Safari, Edge) */
  .navigation::-webkit-scrollbar {
    width: 8px;
  }
  .navigation::-webkit-scrollbar-track {
    background: transparent;
  }
  .navigation::-webkit-scrollbar-thumb {
    background-color: #e53935;
    border-radius: 4px;
  }
}

/* ---- Layout für Unterseiten ---- */
body.subpage .navigation {
  display: none;
}
body.subpage .container {
  justify-content: center;
}
body.subpage .main-content {
  margin-bottom: 4vh;
}
.main-content {
  margin: 0 auto;
  max-width: 700px;
  width: 90%;
  background: rgba(10, 10, 10, 0.9);
  border-radius: 1.2rem;
  padding: 2rem 2.5rem;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.6);
  color: #f3f3f3;
  line-height: 1.7;
}
.page-title {
  color: #e53935;
  font-family: 'Space Mono', 'Courier New', Courier, monospace;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 0.5em;
  text-align: center;
}
.page-subtitle {
  color: #bbb;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 2em;
  font-style: italic;
}
.main-content h3 {
  color: #e53935;
  margin: 2rem 0 0.5rem;
}
.main-content p {
  margin-bottom: 1rem;
}
.main-content ul {
  list-style: none;
  padding-left: 0;
}
.main-content li {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  border-left: 3px solid #e53935;
  border-radius: 0 4px 4px 0;
}

/* ---- Song/Video-Styling für piosenki.html ---- */
.song {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.song:last-child {
  border-bottom: none;
}

.song-title {
  color: #e53935;
  font-family: 'Space Mono', 'Courier New', Courier, monospace;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.song-title:hover {
  color: #ff5252;
}

.song-title::after {
  content: '+';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #fff;
  transition: transform 0.3s ease;
}

.song.active .song-title::after {
  transform: translateY(-50%) rotate(45deg);
}

.song-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.song.active .song-details {
  max-height: 1000px; /* Adjust if content is larger */
  transition: max-height 0.5s ease-in;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-top: 1.5rem;
  border-radius: 8px;
  display: none; /* Initially hidden */
}

.video-wrapper.visible {
  display: block;
}

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

.song-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.toggle-lyrics-btn,
.share-btn,
.show-video-btn {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.toggle-lyrics-btn:hover,
.share-btn:hover,
.show-video-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.lyrics-content {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.lyrics-content p {
  margin: 0;
  line-height: 1.6;
}

/* ---- Footer ---- */
.footer {
  margin-top: auto;
  text-align: center;
  padding: 3rem 1rem 2rem;
  width: 100%;
}
.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  margin: 0 0.75rem;
}
.footer-links a:hover, .footer-links a.active {
  color: #e53935;
}

/* ---- Remove alte Styles ---- */
.subpage-navigation { display: none !important; }