/* ========== RESET & BASE STYLES ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
:root {
  color-scheme: dark;
}

body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  color: #f3f3f3;
  background: #050609;
}

/* ========== HEADER & NAV (FULL-WIDTH) ========== */

/* ========== HEADER & NAV (FULL-WIDTH) ========== */

.site-header {
  background: #090a11; /* matches page background vibe */
  color: #fff;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}


.header-inner {
  width: 100%;
  padding: 0 2rem;
}
.header-social {
  margin-left: auto; /* pushes icons to the right */
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-icon {
  color: #ffffff;
  font-size: 1.25rem;
  opacity: 0.85;
  transition: all 0.2s ease;
}

.social-icon:hover {
  color: #ff9800;
  opacity: 1;
  transform: translateY(-2px);
}


/*.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}*/
.header-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/*.tagline {
  margin-top: 0.1rem;
  margin-left: 0.6rem;
  font-size: 0.95rem;
  opacity: 0.85;
}*/
.site-title {
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tagline {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Navigation */

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: #f0f0f0;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.main-nav a:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

/* Banner under header */

.banner-container {
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.banner-image {
  width: 100%;
  max-width: 1200px;
  border-radius: 10px;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

/* ========== MAIN LAYOUT (FULL-WIDTH) ========== */

main {
  width: 100%;
  padding: 1.5rem 2rem 5.5rem;
}

.section {
  margin-bottom: 3rem;
}

/*.section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 0.35rem;
}*/

.section h2 {
  font-size: 1.25rem; /* was ~1.5rem */
  font-weight: 600;   /* softer than bold */
  color: rgba(255, 255, 255, 0.82); /* less bright */
  margin-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06); /* softer line */
  padding-bottom: 0.25rem;
  letter-spacing: 0.03em; /* refined typographic feel */
  text-transform: none;
}

.section-intro {
  margin-bottom: 1.25rem;
  max-width: 72rem;
  color: #d2d2d2;
}

/* ========== HERO / PLAYER (FULL-WIDTH HERO) ========== */

.hero-visual {
  position: relative;
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 0;
  overflow: hidden;
  /* Taller, more cinematic hero */
  min-height: 380px;
  height: 65vh;       /* ~65% of viewport height */
  max-height: none;
}


/* Banner image */
#visual-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: #05060a;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

#slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

#no-visual-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #bbb;
  background: #05060a;
  z-index: 0;
}

/* Overlays on top of banner */

.hero-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  padding: 1.4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 1;
}

/* LEFT overlay: gradient, title/summary/lyrics */

.hero-left {
  left: 0;
  width: 55%;
  max-width: 540px;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0.6),
    transparent
  );
  color: #f9f9f9;
}

.hero-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.7;
  margin-bottom: 0.2rem;
}

.hero-opera-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  opacity: 0.85;
  margin-bottom: 0.15rem;
}

.hero-track-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.hero-summary {
  font-size: 0.92rem;
  color: #ddd;
  max-width: 32rem;
  margin-bottom: 0.9rem;
}
#contact a {
  color: #ff9800;
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

/* Panels inside hero-left */

/* Always show both overview and lyrics */
.hero-info-panel,
.hero-lyrics-panel {
  display: block;
}

/* Small spacing between summary and lyrics */
.hero-lyrics-panel {
  margin-top: 0.75rem;
}

/* Optional: tighten lyrics title a bit */
.hero-lyrics-title {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}


/* Lyrics view inside hero-left */

.hero-lyrics-title {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.8;
}

/* Subtle scrollbar for lyrics panel */
.hero-lyrics-scroll {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 0.35rem;

  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

/* WebKit (Chrome, Safari, Edge) */
.hero-lyrics-scroll::-webkit-scrollbar {
  width: 6px;
}

.hero-lyrics-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.hero-lyrics-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.hero-lyrics-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}


.hero-lyrics-scroll pre {
  white-space: pre-wrap;
  font-size: 0.86rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}


#lyrics-placeholder {
  font-size: 0.85rem;
  color: #bfbfbf;
  margin-bottom: 0.3rem;
}

/* Toggle buttons row */

.hero-toggle-row {
  display: inline-flex;
  gap: 0.4rem;
  margin-top: 0.8rem;
  align-items: center;
}
/* Hide the Lyrics toggle button, since lyrics are always visible now */
#hero-toggle-lyrics {
  display: none;
}

