/* Colours. --highlight and --highlight-rgb (the same colour as "r, g, b", for
   rgba()) are replaced with the band's highlight colour from the API by
   src/site/theme.ts. */
:root {
  --highlight: #02bacd;
  --highlight-rgb: 2, 186, 205;
  --purple: #a855f7;
  --gradient: linear-gradient(45deg, var(--highlight), var(--purple));
  --card-bg: linear-gradient(145deg, #0a0a0a, #111111);
  --border: #333333;
  --muted: #999999;
  --danger: #ff6b6b;
  --success: #34d399;
  --player-height: 76px;
  /* Dropdown arrow in the highlight colour (redrawn by theme.ts) */
  --select-arrow: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2302bacd"><path d="M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"/></svg>');
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background-color: #0a0a0a;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
  --parallax-y: 0px;
  /* Keeps the footer at the bottom of the window on short pages */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
  opacity: 1;
  pointer-events: auto;
  /* Lifts on its own if the site script fails to run */
  animation: loading-screen-fallback 0.5s ease 6s forwards;
}

@keyframes loading-screen-fallback {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-progress {
  width: 300px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff4ecd 0%, #a259ff 100%);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 20px rgba(162, 89, 255, 0.3);
}

.loading-text {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
  opacity: 0.8;
}

/* Background plant. Fixed to the window, so it can't hang below the footer
   and make the page taller; it moves up at half the scroll speed
   (--parallax-y is half the scroll distance, set in src/site/effects.ts). */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120vh;
  background-image: var(--page-background, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: invert(1) opacity(0.2);
  z-index: -999;
  pointer-events: none;
  transform: translateY(calc(var(--parallax-y, 0px) * -1));
  will-change: transform;
}

/* Hand-drawn Australian plants: each page's <body> class picks one. When the
   API has a background for the page, src/site/theme.ts shows that instead. */
body.wattle {
  --page-background: url("images/wattle.1ohpif.png");
}

body.eucalyptus {
  --page-background: url("images/eucalyptus.dotcxy.png");
}

body.kangaroo-paw {
  --page-background: url("images/kangaroo-paw.k3szum.png");
}

body.bottlebrush {
  --page-background: url("images/bottlebrush.7qci15.png");
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(var(--highlight-rgb), 0.2);
  will-change: opacity;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* The band's logo (nav, hero, footer) is always white, whatever colour the
   uploaded image is: every visible pixel goes black, then flips to white.
   Transparent areas stay transparent. */
img[data-band-image="main_logo"] {
  filter: brightness(0) invert(1);
}

.nav-logo .logo {
  height: 40px;
  width: auto;
}

/* Home page: the hero already shows the logo on desktop. Hidden rather than
   removed so the menu stays on the right and the bar keeps its height. */
@media (min-width: 769px) {
  .nav-logo-mobile-only {
    visibility: hidden;
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin-left: auto;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--highlight);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--highlight);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 4px;
  color: inherit;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section (home page; layout under "Home hero" below) */
.hero {
  /* Top padding clears the fixed nav bar */
  padding: 112px 20px 48px;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.8) 0%,
    rgba(26, 26, 26, 0.8) 100%
  );
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(var(--highlight-rgb), 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(168, 85, 247, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
  position: relative;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #cccccc;
  margin-bottom: 2rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.5px;
}

.hero-subtitle-contact {
  text-align: center;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  position: relative;
}

.band-photo {
  max-width: 80%;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
  filter: contrast(1.1) saturate(1.2);
  cursor: pointer;
}

.band-photo:hover {
  transform: scale(1.02);
}

/* Home hero: intro, the next few shows and the band photo, laid out so a
   visitor sees at least two or three ticket links without scrolling.
   - 1024px and wider: the logo and tagline across the top, then the band
     photo and the shows side by side, the same height (the photo follows
     the shows panel).
   - Narrower: one column, with the shows straight after the tagline and the
     photo after them. */
.hero-grid {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "intro"
    "shows"
    "photo";
  gap: 24px;
  justify-items: center;
  text-align: center;
}

.hero .hero-content {
  grid-area: intro;
}

.hero-title {
  margin-bottom: 1.25rem;
  line-height: 0;
}

.hero-logo {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin: 0 auto;
}

.hero .hero-subtitle {
  margin: 0;
  text-wrap: balance;
}

.hero .tour-panel {
  grid-area: shows;
  width: 100%;
  max-width: 640px;
}

.hero .hero-image {
  grid-area: photo;
  width: 100%;
  max-width: 640px;
}

.hero .band-photo {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 24px;
}

@media (min-width: 1024px) {
  .hero {
    padding: 112px 32px 48px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 1fr);
    grid-template-rows: auto minmax(320px, auto);
    grid-template-areas:
      "intro intro"
      "photo shows";
    column-gap: clamp(32px, 4vw, 64px);
    row-gap: 24px;
    justify-items: stretch;
    text-align: left;
  }

  .hero .hero-content {
    max-width: none;
  }

  /* Sized by the window's height, so short screens keep room for the photo */
  .hero-logo {
    width: auto;
    height: clamp(84px, 15svh, 136px);
    max-width: 100%;
    margin: 0;
    object-fit: contain;
    object-position: left center;
  }

  /* Fits the next 5 shows and "Show all dates"; once that's pressed, the
     rest scroll inside the panel instead of stretching the photo */
  .hero .tour-panel {
    max-width: none;
    max-height: 600px;
    overflow-y: auto;
  }

  .hero .hero-image {
    max-width: none;
  }

  .hero .band-photo {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
    object-position: center 30%;
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.lightbox-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lightbox-content img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10000;
}

.lightbox-close:hover {
  color: var(--highlight);
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(45deg, var(--highlight), #a855f7);
  color: #ffffff;
  background-clip: padding-box;
  border: 2px solid transparent;
  background-origin: border-box;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(var(--highlight-rgb), 0.3);
  background: linear-gradient(45deg, var(--highlight), #a855f7);
  background-clip: padding-box;
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid var(--highlight);
}

.btn-secondary:hover {
  background: var(--highlight);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-outline:hover {
  background: #ffffff;
  color: #0a0a0a;
}

/* Latest Release Section */
.latest-release {
  padding: 80px 0;
  background: #111111;
}

.latest-release h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #ffffff;
}

.release-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.release-info {
  text-align: center;
  max-width: 800px;
}

.release-info h3 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--highlight), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.release-date {
  font-size: 1.2rem;
  color: #cccccc;
  margin-bottom: 1.5rem;
}

.release-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #dddddd;
  margin-bottom: 2rem;
}

.release-description a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.release-description a:hover {
  color: var(--highlight);
}

.release-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Upcoming Shows Section (Bandsintown widget) */
.upcoming-shows {
  padding: 80px 0;
  background: #111111;
}

.upcoming-shows h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #ffffff;
}

.shows-widget {
  max-width: 900px;
  margin: 0 auto;
}

/* Fallback link, shown until the widget replaces it */
.shows-widget .bit-widget-initializer {
  display: block;
  text-align: center;
  color: var(--highlight);
  text-decoration: none;
}

/* Widget centres the support acts on small screens; keep them under the venue */
.upcoming-shows .shows-widget .bit-widget .bit-lineUp-container {
  text-align: left;
}

/* Hide widget extras (Follow, RSVP, Play My City, Bandsintown logo);
   the widget's own settings for these don't take effect */
.shows-widget .bit-widget .bit-follow-section-wrapper,
.shows-widget .bit-widget .bit-rsvp-container,
.shows-widget .bit-widget .bit-play-my-city-wrapper,
.shows-widget .bit-widget .bit-logo-container,
.shows-widget .bit-widget > div:has(> .bit-logo-link) {
  display: none;
}

/* With RSVP hidden, line the Tickets button up with the card's right edge */
.upcoming-shows .shows-widget .bit-layout-desktop .bit-event-buttons {
  grid-template-columns: auto;
  justify-content: end;
}

/* Home page shows panel. The Bandsintown widget is redrawn as a compact
   list (date, place, Tickets) so several shows fit on the first screen.
   The widget's own styles are injected after this stylesheet, hence the
   long selectors, and the one !important answering one of the widget's. */
.tour-panel {
  text-align: left;
  padding: 20px 20px 10px;
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.tour-panel-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}

/* Until the widget loads (or if it can't), its link to Bandsintown shows
   as a button, in a box about the size of a few shows so nothing jumps */
.tour-panel .shows-widget:has(> .bit-widget-initializer) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.tour-panel .shows-widget .bit-widget-initializer {
  display: inline-block;
  padding: 10px 22px;
  border: 2px solid var(--highlight);
  border-radius: 25px;
  color: #ffffff;
  font-weight: 600;
  text-align: center;
}

.tour-panel .shows-widget .bit-nav-bar-container {
  display: none;
}

.tour-panel .shows-widget .bit-widget.bit-layout-style-cards .bit-upcoming-events {
  gap: 0;
  margin: 0;
  border-bottom: 0;
}

.tour-panel .shows-widget .bit-widget.bit-layout-style-cards .bit-event.bit-card {
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px;
  margin: 0 -8px;
  padding: 12px 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  line-height: 1.35;
}

/* Hairline between shows, drawn inside the hover highlight's rounding */
.tour-panel .shows-widget .bit-widget.bit-layout-style-cards .bit-event.bit-card + .bit-event.bit-card {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 12px 12px;
}

.tour-panel .shows-widget .bit-widget.bit-layout-style-cards .bit-card-date .bit-vertical-date {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  min-width: 50px;
  padding: 6px 0;
  border: 1px solid rgba(var(--highlight-rgb), 0.35);
  border-radius: 10px;
  background: rgba(var(--highlight-rgb), 0.1);
}

.tour-panel .shows-widget .bit-widget.bit-layout-style-cards .bit-card-date .bit-vertical-date-subsection {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--highlight);
}

.tour-panel .shows-widget .bit-widget.bit-layout-style-cards .bit-card-date .bit-vertical-date-numeric-date {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.tour-panel .shows-widget .bit-widget.bit-layout-style-cards .bit-card-info {
  gap: 1px;
}

.tour-panel .shows-widget .bit-widget.bit-layout-style-cards .bit-card-city {
  font-size: 1rem;
  font-weight: 600;
}

/* Venue and support acts stay on one line each */
.tour-panel .shows-widget .bit-widget.bit-layout-style-cards .bit-card-secondary,
.tour-panel .shows-widget .bit-widget.bit-layout-style-cards .bit-event .bit-lineUp-container {
  display: block;
  max-width: none;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: left;
}

.tour-panel .shows-widget .bit-widget.bit-layout-style-cards .bit-card-secondary {
  font-size: 0.88rem;
  color: #bbbbbb;
  opacity: 1;
}

.tour-panel .shows-widget .bit-widget.bit-layout-style-cards .bit-event .bit-lineUp-container,
.tour-panel .shows-widget .bit-widget.bit-layout-style-cards .bit-event .bit-lineUp {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
}

.tour-panel .shows-widget .bit-widget.bit-layout-style-cards .bit-event-buttons {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 0;
  width: auto;
  margin: 0 0 0 auto;
}

.tour-panel .shows-widget .bit-widget.bit-layout-style-cards .bit-event .bit-offers-container {
  flex-basis: auto;
  width: auto;
  margin: 0;
}

.tour-panel .shows-widget .bit-widget.bit-layout-style-cards .bit-event .bit-offers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* The widget fixes the button at 128px with !important */
  width: auto !important;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 10px 18px;
  border: 0;
  border-radius: 25px;
  background: var(--highlight);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tour-panel .shows-widget .bit-widget.bit-layout-style-cards .bit-event .bit-offers:hover,
.tour-panel .shows-widget .bit-widget.bit-layout-style-cards .bit-event .bit-offers:focus-visible {
  opacity: 1;
  background: var(--gradient);
  box-shadow: 0 8px 18px rgba(var(--highlight-rgb), 0.3);
  transform: translateY(-1px);
}

/* "Show all dates", when there are more than data-display-limit */
.tour-panel .shows-widget .bit-widget .bit-upcoming-events-show-all-button {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 4px 0 6px;
  padding: 12px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
  color: var(--highlight);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.tour-panel .shows-widget .bit-widget .bit-upcoming-events-show-all-button:hover {
  color: #ffffff;
}

.tour-panel .shows-widget .bit-widget .bit-no-dates-container {
  margin: 0;
  padding: 24px 0 18px;
  border-top: 0;
}

/* Album Cover Styling */
.album-cover {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.album-cover-img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 6%;
  box-shadow: 0 0 0 8px #1a1a1a, 0 0 0 12px #333333, 0 0 0 16px #1a1a1a,
    0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
}

.album-cover-img:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 0 0 8px #1a1a1a, 0 0 0 12px #333333, 0 0 0 16px #1a1a1a,
    0 25px 50px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.album-cover-img::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: #1a1a1a;
  border-radius: 50%;
  border: 2px solid #333333;
  z-index: 1;
}

.album-cover-img::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--highlight);
  border-radius: 50%;
  z-index: 2;
}

