/* =============================================================
   SHOCK SITE — style.css
   Sections:
     1.  Fonts & Reset
     2.  Base / Body
     3.  Utility
     4.  Static Overlay & Custom Cursor
     5.  Warning & Boot Screens
     6.  Warning Box
     7.  Boot Text
     8.  Buttons & Links (Global)
     9.  Header / Fixed Nav
     10. Hero (unused but kept for future use)
     11. Sections & Classified Bio
     12. Shared Panel Shells
     13. Window / Player Top Bar
     14. Progress Bar
     15. Archive Grid
     16. File Modal
     17. Footer
     18. Glitch & Flicker Animations
     19. Corrupt-Leave Animation
     20. Search Error Animation
     21. Final Message ("YOUR LIFE IS OVER")
     22. Webzine Layout
     23. Old-Nav Bar
     24. Zine Grid (Feature + Sidebar)
     25. Bottom Strip
     26. Merch Section
     27. Live Section
     28. Music Panel
     29. Contact Panel
     30. Transmission Page
     31. Clue Card
     32. Global Polish (transitions, tap highlight, scroll-margin)
     33. Premium Panel Overrides
     34. Image Hover Effects
     35. Text Styling Overrides
     36. Now Playing
     37. Footer Redesign
     38. Ambient Pulse
     39. Responsive — max-width: 850px
     40. Responsive — max-width: 800px
     41. Responsive — max-width: 760px (mobile header)
     42. Responsive — max-width: 700px (main mobile layout)
     43. Responsive — max-width: 900px (webzine)
     44. Responsive — max-width: 520px (small phones)
============================================================= */


/* =============================================================
   1. FONTS & RESET
============================================================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;700&family=Inter:wght@300;400;500;700&display=swap');

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


/* =============================================================
   2. BASE / BODY
============================================================= */

body {
  margin: 0;
  background: #050505;
  color: #f2f2f2;
  font-family: "Inter", sans-serif;
  /* overflow-x: hidden removed — causes iOS Safari to drop touch events on
     pages with position:fixed elements. Horizontal overflow prevented instead
     by overflow-x:hidden on a wrapper div if ever needed. */
  /* cursor controlled via JS: .custom-cursor class added on non-touch devices */
}

/* Prevent horizontal scroll without triggering the iOS touch bug */
#site-content, .webzine-layout, .section {
  max-width: 100vw;
  overflow-x: clip;
}


/* =============================================================
   3. UTILITY
============================================================= */

/* Hides any element — used by JS to show/hide screens */
.hidden {
  display: none !important;
}


/* =============================================================
   4. STATIC OVERLAY & CUSTOM CURSOR
============================================================= */

/* Full-page grain/static effect layered above everything */
.static-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.08;
  background-image: repeating-radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: screen;
}

/* Custom crosshair cursor — SVG built inline in index.html +
   transmission.html. Centred on the mouse via transform.
   Four lines + outer ring + center dot, all in red.
   JS adds .custom-cursor to <body> only on non-touch devices,
   which enables cursor:none and shows the SVG crosshair. */

/* cursor:none is injected via a <style> tag by script.js only on confirmed
   mouse-only devices (hasMouse && !hasTouch). Never set in CSS so mobile
   tap events are never blocked by a stray cursor rule. */

.cursor-dot {
  width: 40px;
  height: 40px;
  position: fixed;
  top: -9999px;   /* starts off-screen until JS moves it on first mousemove */
  left: -9999px;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
}


/* =============================================================
   5. WARNING & BOOT SCREENS
   Both share the same full-viewport centred layout.
============================================================= */

#warning-screen,
#boot-screen {
  height: 100vh;
  background: radial-gradient(circle, #220000, #000);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: flicker 2s infinite;
}


/* =============================================================
   6. WARNING BOX
   Card inside the warning screen.
============================================================= */

.warning-box {
  border: 1px solid #ff0000;
  padding: 40px;
  box-shadow: 0 0 30px #ff0000;
  background: rgba(0, 0, 0, 0.88);
}

.warning-box h1 {
  color: #ff0000;
  font-size: 4rem;
  margin: 0 0 20px;
}

/* Small label above the WARNING heading */
.system-label {
  color: #aaa;
  letter-spacing: 3px;
  font-size: 0.85rem;
  margin-bottom: 25px;
}

/* "This is the official SHOCK SITE band page" disclaimer */
.safe-note {
  color: #f2f2f2;
  border: 1px solid #330000;
  padding: 10px;
  margin-top: 20px;
  background: rgba(255, 0, 0, 0.08);
}

/* Fine-print at the bottom of the warning box */
.tiny-note {
  color: #777;
  font-size: 0.75rem;
  margin-top: 20px;
}


/* =============================================================
   7. BOOT TEXT
   Pre-formatted terminal output inside #boot-screen.
============================================================= */

#boot-text {
  color: #ff0000;
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
}


/* =============================================================
   8. BUTTONS & LINKS (GLOBAL)
   Default style for all <button> elements and .main-btn anchors.
============================================================= */

button,
.main-btn {
  background: black;
  color: #ff0000;
  border: 1px solid #ff0000;
  padding: 12px 24px;
  margin: 10px;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}

button:hover,
.main-btn:hover {
  background: #ff0000;
  color: black;
}


/* =============================================================
   9. HEADER / FIXED NAV
============================================================= */

