/* ============================================================
   THE CIPHER — YBM Artist Pages Template 6
   style.css
   Mobile-first · Breakpoints: 768px (tablet), 1024px (desktop)
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Colors */
  --color-bg:        #0D3B38;
  --color-bg-dark:   #081f1d;
  --color-bg-darker: #050e0d;
  --color-card:      #111111;
  --color-card-alt:  #0c2523;
  --color-lime:      #C8F135;
  --color-lime-dark: #a8ce1a;
  --color-white:     #FFFFFF;
  --color-muted:     rgba(255,255,255,0.55);
  --color-border:    rgba(200,241,53,0.18);
  --color-border-sub: rgba(255,255,255,0.08);

  /* Typography */
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;

  /* Layout */
  --nav-h:        60px;
  --radio-h:      44px;
  --max-w:        1400px;
  --content-max:  640px;

  /* Transitions */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  /* Safe areas (iOS) */
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top:    env(safe-area-inset-top, 0px);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;  /* iOS momentum */
  overflow-y: auto;                   /* Android: pair with -webkit-overflow-scrolling */
  overscroll-behavior-x: none;        /* prevent swipe-back nav on Android Chrome */
}

img, svg {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: var(--font-mono);
  font-size: 16px; /* prevents iOS zoom */
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--color-lime);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-lime);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  opacity: 0.8;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.04em;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.section-header {
  margin-bottom: var(--space-lg);
}

.section-rule {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-sm);
}

/* ============================================================
   BUTTON SYSTEM
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  border-radius: 2px;
  -webkit-transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), -webkit-transform 0.15s var(--ease);
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.15s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation; /* eliminates 300ms tap delay on Android Chrome */
  -webkit-tap-highlight-color: transparent; /* removes grey flash on Android tap */
}

.btn:active {
  -webkit-transform: scale(0.97);
  transform: scale(0.97);
}

.btn--lime {
  background: var(--color-lime);
  color: #111;
  border: 2px solid var(--color-lime);
}

.btn--lime:hover {
  background: var(--color-lime-dark);
  border-color: var(--color-lime-dark);
}

.btn--lime:active {
  background: #9db818;
  border-color: #9db818;
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn--outline:hover {
  border-color: var(--color-lime);
  color: var(--color-lime);
}

.btn--sm {
  min-height: 40px;
  padding: 8px 20px;
  font-size: 0.95rem;
}

.btn--xs {
  min-height: 36px;
  min-width: 60px;
  padding: 6px 14px;
  font-size: 0.9rem;
}

/* ============================================================
   SECTION 1: RADIO BAR
   ============================================================ */
.radio-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--radio-h);
  background: var(--color-bg-dark);
  border-bottom: 1px solid var(--color-lime);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0 var(--space-sm);
  -webkit-transition: -webkit-transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
  will-change: transform;
}

.radio-bar.is-hidden {
  -webkit-transform: translateY(-100%);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.radio-bar__icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.radio-bar__text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-lime);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.radio-bar__text strong {
  font-weight: 600;
}

.radio-bar__close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-lime);
  font-size: 1rem;
  border-radius: 2px;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.radio-bar__close:hover {
  color: var(--color-white);
}

/* ============================================================
   SECTION 2: NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: var(--radio-h);
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: var(--color-bg-dark);
  border-bottom: 1px solid var(--color-border-sub);
  -webkit-transition: top 0.35s var(--ease-out);
  transition: top 0.35s var(--ease-out);
  will-change: top;
}

/* When radio bar hidden, nav slides up */
body.radio-closed .nav {
  top: 0;
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0 var(--space-sm);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-icon {
  flex-shrink: 0;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--color-white);
}

.nav__ybm-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-bg-dark);
  background: var(--color-lime);
  padding: 2px 5px;
  border-radius: 2px;
  align-self: flex-start;
  margin-top: 2px;
}

/* Desktop Nav Links */
.nav__links {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__link {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  text-transform: uppercase;
  transition: color 0.2s;
  border-radius: 2px;
  white-space: nowrap;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--color-lime);
}

.nav__link--cta {
  background: var(--color-lime);
  color: #111;
  font-weight: 600;
  margin-left: 8px;
}

.nav__link--cta:hover {
  background: var(--color-lime-dark);
  color: #111;
}