/* Featured Quotes Section */
.featured-quotes {
  padding: 80px 0;
  background: #0a0a0a;
}

.featured-quotes h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #ffffff;
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.quote-card {
  background: linear-gradient(145deg, #111111, #0a0a0a);
  padding: 2rem;
  border-radius: 20px;
  border-left: 4px solid var(--highlight);
  transition: transform 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.quote-card:hover {
  transform: translateY(-5px);
}

.quote-card blockquote {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #dddddd;
  margin-bottom: 1rem;
  font-style: italic;
  position: relative;
}

.quote-card blockquote::before {
  content: '"';
  font-size: 3rem;
  color: var(--highlight);
  position: absolute;
  top: -10px;
  left: -15px;
  opacity: 0.3;
}

.quote-card cite {
  color: var(--highlight);
  font-weight: 600;
  font-style: normal;
}

/* Footer */
footer {
  background: #111111;
  padding: 60px 0 20px;
  border-top: 1px solid #333333;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo-img {
  height: 50px;
  width: auto;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 24px;
  height: 24px;
  fill: #cccccc;
  transition: fill 0.3s ease;
}

.social-links a:hover .social-icon {
  fill: var(--highlight);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333333;
  color: #888888;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--highlight);
}

/* About Page */
.about-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 120px 20px 60px;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.8) 0%,
    rgba(26, 26, 26, 0.8) 100%
  );
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  background: linear-gradient(45deg, var(--highlight), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #dddddd;
  margin-bottom: 3rem;
}

