:root {
  --col-bg: #c3c3c3;
  --col-navy: #000080;
  --col-blue: #1084d0;
  --col-accent-blue: #0044ff;
  --col-yellow: #ffe500;
  --col-pink: #ff2ea6;
  --col-green: #00ff88;
  --col-red: #c00;
  --col-shadow: #5a5a5a;
  --col-highlight: #fff;
  --font-pixel: 'Press Start 2P', monospace;
  --font-mono: 'VT323', monospace;
  --font-heading: 'Rubik Mono One', sans-serif;
  --win95-inset: inset -2px -2px 0 var(--col-shadow), inset 2px 2px 0 var(--col-highlight);
  --win95-pressed: inset 2px 2px 0 var(--col-shadow), inset -2px -2px 0 var(--col-highlight);
}

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

::selection { background: var(--col-yellow); color: #000; }
::-moz-selection { background: var(--col-yellow); color: #000; }

html, body { min-height: 100vh; overflow-x: hidden; }

body {
  font-family: var(--font-mono);
  background: url(assets/beach.gif) center / cover fixed;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 8px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  background-size: 100% 0.4vh;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 50%, transparent 50% 100%);
  mix-blend-mode: multiply;
}

/* ═══ WINDOW CHROME ═══ */

.win {
  width: min(1200px, 98vw);
  height: 820px;
  background: var(--col-bg);
  border: 2px solid #000;
  box-shadow:
    var(--win95-inset),
    8px 8px 0 #000,
    14px 14px 0 var(--col-pink);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 5;
}

.win::after {
  content: "◢";
  position: absolute;
  right: 2px;
  bottom: 2px;
  color: #888;
  font-size: 14px;
}

.titlebar {
  height: 28px;
  flex: none;
  background: linear-gradient(90deg, var(--col-navy) 0%, var(--col-blue) 50%, var(--col-pink) 100%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 10px;
  border-bottom: 2px solid #000;
}

.titlebar-dot {
  width: 14px;
  height: 14px;
  background: var(--col-yellow);
  border: 2px solid #000;
  box-shadow: inset -2px -2px 0 #7a7000, inset 2px 2px 0 #fff;
}

.titlebar-dot--green { background: var(--col-green); }
.titlebar-dot--pink  { background: var(--col-pink); }

.titlebar-title {
  flex: 1;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 #000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.menubar {
  height: 22px;
  flex: none;
  background: var(--col-bg);
  border-bottom: 1px solid #7a7a7a;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: #000;
}

.menubar u { text-decoration: underline; }
.menubar-spacer { flex: 1; }

.menubar-clock {
  font-size: 13px;
  background: #000;
  color: #0f0;
  padding: 1px 6px;
  border: 1px inset var(--col-bg);
  font-family: var(--font-mono);
}

.menubar-clock::before { content: "● REC  "; }

/* ═══ BODY GRID ═══ */

.body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto minmax(0,1fr) minmax(0,1fr) auto;
  gap: 10px;
  padding: 10px;
  background: repeating-linear-gradient(45deg, #7db4ff 0 24px, #6aa8ff 24px 48px);
}

.hero { grid-row: 1; }
.bio, .release, .shows { grid-row: 2; }
.vitals, .press-assets, .contact { grid-row: 3; }
.marquee { grid-row: 4; }

/* ═══ HERO ═══ */

.hero {
  grid-column: 1 / -1;
  background: #000;
  border: 2px solid #000;
  box-shadow: inset -3px -3px 0 #222, inset 3px 3px 0 #fff, 4px 4px 0 var(--col-yellow);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 50%, rgba(255,46,166,.35), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(0,229,255,.35), transparent 40%);
}

.hero-portrait {
  width: 64px;
  height: 64px;
  flex: none;
  background: #fff url(assets/monkey.jpg) center / cover;
  border: 3px solid #fff;
  outline: 3px solid #000;
  box-shadow: 4px 4px 0 var(--col-pink);
  image-rendering: pixelated;
  transform: rotate(-3deg);
  position: relative;
  z-index: 2;
}

.hero-portrait::after {
  content: "ARTIST.BMP";
  position: absolute;
  bottom: -14px;
  left: -3px;
  right: -3px;
  background: var(--col-yellow);
  color: #000;
  font-family: var(--font-pixel);
  font-size: 6px;
  text-align: center;
  padding: 2px 0;
  border: 2px solid #000;
  transform: rotate(3deg);
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: .85;
  color: var(--col-yellow);
  letter-spacing: -.03em;
  text-shadow: 3px 0 0 var(--col-pink), 6px 0 0 var(--col-accent-blue), 3px 3px 0 #000;
  position: relative;
  z-index: 2;
  transform: skewX(-4deg);
}

.hero-name span { color: var(--col-green); }

.hero-tag {
  margin-left: auto;
  font-family: var(--font-pixel);
  font-size: 8px;
  color: #fff;
  text-align: right;
  line-height: 1.7;
  background: rgba(0,0,0,.6);
  border: 2px dashed var(--col-green);
  padding: 6px 8px;
  position: relative;
  z-index: 2;
}

.hero-tag b  { color: var(--col-yellow); }
.hero-tag em { color: var(--col-pink); font-style: normal; }

.blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ═══ PANELS ═══ */

.panel {
  background: var(--col-bg);
  border: 2px solid #000;
  box-shadow: var(--win95-inset);
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}

.panel-header {
  height: 22px;
  flex: none;
  background: linear-gradient(90deg, var(--col-navy), var(--col-blue));
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 9px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  letter-spacing: 1px;
  border-bottom: 1px solid #000;
  gap: 6px;
}

.panel-header::before { content: "▣"; }

.panel-body {
  padding: 6px 8px;
  color: #000;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.1;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ═══ BIO ═══ */

.bio { grid-column: 1 / 2; }

.bio .panel-body {
  overflow-y: auto;
}

.bio-book {
  width: 60px;
  image-rendering: pixelated;
  filter: drop-shadow(2px 2px 0 #000);
  float: left;
  margin: 0 8px 4px 0;
  transform: rotate(-6deg);
}

.bio-book--mirror {
  float: right;
  margin: 0 0 4px 8px;
  transform: none;
}

.bio h3 {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--col-navy);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--col-navy);
  padding-bottom: 3px;
  margin: 8px 0 4px;
}

.bio h3:first-child { margin-top: 0; }

.bio p { color: #000; line-height: 1.25; text-align: justify; }
.bio p + p { margin-top: 6px; }

.bio a { color: var(--col-accent-blue); text-decoration: underline; }
.bio a:hover { color: var(--col-navy); }

.bio-stamp {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--col-red);
  border: 2px solid var(--col-red);
  padding: 3px 5px;
  transform: rotate(-8deg);
  background: rgba(255,255,255,.6);
}

/* ═══ RELEASES ═══ */

.release { grid-column: 2 / 3; }

.release-cover {
  background: repeating-linear-gradient(45deg, #ff00aa 0 8px, var(--col-accent-blue) 8px 16px);
  height: 64px;
  border: 2px solid #000;
  box-shadow: inset 0 0 0 3px var(--col-yellow);
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.release-cover img {
  width: 56px;
  filter: drop-shadow(3px 3px 0 #000);
  transform: rotate(-4deg) scale(1.1);
}

.release-cover-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--col-yellow);
  color: #000;
  font-family: var(--font-pixel);
  font-size: 7px;
  padding: 2px 4px;
  border: 1px solid #000;
}

.release-title {
  font-family: var(--font-pixel);
  font-size: 8px;
  display: block;
  margin-bottom: 6px;
}

.release-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 15px;
}

.release-table th,
.release-table td {
  text-align: left;
  padding: 2px 4px;
  border-bottom: 1px dotted #777;
  white-space: nowrap;
}

.release-table th {
  background: var(--col-navy);
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 7px;
  padding: 3px 4px;
}

.release-table td:first-child {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: #888;
  width: 18px;
}

.release-table td:nth-child(2) { white-space: normal; }

.release-table a {
  color: var(--col-accent-blue);
  text-decoration: underline;
}

.release-table tr:hover { background: var(--col-yellow); }
.release-table a:hover { color: var(--col-navy); }

/* ═══ TECH RIDER / VITALS ═══ */

.vitals { grid-column: 1 / 2; }

.rider-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.rider-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
}

.rider-head dt { color: var(--col-navy); font-weight: 700; font-size: 16px; }
.rider-head dd { color: #000; padding-bottom: 3px; border-bottom: 1px dotted #bbb; margin-bottom: 3px; }

.rider-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e0ddd4;
  border: 2px solid #000;
  box-shadow: var(--win95-pressed);
  padding: 6px;
}

.rider-img {
  width: 52px;
  height: 52px;
  flex: none;
  object-fit: contain;
  image-rendering: pixelated;
}

.rider-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rider-text b {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--col-navy);
  letter-spacing: 1px;
}