header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 62px;
  padding: 0 24px;
  background: linear-gradient(rgba(8, 8, 8, 0.94), rgba(0, 0, 0, 0.98));
  border-bottom: 1px solid rgba(255, 0, 0, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

/* "SHOCK SITE ARCHIVE // SIGNAL ACTIVE" status label */
.system-status {
  color: #777;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Shared styles for both navs (#header nav and .old-nav) */
nav {
  display: flex;
  gap: 10px;
}

nav a {
  color: #8a8a8a;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 2px;
  padding: 8px 12px;
  border: 1px solid transparent;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

nav a:hover {
  color: #ff3a3a;
  border-color: rgba(255, 0, 0, 0.22);
  background: rgba(255, 0, 0, 0.04);
}


/* =============================================================
   10. HERO (unused / future use)
   Kept in case a full-bleed hero image section is added later.
============================================================= */

.hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.95)),
    url("https://images.unsplash.com/photo-1516280440614-37939bbacd81?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
}

/* Scanline overlay for the hero */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 5px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(3rem, 12vw, 9rem);
  color: #ff0000;
  margin: 0;
  letter-spacing: 6px;
}

.small-text {
  color: #999;
  letter-spacing: 4px;
}


/* =============================================================
   11. SECTIONS & CLASSIFIED BIO
   Shared base styles for all <section> blocks and the bio strip.
============================================================= */

.section,
.classified {
  padding: 120px 8%;
  border-top: 1px solid rgba(255, 0, 0, 0.08);
  background: linear-gradient(rgba(8, 8, 8, 0.98), rgba(4, 4, 4, 1));
  position: relative;
  overflow: hidden;
}

/* Subtle scanline texture behind section content */
.section::before,
.classified::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.012),
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}

.section h2,
.classified h2 {
  color: #ff3a3a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 2.2rem;
  letter-spacing: 6px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

/* Classified bio gets a diagonal red stripe overlay instead */
.classified {
  background:
    linear-gradient(rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.98)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 0, 0, 0.025) 0 12px,
      rgba(0, 0, 0, 0) 12px 24px
    );
  border-top: 1px solid rgba(255, 0, 0, 0.12);
}

.classified p {
  max-width: 800px;
  line-height: 1.9;
  color: #9a9a9a;
  font-size: 1rem;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 2;
}

/* Classified redesign — two-column dossier layout */
.classified-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
  position: relative;
  z-index: 2;
}

.classified-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Individual redacted info row */
.classified-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  border-bottom: 1px solid rgba(255,0,0,0.07);
  padding-bottom: 12px;
  align-items: start;
}

.classified-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: #ff3a3a;
  padding-top: 2px;
}

.classified-value {
  color: #888;
  font-size: 0.85rem;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

/* Redacted text block — solid bar over text */
.classified-redacted {
  display: inline-block;
  background: #ff0000;
  color: #ff0000; /* text hidden under bar */
  user-select: none;
  letter-spacing: 1px;
  padding: 0 4px;
  font-size: 0.85rem;
}

/* Full-width threat assessment bar at the bottom */
.classified-threat {
  grid-column: 1 / -1;
  margin-top: 8px;
  border: 1px solid rgba(255,0,0,0.2);
  background: rgba(255,0,0,0.04);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.classified-threat-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: #ff3a3a;
}

.classified-threat-level {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.1rem;
  letter-spacing: 6px;
  color: #ff0000;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255,0,0,0.5);
}

/* Threat meter: segmented bar */
.classified-threat-meter {
  display: flex;
  gap: 4px;
}

.threat-seg {
  width: 20px;
  height: 8px;
  background: #330000;
}

.threat-seg.active {
  background: #ff0000;
  box-shadow: 0 0 6px rgba(255,0,0,0.6);
}

@media (max-width: 800px) {
  .classified-grid    { grid-template-columns: 1fr; }
  .classified-row     { grid-template-columns: 120px 1fr; }
}


/* =============================================================
   12. SHARED PANEL SHELLS
   Generic bordered panel used by media player, desktop window,
   and merch cards.
============================================================= */

.media-player,
.desktop-window,
.merch-card {
  max-width: 700px;
  border: 1px solid #ff0000;
  padding: 20px;
  background: #111;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.25);
}


/* =============================================================
   13. WINDOW / PLAYER TOP BAR
   Header bar inside .desktop-window and legacy .media-player.
============================================================= */

.player-top,
.window-bar {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #330000;
  padding-bottom: 10px;
  color: #aaa;
}

/* Track name display inside the player */
.track-title {
  margin: 25px 0;
}

/* Legacy player button margin */
.player-buttons button {
  margin-top: 20px;
}

/* Terminal / corrupt text colour helper */
.corrupt-text,
.terminal-text {
  color: #ff0000;
}


/* =============================================================
   14. PROGRESS BAR
   Defined twice in the original (basic + polished override).
   Combined here — polished version wins.
============================================================= */

.progress-bar {
  height: 13px;
  background: linear-gradient(90deg, #111, #1b1b1b);
  border: 1px solid rgba(255, 0, 0, 0.28);
  overflow: hidden;
  cursor: pointer;
}

.progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #8a0000, #ff1a1a);
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.55);
}


/* =============================================================
   15. ARCHIVE GRID
   File-browser grid inside .desktop-window.
============================================================= */

.archive-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 15px;
}

.archive-item {
  border: 1px solid #330000;
  padding: 20px;
  background: #080808;
  color: #aaa;
  text-align: left;
}

.archive-item:hover {
  color: #ff0000;
  border-color: #ff0000;
  transform: translateY(-3px);
}


/* =============================================================
   16. FILE MODAL
   Full-screen overlay with a centred content box.
============================================================= */

#file-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  z-index: 5000;
  display: grid;
  place-items: center;
}

.modal-box {
  width: min(600px, 90%);
  border: 1px solid #ff0000;
  background: #080808;
  padding: 30px;
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.45);
}

#close-modal {
  float: right;
  padding: 6px 10px;
}


/* =============================================================
   17. FOOTER
   Base styles — overridden further down by the redesign block.
============================================================= */

footer {
  padding: 40px;
  text-align: center;
  color: #777;
  border-top: 1px solid #220000;
}


