/* Starfield background (CSS equivalent of the provided SCSS)
   We generate stars via JS; this file defines visuals and animation. */

html,
body {
  background: #000;
}

/* Base layout and typography */
:root {
  --accent-green: #0b870b;
  --accent-green-dark: #064d06;
}

@font-face {
  font-family: "TerminalGrotesque";
  src: url("../assets/fonts/terminal-grotesque.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AnonymousPro";
  src: url("../assets/fonts/anonymouspro-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #fff;
  --border: #fff;
  --muted: #cfcfcf;
}

html {
  min-height: 100%; /* Ensure full height coverage */
  scrollbar-gutter: stable; /* reserve space for scrollbar to prevent layout shift */
  cursor: url("../assets/images/cursor.png"), auto;
  /* Background on html to cover full document height */
  background: var(--bg);
  background-image: url("../assets/images/background.jpg");
  background-repeat: repeat;
  background-position: 0 0;
  background-attachment: fixed;
  background-size: 50% 50%;
}

body {
  min-height: 100%; /* Extend with content */
  margin: 0;
  background: transparent; /* Let html background show through */
  color: var(--fg);
  font-family: "TerminalGrotesque", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  cursor: url("../assets/images/cursor.png"), auto;
}

/* Beneath Europa page - use pattern background */
html:has(body.beneath-europa-page) {
  background-image: url("../assets/images/beneath_europa/pattern.png");
  background-repeat: repeat;
  background-position: 0 0;
  background-attachment: fixed;
  background-size: auto;
  position: relative;
}

/* Dark overlay to dim the pattern */
html:has(body.beneath-europa-page)::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: 0;
  pointer-events: none;
}

.wrap {
  max-width: 980px;
  padding: 24px 16px 56px;
  margin: 0 auto;
  position: relative;
  z-index: 1; /* above stars */
}

/* Debug toggle button */
.debug-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #6bc06b;
  color: #6bc06b;
  padding: 8px 16px;
  cursor: pointer;
  font-family: "TerminalGrotesque", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 14px;
  border-radius: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.debug-toggle:hover {
  background: #6bc06b;
  color: #000;
}

/* Site title at the top */
.site-title {
  font-family: "TerminalGrotesque", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--accent-green);
  text-align: center;
  font-size: 36px;
  line-height: 1;
  margin: 8px auto 4px;
  text-decoration: none;
  display: block;
  cursor: pointer;
}

/* Simple page title for plain content pages */
.page-title {
  font-family: "TerminalGrotesque", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  text-align: center;
  font-size: 48px;
  margin: 20vh 16px 0;
}

/* Top navigation */
nav {
  padding: 12px 8px;
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
  margin: 16px 0 28px;
}

nav a {
  color: var(--accent-green-dark);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.3px;
  font-family: "TerminalGrotesque", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 20px;
}

nav a:hover,
nav a:focus {
  color: var(--accent-green);
}

nav a.active {
  color: var(--accent-green);
}

/* Two-panel section */
.panels {
  display: grid;
  grid-template-columns: 2fr 2fr; /* left column doubled */
  gap: 24px;
}

.panel {
  min-height: 280px;
  background: transparent;
}

.panel.media {
  display: grid;
  place-items: center;
  padding: 16px;
}

.media img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
}

.panel.text {
  padding: 16px 20px;
  line-height: 1.5;
}

.panel.text p {
  font-size: 20px;
}

/* Responsive */
@media (max-width: 780px) {
  .panels {
    grid-template-columns: 1fr;
  }
}

/* DISABLED_STARFIELD_BACKGROUND - Hidden but kept for stacking context */
.stars-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0; /* behind content */
  opacity: 0; /* Hide visually but maintain stacking context */
  visibility: hidden; /* Hide from rendering but keep in layout */
}

/* DISABLED_STARFIELD_BACKGROUND - Star styles disabled */
.star {
  display: none; /* Hide stars completely - they won't be created anyway since JS is disabled */
}

@keyframes glowing-stars {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
  }
}