/* Cart button */
.nav__cart-btn {
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 48px;
  height: 48px;
  color: var(--color-muted);
  border-radius: 2px;
  transition: color 0.2s;
  flex-shrink: 0;
}

.nav__cart-btn:hover {
  color: var(--color-lime);
}

.nav__cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--color-lime);
  color: #111;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s;
}

.nav__cart-count.has-items {
  opacity: 1;
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  margin-left: auto;
  border-radius: 2px;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 1px;
  -webkit-transition: -webkit-transform 0.3s var(--ease), opacity 0.3s var(--ease), width 0.3s var(--ease);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), width 0.3s var(--ease);
  -webkit-transform-origin: center;
  transform-origin: center;
}

.nav__hamburger.is-open span:nth-child(1) {
  -webkit-transform: translateY(7px) rotate(45deg);
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
}

.nav__hamburger.is-open span:nth-child(3) {
  -webkit-transform: translateY(-7px) rotate(-45deg);
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 950;
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.mobile-drawer.is-open .mobile-drawer__overlay {
  opacity: 1;
}

.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--color-bg-dark);
  border-left: 1px solid var(--color-border);
  padding: var(--space-lg) var(--space-md);
  -webkit-transform: translateX(100%);
  transform: translateX(100%);
  -webkit-transition: -webkit-transform 0.35s var(--ease-out);
  transition: transform 0.35s var(--ease-out);
  will-change: transform;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-bottom: calc(var(--space-lg) + var(--safe-bottom));
  overflow-y: auto;                   /* Android: pair with -webkit-overflow-scrolling */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;       /* prevent body scroll bleed on Android */
}

.mobile-drawer.is-open .mobile-drawer__panel {
  -webkit-transform: translateX(0);
  transform: translateX(0);
}

.mobile-drawer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 1.2rem;
  border-radius: 2px;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mobile-drawer__close:hover {
  color: var(--color-white);
}

.mobile-drawer__links {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer__link {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  border-radius: 2px;
  -webkit-transition: color 0.2s, background 0.2s;
  transition: color 0.2s, background 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mobile-drawer__link:hover,
.mobile-drawer__link:focus-visible {
  color: var(--color-lime);
  background: rgba(200,241,53,0.06);
}

.mobile-drawer__link--cta {
  color: var(--color-lime);
  border: 1px solid var(--color-lime);
  margin-top: var(--space-sm);
}

.mobile-drawer__link--cta:hover {
  background: rgba(200,241,53,0.1);
}

.mobile-drawer__cart {
  margin-top: auto;
}

.mobile-drawer__cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-muted);
  border: 1px solid var(--color-border-sub);
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.mobile-drawer__cart-btn:hover {
  color: var(--color-lime);
  border-color: var(--color-lime);
}

.mobile-drawer__cart-btn span {
  background: var(--color-lime);
  color: #111;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

/* ============================================================
   SECTION 3: HERO
   ============================================================ */
.hero {
  min-height: 100dvh;
  min-height: 100vh; /* fallback */
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--radio-h) + var(--nav-h));
}

body.radio-closed .hero {
  padding-top: var(--nav-h);
}

/* Mobile: photo on top */
.hero__photo-pane {
  width: 100%;
  height: 60vw;
  min-height: 260px;
  max-height: 380px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.hero__photo-bg {
  width: 100%;
  height: 100%;
}

.hero__photo-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero__photo-placeholder svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content pane */
.hero__content-pane {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--color-bg);
  padding: var(--space-lg) var(--space-sm);
}

.hero__content {
  width: 100%;
  max-width: var(--content-max);
}

.hero__genre {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-lime);
  margin-bottom: var(--space-sm);
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.hero__tagline {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.hero__typing-line {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-lime);
  opacity: 0.8;
  margin-bottom: var(--space-lg);
  min-height: 22px;
}

.hero__typing-prefix {
  opacity: 0.5;
}

.hero__typing-text {
  /* Typed text injected by JS */
}

.hero__cursor {
  display: inline-block;
  -webkit-animation: blink-cursor 0.8s step-end infinite;
  animation: blink-cursor 0.8s step-end infinite;
  font-weight: 200;
  opacity: 0.7;
}

@-webkit-keyframes blink-cursor {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 0; }
}

@keyframes blink-cursor {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 0; }
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ============================================================
   SECTION 4: MUSIC STORE
   ============================================================ */
.music-store {
  background: var(--color-bg-dark);
  padding: var(--space-xl) 0;
}