/* =============================================================
   18. GLITCH & FLICKER ANIMATIONS
============================================================= */

/* Applied to .glitch elements (WARNING heading, final message) */
.glitch {
  position: relative;
  text-shadow: 2px 0 red, -2px 0 #00ffff;
  animation: glitch-skew 1.5s infinite linear alternate-reverse;
}

@keyframes flicker {
  0%,  100% { opacity: 1;   }
  50%        { opacity: 0.9; }
  52%        { opacity: 1;   }
  55%        { opacity: 0.7; }
  57%        { opacity: 1;   }
}

@keyframes glitch-skew {
  0%   { transform: skew(0deg);  }
  20%  { transform: skew(1deg);  }
  40%  { transform: skew(-1deg); }
  60%  { transform: skew(2deg);  }
  80%  { transform: skew(-2deg); }
  100% { transform: skew(0deg);  }
}


/* =============================================================
   19. CORRUPT-LEAVE ANIMATION
   Triggered on the warning screen when the user clicks LEAVE.
============================================================= */

.corrupt-leave {
  animation: corruptLeave 0.45s infinite;
}

@keyframes corruptLeave {
  0%   { transform: translate(0, 0)     skew(0deg);   filter: hue-rotate(0deg);   }
  25%  { transform: translate(-6px, 3px) skew(8deg);  filter: hue-rotate(90deg);  }
  50%  { transform: translate(7px, -4px) skew(-10deg); filter: hue-rotate(180deg); }
  75%  { transform: translate(-3px, -2px) skew(4deg); filter: hue-rotate(270deg); }
  100% { transform: translate(0, 0)     skew(0deg);   filter: hue-rotate(360deg); }
}


/* =============================================================
   20. SEARCH ERROR ANIMATION
   Brief shake applied to the search input on a failed query.
============================================================= */

.search-error {
  animation: searchError 0.25s steps(2);
}

@keyframes searchError {
  0%   { transform: translateX(0);    }
  25%  { transform: translateX(-6px); }
  50%  { transform: translateX(6px);  }
  75%  { transform: translateX(-4px); }
  100% { transform: translateX(0);    }
}


/* =============================================================
   21. FINAL MESSAGE ("YOUR LIFE IS OVER")
   Full-screen flash shown for 400 ms after the boot sequence.
============================================================= */

#final-message {
  position: fixed;
  inset: 0;
  background: black;
  z-index: 4000;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.life-over {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff0000;
  font-family: "Courier New", monospace;
  font-size: clamp(1rem, 2vw, 1.8rem);
  font-weight: bold;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
  margin: 0;
}


/* =============================================================
   22. WEBZINE LAYOUT
   Full-height section with the old-internet grid aesthetic.
============================================================= */

.webzine-layout {
  min-height: 100vh;
  padding: 20px;
  background:
    radial-gradient(circle at top, rgba(120, 0, 0, 0.25), transparent 40%),
    #050505;
  border-bottom: 1px solid #330000;
}

/* Logo + search input + hint row */
.top-search {
  display: grid;
  grid-template-columns: 260px 1fr auto 180px;
  gap: 10px;
  align-items: center;
  margin-top: 80px;
}

.site-logo {
  width: 100%;
  max-height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px #ff0000);
}

/* Intentionally retro inset search field */
.top-search input {
  background: #e8e8e8;
  color: #111;
  border: 2px inset #aaa;
  padding: 10px;
  font-family: Georgia, serif;
  font-size: 1.1rem;
}

/* "TRY: NEW TRANSMISSION" hint label */
.top-search span {
  font-size: 0.75rem;
  color: white;
  text-align: center;
}


/* =============================================================
   23. OLD-NAV BAR
   Secondary nav below the search row (retro button aesthetic).
============================================================= */

.old-nav {
  margin: 12px 0;
  padding: 8px;
  background: #090909;
  border-top: 1px solid #660000;
  border-bottom: 1px solid #660000;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.old-nav a {
  background: #120000;
  color: white;
  border: 1px solid #330000;
  padding: 8px 14px;
  text-decoration: none;
  font-size: 0.8rem;
}

.old-nav a:hover {
  background: #ff0000;
  color: black;
}


/* =============================================================
   24. ZINE GRID (FEATURE PANEL + SIDEBAR)
============================================================= */

.zine-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 20px;
}

/* Shared border/shadow for feature panel and sidebar cards */
.feature-panel,
.side-panel > div {
  border: 1px solid #777;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}

.feature-panel {
  padding: 15px;
}

.feature-art {
  width: 100%;
  max-height: 580px;
  object-fit: cover;
  border: 1px solid #999;
  filter: contrast(1.15) saturate(0.75);
}

.feature-panel h1 {
  color: #ff0000;
  font-size: clamp(2.5rem, 8vw, 6rem);
  margin: 20px 0 0;
  letter-spacing: 5px;
}

.feature-panel p {
  color: #aaa;
  font-size: 1.2rem;
}

/* Sidebar stacks its child cards vertically */
.side-panel {
  display: grid;
  gap: 15px;
}

/* "WANT TO HEAR SOMETHING CHAOTIC?" ad card with artwork background */
.ad-box {
  padding: 25px;
  min-height: 210px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.95)),
    url("assets/artwork.jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
}

.ad-box h2 {
  color: #ff0000;
  text-decoration: underline;
}

/* "WARNING" sidebar card */
.warning-card {
  padding: 20px;
  background: #120000 !important; /* override shared .side-panel > div bg */
}

.warning-card h2 {
  color: #ff0000;
  font-size: 2.2rem;
  margin: 0;
}

/* Merch thumbnail in sidebar */
.mini-merch {
  padding: 15px;
  text-align: center;
}