/* Music: fixed bounding box; neither image can exceed it */
.album-row {
  position: relative;
  border: 1px solid rgba(107, 192, 107, 0.5); /* match text green with 50% opacity */
  background: rgba(107, 192, 107, 0.1); /* match text green with 10% opacity */
  padding: 16px;
  display: flex;
  align-items: flex-start; /* align text container to top */
  gap: 20px;
  margin: 6vh auto 0;
  max-width: 870px; /* constrain container width */
  font-family: "AnonymousPro", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* Variant: red-stroked container for detail page */
.album-row--red {
  border-color: rgba(220, 53, 69, 0.8);
  background: transparent;
}

/* Plain variant: no border, no background (detail page clean look) */
.album-row--plain {
  border: none;
  background: transparent;
}

/* Debug-only outlines for a specific container */
.debug-enabled .album-row.album-debug {
  border: 2px dashed #9c27b0; /* purple outline on container */
}
.debug-enabled .album-row.album-debug .album-stack {
  outline: 1px dashed #ff5722; /* deep orange for artwork box */
}
.debug-enabled .album-row.album-debug .album-name {
  outline: 1px dashed #00bcd4; /* cyan for text column */
}
.debug-enabled .album-row.album-debug .album-name h2 {
  outline: 1px dashed #4caf50; /* green for title */
}
.debug-enabled .album-row.album-debug .album-name p {
  outline: 1px dashed #ffc107; /* amber for paragraphs */
}
.debug-enabled .album-row.album-debug .album-name a {
  outline: 1px dashed #9c27b0; /* purple for links */
}

/* Column layout variant: artwork on top, text below */
.album-row--column {
  flex-direction: column;
  align-items: center;
}
.album-row--column .album-stack {
  margin-bottom: 16px;
}
.album-row--column .album-name {
  width: auto;
  max-width: 800px;
  margin: 0 auto; /* center the blue text box */
}

[data-image-viewer] {
  cursor: pointer;
}

.image-viewer {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.75);
  z-index: 5000;
  opacity: 0;
  transition: opacity 180ms ease;
}

.image-viewer[hidden] {
  display: none;
}

.image-viewer.is-visible {
  opacity: 1;
}

.image-viewer__container {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 100%;
  max-height: 100%;
}

.image-viewer__inner {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.image-viewer__inner img {
  display: block;
  max-width: calc(100vw - 64px - 80px - 96px);
  max-height: calc(100vh - 64px);
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: auto;
}

@media (max-width: 780px) {
  .image-viewer {
    padding: 24px;
  }

  .image-viewer__container {
    gap: 32px;
  }

  .image-viewer__inner img {
    max-width: calc(100vw - 48px - 56px - 64px);
    max-height: calc(100vh - 48px);
  }
}

/* Image viewer navigation arrows */
.image-viewer__arrow {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.3;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.image-viewer__arrow:hover {
  opacity: 1;
}

.image-viewer__arrow img {
  width: auto;
  height: auto;
  max-width: 32px;
  max-height: 32px;
  display: block;
}

.image-viewer__arrow--prev img {
  transform: scaleX(-1);
}

@media (max-width: 780px) {
  .image-viewer__arrow img {
    max-width: 24px;
    max-height: 24px;
  }
}

/* Color-tag debug helpers */
.debug-enabled .debug-red {
  outline: 2px dashed #e53935;
}
.debug-enabled .debug-blue {
  outline: 2px dashed #03a9f4;
}

/* Detail page: give artwork box extra width for disc travel */
.album-row--column .debug-red .album-stack {
  width: 520px; /* wider than default 425px */
  height: 320px; /* proportionally a bit taller */
}

.album-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* black 50% opacity behind */
  z-index: -1;
}

/* Remove overlay on detail page (Beneath Europa OST) */
.album-row--plain::before {
  background: transparent; /* No overlay on detail page */
}

.album-name {
  flex: 1 1 auto;
  min-width: 200px;
  margin-top: 16px;
  font-family: "AnonymousPro", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.album-name h2 {
  margin: 0 0 4px 0; /* reduced space below heading */
  font-size: 22px;
  color: #6bc06b; /* darker green */
}

.album-name h2 a {
  color: inherit;
  text-decoration: none;
}

.album-name h2 a:hover,
.album-name h2 a:focus {
  text-decoration: underline;
}

.album-link {
  display: inline-block;
}

.album-name p {
  margin: 0;
  color: #6bc06b; /* darker green */
}

.release-date {
  opacity: 0.5;
}

.album-name a {
  color: #9d4edd; /* purple - links are purple */
}

.album-name .album-info {
  margin-top: 32px !important; /* increased space above track info */
}
#be-ost-page .album-info {
  margin-bottom: 12px; /* space under Track List heading */
}
.album-stack {
  position: relative;
  width: 425px; /* half size */
  height: 280px; /* half size */
  margin: 0; /* no extra space inside the bordered row */
  overflow: hidden; /* hard bound */
  transform: scale(0.9); /* start a bit smaller */
  transform-origin: center center; /* scale from center */
  transition: transform 220ms ease;
}

/* Center any images inside and cap to the box */
.album-stack img {
  position: absolute;
  height: 100%;
  width: auto; /* preserve aspect; fill by height */
  object-fit: contain;
}

.album-disc {
  position: absolute;
  right: 30%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  height: 90% !important;
  width: auto !important;
  pointer-events: none;
  transform-origin: 50% 50%;
  animation: 5s linear spinThat infinite, 1s ease-out getOut 0s forwards;
}

.album-cover {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.75));
}