.hero-toggle-button {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.35);
  color: #f8f8f8;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s;
}

.hero-toggle-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.hero-toggle-button.active {
  background: #ff9800;
  border-color: #ff9800;
  color: #05060a;
}


/* RIGHT overlay: playlist */

.hero-right {
  right: 0;
  width: 38%;
  max-width: 360px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #f8f8f8;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
}

.hero-playlist-title {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.8;
}

.hero-right ol {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  flex: 1;
}

.hero-right li {
  padding: 0.35rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.86rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.hero-right li span.track-title {
  flex: 1;
}

.hero-right li span.track-duration {
  margin-left: 0.5rem;
  font-size: 0.78rem;
  opacity: 0.7;
}

/*.hero-right li:hover {
  background: rgba(255, 255, 255, 0.15);
}*/
/* Only show hover highlight on devices that actually have hover (desktops) */
@media (hover: hover) and (pointer: fine) {
  .hero-right li:hover {
    background: rgba(255, 255, 255, 0.15);
  }
}


.hero-right li.active {
  background: rgba(255, 152, 0, 0.85);
  color: #05060a;
}
/* Extra padding at bottom of lyrics so last lines can still scroll to top */
.lyrics-bottom-spacer {
  height: 12rem;  /* adjust as needed (4–8rem usually fine) */
}

/* On touch devices (phones/tablets), give more extra space for auto-scroll */
@media (hover: none) and (pointer: coarse) {
  .lyrics-bottom-spacer {
    height: 28rem; /* you can tweak to 24–32rem if needed */
  }
}

/* Player block beneath hero */
/* UNIVERSAL MINIMAL FLOATING PLAYER BAR */
.player-below {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;

  background: linear-gradient(135deg, #151822, #222635);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);

  padding: 0.45rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-below {
  padding: 0.3rem 0.75rem; /* was 0.45rem 0.75rem */
}


/* Native audio only */
.player-below audio {
  width: 100%;
  max-width: 520px;
  margin: 0;
}

/* Hide extra UI we don't need */
.player-below .now-playing,
#play-from-start,
#prev-track,
#next-track,
.player-controls-extra {
  display: none !important;
}

/* ========== TABBED INFO SECTION ========== */

.tab-section {
  margin-top: 2.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem 1.7rem;
  border-radius: 10px;
}

.tabs {
  display: flex;
  justify-content: flex-end;  /* NEW — pushes tabs to the right */
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}


.tab-button {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  padding: 0.6rem 1.2rem;
  color: white;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  transition: background 0.2s ease, transform 0.1s ease;
}

.tab-button:hover {
  background: rgba(255, 152, 0, 0.25);
  transform: translateY(-1px);
}


/*.tab-button.active {
  background: #ff9800;
  color: #05060a;
}*/
.tab-button.active {
  background: #ffffff;
  color: #05060a; /* stays dark for contrast */
}



.tab-content {
  margin-top: 1rem;
}

.tab-panel {
  display: none;
}
.tab-panel h3 {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.4rem;
  font-weight: 500;
}


.tab-panel.active {
  display: block;
}

/* Story columns & tech grid reuse */

.story-columns {
  display: grid;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.story-columns article h3 {
  margin-bottom: 0.4rem;
}

.story-columns article p {
  color: #d0d0d0;
}

.tech-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.tech-grid article h3 {
  margin-bottom: 0.35rem;
}

/* Legal blocks */

.legal-block {
  margin-bottom: 1.25rem;
}

.legal-block h3 {
  margin-bottom: 0.3rem;
}
/* ========== CONTACT SECTION ========== */

.contact-section {
  margin-top: 3rem;
}

.contact-form {
  max-width: 480px;
  margin-top: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.9rem;
}

.form-row label {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.85);
}

.form-row input,
.form-row textarea {
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem 0.6rem;
  color: #f5f5f5;
  font-size: 0.9rem;
  outline: none;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: #ff9800;
  box-shadow: 0 0 0 1px rgba(255, 152, 0, 0.4);
}

/* Honeypot: hide from users */
.hp-row {
  display: none;
}

.contact-submit {
  margin-top: 0.4rem;
  border-radius: 999px;
  border: none;
  background: #ff9800;
  color: #05060a;
  padding: 0.5rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.contact-submit:hover {
  background: #ffb84a;
  transform: translateY(-1px);
}

/* ========== FOOTER (FULL-WIDTH) ========== */

.site-footer {
  background: #090a11;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.75rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #a5a5a5;
}

/* ========== RESPONSIVE ========== */

/*@media (max-width: 900px) {
  .hero-left {
    width: 60%;
  }

  .hero-right {
    width: 40%;
  }
}*/

@media (max-width: 1100px) {
  main {
    padding: 1.5rem 1.1rem 5.5rem; /* keep extra bottom for player bar */
  }

  .header-inner {
    padding: 0 1.1rem;
  }

  .hero-visual {
    max-height: none;
    min-height: 0;
    height: auto;
  }

  #visual-wrapper {
    position: relative;
    width: 100%;
    min-height: 0;
    height: auto;
    display: block;
  }

  #slide-image {
    position: relative;
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    z-index: 0;
  }

  #no-visual-placeholder {
    position: relative;
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-overlay {
    position: relative;
    width: 100%;
    padding: 1.1rem 0;
  }

  .hero-left {
    background: rgba(0, 0, 0, 0.85);
    max-width: none;
  }

  .hero-right {
    margin-top: 0.75rem;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    max-width: none;
    background: rgba(0, 0, 0, 0.75);
  }

  .story-columns {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }
}
/* Slightly taller hero image on tablets (including iPad landscape) */
@media (min-width: 768px) and (max-width: 1100px) {
  #slide-image,
  #no-visual-placeholder {
    height: 320px; /* bigger than phones, still reasonable */
  }
}

/* Normalize text size on short/landscape screens (iPhone landscape fix) */
@media (max-height: 600px) and (orientation: landscape) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    font-size: 0.9rem;
  }

  .hero-track-title {
    font-size: 1.4rem;
  }

  .hero-summary {
    font-size: 0.8rem;
  }
}


