:root {
  --bg-main: #0f1115;
  --bg-secondary: #171a21;
  --bg-accent: #1f2430;

  --text-main: #ffffff;
  --text-muted: #e6e6eb;

  --border-subtle: #2a2f3a;
  --accent: #7aa2f7;
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* BODY */
body {
  font-family: "Comfortaa", system-ui, sans-serif;
  color: var(--text-main);
  background: var(--bg-main);
}

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

nav h1 {
  color: var(--text-main);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: bold;
}

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

/* NAV HOME LINK — replaces style="text-decoration: none; color: inherit;" on nav <a> wrapping h1 */
.nav-home {
  text-decoration: none;
  color: inherit;
}

/* HERO */
.hero {
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(
    circle at top,
    #1b2030,
    var(--bg-main)
  );
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.hero p {
  color: var(--text-muted);
}

/* Hero tagline small variant */
.hero-tagline-sm {
  font-size: 0.9rem;
}

/* SECTIONS */
section {
  padding: 60px 10%;
  background: var(--bg-main);
}

section:nth-of-type(even) {
  background: var(--bg-secondary);
}

section h2 {
  margin-bottom: 20px;
  font-size: 2rem;
  color: var(--text-main);
}

section p {
  color: var(--text-main);
  margin-top: 0.5rem;
}

/* ARTISTS */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.project-button {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease;
}

.project-button:hover {
  transform: translateY(-5px);
}

.artist-card {
  padding: 40px;
  background: var(--bg-accent);
  border: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-main);
  transition: all 0.3s ease;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.artist-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 17, 21, 0.6);
  transition: background 0.3s ease;
  z-index: 1;
}