.band-members {
  padding: 80px 0;
  background: #111111;
}

.band-members h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #ffffff;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.member-card {
  background: linear-gradient(145deg, #0a0a0a, #111111);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid #333333;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.member-card:hover {
  transform: translateY(-5px);
  border-color: var(--highlight);
}

.member-card h3 {
  color: var(--highlight);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.member-card p {
  color: #cccccc;
  font-size: 1rem;
}

/* Photos */
.photos-hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 120px 20px 80px;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.8) 0%,
    rgba(26, 26, 26, 0.8) 100%
  );
}

.photos-hero h1 {
  font-size: 3rem;
  text-align: center;
  background: linear-gradient(45deg, var(--highlight), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 3rem;
}

.photos-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.photo-item {
  background: linear-gradient(145deg, #0a0a0a, #111111);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.photo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.photo-item img {
  width: 100%;
  height: 325px;
  border: none;
  object-fit: cover;
  object-position: center;
}

/* Videos Page */
.videos-hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 120px 20px 80px;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.8) 0%,
    rgba(26, 26, 26, 0.8) 100%
  );
}

.videos-hero h1 {
  font-size: 3rem;
  text-align: center;
  background: linear-gradient(45deg, var(--highlight), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 3rem;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.videos-grid iframe {
  width: 100%;
  height: 325px;
  border: none;
  border-radius: 20px;
  aspect-ratio: 16/9;
}

/* Contact Page */
.contact-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 20px 60px;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.8) 0%,
    rgba(26, 26, 26, 0.8) 100%
  );
  position: relative;
  overflow: hidden;
}

