/* Global Styles */
body {
  margin: 0;
  padding: 0;
  font-size: 18px;
  background: linear-gradient(to bottom, #042159 0%, #0d001a 100%);
  color: #eee;
  font-family: 'Rajdhani', sans-serif;
  min-height: 100vh;
}

/* HEADER */
header {
  padding: 0;
  text-align: center;
  border-bottom: 3px solid #6600cc;
}
header img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 900px;
  height: auto;
}

/* MOBILE-READY STICKY NAVIGATION */
.nav-container {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(45deg, #003366, #330066);
  text-align: center;
}

#main-nav {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px 0;
  margin: 0;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #99ccff;
  font-size: 2rem;
  padding: 15px;
  cursor: pointer;
}

.nav-container nav a {
  font-size: 1.2em;
  color: #99ccff;
  margin: 0 15px;
  text-decoration: none;
  font-weight: 600;
  transition: text-shadow 0.3s ease;
}

.nav-container nav a:hover {
  text-shadow: 0 0 5px #9933ff;
}

.nav-container nav a:focus {
  outline: 2px solid #9933ff;
  outline-offset: 2px;
}

.glow-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #9933ff;
  box-shadow: 0 0 15px #9933ff, 0 0 30px #9933ff;
  width: 0;
  transition: left 0.3s ease-in-out, width 0.3s ease-in-out;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
    width: 100%;
    text-align: center;
  }
  .nav-container nav {
    display: none;
    flex-direction: column;
    padding: 0;
  }
  .nav-container nav.active {
    display: flex;
  }
  .nav-container nav a {
    margin: 10px 0;
  }
  .glow-bar {
    display: none;
  }
}

/* Main container */
.container {
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* Section styling */
.section {
  background: #0d0d1a;
  border: 1px solid #330066;
  margin-bottom: 0;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(51, 0, 102, 0.5);
}
.section h2 {
  margin-top: 0;
  color: #cc99ff;
}

/* Episodes styling */
.episode {
  margin-bottom: 30px;
}
.episode img {
  display: block;
  margin: 0 auto 10px;
  width: 100%;
  max-width: 400px;
  height: auto;
  border: 2px solid #6600cc;
  border-radius: 8px;
}
.episode p {
  font-style: italic;
  color: #99ccff;
  line-height: 1.5;
}

/* Download Link Button */
a.download-link {
  display: inline-block;
  background: #9933ff;
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
  font-weight: bold;
}
a.download-link:hover {
  background: #882ce0;
}

/* System Requirements */
.system-requirements {
  margin: 15px 0;
  padding: 10px;
  background: #111;
  border: 1px solid #330066;
  border-radius: 4px;
}
.system-requirements h4 {
  margin: 0 0 5px;
  color: #cc99ff;
  font-size: 1.2em;
}
.system-requirements ul {
  list-style: disc inside;
  margin: 0;
  padding: 0;
}

/* Cast/Bios Section */
#cast-bios {
  padding: 0;
  border: none;
  margin-bottom: 0;
  text-align: center;
}
.bios-top-image {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  height: auto;
}
.bios-background {
  margin: 0 auto;
  max-width: 900px;
  background: url("HP-Board-BG-MAIN.webp") repeat-y center top;
  padding: 20px 0;
}
.bios-content {
  padding: 0 15px;
}
.bios-text-block {
  margin: 30px 0;
  color: #99ccff;
  line-height: 1.4;
  font-size: 1.2em;
}
.polaroid-row {
  display: block;
  margin: 20px auto;
  width: 100%;
  max-width: 900px;
  height: auto;
}
.watch-now-link {
  display: block;
  text-align: center;
  margin: 30px 0;
}
.watch-now-link img {
  width: 100%;
  max-width: 500px;
  height: auto;
  cursor: pointer;
}
.cast-title {
  display: block;
  margin: 40px auto;
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* Character Bios */
.character-bio {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  border: 1px solid #330066;
  border-radius: 8px;
  margin: 20px auto;
  padding: 15px;
  background: #0d0d1a;
  box-shadow: 0 0 10px rgba(51, 0, 102, 0.5);
  max-width: 900px;
}
.character-bio img {
  flex: 0 0 300px;
  max-width: 300px;
  height: auto;
  margin-right: 20px;
  border: 2px solid #6600cc;
  border-radius: 8px;
}
.bio-text {
  flex: 1;
  font-size: 1.1em;
  text-align: left;
  color: #fff;
  line-height: 1.5;
}
.bio-text strong {
  color: #cc33ff;
  font-weight: 700;
}
.bio-text h3 {
  margin-top: 0;
  color: #cc99ff;
  font-size: 1.3em;
}

/* Footer */
footer {
  border-top: 1px solid #330066;
  font-size: 0.9em;
  color: #99ccff;
  text-align: center;
  margin: 0;
  padding: 0;
}
.footer-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}
.final-footer-image {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 20px auto 0 auto;
}