.music-store__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* Album feature */
.album-feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.album-feature__cover {
  width: 200px;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
}

.album-feature__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-lime);
  margin-bottom: var(--space-xs);
  opacity: 0.7;
}

.album-feature__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.04em;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 8px;
}

.album-feature__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}

.album-feature__desc {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: var(--space-md);
}

.album-feature__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.album-feature__price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-muted);
}

/* Track list */
.track-list {
  width: 100%;
}

.track-list__header {
  display: grid;
  grid-template-columns: 36px 1fr 60px 60px 72px;
  gap: var(--space-sm);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border-sub);
  margin-bottom: 4px;
}

.track-list__duration-col,
.track-list__price-col {
  display: none;
}

.track-row {
  display: grid;
  grid-template-columns: 36px 1fr 72px;
  gap: var(--space-sm);
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border-sub);
  transition: background 0.2s;
}

.track-row:hover {
  background: rgba(200,241,53,0.04);
}

.track-row__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-lime);
  opacity: 0.6;
  font-weight: 500;
}

.track-row__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track-row__title strong {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-white);
}

.track-row__title em {
  font-style: normal;
  font-size: 12px;
  color: var(--color-muted);
}

.track-row__duration,
.track-row__price {
  display: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-muted);
  text-align: right;
}

.track-row__add {
  justify-self: end;
  -webkit-transition: background 0.2s, color 0.2s, -webkit-transform 0.15s;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.track-row__add.is-added {
  background: transparent;
  color: var(--color-lime);
  border: 1px solid var(--color-lime);
}

/* ============================================================
   CART PANEL
   ============================================================ */
.cart-panel {
  position: fixed;
  inset: 0;
  z-index: 980;
}

.cart-panel[hidden] {
  display: none;
}

.cart-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.cart-panel.is-open .cart-panel__overlay {
  opacity: 1;
}

.cart-panel__drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 95vw);
  background: var(--color-card);
  border-left: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  -webkit-transform: translateX(100%);
  transform: translateX(100%);
  -webkit-transition: -webkit-transform 0.35s var(--ease-out);
  transition: transform 0.35s var(--ease-out);
  will-change: transform;
  padding-bottom: calc(var(--space-sm) + var(--safe-bottom));
}

.cart-panel.is-open .cart-panel__drawer {
  -webkit-transform: translateX(0);
  transform: translateX(0);
}

.cart-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border-sub);
}

.cart-panel__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.06em;
}

.cart-panel__close {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 1.1rem;
  border-radius: 2px;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.cart-panel__close:hover {
  color: var(--color-white);
}

.cart-panel__body {
  flex: 1;
  overflow-y: auto;                 /* Android: must pair with -webkit-overflow-scrolling */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;    /* prevent body scroll bleed on Android */
  padding: var(--space-md);
}

.cart-panel__empty {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-muted);
  text-align: center;
  padding: var(--space-xl) 0;
}

.cart-panel__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-sub);
}

.cart-item__info {
  flex: 1;
}

.cart-item__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 2px;
}

.cart-item__price {
  font-size: 13px;
  color: var(--color-lime);
}

.cart-item__remove {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  border-radius: 2px;
  transition: color 0.2s;
}

.cart-item__remove:hover {
  color: #ff6b6b;
}

.cart-panel__footer {
  padding: var(--space-md);
  border-top: 1px solid var(--color-border-sub);
}

.cart-panel__total {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
  text-align: right;
}

.cart-panel__total strong {
  color: var(--color-white);
  font-size: 1.1rem;
}

.cart-panel__checkout {
  width: 100%;
  min-height: 52px;
  font-size: 1.1rem;
}

/* ============================================================
   SECTION 5: PHOTO GALLERY
   ============================================================ */
.gallery {
  background: var(--color-bg);
  padding: var(--space-xl) 0;
}

.gallery__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* Masonry via CSS columns */
.gallery__grid {
  columns: 2;
  column-gap: 12px;
}

.gallery__item {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  -webkit-transition: -webkit-transform 0.3s var(--ease);
  transition: transform 0.3s var(--ease);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}

.gallery__item:hover .gallery__img-wrap {
  -webkit-transform: scale(1.03);
  transform: scale(1.03);
}