.contact-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(var(--highlight-rgb), 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(168, 85, 247, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.contact-hero h1 {
  font-size: 3rem;
  text-align: center;
  background: linear-gradient(45deg, var(--highlight), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-content {
  padding: 80px 0;
  background: #111111;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-section {
  background: linear-gradient(145deg, #0a0a0a, #111111);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid #333333;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.contact-section h3 {
  color: var(--highlight);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.contact-section p {
  color: #dddddd;
  margin-bottom: 0.5rem;
}

.contact-section a {
  color: var(--highlight);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-section a:hover {
  color: #a855f7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    right: -100%;
    top: 70px;
    flex-direction: column;
    background-color: rgba(10, 10, 10, 0.95);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
  }

  .nav-menu.active {
    right: 0;
  }

  .hero {
    /* Top padding clears the ~73px fixed nav bar */
    padding: 92px 16px 40px;
  }

  .hero-grid {
    gap: 20px;
  }

  /* Logo is already in the nav bar on mobile, so the tagline leads.
     Hidden but kept for screen readers. */
  .hero-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-subtitle-home {
    line-height: 1.4;
  }

  .band-photo {
    max-width: 90%;
    margin: 0 auto;
  }

  .tour-panel {
    padding: 16px 14px 6px;
    border-radius: 16px;
  }

  .tour-panel-title {
    font-size: 1.15rem;
  }

  .release-info h3 {
    font-size: 2rem;
  }

  .album-cover-img {
    width: 250px;
    height: 250px;
  }

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

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .video-container {
    grid-template-columns: 1fr;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 15px;
  }

  .videos-grid iframe {
    height: 250px;
  }

  .contact-grid {
    /* minmax(0, ...) stops long emails from stretching the column past the screen */
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding: 0;
  }

  .contact-section {
    padding: 1.5rem;
  }

  .contact-section a {
    overflow-wrap: anywhere;
  }

  .contact-hero {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 80px 20px 40px;
    min-height: auto;
  }

  .contact-hero h1 {
    font-size: 2.5rem;
  }

  .videos-hero {
    padding: 100px 15px 60px;
  }

  .videos-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-subtitle-home {
    font-size: 1.1rem;
  }

  /* Rows tighten up so the place keeps as much width as it can */
  .tour-panel .shows-widget .bit-widget.bit-layout-style-cards .bit-event.bit-card {
    gap: 10px;
  }

  .tour-panel .shows-widget .bit-widget.bit-layout-style-cards .bit-card-date .bit-vertical-date {
    width: 44px;
    min-width: 44px;
  }

  .tour-panel .shows-widget .bit-widget.bit-layout-style-cards .bit-card-city {
    font-size: 0.95rem;
  }

  .tour-panel .shows-widget .bit-widget.bit-layout-style-cards .bit-event .bit-offers {
    padding: 10px 14px;
    font-size: 0.75rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .album-cover-img {
    width: 200px;
    height: 200px;
  }

  .release-info h3 {
    font-size: 1.5rem;
  }

  .latest-release h2,
  .upcoming-shows h2,
  .featured-quotes h2,
  .band-members h2,
  .videos-grid h2 {
    font-size: 2rem;
  }

  .photos-container {
    padding: 0;
    gap: 0.5rem;
  }

  .photo-item img {
    height: 180px;
  }

  .videos-grid {
    gap: 1rem;
    padding: 0 10px;
  }

  .videos-grid iframe {
    height: 200px;
  }

  .videos-hero {
    padding: 80px 10px 40px;
  }

  .videos-hero h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 800px) {
  .photos-container {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 1rem;
  }

  .photos-hero .container {
    padding: 0;
  }

  .photo-item img {
    height: 250px;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 15px;
  }

  .videos-grid iframe {
    height: 280px;
  }

  .videos-hero {
    padding: 100px 15px 60px;
  }

  .videos-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }

  .lightbox-content {
    max-width: 100%;
    max-height: 100%;
  }

  .lightbox-close {
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   Store, music player and other dynamic parts (src/)
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  vertical-align: middle;
}

.muted {
  color: var(--muted);
}

.container-narrow {
  max-width: 820px;
}

:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 3px;
}

/* Cards fade up as they scroll into view (src/site/effects.ts) */
.fade-in {
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease;
}

.fade-in:not(.is-visible) {
  opacity: 0;
  transform: translateY(30px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  line-height: 1.4;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.75rem;
  white-space: nowrap;
}

.btn-block {
  display: flex;
  width: 100%;
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--highlight);
  cursor: pointer;
}

.link-button:hover {
  color: var(--purple);
}

/* Navigation: cart link next to the menu */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 2rem;
}

.nav-cart {
  position: relative;
  display: inline-flex;
  color: #ffffff;
  transition: color 0.3s ease;
}

.nav-cart:hover {
  color: var(--highlight);
}

.nav-cart .icon {
  width: 26px;
  height: 26px;
}

.nav-cart-count {
  position: absolute;
  top: -6px;
  right: -9px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--gradient);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}

/* Music and store pages: the plant shows behind the whole page, not just
   the heading, so the dark overlay from the home, about and contact heroes
   covers all of <main>. It runs corner to corner across the first screen,
   as on those heroes, and stays at its lighter end further down. */
body[data-page="music"] main,
body[data-page="merch"] main,
body[data-page="product"] main,
body[data-page="cart"] main,
body[data-page="checkout"] main {
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.8) 0,
    rgba(26, 26, 26, 0.8) calc((100vw + 100vh) * 0.7071)
  );
}

/* Page heading for the store and music pages */
.page-hero {
  padding: 140px 20px 50px;
  text-align: center;
}

.page-hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.page-hero .hero-subtitle {
  margin-bottom: 0;
}

.page-hero-compact {
  padding-bottom: 30px;
}

.about-text p + p {
  margin-top: 1.2em;
}

/* Badges, prices */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badges:empty {
  display: none;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--highlight);
  border-radius: 999px;
  color: var(--highlight);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge-muted {
  border-color: #555555;
  color: var(--muted);
}

.price {
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.currency {
  font-size: 0.72em;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.btn .currency {
  color: inherit;
  opacity: 0.85;
}

/* Loading placeholders */
.skeleton {
  background: linear-gradient(90deg, #151515 25%, #222222 50%, #151515 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  border-radius: 8px;
}

.skeleton-line {
  height: 14px;
  margin-bottom: 12px;
}

.skeleton-short {
  width: 45%;
}

.skeleton-title {
  height: 32px;
  width: 75%;
}

@keyframes skeleton-shimmer {
  to {
    background-position: -200% 0;
  }
}

.loading-message {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
}

/* Product grid */
.shop,
.featured-merch {
  padding: 40px 0 100px;
}

.featured-merch {
  padding-top: 80px;
  background: #111111;
}

.featured-merch h2,
.music-tracks h2,
.streaming h2,
.contact-form-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #ffffff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2rem;
}

.featured-merch .product-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 360px));
  justify-content: center;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease, opacity 0.6s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--highlight);
}