.rider-text span {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #000;
  line-height: 1.2;
}

/* ═══ SHOWS ═══ */

.shows { grid-column: 3 / 4; }

.shows .panel-body { overflow: auto; }

.shows table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 16px;
}

.shows th,
.shows td {
  text-align: left;
  padding: 1px 4px;
  border-bottom: 1px dotted #777;
}

.shows th {
  background: var(--col-navy);
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 7px;
  padding: 3px 4px;
}

.shows a { color: var(--col-accent-blue); text-decoration: underline; }
.shows a:hover { color: var(--col-navy); }
.shows tr:hover { background: var(--col-yellow); }

/* Visually hidden but accessible to screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ═══ CONTACT ═══ */

.contact { grid-column: 3 / 4; }

.contact .panel-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  min-height: 0;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  background: #d4d0c8;
  border: 2px solid #000;
  box-shadow: var(--win95-inset);
  padding: 5px 8px;
  cursor: pointer;
  transition: background .1s, transform .06s;
}

.card:hover { background: var(--col-yellow); }
.card:active { box-shadow: var(--win95-pressed); transform: translate(1px, 1px); }

.card-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  image-rendering: pixelated;
  flex: none;
}

.card-info { flex: 1; min-width: 0; }
.card-info b { display: block; color: var(--col-navy); font-family: var(--font-pixel); font-size: 7px; letter-spacing: 1px; }
.card-info span { font-size: 14px; color: #000; line-height: 1.2; }

/* ═══ PRESS ASSETS ═══ */

.press-assets { grid-column: 2 / 3; }

.press-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.press-btn {
  text-decoration: none;
  color: #000;
  background: #d4d0c8;
  border: 2px solid #000;
  box-shadow: var(--win95-inset);
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 15px;
  text-align: center;
  line-height: 1;
  min-height: 58px;
  transition: transform .06s;
}

.press-btn:hover { background: var(--col-yellow); }
.press-btn:active { box-shadow: var(--win95-pressed); transform: translate(1px, 1px); }

.press-btn-ico { width: 56px; height: 56px; object-fit: contain; image-rendering: pixelated; margin-bottom: 2px; }
.press-btn-label { font-size: 14px; }
.press-btn b { font-family: var(--font-pixel); font-size: 7px; color: var(--col-red); margin-top: 2px; }

/* ═══ STREAMINGS DROPDOWN (inside contact) ═══ */

.card--expandable {
  font: inherit;
  text-align: left;
}

.stream-dropdown {
  display: none;
  flex-direction: column;
  gap: 3px;
}

.stream-dropdown.open {
  display: flex;
}

.stream-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #000;
  background: var(--col-bg);
  border: 2px solid #000;
  box-shadow: var(--win95-inset);
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  transition: background .1s, transform .06s;
}