.mini-merch img {
  width: 100%;
  border: 1px solid #550000;
  filter: contrast(1.2);
}

/* Clue card hinting at the secret search (dashed border) */
.clue-card {
  padding: 18px;
  background: #070707 !important;
  border: 1px dashed #550000 !important;
  color: #999;
}

.clue-card h3 {
  color: #ff0000;
  margin-top: 0;
}


/* =============================================================
   25. BOTTOM STRIP
   Three-column info bar below the zine grid.
============================================================= */

.bottom-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.strip-item {
  border: 1px solid #660000;
  background: #090909;
  padding: 18px;
  min-height: 130px;
}

.strip-item h3 {
  color: #ff0000;
  margin-top: 0;
}

.strip-item p {
  color: #aaa;
}


/* =============================================================
   26. MERCH SECTION
   Shopify-ready product grid.
   Sizing, filters, badges, and buy button states are all
   handled here — JS only handles interactivity, not layout.
============================================================= */

/* Section header row: title left, store status right */
.merch-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

/* Override .section h2 margin so the header row controls spacing */
#merch .merch-header h2 {
  margin-bottom: 0;
}

/* "STORE ONLINE // 4 ITEMS" label */
.merch-store-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 3px;
}

/* Pulsing green dot indicating the store is live */
.merch-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff0000;
  animation: statusPulse 2.5s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1;    box-shadow: 0 0 0 0 rgba(255,0,0,0.5); }
  50%       { opacity: 0.6; box-shadow: 0 0 0 5px rgba(255,0,0,0);  }
}

/* ── Filter bar ─────────────────────────────────────────── */

.merch-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* Individual filter pill */
.merch-filter {
  background: transparent;
  border: 1px solid #330000;
  color: #555;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 2px;
  padding: 6px 16px;
  margin: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.merch-filter:hover {
  border-color: rgba(255,0,0,0.4);
  color: #ff3a3a;
  transform: none; /* override global button hover lift */
}

/* Active filter state */
.merch-filter-active {
  border-color: #ff0000;
  color: #ff3a3a;
  background: rgba(255,0,0,0.06);
}

/* ── Product grid ───────────────────────────────────────── */

.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* ── Product card ───────────────────────────────────────── */

.merch-card {
  background: #0a0a0a;
  border: 1px solid rgba(255,0,0,0.14);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.merch-card:hover {
  border-color: rgba(255,0,0,0.35);
  box-shadow: 0 0 30px rgba(255,0,0,0.08);
}

/* Sold-out card: muted overall */
.merch-card--soldout {
  opacity: 0.55;
}

.merch-card--soldout:hover {
  border-color: rgba(255,0,0,0.14); /* no hover highlight for sold-out */
  box-shadow: none;
}

/* ── Product image wrapper ──────────────────────────────── */

.merch-img-wrap {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,0,0,0.1);
}

.merch-img-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  filter: contrast(1.1) saturate(0.8);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.merch-card:hover .merch-img-wrap img {
  transform: scale(1.03);
  filter: contrast(1.18) saturate(0.92);
}

/* ── Badges (NEW, PREORDER, SOLD OUT) ──────────────────── */

.merch-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 2px;
  padding: 4px 10px;
  pointer-events: none;
}

.merch-badge--new {
  background: #ff0000;
  color: #000;
}

.merch-badge--preorder {
  background: transparent;
  border: 1px solid #ff0000;
  color: #ff3a3a;
}

.merch-badge--soldout {
  background: transparent;
  border: 1px solid #444;
  color: #555;
}

/* ── Card body ──────────────────────────────────────────── */

.merch-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1; /* pushes buy button to bottom */
}

.merch-name {
  color: #e0e0e0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 2px;
  margin: 0;
}

/* ── Pricing: H8C stacked above USD ────────────────────── */

.merch-pricing {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.merch-h8c {
  color: #ff0000;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  font-weight: bold;
}

.merch-usd {
  color: #777;
  font-size: 0.85rem;
}

/* ── Size selector ──────────────────────────────────────── */

/* Container — JS renders <button> elements inside this */
.merch-sizes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Individual size button (rendered by JS) */
.merch-size-btn {
  background: transparent;
  border: 1px solid #330000;
  color: #666;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 1px;
  padding: 4px 9px;
  margin: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.merch-size-btn:hover {
  border-color: rgba(255,0,0,0.5);
  color: #ff3a3a;
  transform: none; /* override global button hover lift */
}

/* Selected size */
.merch-size-btn--active {
  border-color: #ff0000;
  color: #ff3a3a;
  background: rgba(255,0,0,0.08);
}

/* Greyed-out sizes on sold-out cards */
.merch-card--soldout .merch-size-btn {
  opacity: 0.25;
  pointer-events: none;
}

/* ── Buy button ─────────────────────────────────────────── */

/*
  SHOPIFY SWAP POINT:
  When you embed a Shopify Buy Button, it replaces this element.
  The Buy Button SDK injects its own <div> — just delete the
  <button class="merch-buy-btn"> and paste the embed in its place.
  The card layout (flex column) handles positioning automatically.
*/

.merch-buy-btn {
  width: 100%;
  margin: auto 0 0; /* push to bottom of card body */
  padding: 11px;
  background: #000;
  border: 1px solid rgba(255,0,0,0.45);
  color: #ff3a3a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 3px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.merch-buy-btn:hover:not(:disabled) {
  background: rgba(255,0,0,0.1);
  border-color: #ff0000;
  color: #fff;
  transform: none; /* override global button hover lift */
}

/* Disabled state (sold out) */
.merch-buy-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #333;
  color: #555;
}

/* ── Disclaimer text ────────────────────────────────────── */

.merch-disclaimer {
  color: #444;
  font-size: 0.7rem;
  letter-spacing: 1px;
  border-top: 1px solid #1a0000;
  padding-top: 8px;
  margin: 0;
  line-height: 1.5;
}

/* ── Store footer strip ─────────────────────────────────── */

.merch-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #1a0000;
  color: #444;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 2px;
}