@media (max-width: 780px) {
  .album-stack {
    width: 90vw;
    height: 49vw; /* preserve aspect with half size baseline */
    max-width: 425px;
    max-height: 280px;
    margin-top: 0; /* keep flush to row top on mobile */
  }

  .album-row {
    flex-direction: column;
    align-items: flex-start; /* keep album left-aligned */
    gap: 16px;
    max-width: min(870px, 92vw); /* constrain on mobile too */
  }

  /* Animation: rotate disc when hovering the album container */
}

/* Games: game-row styling (different from album-row) */
.game-row {
  position: relative;
  border: 1px solid rgba(107, 192, 107, 0.5); /* match text green with 50% opacity */
  background: rgba(107, 192, 107, 0.1); /* match text green with 10% opacity */
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0px;
  margin: 6vh auto 0;
  max-width: 870px; /* constrain container width */
  font-family: "AnonymousPro", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.game-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.game-link {
  display: block;
  flex-shrink: 0;
  flex-basis: auto;
}

.game-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* black 50% opacity behind */
  z-index: -1;
}


.game-logo {
  width: fit-content;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(220, 53, 69, 0.0);
  padding: 8px 30px;
  box-sizing: border-box;
  max-width: 320px;
}

.game-logo img {
  width: 240px;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0;
  padding: 0;
}

.game-name {
  flex: 1 1 auto;
  min-width: 200px;
  margin-top: 16px;
  font-family: "AnonymousPro", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.game-name h2 {
  margin: 0 0 4px 0; /* reduced space below heading */
  font-size: 22px;
  color: #6bc06b; /* darker green */
}

.game-name h2 a {
  color: inherit;
  text-decoration: none;
}

.game-name h2 a:hover,
.game-name h2 a:focus {
  text-decoration: underline;
}

.game-name p {
  margin: 0;
  color: #6bc06b; /* darker green */
}

.game-name .game-info {
  margin-top: 32px !important; /* increased space above game info */
}

.game-name a {
  color: #9d4edd; /* purple - links are purple */
}

.game-screenshots-gallery {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 0;
  align-items: stretch;
}

.debug-enabled .game-screenshots-gallery {
  border: 2px dashed #ff9800; /* orange debug border */
}

.game-screenshot-main {
  flex: 0 0 50%;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid rgba(107, 192, 107, 0.3);
  transition: border-color 0.2s ease;
  display: flex;
  align-self: stretch;
  min-height: 0;
}

.game-screenshot-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-screenshot-main:hover {
  border-color: #6bc06b;
}

.game-screenshots-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  align-self: stretch;
  min-height: 0;
}

.game-screenshots-top {
  display: flex;
  gap: 12px;
  width: 100%;
  flex: 0 0 50%;
  align-items: stretch;
  min-height: 0;
}

.game-screenshots-bottom {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: flex-start;
  flex: 1;
  align-items: stretch;
  min-height: 0;
}

.game-screenshot-item {
  flex: 1;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid rgba(107, 192, 107, 0.3);
  transition: border-color 0.2s ease;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.game-screenshot-item:hover {
  border-color: #6bc06b;
}

.debug-enabled .game-screenshot-item {
  border: 2px dashed #e91e63; /* pink debug border */
}

.debug-enabled .game-screenshot-main {
  border: 2px dashed #e91e63; /* pink debug border */
}

.game-screenshot-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  flex: 1;
}