.stream-link:hover { background: var(--col-yellow); color: #000; }
.stream-link:active { box-shadow: var(--win95-pressed); transform: translate(1px, 1px); }

.stream-num  { font-family: var(--font-pixel); font-size: 7px; color: #888; min-width: 18px; flex: none; }
.stream-name { flex: 1; }
.stream-pl   { font-family: var(--font-pixel); font-size: 7px; color: var(--col-accent-blue); background: #e8e8e8; padding: 1px 4px; border: 1px solid #000; }

/* ═══ MARQUEE ═══ */

.marquee {
  grid-column: 1 / -1;
  background: var(--col-yellow);
  border: 2px solid #000;
  overflow: hidden;
  height: 24px;
  display: flex;
  align-items: center;
  box-shadow: inset 0 -3px 0 #c0a900;
}

.marquee-track {
  white-space: nowrap;
  animation: scroll 28s linear infinite;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: #000;
}

.marquee-track b { color: var(--col-red); }
.marquee-track em { color: var(--col-accent-blue); font-style: normal; }

@keyframes scroll { to { transform: translateX(-50%); } }

/* ═══ STATUSBAR ═══ */

.statusbar {
  flex: none;
  height: 20px;
  background: var(--col-bg);
  border-top: 1px solid #fff;
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
}

.statusbar-seg {
  padding: 0 10px;
  border-left: 1px solid #7a7a7a;
  border-right: 1px solid #fff;
  height: 100%;
  display: flex;
  align-items: center;
}

.statusbar-seg:first-child { border-left: none; }
.statusbar-seg b { color: var(--col-red); }
.statusbar-online { color: #080; font-weight: 700; }
.statusbar-end { margin-left: auto; }

/* ═══ REDUCED MOTION ═══ */

@media (prefers-reduced-motion: reduce) {
  .blink,
  .marquee-track { animation: none; }
}

/* ═══ RESPONSIVE ═══ */

@media (max-width: 900px) {
  .body {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto repeat(4, 1fr) auto;
  }

  .hero        { grid-column: 1 / -1; }
  .bio         { grid-column: 1 / -1; }
  .release     { grid-column: 1 / 2; }
  .vitals      { grid-column: 2 / 3; }
  .shows       { grid-column: 1 / -1; }
  .contact     { grid-column: 1 / 2; }
  .press-assets { grid-column: 2 / 3; }
  .marquee     { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { padding: 0; }

  .win {
    width: 100%;
    max-width: 100vw;
    height: auto;
    box-shadow: none;
  }

  .body {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 6px;
    padding: 6px;
  }

  .hero,
  .bio,
  .release,
  .shows,
  .vitals,
  .press-assets,
  .contact,
  .marquee {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .hero {
    flex-wrap: wrap;
    padding: 8px;
  }

  .hero-tag  { margin-left: 0; width: 100%; text-align: left; }
  .hero-name { font-size: 32px; }

  .panel-body { overflow-y: auto; }

  .titlebar-title { font-size: 8px; }
}