/* =============================================================
   27. LIVE SECTION
============================================================= */

.live-panel {
  max-width: 1000px;
  background: linear-gradient(rgba(12, 12, 12, 0.96), rgba(4, 4, 4, 0.98));
  border: 1px solid rgba(255, 0, 0, 0.18);
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
}

/* Scanline texture inside the live panel */
.live-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}

.live-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 0, 0, 0.12);
  background: rgba(255, 0, 0, 0.03);
  color: #777;
  font-size: 0.75rem;
  letter-spacing: 3px;
  position: relative;
  z-index: 2;
}

.live-content {
  padding: 10px 0;
  position: relative;
  z-index: 2;
}

/* Individual show entry row */
.show-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 25px;
  padding: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

.show-row:hover {
  background: rgba(255, 0, 0, 0.03);
}

.show-date {
  color: #ff3a3a;
  font-size: 1.2rem;
  letter-spacing: 3px;
  font-weight: bold;
}

.show-info h3 {
  margin: 0 0 10px;
  color: #d8d8d8;
  letter-spacing: 2px;
  font-size: 1rem;
}

.show-info p {
  margin: 0;
  color: #777;
  line-height: 1.6;
}


/* =============================================================
   28. MUSIC PANEL
   Two-column layout: artwork left, player controls right.
============================================================= */

.music-panel {
  max-width: 1050px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 35px;
  padding: 28px;
  background: linear-gradient(rgba(12, 12, 12, 0.96), rgba(4, 4, 4, 0.98));
  border: 1px solid rgba(255, 0, 0, 0.18);
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

/* Scanline texture inside the music panel */
.music-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.018),
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}

/* Both columns stack above the scanline pseudo-element */
.music-art-side,
.music-info-side {
  position: relative;
  z-index: 2;
}

.music-art {
  width: 100%;
  height: 100%;
  max-height: 430px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  filter: contrast(1.12) saturate(0.85);
}

/* "LATEST RELEASE" label above the track title */
.release-label {
  color: #ff3a3a;
  font-size: 0.75rem;
  letter-spacing: 4px;
  margin: 0 0 18px;
}

.music-info-side h3 {
  color: #e5e5e5;
  font-size: clamp(2rem, 5vw, 4.5rem);
  margin: 0 0 10px;
  letter-spacing: 4px;
}

.release-copy {
  color: #888;
  margin-bottom: 28px;
}

/* Currently-loaded track name display */
.music-info-side .track-title {
  color: #aaa;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.35);
  padding: 12px;
  margin-bottom: 16px;
}

/* Play / Pause / Stop / Reset button row */
.player-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.player-row button {
  margin: 0;
  padding: 10px 16px;
  border: 1px solid rgba(255, 0, 0, 0.35);
  color: #ff3a3a;
  background: rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

.player-row button:hover {
  background: rgba(255, 0, 0, 0.12);
  color: #fff;
}

/* Elapsed time display */
#timer {
  color: #777;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-left: 8px;
}