@media (max-width: 780px) {
  .game-row {
    gap: 16px;
    max-width: min(870px, 92vw);
    margin-top: 4vh;
  }

  .game-header {
    flex-direction: column;
    gap: 16px;
  }

  .game-logo {
    width: 100%;
    max-width: 425px;
  }

  .game-logo img {
    width: 200px;
  }

  .game-screenshots-gallery {
    flex-direction: column;
    gap: 16px;
  }

  .game-screenshot-main {
    width: 100%;
  }

  .game-screenshots-right {
    width: 100%;
  }

  .game-screenshots-top,
  .game-screenshots-bottom {
    flex-direction: column;
  }
}

/* Game detail page */
.game-detail {
  margin: 6vh auto 0;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  font-family: "AnonymousPro", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.debug-enabled .game-detail {
  border: 2px dashed #f44336; /* red debug border */
}

.game-detail-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.debug-enabled .game-detail-left {
  border: 2px dashed #03a9f4; /* cyan debug border */
}

.game-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.debug-enabled .game-logo-container {
  border: 2px dashed #ff5722; /* orange debug border */
}

.game-detail-logo {
  width: 100%;
  max-width: 250px;
  height: auto;
  display: block;
}

.debug-enabled .game-detail-logo {
  border: 2px dashed #ffc107; /* amber debug border */
}

.game-detail-title {
  color: #6bc06b;
  font-size: 25px;
  font-weight: 600;
  margin: 0;
  text-align: left;
  font-family: "TerminalGrotesque", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.debug-enabled .game-detail-title {
  border: 2px dashed #00bcd4; /* cyan debug border */
}

.game-detail-content {
  width: 100%;
  color: #cfcfcf;
  line-height: 1.6;
  font-size: 15.5px;
}

.debug-enabled .game-detail-content {
  border: 2px dashed #4caf50; /* green debug border */
}

.game-detail-content p {
  margin: 0 0 20px 0;
}

.game-detail-content p:last-child {
  margin-bottom: 0;
}

.game-detail-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.debug-enabled .game-detail-right {
  border: 2px dashed #9c27b0; /* purple debug border */
}

.game-video-container {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.debug-enabled .game-video-container {
  border: 2px dashed #ff9800; /* orange debug border */
}

.game-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.game-placeholder-image {
  width: 100%;
  cursor: pointer;
}

.debug-enabled .game-placeholder-image {
  border: 2px dashed #e91e63; /* pink debug border */
}

.game-placeholder-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.placeholder-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(107, 192, 107, 0.1);
  border: 1px solid rgba(107, 192, 107, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6bc06b;
  font-size: 16px;
  font-family: "AnonymousPro", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* Game download section */
.game-download-section {
  margin-top: 40px;
  font-family: "AnonymousPro", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.download-section-title {
  color: #6bc06b;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 24px 0;
  text-align: left;
  font-family: "TerminalGrotesque", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.game-download-section .download-btn {
  background: transparent;
  border: none;
  color: #6bc06b;
  padding: 0;
  cursor: pointer;
  font: inherit;
  margin: 0;
  border-radius: 0;
  text-decoration: underline;
  display: inline-block;
  transition: color 0.2s ease;
}

.game-download-section .download-btn:hover {
  color: #9d4edd;
  text-decoration: underline;
}

.game-download-section .download-meta {
  color: #cfcfcf;
  font-size: 14px;
  opacity: 0.5;
}

.platform-icon {
  width: 24px;
  height: 24px;
  opacity: 0.75;
  filter: grayscale(100%) brightness(1.2);
}

/* Game OST section */
.game-ost-section {
  margin-top: 40px;
  font-family: "AnonymousPro", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.ost-section-title {
  color: #6bc06b;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 16px 0;
  text-align: left;
  font-family: "TerminalGrotesque", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.ost-link {
  color: #6bc06b;
  text-decoration: underline;
  font-size: 15.5px;
  transition: color 0.2s ease;
}

.ost-link:hover {
  color: #9d4edd;
  text-decoration: underline;
}

.game-screenshots-gallery {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
}

.debug-enabled .game-screenshots-gallery {
  border: 2px dashed #ff9800; /* orange debug border */
}

.game-screenshot-item {
  flex: 1;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid rgba(107, 192, 107, 0.3);
  transition: border-color 0.2s ease;
}

.game-screenshot-item:hover {
  border-color: #6bc06b;
}

.debug-enabled .game-screenshot-item {
  border: 2px dashed #e91e63; /* pink debug border */
}

.game-screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (max-width: 780px) {
  .game-detail {
    margin-top: 4vh;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .game-detail-logo {
    max-width: 225px;
  }

  .game-screenshots-gallery {
    flex-direction: column;
    gap: 16px;
  }

  .game-detail-content {
    font-size: 16px;
    padding: 0;
  }
}

@keyframes spinThat {
  0% {
    transform: translateY(-50%) rotate(0deg);
  }
  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}

@keyframes getOut {
  0% {
    right: 30%;
  }
  100% {
    right: 0%;
  }
}

/* DISABLED - Scale animation removed per user request */
/* .album-row:hover .album-stack {
  transform: scale(0.93);
} */

@media (prefers-reduced-motion: reduce) {
  .album-disc {
    animation: none;
  }
}

/* Beneath Europa OST page scoped styles (work with SPA router too) */
#be-ost-page {
  margin-top: 0 !important; /* remove space above CD cover */
}
#be-ost-page .album-row {
  margin-top: 0 !important; /* remove space above CD cover */
}
#page-content > #be-ost-page {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
#be-ost-page .album-stack {
  transform: none !important;
  transition: none !important;
}
#be-ost-page .album-row:hover .album-stack {
  transform: none !important;
}
#be-ost-page .album-disc {
  z-index: 2 !important;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.9));
  right: 0% !important;
  animation: spinThat 5s linear infinite;
  animation-play-state: paused;
}
#be-ost-page .track {
  background: none;
  border: 0;
  padding: 0;
  color: #6bc06b;
  cursor: default;
  text-decoration: none;
  font: inherit;
}
#be-ost-page .track:hover {
  text-decoration: none;
}
#be-ost-page .track .num,
#be-ost-page .track .len {
  color: rgba(255, 255, 255, 0.35);
}
#be-ost-page .track-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
#be-ost-page .download-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 25px;
  margin-bottom: 12px;
}
#be-ost-page .download-btn {
  background: transparent;
  border: 1px solid #6bc06b;
  color: #6bc06b;
  padding: 8px 16px;
  cursor: pointer;
  font: inherit;
  margin: 0;
  border-radius: 0;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease, color 0.2s ease;
}
#be-ost-page .download-btn:hover {
  background: #6bc06b;
  color: #000;
  text-decoration: none;
}
#be-ost-page .download-meta {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.9rem;
}