.product-card-image {
  display: block;
  aspect-ratio: 1 / 1;
  background: #151515;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.04);
}

.product-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1.5rem;
  text-align: center;
  font-weight: 600;
  color: var(--muted);
  background: var(--card-bg);
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

.product-card-title {
  font-size: 1.15rem;
  line-height: 1.35;
  /* Long product names: three lines, then an ellipsis */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.product-card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-card-title a:hover {
  color: var(--highlight);
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.product-card-footer .price {
  font-size: 1.1rem;
}

.product-card-skeleton .product-card-image {
  border-radius: 0;
}

.shop-empty,
.shop-fallback,
.empty-state {
  max-width: 560px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
  color: #dddddd;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.shop-fallback p,
.empty-state p {
  margin-bottom: 1.5rem;
  color: #cccccc;
}

.empty-state h1,
.empty-state h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

/* Product page */
.product-page {
  padding: 130px 0 100px;
  min-height: 75vh;
}

.cart-page,
.checkout-page,
.shop {
  min-height: 45vh;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--highlight);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--purple);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.product-gallery-main {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #151515;
  border-radius: 20px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-skeleton {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
}

.product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.product-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: #151515;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

.product-thumb:hover,
.product-thumb.is-active {
  opacity: 1;
  border-color: var(--highlight);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-title {
  font-size: 2rem;
  line-height: 1.2;
  text-wrap: balance;
}

.product-price {
  font-size: 1.6rem;
}

.stock-note {
  color: var(--highlight);
  font-weight: 500;
}

.product-section {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: #dddddd;
  line-height: 1.8;
}

.product-section h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.rich-text p + p {
  margin-top: 1em;
}

.rich-text a {
  color: var(--highlight);
}

.rich-text ul,
.rich-text ol {
  padding-left: 1.4rem;
}

.file-list {
  list-style: none;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #222222;
}

.product-section audio,
.product-section video,
.preview-image {
  width: 100%;
  margin: 0.5rem 0 1rem;
  border-radius: 12px;
}

.preview-name {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cccccc;
}

.field-row {
  display: flex;
  gap: 1rem;
}

.field input,
.field select,
.field textarea,
.newsletter-form input,
.input-prefix {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: #ffffff;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field select {
  appearance: none;
  padding-right: 40px;
  background-image: var(--select-arrow);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}

.field select option:disabled {
  color: #666666;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.newsletter-form input:focus,
.input-prefix:focus-within {
  outline: none;
  border-color: var(--highlight);
  box-shadow: 0 0 0 3px rgba(var(--highlight-rgb), 0.2);
}

.field [aria-invalid="true"],
.newsletter-form input[aria-invalid="true"],
.input-prefix:has([aria-invalid="true"]) {
  border-color: var(--danger);
}

.input-prefix {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 14px;
}

.input-prefix span {
  color: var(--muted);
}

.field .input-prefix input {
  border: 0;
  padding: 12px 0;
  background: transparent;
  box-shadow: none;
}

.field-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: -0.4rem;
}

.form-error {
  color: var(--danger);
  font-size: 0.9rem;
}

.form-message {
  font-size: 0.9rem;
  min-height: 1.4em;
  color: #cccccc;
}

.form-message:empty {
  min-height: 0;
}

.form-message-error {
  color: var(--danger);
}

.form-message-success {
  color: var(--success);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  color: #dddddd;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--highlight);
}

/* Quantity stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #0a0a0a;
  overflow: hidden;
  width: fit-content;
}

.qty-stepper button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 46px;
  border: 0;
  background: none;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.qty-stepper button:hover:not(:disabled) {
  color: var(--highlight);
  background: rgba(var(--highlight-rgb), 0.08);
}

.qty-stepper button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.qty-stepper .icon {
  width: 18px;
  height: 18px;
}

.field .qty-stepper input {
  width: 48px;
  padding: 0;
  border: 0;
  text-align: center;
  background: none;
  box-shadow: none;
  -moz-appearance: textfield;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-stepper-sm button {
  width: 34px;
  height: 34px;
}

.qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
}

.product-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.product-options .field-row .field:first-child:has(.qty-stepper) {
  flex: 0 0 auto;
}

/* Alerts */
.alert {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.alert .icon {
  margin-top: 1px;
}

.alert-info {
  background: rgba(var(--highlight-rgb), 0.08);
  border: 1px solid rgba(var(--highlight-rgb), 0.3);
  color: color-mix(in srgb, var(--highlight) 20%, #ffffff);
}

.alert-error {
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: #ffd0d0;
}

/* Dialogs */
.dialog {
  margin: auto;
  width: min(480px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  color: #ffffff;
  background: #111111;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.dialog[open] {
  animation: dialog-in 0.25s ease;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #222222;
}

.dialog-title {
  font-size: 1.2rem;
}

.dialog-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.dialog-close:hover {
  color: var(--highlight);
  background: rgba(255, 255, 255, 0.12);
}

.dialog-body {
  padding: 1.5rem;
}

.dialog-product,
.added-to-cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.dialog-product img,
.added-to-cart-item img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  background: #151515;
}

.dialog-product-title,
.added-to-cart-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.icon-success {
  color: var(--success);
}

.dialog-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* Toasts */
.toast-region {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(360px, calc(100% - 40px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: #151515;
  border: 1px solid var(--border);
  border-left: 4px solid var(--highlight);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  font-size: 0.92rem;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.toast.is-leaving {
  opacity: 0;
}

.toast-error {
  border-left-color: var(--danger);
}

.toast-success {
  border-left-color: var(--success);
}

.toast-body {
  flex: 1;
}

.toast-title {
  display: block;
  margin-bottom: 0.15rem;
}

.toast-action {
  color: var(--highlight);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.toast-close {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

/* Cart */
.cart-page,
.checkout-page {
  padding: 30px 0 100px;
}

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2.5rem;
  align-items: start;
}

.cart-list {
  list-style: none;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.cart-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto 110px 40px;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
}

.cart-item + .cart-item {
  border-top: 1px solid #222222;
}

.cart-item-image {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: #151515;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
}

.cart-item-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}

.cart-item-title:hover {
  color: var(--highlight);
}

.cart-item-total {
  text-align: right;
}

.cart-item-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.cart-item-remove:hover {
  color: var(--danger);
  background: rgba(255, 107, 107, 0.1);
}

.summary-card {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.summary-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.summary-total {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 1.2rem;
  font-weight: 700;
}

.summary-card .btn {
  margin-top: 0.5rem;
}

.summary-link {
  text-align: center;
  color: var(--highlight);
  text-decoration: none;
  font-size: 0.9rem;
}

.summary-link:hover {
  color: var(--purple);
}

.summary-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.summary-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  font-size: 0.9rem;
}

.summary-item-image {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #151515;
}

.summary-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.summary-item-qty {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: #444444;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.summary-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

/* Checkout */
.checkout-steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-bottom: 2rem;
  counter-reset: step;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #666666;
}

.checkout-steps li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  counter-increment: step;
}

.checkout-steps li + li::before {
  content: "";
  order: -2;
  width: 28px;
  height: 1px;
  background: #444444;
}

.checkout-steps li::after {
  content: counter(step);
  order: -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #444444;
  font-size: 0.75rem;
}

.checkout-steps li.is-active,
.checkout-steps li.is-complete {
  color: #ffffff;
}

.checkout-steps li.is-active::after {
  border-color: var(--highlight);
  background: var(--highlight);
}

.checkout-steps li.is-complete::after {
  border-color: var(--highlight);
  color: var(--highlight);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.checkout-form h2 {
  font-size: 1.25rem;
  margin-top: 0.5rem;
}

.checkout-form h2:first-child {
  margin-top: 0;
}

.checkout-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.checkout-recap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #222222;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #dddddd;
}

.stripe-field {
  padding: 13px 14px;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stripe-field.StripeElement--focus {
  border-color: var(--highlight);
  box-shadow: 0 0 0 3px rgba(var(--highlight-rgb), 0.2);
}

.stripe-field.StripeElement--invalid {
  border-color: var(--danger);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.checkout-layout.is-done {
  grid-template-columns: minmax(0, 1fr);
  max-width: 680px;
  margin: 0 auto;
}

.checkout-layout.is-done .checkout-summary {
  display: none;
}

.checkout-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: #dddddd;
}

.checkout-done h2 {
  font-size: 1.6rem;
  color: #ffffff;
}

.checkout-done a:not(.btn) {
  color: var(--highlight);
}

.checkout-done-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient);
  font-size: 2rem;
  font-weight: 700;
}

.checkout-done-icon .icon {
  width: 34px;
  height: 34px;
}

.checkout-done-warning {
  background: #b45309;
}

.checkout-reference {
  font-family: ui-monospace, Menlo, monospace;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: #0a0a0a;
}

/* Payment link (order.html) */
.payment-link {
  max-width: 560px;
  margin: 0 auto;
}

.payment-note {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--highlight);
  border-radius: 0 12px 12px 0;
  background: rgba(var(--highlight-rgb), 0.06);
  font-size: 0.85rem;
}

.payment-note-text {
  font-size: 1rem;
  color: #ffffff;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.payment-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.tip-options {
  display: flex;
  gap: 0.5rem;
}

/* Music page */
.music-tracks {
  padding: 60px 0 80px;
  background: #111111;
}

.track-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.track-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  padding: 0.75rem 1.25rem 0.75rem 1rem;
  font: inherit;
  color: #ffffff;
  text-align: left;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.track-row:hover {
  border-color: var(--highlight);
  transform: translateY(-2px);
}

.track-row.is-current {
  border-color: var(--highlight);
  box-shadow: 0 0 0 1px rgba(var(--highlight-rgb), 0.3), 0 10px 30px rgba(var(--highlight-rgb), 0.08);
}

.track-number {
  width: 1.75rem;
  color: #666666;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}

.track-row.is-current .track-number {
  color: var(--highlight);
}

.track-cover {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #151515;
}

.track-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.track-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-row.is-current .track-name {
  color: var(--highlight);
}

.track-artist {
  font-size: 0.85rem;
  color: var(--muted);
}

.track-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--highlight);
  color: #ffffff;
  transition: background 0.3s ease;
}

.track-row:hover .track-play-icon,
.track-row.is-current .track-play-icon {
  background: var(--gradient);
  border-color: transparent;
}

.streaming {
  padding: 80px 0 100px;
}

.stream-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.5rem;
}

/* The cards from the API sit in the grid as if the wrapper weren't there */
.stream-links {
  display: contents;
}

.stream-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 2rem 1.25rem;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease, opacity 0.6s ease;
}

.stream-card:hover {
  transform: translateY(-5px);
  border-color: var(--highlight);
}

.stream-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
  fill: var(--highlight);
}

.stream-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.stream-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Contact form */
.contact-form-section {
  padding: 80px 0 100px;
  background: #0a0a0a;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.contact-form .btn {
  align-self: flex-start;
}

/* Footer mailing list */
.footer-newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.footer-newsletter h2 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.footer-newsletter p {
  color: #cccccc;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex: 1;
  max-width: 480px;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  width: auto;
  border-radius: 999px;
  padding-left: 20px;
}

.newsletter-form .form-message {
  flex-basis: 100%;
  padding-left: 20px;
}

/* Lightbox: galleries and whole-image view for product photos */
.lightbox-close {
  font-family: inherit;
  line-height: 1;
}

.lightbox.is-contain .lightbox-content {
  padding: 70px 80px;
}

.lightbox.is-contain .lightbox-content img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 10000;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease;
}

.lightbox-nav:hover {
  color: var(--highlight);
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Music player (src/player/player.ts) */
body.has-player {
  padding-bottom: var(--player-height);
}

.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(var(--highlight-rgb), 0.2);
  animation: player-in 0.4s ease;
}

@keyframes player-in {
  from {
    transform: translateY(100%);
  }
}

.player-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 1200px;
  height: var(--player-height);
  margin: 0 auto;
  padding: 0 20px;
}