.artist-card span {
  position: relative;
  z-index: 2;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.project-button:hover .artist-card::before {
  background: rgba(122, 162, 247, 0.3);
}

.project-button:hover .artist-card {
  border-color: var(--accent);
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.art-box {
  height: 200px;
  background: linear-gradient(135deg, #232838, #1a1f2b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-main);
}

/*Element Tweaks*/
#members pre {
  font-family: inherit;
}

/* ============================================================
   CTA / SOCIAL BUTTONS
   ============================================================ */

.cta-section {
  text-align: center;
  padding: 2rem 0;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  margin: 0.5rem;
  transition: opacity 0.3s;
}

.btn:hover {
  opacity: 0.85;
}

.btn-youtube {
  background-color: #FF0000;
}

.btn-patreon {
  background-color: #FF424D;
}

.btn-kofi {
  background-color: #29abe0;
}

.btn-external {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--text-main);
  color: var(--bg-main);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: opacity 0.3s;
}

.btn-external:hover {
  opacity: 0.85;
}

.section-centered {
  text-align: center;
  padding: 40px 20px;
}

/* ============================================================
   UPCOMING RELEASE — records.html
   ============================================================ */

.upcoming-grid {
  display: flex;
  justify-content: center;
}

.upcoming-release {
  width: 350px;
}

.upcoming-release .art-box {
  width: 350px;
  height: 350px;
  background-size: cover;
  background-position: center;
}

/* ============================================================
   DISCOGRAPHY — artist pages
   ============================================================ */

.discography-grid {
  display: flex;
  gap: 40px;
  justify-content: space-evenly;
  flex-wrap: wrap;
  text-align: center;
}

.release-item {
  width: 240px;
}

.release-item img {
  width: 240px;
  height: 240px;
  border: 1px solid var(--border-subtle);
  display: block;
}

.release-meta {
  margin-top: 15px;
  max-width: 240px;
  overflow-wrap: break-word;
  margin-left: auto;
  margin-right: auto;
}

.release-meta strong {
  font-size: 0.9em;
}

/* Bandcamp iframes */
.bandcamp-embed {
  border: 0;
  width: 100%;
  height: 120px;
}

.bandcamp-embed-sm {
  border: 0;
  width: 100%;
  height: 42px;
}

/* ============================================================
   FILM DETAIL LAYOUT
   ============================================================ */

.film-details-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.film-poster-col {
  flex-shrink: 0;
}

.film-poster-col img {
  width: 300px;
  height: auto;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.film-poster-meta {
  margin-top: 15px;
  text-align: center;
}

.film-poster-meta .film-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.film-poster-meta .film-year {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.film-poster-meta .film-credit {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.film-info-col {
  flex-grow: 1;
  min-width: 300px;
}

.film-info-card {
  background: var(--bg-accent);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.film-info-row {
  margin-bottom: 20px;
}

.film-info-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.film-section-header {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--accent);
}

.film-section-divider {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  margin-bottom: 20px;
}

.film-crew-row {
  margin-bottom: 8px;
  line-height: 1.6;
}

.film-crew-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: block;
}

.film-cast-row {
  margin-bottom: 6px;
  line-height: 1.6;
}

/* ============================================================
   RELEASES TABLE
   ============================================================ */

.releases-table {
  background: var(--bg-accent);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  max-width: 800px;
}

.release-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.release-row:last-child {
  border-bottom: none;
}

.release-row-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.release-row pre {
  margin: 0 0 3px 0;
  line-height: 1.5;
  font-size: 0.9rem;
  font-family: inherit;
}

.release-tag-available {
  margin: 0 0 3px 0;
  line-height: 1.5;
  font-size: 0.7rem;
  color: green;
}

.release-tag-format {
  margin: 0 0 3px 0;
  line-height: 1.5;
  font-size: 0.7rem;
  color: grey;
}

/* ============================================================
   FILM PAGE — shared inline style replacements
   ============================================================ */

/* Tagline variant used on film hero headers */
.hero-tagline-sm {
  font-size: 0.9rem;
}

/* Info block rows (Studios, Language, Alt. Titles) */
.film-info-block p {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Cast list items */
.film-cast-name {
  margin-bottom: 6px;
  line-height: 1.6;
}

.film-cast-role {
  color: var(--text-muted);
}

/* Release tag colours */
.release-tag-youtube {
  margin: 0 0 3px 0;
  line-height: 1.5;
  font-size: 0.7rem;
  color: red;
}

.release-tag-dinostore {
  margin: 0 0 3px 0;
  line-height: 1.5;
  font-size: 0.7rem;
  color: green;
}

.release-tag-patreon {
  margin: 0 0 3px 0;
  line-height: 1.5;
  font-size: 0.7rem;
  color: #ff424d;
}

/* Film stills / images gallery */
.film-images-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.film-still {
  width: 100%;
  max-width: 640px;
  height: auto;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.film-still-sm {
  width: 100%;
  max-width: 492px;
  height: auto;
  border: 0.5px solid var(--border-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.film-poster-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Watch section image (e.g. Anesthesia Patreon) */
.watch-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

/* ============================================================
   MOBILE RESPONSIVENESS
   ============================================================ */

/* Prevent anything from overflowing the viewport */
img, iframe, pre {
  max-width: 100%;
}

@media (max-width: 900px) {
  nav ul {
    gap: 12px;
  }

  .hero h2 {
    font-size: 2.4rem;
  }
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
  }

  .hero h2 {
    font-size: 2rem;
  }

  section {
    padding: 40px 6%;
  }

  /* Film detail layout: stack poster above info card */
  .film-details-layout {
    flex-direction: column;
  }

  .film-poster-col {
    width: 100%;
  }

  .film-poster-col img,
  .film-poster-img {
    width: 100%;
    max-width: 100%;
  }

  .film-info-col {
    min-width: unset;
    width: 100%;
  }

  /* Releases table: narrower label column on small screens */
  .release-row {
    grid-template-columns: 110px 1fr;
    gap: 10px;
  }

  .releases-table {
    padding: 15px;
  }

  /* Discography items go full width */
  .release-item {
    width: 100%;
    max-width: 280px;
  }

  .release-item img {
    width: 100%;
    height: auto;
  }

  /* Film images */
  .film-images-grid {
    flex-direction: column;
  }

  /* Upcoming release */
  .upcoming-release,
  .upcoming-release .art-box {
    width: 100%;
    max-width: 350px;
  }
}