.debug-enabled .album-row.album-debug .download-btn {
  outline: 1px dashed #8bc34a;
  background: rgba(139, 195, 74, 0.12);
}
.debug-enabled .album-row.album-debug .download-btn:hover {
  outline-color: #cddc39;
}
#be-ost-page .play-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  background: none;
  border: none;
}
#be-ost-page .play-icon img {
  width: 14px;
  height: 14px;
  filter: invert(53%) sepia(21%) saturate(1037%) hue-rotate(81deg)
    brightness(90%) contrast(92%);
}
#be-ost-page .play-icon:hover img {
  filter: invert(60%) sepia(35%) saturate(1200%) hue-rotate(81deg)
    brightness(100%) contrast(95%);
}
#be-ost-page .audio-player {
  display: none;
}
#be-ost-page .player {
  display: grid; /* 3 columns: icon | center (title+bar) | time */
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(107, 192, 107, 0.5);
  border-radius: 0;
  padding: 10px 16px; /* reduced vertical padding */
  margin-top: 24px; /* space above player */
  min-height: 56px; /* reduced height */
  width: 460px;
  max-width: 100%;
  box-sizing: border-box;
}
#be-ost-page .player .meta {
  display: flex;
  flex-direction: column;
  gap: 15px; /* increased space between title and progress bar */
  justify-content: center;
}
#be-ost-page .player #be-play {
  grid-column: 1;
}
#be-ost-page .player .meta {
  grid-column: 2;
}
#be-ost-page .player #be-time {
  grid-column: 3;
}
#be-ost-page .player .track-title {
  color: #6bc06b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#be-ost-page .player button {
  background: #6bc06b;
  color: #000;
  border: none;
  border-radius: 0;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 700;
}
#be-ost-page #be-play {
  background: transparent; /* icon only */
  padding: 0;
  width: auto;
  display: grid;
  place-items: center;
}
#be-ost-page #be-play-icon {
  width: 48px;
  height: 48px;
  filter: invert(53%) sepia(21%) saturate(1037%) hue-rotate(81deg)
    brightness(90%) contrast(92%);
}
#be-ost-page .player button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
#be-ost-page .player .time {
  color: #6bc06b;
  font-variant-numeric: tabular-nums;
  margin-top: 30px; /* space above time display */
}
#be-ost-page .progress {
  position: relative;
  height: 10px !important; /* slightly taller */
  background: rgba(107, 192, 107, 0.35);
  border-radius: 0;
  width: 100%; /* fill center column only */
  cursor: pointer;
  overflow: hidden;
  border: none;
}
#be-ost-page .progress .bar {
  height: 100% !important;
}
#be-ost-page .progress .bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: #6bc06b; /* progress fill */
  border-radius: 0;
}
#be-ost-page .release-date {
  color: rgba(255, 255, 255, 0.35);
  opacity: 1;
}
#be-ost-page .album-name p:nth-of-type(2) {
  color: rgba(255, 255, 255, 0.7);
}