.player-cover {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: #151515;
  flex-shrink: 0;
}

.player-meta {
  width: 200px;
  min-width: 0;
  flex-shrink: 0;
}

.player-title {
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-artist {
  font-size: 0.8rem;
  color: var(--muted);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #cccccc;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.player-icon-btn:hover,
.player-icon-btn[aria-expanded="true"] {
  color: var(--highlight);
  background: rgba(255, 255, 255, 0.06);
}

.player-icon-btn .icon {
  width: 22px;
  height: 22px;
}

.player-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gradient);
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-play:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(var(--highlight-rgb), 0.35);
}

.player-play .icon {
  width: 22px;
  height: 22px;
}

.player.is-loading .player-play {
  animation: player-pulse 1s ease infinite alternate;
}

@keyframes player-pulse {
  to {
    opacity: 0.6;
  }
}

.player-timeline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.player-time {
  width: 2.6rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.player-range {
  --fill: 0%;
  flex: 1;
  height: 4px;
  appearance: none;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--highlight), #a855f7) 0 0 / var(--fill) 100% no-repeat, #333333;
  cursor: pointer;
}

.player-range::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(var(--highlight-rgb), 0.35);
}

.player-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
}

.player-extra {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.5rem;
  color: #cccccc;
}

.player-volume .player-range {
  width: 90px;
  flex: none;
}