/* Streaming platform link row */
.music-links {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.music-links a {
  color: #777;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 14px;
  font-size: 0.75rem;
  letter-spacing: 2px;
}

.music-links a:hover {
  color: #ff3a3a;
  border-color: rgba(255, 0, 0, 0.45);
  background: rgba(255, 0, 0, 0.06);
}

/* Playlist track buttons */
.playlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.track-button {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #888;
  letter-spacing: 2px;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.track-button:hover {
  border-color: rgba(255, 0, 0, 0.4);
  color: #ff3a3a;
}

/* Highlight state for the currently-loaded track */
.active-track {
  border-color: rgba(255, 0, 0, 0.55);
  background: rgba(255, 0, 0, 0.06);
  color: #ff3a3a;
}


/* =============================================================
   29. CONTACT PANEL
============================================================= */

.contact-panel {
  max-width: 850px;
  padding: 40px;
  background: linear-gradient(rgba(12, 12, 12, 0.96), rgba(4, 4, 4, 0.98));
  border: 1px solid rgba(255, 0, 0, 0.18);
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

/* Scanline texture */
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}

.contact-panel p {
  color: #9a9a9a;
  letter-spacing: 1px;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.contact-panel .main-btn {
  position: relative;
  z-index: 2;
  padding: 14px 28px;
  letter-spacing: 3px;
  border: 1px solid rgba(255, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.65);
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.contact-panel .main-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 0, 0, 0.12);
  border-color: rgba(255, 0, 0, 0.9);
}

/* Social media link row */
.social-links {
  margin-top: 35px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.social-links a {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: #7d7d7d;
  text-decoration: none;
  letter-spacing: 2px;
  font-size: 0.75rem;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease,
    background 0.15s ease;
}

.social-links a:hover {
  color: #ff3a3a;
  border-color: rgba(255, 0, 0, 0.5);
  background: rgba(255, 0, 0, 0.06);
  transform: translateY(-2px);
}


/* =============================================================
   30. TRANSMISSION PAGE
   Styles specific to transmission.html.
   The body gets the .transmission-page class.
============================================================= */

/* "LEAKED" watermark stamp fixed in the top-right corner */
.leak-stamp {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 100;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 4px;
  color: rgba(255, 0, 0, 0.55);
  border: 1px solid rgba(255, 0, 0, 0.3);
  padding: 5px 14px;
  transform: rotate(2deg);
  pointer-events: none;
  animation: leakFlicker 4s infinite;
}

@keyframes leakFlicker {
  0%, 92%, 100% { opacity: 1;    }
  94%            { opacity: 0.3;  }
  96%            { opacity: 1;    }
  98%            { opacity: 0.15; }
}

/* Back-to-homepage button on transmission.html */
.transmission-back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
  color: #555;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-decoration: none;
  border: 1px solid #330000;
  padding: 8px 16px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.transmission-back-btn:hover {
  color: #ff3a3a;
  border-color: rgba(255,0,0,0.5);
  background: rgba(255,0,0,0.06);
}


/* Full-page scanline overlay (same pattern as .static-overlay but subtler) */
.transmission-overlay {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}

/* Centred flex column that holds all content */
.transmission-container {
  min-height: 100vh;
  padding: 120px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.transmission-label {
  color: #888;
  letter-spacing: 4px;
  font-size: 0.8rem;
}

.transmission-title {
  color: #ff0000;
  font-size: clamp(2rem, 5vw, 5rem);
  letter-spacing: 8px;
  margin: 10px 0 40px;
}

/* Faux file-viewer window */
.transmission-window {
  width: min(850px, 95vw);
  border: 1px solid #550000;
  background: rgba(0, 0, 0, 0.92);
  padding: 20px;
  box-shadow: 0 0 35px rgba(255, 0, 0, 0.15);
}

/* Title bar of the window */
.transmission-header {
  display: flex;
  justify-content: space-between;
  color: #777;
  border-bottom: 1px solid #220000;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.transmission-art {
  width: 100%;
  border: 1px solid #440000;
  filter: contrast(1.1) saturate(0.8);
}

/* Fake metadata grid (uploaded date, source, status) */
.transmission-info {
  margin-top: 25px;
  display: grid;
  gap: 8px;
  color: #999;
}

/* Terminal-style log readout */
.transmission-log {
  margin-top: 30px;
  border: 1px solid #220000;
  background: #080808;
  padding: 20px;
  color: #ff0000;
}

/* Native <audio> element (browser controls) */
.transmission-audio {
  width: 100%;
  margin-top: 25px;
}

/* Flavour text at the bottom of the window */
.classified-message {
  margin-top: 35px;
  border-top: 1px solid #220000;
  padding-top: 25px;
  color: #888;
  line-height: 1.7;
}


/* =============================================================
   31. GLOBAL POLISH
   Tap highlight removal, scroll offset, universal transitions.
============================================================= */

/* Remove blue flash on mobile tap */
a,
button {
  -webkit-tap-highlight-color: transparent;
}

/* Offset anchor targets so the fixed header doesn't overlap */
.section {
  scroll-margin-top: 80px;
}

/* Unified hover lift + transition for all interactive elements */
.main-btn,
button,
.music-links a,
.social-links a,
.old-nav a {
  transition:
    transform 0.15s ease,
    opacity 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.main-btn:hover,
button:hover,
.music-links a:hover,
.social-links a:hover,
.old-nav a:hover {
  transform: translateY(-2px);
}

/* Press-down feel on click */
.main-btn:active,
button:active {
  transform: translateY(0px) scale(0.98);
}


/* =============================================================
   32. PREMIUM PANEL OVERRIDES
   Consistent dark gradient + red border for all major panels.
   Applied after individual panel definitions so it wins.
============================================================= */

.music-panel,
.contact-panel,
.live-panel,
.feature-panel,
.desktop-window,
.transmission-window,
.merch-card {
  border: 1px solid rgba(255, 0, 0, 0.14);
  background: linear-gradient(rgba(12, 12, 12, 0.96), rgba(3, 3, 3, 0.985));
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.06);
}

/* Subtle backdrop blur for depth on panel elements */
.music-panel,
.contact-panel,
.live-panel,
.feature-panel,
.merch-card,
.desktop-window {
  backdrop-filter: blur(4px);
}

/* Slightly brighter border/glow on hover */
.music-panel:hover,
.contact-panel:hover,
.live-panel:hover,
.feature-panel:hover,
.merch-card:hover {
  border-color: rgba(255, 0, 0, 0.28);
  box-shadow: 0 0 55px rgba(255, 0, 0, 0.11);
}


/* =============================================================
   33. IMAGE HOVER EFFECTS
   Subtle scale + contrast bump on all artwork images.
============================================================= */

.feature-art,
.music-art,
.album-art,
.merch-card img,
.transmission-art {
  transition:
    transform 0.25s ease,
    filter 0.25s ease,
    box-shadow 0.25s ease;
}

.feature-art:hover,
.music-art:hover,
.album-art:hover,
.merch-card img:hover,
.transmission-art:hover {
  transform: scale(1.015);
  filter: contrast(1.18) saturate(0.92);
  box-shadow: 0 0 45px rgba(255, 0, 0, 0.12);
}

/* Placeholder for a potential RGB-glitch pseudo-element on .feature-art:hover */
.feature-art:hover::after {
  opacity: 1;
}


/* =============================================================
   34. TEXT STYLING OVERRIDES
   Monospace font applied to all terminal/status elements.
============================================================= */

p,
.release-copy,
.show-info p,
.contact-panel p,
.classified p {
  line-height: 1.7;
  color: #9a9a9a;
}

.track-title,
.system-status,
.live-header,
.transmission-label,
.transmission-info,
.player-top {
  font-family: "IBM Plex Mono", monospace;
}


/* =============================================================
   35. NOW PLAYING
   "NOW PLAYING: <TRACK>" text shown below the player
   and in the fixed header while audio is active.
============================================================= */

/* Below the player controls (currently unused class — kept for flexibility) */
.now-playing {
  margin-top: 18px;
  color: #ff3a3a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 3px;
}

/* Inside the fixed header — hidden by default, shown via .active */
.header-now-playing {
  color: #ff3a3a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 3px;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.header-now-playing.active {
  opacity: 1;
}


/* =============================================================
   37. MOBILE HERO
   Shown only on mobile (desktop sees the full webzine layout).
   Full-width artwork with band name + CTA overlaid.
============================================================= */

.mobile-hero {
  display: none; /* shown only inside the mobile media query */
  position: relative;
  width: 100%;
  overflow: hidden;
}

.mobile-hero-img {
  width: 100%;
  display: block;
  filter: contrast(1.1) saturate(0.8) brightness(0.55);
}

.mobile-hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 20px 32px;
  text-align: center;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.85) 100%);
}

.mobile-hero-label {
  color: #ff3a3a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 5px;
  margin: 0 0 8px;
}

.mobile-hero-title {
  color: #fff;
  font-size: 2rem;
  letter-spacing: 4px;
  margin: 0 0 6px;
  line-height: 1.1;
}

.mobile-hero-sub {
  color: #aaa;
  font-size: 0.72rem;
  letter-spacing: 3px;
  margin: 0 0 20px;
}

.mobile-hero-btn {
  margin: 0;
  padding: 11px 28px;
  font-size: 0.72rem;
  letter-spacing: 3px;
}


/* =============================================================
   38. ARCHIVE PHOTO GRID
   Filterable grid of photo cards.
   Each card reveals a category label on hover and
   opens a modal with the full image + caption on click.
============================================================= */

.archive-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

#archive .archive-header h2 {
  margin-bottom: 0;
}

