:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --fg: #ffffff;
  --fg-muted: #999999;
  --fg-dim: #666666;
  --border: rgba(255, 255, 255, 0.12);
  --accent: #ffffff;
  --error: #ff4747;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;

  --max-width: 480px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- SHOW ---------- */

.show {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: var(--max-width);
  margin: 0 auto;
}

.show-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #1a1a1a;
  background-image: var(--show-image,
    radial-gradient(circle at 20% 20%, rgba(255, 90, 0, 0.4), transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(120, 0, 255, 0.35), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(0, 80, 200, 0.3), transparent 50%),
    linear-gradient(135deg, #0a0a0a 0%, #1f1f1f 100%)
  );
  background-size: cover;
  background-position: center;
  position: relative;
}

.show-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}

.show-content {
  padding: var(--space-6) var(--space-5) 0;
  margin-top: -32px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

/* Sections below the hero — need their own horizontal padding on mobile
   since they used to inherit from .show-content. */
.show-about,
.show-media,
.show-footer {
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.show-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-3);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.show-sep {
  opacity: 0.5;
}

.show-title {
  margin: 0 0 var(--space-2);
  font-size: clamp(40px, 11vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.show-venue {
  margin: 0 0 var(--space-7);
  font-size: 17px;
  font-weight: 500;
  color: var(--fg-muted);
}

.show-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  padding: var(--space-5) 0;
  margin-bottom: var(--space-6);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.detail-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.detail-value {
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
}

.btn-buy {
  width: 100%;
  padding: 18px 24px;
  background: var(--fg);
  color: var(--bg);
  border: 0;
  border-radius: 100px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  min-height: 56px;
  margin-top: auto;
}

.btn-buy:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.show-disclaimer {
  margin: var(--space-4) 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--fg-dim);
}

/* ---------- ABOUT ---------- */

.show-about {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.about-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.about-label {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.about-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
}

.about-text + .about-text {
  margin-top: var(--space-3);
}

.about-venue {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.about-venue-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
}

.about-venue-address {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ---------- MEDIA (Spotify + YouTube) ---------- */

.show-media {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.media-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.media-label {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.media-spotify iframe {
  display: block;
  width: 100%;
  height: 352px;
  border: 0;
  border-radius: 12px;
}

.media-youtube {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
}

.media-youtube iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- FOOTER ---------- */

.show-footer {
  margin-top: var(--space-7);
  padding: var(--space-6) 0 calc(var(--space-7) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  transition: background 0.15s ease, transform 0.15s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.social-link:active {
  transform: scale(0.97);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-credit {
  margin: 0;
  font-size: 11px;
  color: var(--fg-dim);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ---------- MODAL ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  background: var(--bg-elevated);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: var(--space-6) var(--space-5) calc(var(--space-6) + env(safe-area-inset-bottom));
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.modal-title {
  margin: 0 0 var(--space-2);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.modal-sub {
  margin: 0 0 var(--space-5);
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.45;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.email-form input[type="email"],
.email-form input[type="tel"] {
  width: 100%;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease;
  min-height: 56px;
  -webkit-appearance: none;
  appearance: none;
}

.email-form input::placeholder {
  color: var(--fg-dim);
}

.email-form input[type="email"]:focus,
.email-form input[type="tel"]:focus {
  outline: none;
  border-color: var(--fg);
  background: rgba(255, 255, 255, 0.1);
}

.email-form input[type="email"]:invalid:not(:placeholder-shown) {
  border-color: var(--error);
}

.btn-submit {
  width: 100%;
  padding: 18px 24px;
  background: var(--fg);
  color: var(--bg);
  border: 0;
  border-radius: 100px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-submit:active {
  transform: scale(0.98);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-loading[hidden] {
  display: none;
}

.spinner {
  animation: spin 0.8s linear infinite;
}

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

.form-error {
  margin: var(--space-1) 0 0;
  font-size: 13px;
  color: var(--error);
}

.form-privacy {
  margin: var(--space-2) 0 0;
  font-size: 12px;
  color: var(--fg-dim);
  text-align: center;
  line-height: 1.4;
}

/* ---------- DESKTOP ---------- */

@media (min-width: 720px) {
  .show {
    max-width: 1100px;
    min-height: auto;
    padding: var(--space-8) var(--space-5) 0;
  }

  /* HERO: 2-column on desktop (image left, main info right) */
  .show-hero {
    display: flex;
    flex-direction: row;
    gap: var(--space-7);
    align-items: stretch;
    margin-bottom: var(--space-8);
  }

  .show-image {
    flex: 1;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    align-self: stretch;
    max-width: 520px;
  }

  .show-image::after {
    /* Image is contained on desktop — no need for the bottom fade overlay */
    display: none;
  }

  .show-content {
    flex: 1;
    margin-top: 0;
    padding: 0;
    justify-content: center;
  }

  .show-title {
    font-size: clamp(44px, 4.2vw, 60px);
  }

  /* BELOW-FOLD: about/media/footer constrained narrower for readability,
     centered within the wider .show container */
  .show-about,
  .show-media,
  .show-footer {
    max-width: 640px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .modal {
    align-items: center;
  }

  .modal-content {
    border-radius: 20px;
    max-width: 440px;
    margin: 0 var(--space-5);
    animation: scaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes scaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
  }
}

/* ---------- ACCESSIBILITY ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}
