:root {
  color-scheme: dark;
  --color-bg: #060605;
  --color-surface: #0a0a09;
  --color-surface-strong: #11110f;
  --color-text: #f3f1ec;
  --color-muted: #c9c7c1;
  --color-subtle: #8f8d87;
  --color-faint: #7e7c76;
  --color-line: rgba(255, 255, 255, 0.1);
  --color-accent: #a80000;
  --sidebar-width: 236px;
  --content-pad: 6vw;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-mono);
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

::selection {
  background: var(--color-accent);
  color: var(--color-text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid #ff3a3a;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--color-text);
  color: var(--color-bg);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  min-height: 100vh;
  overflow-x: clip;
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background-image: url("../images/ui/noise.svg");
  opacity: 0.06;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 45;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 28px;
  border-right: 1px solid var(--color-line);
  background: var(--color-surface);
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 170px;
  height: auto;
}

.side-nav,
.mobile-nav-links {
  display: flex;
  flex-direction: column;
}

.side-nav {
  gap: 22px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-left: 2px solid transparent;
  color: var(--color-muted);
  font-size: 13px;
  letter-spacing: 0.14em;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, padding-left 0.25s ease, text-shadow 0.25s ease;
}

.side-nav a::before {
  width: 14px;
  height: 1px;
  background: #3a3a38;
  content: "";
}

.side-nav a:hover {
  padding-left: 16px;
  color: var(--color-accent);
  text-shadow: 0 0 12px rgba(168, 0, 0, 0.85);
}

.side-nav a[aria-current] {
  padding-left: 16px;
  border-left-color: var(--color-accent);
  background: linear-gradient(90deg, rgba(168, 0, 0, 0.24), transparent);
  color: var(--color-text);
  font-weight: 700;
  text-shadow: 0 0 14px rgba(168, 0, 0, 0.9);
}

.side-nav a[aria-current]::before {
  background: var(--color-accent);
  box-shadow: 0 0 10px rgba(168, 0, 0, 0.9);
}

.sidebar-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hazard-line {
  height: 1px;
  background: repeating-linear-gradient(135deg, transparent, transparent 6px, rgba(255, 255, 255, 0.18) 6px, rgba(255, 255, 255, 0.18) 7px);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link,
.outline-button {
  border: 1px solid #3a3a38;
  color: var(--color-muted);
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.social-link {
  padding: 7px 9px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.social-link:hover,
.outline-button:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 0 14px rgba(168, 0, 0, 0.6);
}

.copyright-small {
  color: var(--color-faint);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.mobile-header,
.mobile-nav {
  display: none;
}

.main-content {
  margin-left: var(--sidebar-width);
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-media,
.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media,
.error-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 20%;
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(5, 5, 4, 0.15) 0%, rgba(5, 5, 4, 0) 30%, rgba(5, 5, 4, 0.35) 60%, rgba(5, 5, 4, 0.96) 92%, #050504 100%);
}

.live-marker {
  position: absolute;
  top: 26px;
  right: var(--content-pad);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-muted);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.live-dot {
  color: var(--color-accent);
  animation: blink 1.6s infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 1000px;
  flex-direction: column;
  gap: 28px;
  padding: 0 var(--content-pad) 64px;
}

.hero h1,
.section-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 0.9;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(46px, 8vw, 120px);
  line-height: 0.86;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.hero-copy {
  max-width: 560px;
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(13px, 1.4vw, 16px);
  letter-spacing: 0.06em;
  line-height: 1.7;
}

.hero-actions,
.section-heading,
.player-row,
.footer,
.dialog-heading,
.cart-item,
.quantity-control {
  display: flex;
  align-items: center;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 26px;
}

.primary-button,
.outline-button,
.text-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.primary-button {
  gap: 14px;
  padding: 18px 30px;
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: var(--color-text);
  font-size: 14px;
  letter-spacing: 0.12em;
  transition: gap 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.primary-button:hover {
  gap: 22px;
  background: var(--color-bg);
  box-shadow: 0 0 28px rgba(168, 0, 0, 0.85);
}

.next-show {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--color-subtle);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.next-show strong {
  color: var(--color-text);
  font-weight: 400;
}

.scroll-hint,
.established {
  position: absolute;
  bottom: 22px;
  z-index: 2;
  color: var(--color-subtle);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.scroll-hint {
  left: var(--content-pad);
}

.established {
  right: var(--content-pad);
}

.hazard-bar {
  height: 6px;
  background: repeating-linear-gradient(135deg, #0a0a09, #0a0a09 10px, #171716 10px, #171716 20px);
}

.content-section {
  padding: 110px var(--content-pad) 90px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-heading {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(38px, 6vw, 84px);
}

.section-link,
.text-button {
  gap: 8px;
  color: var(--color-subtle);
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: color 0.25s ease, gap 0.25s ease, text-shadow 0.25s ease;
}

.section-link:hover,
.text-button:hover {
  gap: 14px;
  color: var(--color-accent);
  text-shadow: 0 0 14px rgba(168, 0, 0, 0.85);
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
}

.release-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 48px;
  align-items: center;
}

.release-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-surface);
}

.release-cover img,
.media-card img,
.product-image,
.member-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.release-cover picture,
.product-image-wrap picture,
.member-card picture {
  display: block;
  width: 100%;
  height: 100%;
}

.release-cover img {
  filter: grayscale(0.4) contrast(1.1) brightness(0.85);
}

.release-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.eyebrow {
  color: var(--color-faint);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.release-title {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
}

.player-row {
  gap: 20px;
}

.play-button {
  width: 56px;
  height: 56px;
  flex: none;
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.play-button:hover {
  background: transparent;
  color: var(--color-accent);
  box-shadow: 0 0 24px rgba(168, 0, 0, 0.6);
}

.player-track {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

.progress-range {
  width: 100%;
  height: 4px;
  margin: 0;
  border: 0;
  border-radius: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.time-row {
  display: flex;
  justify-content: space-between;
  color: var(--color-subtle);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.card-grid,
.member-grid {
  display: grid;
  gap: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.media-card,
.product-card {
  background: var(--color-bg);
}

.media-card {
  display: flex;
  flex-direction: column;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.media-card:hover {
  color: var(--color-accent);
  text-shadow: 0 0 14px rgba(168, 0, 0, 0.85);
}

.media-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--color-surface);
}

.media-card img {
  filter: grayscale(1) brightness(0.55) contrast(1.1);
  transition: filter 0.35s ease, transform 0.5s ease;
}

.media-card:hover img {
  filter: grayscale(1) brightness(0.8) contrast(1.15);
  transform: scale(1.06);
}

.play-mark {
  position: absolute;
  inset: 50% auto auto 50%;
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(6, 6, 5, 0.35);
  color: var(--color-text);
  transform: translate(-50%, -50%);
}

.media-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  background: rgba(6, 6, 5, 0.7);
  color: var(--color-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.card-caption {
  display: flex;
  justify-content: space-between;
  padding: 20px 16px 8px;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-image-wrap {
  overflow: hidden;
  aspect-ratio: 1;
  background: #000;
}

.product-image {
  filter: brightness(0.9);
  transition: transform 0.5s ease, filter 0.35s ease;
}

.product-card:hover .product-image {
  filter: brightness(1.05);
  transform: scale(1.05);
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}

.product-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-name {
  font-size: 14px;
  letter-spacing: 0.04em;
}

.product-price {
  color: var(--color-faint);
  font-size: 12px;
}

.outline-button {
  gap: 8px;
  padding: 10px 16px;
  background: none;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.tour-list {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tour-row {
  display: grid;
  grid-template-columns: 130px minmax(190px, 1fr) minmax(110px, auto) auto;
  gap: 22px;
  align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 2px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, padding-left 0.3s ease;
}

.tour-row:hover {
  padding-left: 12px;
  border-left-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.02);
}

.tour-date {
  color: var(--color-text);
  font-size: 16px;
  letter-spacing: 0.03em;
}

.tour-place {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tour-city {
  font-size: 15px;
}

.tour-venue,
.tour-support {
  color: var(--color-subtle);
  font-size: 12px;
}

.member-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.member-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-surface);
  transition: box-shadow 0.4s ease;
}

.member-card img {
  filter: brightness(0.6) saturate(0);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.member-card:hover {
  box-shadow: inset 0 0 0 2px rgba(168, 0, 0, 0.9);
}

.member-card:hover img {
  filter: brightness(0.95) saturate(1);
  transform: scale(1.08);
}

.member-caption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  background: linear-gradient(to top, rgba(5, 5, 4, 0.85), rgba(5, 5, 4, 0));
}

.member-name {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.member-role {
  color: var(--color-subtle);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.footer {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 60px var(--content-pad);
}

.footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--color-faint);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.footer-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.footer-link:hover {
  color: var(--color-accent);
  text-shadow: 0 0 14px rgba(168, 0, 0, 0.85);
}

.modal {
  width: min(640px, calc(100% - 32px));
  max-height: min(86vh, 820px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--color-surface);
  color: var(--color-text);
}

.modal::backdrop {
  background: rgba(5, 5, 4, 0.88);
  backdrop-filter: blur(4px);
}

.dialog-content {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 40px;
}

.dialog-heading {
  justify-content: space-between;
  gap: 20px;
}

.dialog-heading h2 {
  margin: 0;
  font-size: 26px;
  text-transform: uppercase;
}

.icon-button {
  padding: 8px 12px;
  border: 1px solid #3a3a38;
  background: none;
  color: var(--color-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.dialog-note,
.empty-state,
.status-note {
  margin: 0;
  color: var(--color-subtle);
  font-size: 12px;
  line-height: 1.7;
}

.status-note:empty {
  display: none;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.cart-item {
  gap: 16px;
  padding: 16px;
  background: var(--color-surface);
}

.cart-item-copy {
  display: flex;
  min-width: 130px;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.cart-item-price {
  color: var(--color-faint);
  font-size: 11px;
}

.quantity-control {
  gap: 10px;
}

.quantity-button {
  width: 30px;
  height: 30px;
  border: 1px solid #3a3a38;
  background: none;
  color: var(--color-muted);
  cursor: pointer;
}

.quantity-button:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.cart-total,
.ticket-summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15px;
  letter-spacing: 0.06em;
}

.privacy-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.75;
}

.privacy-copy h3,
.privacy-copy p {
  margin: 0;
}

.privacy-copy h3 {
  color: var(--color-text);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.privacy-updated {
  color: var(--color-subtle);
  font-size: 12px;
}

.error-page {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.error-media,
.error-background,
.error-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.error-background {
  object-fit: cover;
  filter: brightness(0.7);
}

.error-overlay {
  background: linear-gradient(to top, rgba(5, 5, 4, 0.92), rgba(5, 5, 4, 0.55) 45%, rgba(5, 5, 4, 0.35));
}

.error-content {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 900px;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.error-label {
  color: var(--color-subtle);
  font-size: 12px;
  letter-spacing: 0.35em;
}

.error-code {
  margin: 0;
  font-size: clamp(90px, 16vw, 220px);
  line-height: 0.85;
}

.error-message {
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(18px, 2.4vw, 28px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

@media (max-width: 860px) {
  .sidebar {
    display: none;
  }

  .mobile-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    display: flex;
    height: 60px;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-surface);
  }

  .mobile-header img {
    display: block;
    width: 96px;
    height: auto;
  }

  .menu-button {
    padding: 8px 12px;
    border: 1px solid #3a3a38;
    background: none;
    color: var(--color-text);
    cursor: pointer;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .mobile-nav {
    position: fixed;
    inset: 60px 0 0;
    z-index: 55;
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 32px 24px;
    background: var(--color-bg);
  }

  .mobile-nav-links {
    gap: 26px;
  }

  .mobile-nav-links a {
    padding: 12px 14px;
    border-left: 2px solid transparent;
    color: var(--color-muted);
    font-size: 16px;
    letter-spacing: 0.14em;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  }

  .mobile-nav-links a[aria-current] {
    border-left-color: var(--color-accent);
    background: linear-gradient(90deg, rgba(168, 0, 0, 0.28), transparent);
    color: var(--color-text);
    font-weight: 700;
    text-shadow: 0 0 14px rgba(168, 0, 0, 0.9);
  }

  .main-content {
    margin-left: 0;
    padding-top: 60px;
  }

  .hero {
    min-height: calc(100svh - 60px);
  }

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

  .release-cover {
    max-width: 420px;
  }

  .tour-row {
    grid-template-columns: 1fr auto;
  }

  .tour-place,
  .tour-support {
    grid-column: 1;
  }

  .tour-row .outline-button {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
}

@media (max-width: 600px) {
  :root {
    --content-pad: 24px;
  }

  .content-section {
    padding-top: 82px;
    padding-bottom: 72px;
  }

  .hero-content {
    padding-bottom: 82px;
  }

  .scroll-hint,
  .established {
    display: none;
  }

  .card-grid,
  .member-grid {
    grid-template-columns: 1fr;
  }

  .product-meta,
  .cart-item,
  .footer {
    align-items: flex-start;
  }

  .product-meta,
  .footer {
    flex-direction: column;
  }

  .cart-item {
    flex-wrap: wrap;
  }

  .dialog-content {
    padding: 28px 22px;
  }

  .tour-row {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .tour-row .outline-button {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .noise-layer,
  .hero-overlay,
  .error-overlay,
  .hazard-bar,
  .hazard-line {
    display: none;
  }

  .primary-button,
  .outline-button,
  .icon-button,
  .menu-button,
  .quantity-button {
    border: 1px solid ButtonText;
  }
}