.gallery__item:hover .gallery__label {
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.gallery__img-wrap {
  width: 100%;
  -webkit-transition: -webkit-transform 0.3s var(--ease);
  transition: transform 0.3s var(--ease);
  overflow: hidden;
  border-radius: 2px;
  will-change: transform;
}

.gallery__placeholder {
  width: 100%;
  height: auto;
  display: block;
}

/* Tall items span more in masonry */
.gallery__item--tall .gallery__placeholder {
  /* SVG already has tall viewBox */
}

.gallery__item--wide .gallery__placeholder {
  /* SVG has wide viewBox */
}

.gallery__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-lime);
  background: -webkit-linear-gradient(transparent, rgba(0,0,0,0.7));
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  opacity: 0;
  -webkit-transform: translateY(4px);
  transform: translateY(4px);
  -webkit-transition: opacity 0.25s, -webkit-transform 0.25s;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
}

.lightbox__content {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.lightbox__img-wrap {
  width: 100%;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 2px;
}

.lightbox__img-wrap svg,
.lightbox__img-wrap img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.4rem;
  border-radius: 2px;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
}

.lightbox__close:hover {
  color: var(--color-lime);
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 2.5rem;
  border-radius: 2px;
  -webkit-transition: color 0.2s, background 0.2s;
  transition: color 0.2s, background 0.2s;
  background: rgba(0,0,0,0.4);
  z-index: 2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.lightbox__prev {
  left: -64px;
}

.lightbox__next {
  right: -64px;
}

.lightbox__prev:hover,
.lightbox__next:hover {
  color: var(--color-lime);
  background: rgba(0,0,0,0.7);
}

.lightbox__caption {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   SECTION 6: VIDEO GALLERY
   ============================================================ */
.videos {
  background: var(--color-bg-dark);
  padding: var(--space-xl) 0;
}

.videos__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* Vertical stack on mobile */
.video-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.video-card {
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border: 1px solid var(--color-border-sub);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  -webkit-transition: border-color 0.25s, -webkit-transform 0.25s var(--ease);
  transition: border-color 0.25s, transform 0.25s var(--ease);
  padding: 0;
  width: 100%;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}

.video-card:hover {
  border-color: var(--color-lime);
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px);
}

.video-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-card__thumb svg {
  width: 100%;
  height: 100%;
}

.video-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  transition: background 0.25s;
}

.video-card:hover .video-card__overlay {
  background: rgba(0,0,0,0.3);
}

.video-card__play-icon {
  width: 60px;
  height: 60px;
  -webkit-transition: -webkit-transform 0.25s var(--ease);
  transition: transform 0.25s var(--ease);
  -webkit-filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.video-card:hover .video-card__play-icon {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

.video-card__info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.video-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--color-white);
}

.video-card__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-muted);
}

/* ============================================================
   VIDEO MODAL
   ============================================================ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal[hidden] {
  display: none;
}

.video-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
}

.video-modal__content {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 900px;
}

.video-modal__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.4rem;
  border-radius: 2px;
  transition: color 0.2s;
  z-index: 2;
}

.video-modal__close:hover {
  color: var(--color-lime);
}

.video-modal__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  padding-right: 48px;
}

.video-modal__player {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.video-modal__player iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   SECTION 7: SHOWS & TICKETS
   ============================================================ */
.shows {
  background: var(--color-bg);
  padding: var(--space-xl) 0;
}

.shows__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.shows__timeline {
  display: flex;
  flex-direction: column;
}

.show-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto;
  gap: 8px var(--space-sm);
  padding: var(--space-md) 0;
  align-items: start;
}

.show-row__date {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 4px;
}

.show-row__month {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-lime);
  opacity: 0.7;
  line-height: 1;
}

.show-row__day {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3rem);
  line-height: 1;
  color: var(--color-lime);
  letter-spacing: 0.02em;
}

.show-row__details {
  grid-column: 2;
  grid-row: 1;
}

.show-row__venue {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: 0.04em;
  color: var(--color-white);
  margin-bottom: 4px;
}

.show-row__location {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-lime);
  opacity: 0.7;
  margin-bottom: 4px;
}

.show-row__desc {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-muted);
}

.show-row__action {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
}