/* Player visual debug */
#be-ost-page .player.player-debug {
  outline: 1px dashed #9c27b0;
}
#be-ost-page .player.player-debug #be-play {
  outline: 1px dashed #4caf50;
}
#be-ost-page .player.player-debug .meta {
  outline: 1px dashed #03a9f4;
}
#be-ost-page .player.player-debug .track-title {
  outline: 1px dashed #ffc107;
}
#be-ost-page .player.player-debug #be-progress {
  outline: 1px dashed #ff5722;
}
#be-ost-page .player.player-debug #be-progress-bar {
  outline: 1px dashed #e91e63;
}
#be-ost-page .player.player-debug #be-time {
  outline: 1px dashed #ffc107;
  padding: 0 2px;
}

/* Contact page text */
.contact-text {
  text-align: center;
  color: var(--fg);
  font-family: "TerminalGrotesque", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 18px;
  line-height: 1.6;
  margin: 32px auto 32px;
  max-width: 600px;
  padding: 0 16px;
}

/* Social media links on contact page */
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.social-icon {
  width: 192px;
  height: 192px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.social-username {
  color: var(--fg);
  font-family: "TerminalGrotesque", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 20px;
  text-align: center;
  pointer-events: none;
}

@media (max-width: 780px) {
  .contact-text {
    margin-top: 24px;
    margin-bottom: 24px;
    font-size: 16px;
  }
  
  .social-links {
    gap: 24px;
    margin-top: 24px;
  }
  
  .social-icon {
    width: 168px;
    height: 168px;
  }
  
  .social-username {
    font-size: 18px;
  }
}

/* Password Modal Styles */
.password-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.password-modal-content {
  background-color: #000000;
  border: 1px solid #6bc06b;
  border-radius: 0;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
}

.password-modal-content h3 {
  color: #6bc06b;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-align: center;
}

.password-modal-content p {
  color: #ffffff;
  margin-bottom: 1rem;
  text-align: center;
}

.password-modal-content .password-hint {
  font-size: 0.9rem;
  color: #aaaaaa;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.password-hint a {
  color: #6bc06b;
  text-decoration: none;
}

.password-hint a:hover {
  text-decoration: underline;
}

#password-input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background-color: #000000;
  border: 1px solid #6bc06b;
  border-radius: 0;
  color: #6bc06b;
  font-family: monospace;
  font-size: 1rem;
  box-sizing: border-box;
}

#password-input:focus {
  outline: none;
  border-color: #6bc06b;
}

.password-error {
  color: #ff0000;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-align: center;
  min-height: 1.2rem;
}

.password-modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.password-btn {
  padding: 8px 16px;
  border: 1px solid #6bc06b;
  border-radius: 0;
  font-family: monospace;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.password-btn-primary {
  background-color: transparent;
  color: #6bc06b;
}

.password-btn-primary:hover {
  background-color: #6bc06b;
  color: #000;
}

.password-btn-secondary {
  background-color: transparent;
  color: #6bc06b;
}

.password-btn-secondary:hover {
  background-color: #6bc06b;
  color: #000;
}