@media (max-width: 600px) {
  .site-title {
    font-size: 1.3rem;
  }

  .main-nav ul {
    justify-content: flex-start;
  }

  .tabs {
    flex-direction: column;
  }
}


/* ===== YouTube video holder (replaces hero image when a track has videoUrl) ===== */
#video-holder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* behind overlays */
}

#video-holder iframe,
#video-holder #yt-player {
  width: 100%;
  height: 100%;
  display: block;
}

/* Mobile / stacked hero: video becomes a normal top strip like the image */
@media (max-width: 768px) {
  #video-holder {
    position: relative;
    inset: auto;
    height: 220px;
  }

  #video-holder iframe,
  #video-holder #yt-player {
    height: 220px;
  }
}
/* TOUCH DEVICES: force stacked layout */
@media (hover: none) and (pointer: coarse) {

  .hero-visual {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  #visual-wrapper {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    overflow: hidden !important;
  }

  /* Video becomes a normal top banner block */
  #video-holder {
    display: block;
    position: relative !important;
    width: 100% !important;
    height: 220px !important; /* default banner height */
  }

  #video-holder iframe,
  #video-holder #yt-player {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }

  /* Image behaves like a banner */
  #slide-image {
    position: relative !important;
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    display: block; /* no !important so JS/video-active can hide it */
  }

  /* IMPORTANT: overlays must NOT be absolute on touch devices */
  .hero-overlay {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: none !important;
    padding: 1rem 0 !important;
    z-index: 2 !important;
  }

  .hero-left {
    background: rgba(0,0,0,0.85) !important;
  }

  .hero-right {
    margin-top: 0.75rem !important;
    border-left: none !important;
    border-top: 1px solid rgba(255,255,255,0.18) !important;
    background: rgba(0,0,0,0.70) !important;
  }

  .hero-right ol,
  .hero-lyrics-scroll {
    max-height: 34vh !important;
    overflow-y: auto !important;
  }
}

/* TOUCH + LANDSCAPE: taller banner */
@media (hover: none) and (pointer: coarse) and (orientation: landscape) {
  #video-holder { height: 60vh !important; }
  #slide-image  { height: 60vh !important; }
}

/* If a video is active, the image must never render */
#visual-wrapper.video-active #slide-image {
  display: none !important;
}