.show-row__ticket-btn {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 1rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.show-row__soldout {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #111;
  background: rgba(255,255,255,0.25);
  padding: 6px 14px;
  border-radius: 2px;
}

.show-row--soldout .show-row__venue,
.show-row--soldout .show-row__day,
.show-row--soldout .show-row__month {
  opacity: 0.4;
}

.show-divider {
  border: none;
  border-top: 1px solid var(--color-border-sub);
  margin: 0;
}

/* ============================================================
   TICKET MODAL
   ============================================================ */
.ticket-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 600px) {
  .ticket-modal {
    align-items: center;
  }
}

.ticket-modal[hidden] {
  display: none;
}

.ticket-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}

.ticket-modal__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 4px 4px 0 0;
  padding: var(--space-lg) var(--space-md) calc(var(--space-lg) + var(--safe-bottom));
}

@media (min-width: 600px) {
  .ticket-modal__content {
    border-radius: 4px;
    padding: var(--space-lg) var(--space-md);
  }
}

.ticket-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 1.2rem;
  border-radius: 2px;
  transition: color 0.2s;
}

.ticket-modal__close:hover {
  color: var(--color-white);
}

.ticket-modal__title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.ticket-modal__show-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-lime);
  margin-bottom: var(--space-md);
  opacity: 0.8;
}

.ticket-modal__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.ticket-modal__qty-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.ticket-modal__qty-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-card-alt);
  border: 1px solid var(--color-border);
  color: var(--color-white);
  font-size: 1.5rem;
  border-radius: 2px;
  -webkit-transition: background 0.2s, border-color 0.2s;
  transition: background 0.2s, border-color 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.ticket-modal__qty-btn:hover {
  background: rgba(200,241,53,0.1);
  border-color: var(--color-lime);
}

.ticket-modal__qty-display {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-white);
  min-width: 40px;
  text-align: center;
}

.ticket-modal__price-info {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
}

.ticket-modal__price-info strong {
  color: var(--color-white);
}

.ticket-modal__next {
  width: 100%;
  min-height: 52px;
  font-size: 1.1rem;
}

/* Step 2 form */
.ticket-modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.ticket-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ticket-modal__input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  background: var(--color-card-alt);
  border: 1px solid var(--color-border-sub);
  border-radius: 2px;
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: 16px; /* min 16px prevents Android zoom on focus */
  -webkit-transition: border-color 0.2s;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

.ticket-modal__input:focus {
  outline: none;
  border-color: var(--color-lime);
}

.ticket-modal__input::placeholder {
  color: rgba(255,255,255,0.3);
}

.ticket-modal__actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.ticket-modal__actions .btn {
  flex: 1;
  min-height: 52px;
}

.ticket-modal__back {
  border-color: var(--color-border-sub);
}

/* Step 3 confirmation */
.ticket-modal__confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
}

.ticket-modal__check {
  width: 64px;
  height: 64px;
}

.ticket-modal__confirm-text {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
}

.ticket-modal__done {
  min-height: 52px;
  padding: 12px 40px;
}

/* ============================================================
   CONNECT SECTION
   ============================================================ */
.connect {
  background: var(--color-bg-dark);
  padding: var(--space-xl) 0;
}

.connect__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.connect__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 560px;
}

.connect__text {
  font-family: var(--font-mono);
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

/* ============================================================
   SECTION 8: FOOTER
   ============================================================ */
.footer {
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) 0 calc(var(--space-lg) + var(--safe-bottom));
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.footer__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: var(--color-muted);
  border: 1px solid var(--color-border-sub);
  border-radius: 2px;
  -webkit-transition: color 0.2s, border-color 0.2s, background 0.2s;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.footer__social-link:hover {
  color: var(--color-lime);
  border-color: var(--color-lime);
  background: rgba(200,241,53,0.06);
}

.footer__rule {
  border: none;
  border-top: 1px solid var(--color-border-sub);
  width: 100%;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer__powered {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--color-lime);
  opacity: 0.6;
  text-transform: uppercase;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-muted);
}

/* ============================================================
   TABLET BREAKPOINT — 768px
   ============================================================ */