.archive-count {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: #555;
}

.archive-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.archive-filter {
  background: transparent;
  border: 1px solid #330000;
  color: #555;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 2px;
  padding: 6px 16px;
  margin: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.archive-filter:hover {
  border-color: rgba(255,0,0,0.4);
  color: #ff3a3a;
  transform: none;
}

.archive-filter-active {
  border-color: #ff0000;
  color: #ff3a3a;
  background: rgba(255,0,0,0.06);
}

.archive-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.archive-photo-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,0,0,0.1);
  aspect-ratio: 1 / 1;
  background: #0a0a0a;
}

.archive-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.1) saturate(0.75);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.archive-photo-card:hover img {
  transform: scale(1.06);
  filter: contrast(1.18) saturate(0.9);
}

.archive-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,0.75) 100%);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.archive-photo-card:hover .archive-photo-overlay {
  opacity: 1;
}

/* On mobile always show the overlay (no hover state) */
@media (hover: none) {
  .archive-photo-overlay { opacity: 1; }
}

.archive-photo-cat {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: #ff3a3a;
  border: 1px solid rgba(255,0,0,0.4);
  padding: 3px 8px;
  background: rgba(0,0,0,0.6);
}

.archive-photo-card.is-hidden {
  display: none;
}

/* Archive photo modal */

.archive-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.archive-modal-box {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: #080808;
  border: 1px solid rgba(255,0,0,0.2);
  box-shadow: 0 0 60px rgba(255,0,0,0.12);
}

.archive-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,0,0,0.3);
  color: #ff3a3a;
  font-size: 0.8rem;
  padding: 6px 10px;
  margin: 0;
  z-index: 10;
  line-height: 1;
}

.archive-modal-img {
  width: 100%;
  display: block;
  max-height: 80vh;
  object-fit: contain;
  filter: contrast(1.08) saturate(0.85);
}

.archive-modal-caption {
  padding: 14px 18px;
  color: #888;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 1px;
  border-top: 1px solid rgba(255,0,0,0.1);
  margin: 0;
}


/* =============================================================
   36. FOOTER REDESIGN
   Overrides the base footer defined in section 17.
============================================================= */

footer {
  padding: 45px 20px;
  border-top: 1px solid rgba(255, 0, 0, 0.08);
  background: linear-gradient(rgba(8, 8, 8, 0.98), rgba(0, 0, 0, 1));
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Scanline texture inside the footer */
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.015),
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}

footer p {
  margin: 8px 0;
  color: #666;
  letter-spacing: 2px;
  font-size: 0.72rem;
  position: relative;
  z-index: 2;
}


/* =============================================================
   37. AMBIENT PULSE
   Very subtle red glow that breathes in the background.
============================================================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 0, 0, 0.035), transparent 40%);
  pointer-events: none;
  z-index: -1;
  animation: ambientPulse 7s ease-in-out infinite;
}

@keyframes ambientPulse {
  0%,  100% { opacity: 0.45; }
  50%        { opacity: 0.8;  }
}

/* =============================================================
   iOS TAP FIX
   touch-action: manipulation removes the 300ms tap delay on iOS.
   cursor: pointer on <div> click targets makes iOS fire tap events.
============================================================= */

button,
a,
.archive-photo-card,
.archive-filter,
.merch-filter,
.track-button,
.merch-buy-btn,
.merch-size-btn,
.mobile-menu-btn,
.mobile-drawer nav a,
.progress-bar {
  touch-action: manipulation;
}

/* =============================================================
   38. RESPONSIVE — max-width: 900px (tablet / webzine)
============================================================= */

@media (max-width: 900px) {
  .top-search { grid-template-columns: 1fr; margin-top: 0; }
  .zine-grid  { grid-template-columns: 1fr; }
  .webzine-layout { padding: 140px 14px 30px; }
  .feature-panel h1 { letter-spacing: 3px; }
  .side-panel { gap: 12px; }
}

@media (max-width: 850px) {
  .music-panel { grid-template-columns: 1fr; }
  .music-art   { max-height: none; }
}

@media (max-width: 800px) {
  .bottom-strip { grid-template-columns: 1fr; }
}



/* =============================================================
   MOBILE SECTION ORDER
   Desktop order is determined by HTML source order.
   On mobile we reorder with flexbox order property so the
   sequence is: hero → merch → archive → music → live → contact
============================================================= */