.player-progress-line {
  display: none;
}

.player-playlist {
  position: absolute;
  right: max(20px, calc((100% - 1200px) / 2 + 20px));
  bottom: calc(100% + 12px);
  width: min(380px, calc(100% - 40px));
  max-height: min(420px, 60vh);
  overflow: auto;
  background: #111111;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.player-playlist-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.75rem 0.75rem 1.25rem;
  background: #111111;
  border-bottom: 1px solid #222222;
  font-weight: 600;
}

.player-playlist-items {
  list-style: none;
  padding: 0.5rem;
}

.player-playlist-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 12px;
  background: none;
  color: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.player-playlist-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.player-playlist-item img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.player-playlist-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.player-playlist-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-playlist-artist {
  font-size: 0.8rem;
  color: var(--muted);
}

.player-playlist-item.is-current .player-playlist-name {
  color: var(--highlight);
}

/* Animated bars for the track that's playing */
.player-mini-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.player-mini-bars i {
  width: 3px;
  height: 100%;
  border-radius: 1px;
  background: var(--highlight);
  animation: bars 0.9s ease-in-out infinite alternate;
}

.player-mini-bars i:nth-child(2) {
  animation-delay: -0.3s;
}

.player-mini-bars i:nth-child(3) {
  animation-delay: -0.6s;
}