@media (min-width: 768px) {

  /* Nav */
  .nav__inner {
    padding: 0 var(--space-md);
  }

  /* Album feature */
  .album-feature {
    flex-direction: row;
    align-items: flex-start;
  }

  .album-feature__cover {
    width: 240px;
  }

  /* Track list — show duration + price */
  .track-list__header {
    grid-template-columns: 36px 1fr 80px 80px 80px;
  }

  .track-list__duration-col,
  .track-list__price-col {
    display: block;
  }

  .track-row {
    grid-template-columns: 36px 1fr 80px 80px 80px;
  }

  .track-row__duration,
  .track-row__price {
    display: block;
  }

  /* Gallery — 3 columns on tablet */
  .gallery__grid {
    columns: 3;
  }

  /* Shows — show action inline */
  .show-row {
    grid-template-columns: 80px 1fr auto;
    grid-template-rows: 1fr;
    align-items: center;
  }

  .show-row__date {
    grid-row: 1;
  }

  .show-row__details {
    grid-column: 2;
    grid-row: 1;
  }

  .show-row__action {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  /* Video row */
  .video-row {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overflow-y: hidden;              /* Android: constrain cross-axis overflow */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain; /* prevent page navigation on Android */
    padding-bottom: var(--space-sm);
    gap: var(--space-md);
  }

  .video-card {
    flex-shrink: 0;
    width: calc(50% - var(--space-sm) / 2);
    scroll-snap-align: start;
  }

}

/* ============================================================
   DESKTOP BREAKPOINT — 1024px
   ============================================================ */
@media (min-width: 1024px) {

  /* Nav */
  .nav__links {
    display: flex;
  }

  .nav__cart-btn {
    display: flex;
  }

  .nav__hamburger {
    display: none;
  }

  .nav__inner {
    padding: 0 var(--space-lg);
  }

  /* Hero — SPLIT SCREEN */
  .hero {
    flex-direction: row;
    min-height: 100dvh;
    min-height: 100vh;
    padding-top: 0;
  }

  body.radio-closed .hero {
    padding-top: 0;
  }

  /* Photo pane — fixed left half */
  .hero__photo-pane {
    position: sticky;
    top: calc(var(--radio-h) + var(--nav-h));
    height: calc(100dvh - var(--radio-h) - var(--nav-h));
    height: calc(100vh - var(--radio-h) - var(--nav-h));
    width: 50%;
    min-width: 50%;
    max-height: none;
    align-self: flex-start;
    flex-shrink: 0;
  }

  body.radio-closed .hero__photo-pane {
    top: var(--nav-h);
    height: calc(100dvh - var(--nav-h));
    height: calc(100vh - var(--nav-h));
  }

  .hero__photo-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
  }

  .hero__photo-placeholder {
    width: 100%;
    height: 100%;
  }

  .hero__photo-placeholder svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Content pane — scrollable right half */
  .hero__content-pane {
    width: 50%;
    min-height: 100dvh;
    min-height: 100vh;
    padding: var(--space-2xl) var(--space-xl);
    padding-top: calc(var(--radio-h) + var(--nav-h) + var(--space-xl));
  }

  body.radio-closed .hero__content-pane {
    padding-top: calc(var(--nav-h) + var(--space-xl));
  }

  /* All sections — add left offset to match split */
  .music-store__inner,
  .gallery__inner,
  .videos__inner,
  .shows__inner,
  .connect__inner {
    padding: 0 var(--space-xl);
  }

  .footer__inner {
    padding: 0 var(--space-xl);
  }

  /* Section padding */
  .music-store,
  .gallery,
  .videos,
  .shows,
  .connect {
    padding: var(--space-2xl) 0;
  }

  /* Video row — 3 across, no scroll */
  .video-row {
    overflow-x: visible;
    scroll-snap-type: none;
    gap: var(--space-md);
  }

  .video-card {
    flex-shrink: 1;
    width: calc(33.333% - (var(--space-md) * 2 / 3));
    min-width: 0;
  }

  /* Lightbox arrows */
  .lightbox__prev {
    left: -80px;
  }

  .lightbox__next {
    right: -80px;
  }

}

/* ============================================================
   LARGE DESKTOP — 1280px+
   ============================================================ */
@media (min-width: 1280px) {
  .hero__content-pane {
    padding: var(--space-2xl) var(--space-2xl);
    padding-top: calc(var(--radio-h) + var(--nav-h) + var(--space-2xl));
  }

  body.radio-closed .hero__content-pane {
    padding-top: calc(var(--nav-h) + var(--space-2xl));
  }
}

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

  .hero__cursor {
    -webkit-animation: none;
    animation: none;
    opacity: 0.7;
  }
}

/* ============================================================
   SCROLLBAR STYLING (Webkit)
   ============================================================ */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(200,241,53,0.3);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(200,241,53,0.5);
}