@media (max-width: 700px) {
  /* Turn main into a flex column so order: works */
  /* #site-content is the <main> — make it flex so order: works on sections */
  #site-content {
    display: flex;
    flex-direction: column;
  }

  /* Mobile order: hero → merch → archive → music → live → contact */
  .classified    { display: none; }  /* desktop-only dossier panel */
  .mobile-hero   { order: 1; }
  #merch         { order: 2; }
  #archive       { order: 3; }
  #music         { order: 4; }
  #live          { order: 5; }
  #contact       { order: 6; }
  footer         { order: 7; }
  .webzine-layout { display: none; }
}

/* =============================================================
   39. MOBILE — max-width: 700px
   - Warning/boot screens bypassed (JS + CSS)
   - Desktop header replaced by hamburger + centred logo
   - Left-side nav drawer
   - Desktop-only sections hidden
   - All panels single-column
============================================================= */

/* Mobile-only UI elements (hidden on desktop) */

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  margin: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 2001;
  flex-shrink: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 1px;
  background: #ff0000;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-btn.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-btn.is-open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-logo {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px #ff0000);
}

/* Left drawer */

.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100%;
  background: #050505;
  border-right: 1px solid rgba(255,0,0,0.18);
  z-index: 2000;
  padding: 80px 0 40px;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 4px 0 30px rgba(0,0,0,0.8);
}

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

.mobile-drawer-label {
  position: absolute;
  top: 26px;
  left: 24px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 4px;
  color: #ff0000;
}

.mobile-drawer nav {
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.mobile-drawer nav a {
  display: block;
  padding: 18px 28px;
  font-size: 0.82rem;
  letter-spacing: 4px;
  border-bottom: 1px solid rgba(255,0,0,0.07);
  border-left: none;
  border-right: none;
  border-top: none;
  color: #888;
}

.mobile-drawer nav a:hover {
  color: #ff3a3a;
  background: rgba(255,0,0,0.04);
}

.mobile-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1999;
  opacity: 0;
  transition: opacity 0.28s ease;
}

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


@media (max-width: 700px) {

  /* cursor:none is never set on mobile (scoped to .custom-cursor which JS
     only adds on pointer:fine devices) so no override needed here */
  .cursor-dot { display: none; }

  /* Force-hide all intro screens via CSS — never rely solely on JS for this.
     If JS errors, these would otherwise block the entire page on mobile. */
  #warning-screen { display: none !important; }
  #boot-screen    { display: none !important; }
  #final-message  { display: none !important; }
  #site-content   { display: flex !important; flex-direction: column; }

  #warning-screen,
  #boot-screen,
  #final-message { display: none !important; }

  #site-content { display: block !important; }

  header {
    position: fixed;
    top: 0;
    height: 56px;
    padding: 0 14px;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
  }

  header nav,
  .system-status,
  .header-now-playing { display: none; }

  .mobile-menu-btn { display: flex; }
  .mobile-logo     { display: block; }
  .mobile-drawer,
  .mobile-drawer-overlay { display: block; }

  /* Show mobile hero, hide desktop-only sections */
  .mobile-hero    { display: block; }
  .static-overlay,
  .webzine-layout,
  .classified,
  .old-nav { display: none; }

  /* Keep archive visible and 2-col on mobile */
  #archive { display: block; }
  .archive-photo-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .archive-filters    { gap: 5px; }
  .archive-filter     { font-size: 0.62rem; padding: 5px 10px; letter-spacing: 1px; }
  .archive-count      { font-size: 0.65rem; }

  .section {
    padding: 80px 16px 50px;
    scroll-margin-top: 56px;
  }

  .section h2 {
    font-size: 1.6rem;
    letter-spacing: 4px;
    margin-bottom: 24px;
  }

  /* Music */
  .music-panel {
    display: flex;
    flex-direction: column;
    padding: 18px;
    gap: 16px;
  }

  .music-art-side { display: none; }
  .music-info-side h3 { font-size: 1.8rem; letter-spacing: 3px; }
  .playlist { display: flex; flex-direction: column; gap: 8px; }
  .track-button { width: 100%; text-align: left; padding: 12px 14px; }
  .player-row { gap: 8px; flex-wrap: wrap; }
  .player-row button { flex: 1; min-width: 80px; padding: 10px 6px; font-size: 0.68rem; }
  .music-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .music-links a { text-align: center; }

  /* Merch */
  .merch-header       { flex-direction: column; gap: 6px; }
  .merch-store-status { font-size: 0.65rem; }
  .merch-filters      { gap: 6px; margin-bottom: 16px; }
  .merch-filter       { font-size: 0.65rem; padding: 5px 12px; }
  .merch-grid         { grid-template-columns: 1fr 1fr; gap: 10px; }
  .merch-card-body    { padding: 12px; gap: 8px; }
  .merch-name         { font-size: 0.72rem; }
  .merch-h8c          { font-size: 0.78rem; }
  .merch-usd          { font-size: 0.75rem; }
  .merch-buy-btn      { font-size: 0.62rem; letter-spacing: 2px; padding: 9px 6px; }
  .merch-disclaimer   { font-size: 0.62rem; }
  .merch-footer       { flex-direction: column; gap: 6px; font-size: 0.62rem; }

  /* Live */
  .live-header { display: none; }
  .show-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 16px; }
  .show-date { font-size: 1rem; }

  /* Contact */
  .contact-panel { padding: 20px; }
  .social-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .social-links a { text-align: center; }

  /* Footer */
  footer { padding: 30px 16px; }
  footer p { font-size: 0.65rem; letter-spacing: 1px; }
}


/* =============================================================
   40. MOBILE — max-width: 420px (small phones)
============================================================= */

@media (max-width: 420px) {
  .merch-grid { grid-template-columns: 1fr; }
  .section h2 { font-size: 1.4rem; }
}