@keyframes bars {
  from {
    transform: scaleY(0.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .player-mini-bars i {
    animation: none;
  }
}

/* Minimised player */
.player-mini {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1500;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 2px solid var(--highlight);
  border-radius: 50%;
  overflow: hidden;
  background: #111111;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease;
}

.player-mini:hover {
  transform: scale(1.06);
}

.player-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-mini .player-mini-bars {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  height: auto;
  background: rgba(0, 0, 0, 0.45);
}

.player-mini .player-mini-bars i {
  height: 18px;
}

.player-mini.is-playing .player-mini-bars {
  display: flex;
}

/* Store and player on smaller screens */
@media (max-width: 1000px) {
  .player-volume {
    display: none;
  }

  .player-meta {
    width: 150px;
  }

  .cart-layout,
  .checkout-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .summary-card {
    position: static;
  }

  .checkout-summary {
    order: -1;
  }
}

@media (max-width: 768px) {
  :root {
    --player-height: 68px;
  }

  .nav-actions {
    margin-left: auto;
    gap: 1.25rem;
  }

  .page-hero {
    padding: 110px 20px 36px;
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

  .featured-merch h2,
  .music-tracks h2,
  .streaming h2,
  .contact-form-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .featured-merch .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .product-card-body {
    padding: 1rem;
    gap: 0.5rem;
  }

  .product-card-title {
    font-size: 1rem;
  }

  .product-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .product-page {
    padding-top: 100px;
  }

  .product-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .product-gallery {
    position: static;
  }

  .product-title {
    font-size: 1.6rem;
  }

  .field-row {
    flex-direction: column;
  }

  .product-options .field-row {
    flex-direction: row;
  }

  .cart-item {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    grid-template-areas:
      "image info remove"
      "image qty total";
    gap: 0.5rem 1rem;
    padding: 1rem;
  }

  .cart-item-image {
    grid-area: image;
    width: 72px;
    height: 72px;
    align-self: start;
  }

  .cart-item-info {
    grid-area: info;
  }

  .cart-item-qty {
    grid-area: qty;
  }

  .cart-item-total {
    grid-area: total;
  }

  .cart-item-remove {
    grid-area: remove;
    align-self: start;
    justify-self: end;
    width: 36px;
    height: 36px;
  }

  .checkout-form,
  .contact-form {
    padding: 1.5rem;
  }

  .checkout-steps li + li::before {
    width: 14px;
  }

  .footer-newsletter {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1.5rem;
  }

  .newsletter-form {
    max-width: none;
  }

  .newsletter-form .btn {
    flex: 1 1 100%;
  }

  /* Compact player: progress along the top edge */
  .player-inner {
    gap: 0.75rem;
    padding: 0 12px;
  }

  .player-cover {
    width: 44px;
    height: 44px;
  }

  .player-meta {
    flex: 1;
    width: auto;
  }

  .player-timeline,
  .player-controls [data-action="previous"],
  .player-extra [data-action="minimize"] {
    display: none;
  }

  .player-controls {
    gap: 0.25rem;
  }

  .player-play {
    width: 42px;
    height: 42px;
  }

  .player-progress-line {
    display: block;
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
  }

  .player-progress-line span {
    display: block;
    height: 100%;
    background: var(--gradient);
  }

  .player-playlist {
    right: 12px;
    width: calc(100% - 24px);
  }

  .lightbox.is-contain .lightbox-content {
    padding: 70px 12px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 24px;
    margin-top: 0;
  }

  .toast-region {
    top: auto;
    bottom: calc(var(--player-height) + 16px);
    left: 20px;
    right: 20px;
    width: auto;
  }
}

@media (max-width: 480px) {
  .product-grid,
  .featured-merch .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  /* Two columns: keep the home page's featured products to one row */
  .featured-merch .product-card:nth-child(n + 3) {
    display: none;
  }

  .product-card-footer .btn {
    padding: 8px 10px;
  }

  .stream-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .stream-card {
    padding: 1.5rem 1rem;
  }

  .track-row {
    gap: 0.75rem;
    padding: 0.6rem 0.9rem 0.6rem 0.75rem;
  }

  .track-number {
    display: none;
  }

  .track-cover {
    width: 48px;
    height: 48px;
  }

  .checkout-actions .btn {
    flex: 1;
  }
}
