/* ============================================================
   THE STRUVE FAMILY — GeoCities edition
   "What would 12-year-old Brandon build?"
   Clashing on purpose. Modern under the hood:
   responsive, fast, no autoplay, reduced-motion respected.
   Fonts: Comic Neue is self-hosted (fonts/) so desktop and mobile
   render identically. No Google Fonts dependency.
   ============================================================ */
@font-face {
  font-family: "Comic Neue";
  src: url("../fonts/comic-neue-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Comic Neue";
  src: url("../fonts/comic-neue-400i.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Comic Neue";
  src: url("../fonts/comic-neue-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
:root {
  --yellow: #ffff00;
  --cyan: #00ffff;
  --magenta: #ff00ff;
  --lime: #00ff00;
  --red: #ff0000;
  --blue: #0000ff;
  --link: #00aaff;
  --link-visited: #cc66ff;
  --ink: #ffffff;
  --panel: #000033;
  --font-head: "Comic Neue", "Comic Sans MS", "Chalkboard SE", cursive;
  --font-body: "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  background-color: #000010;
  background-image:
    radial-gradient(1px 1px at 12px 18px, #fff 100%, transparent 100%),
    radial-gradient(1px 1px at 48px 52px, #fff 100%, transparent 100%),
    radial-gradient(1.5px 1.5px at 78px 12px, #ffee88 100%, transparent 100%),
    radial-gradient(1px 1px at 32px 78px, #88ddff 100%, transparent 100%),
    radial-gradient(1px 1px at 92px 88px, #fff 100%, transparent 100%);
  background-size: 110px 110px;
}
::selection { background: var(--magenta); color: #fff; }

a { color: var(--link); }
a:visited { color: var(--link-visited); }

/* twinkle canvas sits behind everything */
#twinkles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body > :not(#twinkles) { position: relative; z-index: 1; }

/* clip art: keep it crisp and inline like it's 1996 */
.clip { image-rendering: pixelated; vertical-align: middle; border: 0; }
.clip-center { display: block; margin: 6px auto; image-rendering: pixelated; }

/* playlist cover art */
.cd-cover { display: block; max-width: 100%; height: auto; margin: 0 auto 8px; border: 2px solid #ffff00; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 14px; }

/* ---------- the marquee ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  background: #000; border-top: 3px ridge var(--yellow); border-bottom: 3px ridge var(--yellow);
  padding: 6px 0; margin: 0;
}
.marquee span {
  display: inline-block; padding-left: 100%;
  font-family: var(--font-head); font-size: 20px; color: var(--yellow);
  animation: scrollx 18s linear infinite;
}
@keyframes scrollx { to { transform: translateX(-100%); } }

/* ---------- header ---------- */
.site-head { text-align: center; padding: 18px 0 6px; }
.site-head h1 {
  font-family: var(--font-head); font-size: clamp(38px, 9vw, 64px);
  margin: 6px 0; color: var(--yellow);
  text-shadow: 3px 3px 0 var(--magenta), 6px 6px 0 #000;
  letter-spacing: 1px;
}
.site-head .sub {
  font-family: var(--font-head); color: var(--cyan); font-size: 20px; margin: 0 0 10px;
  text-shadow: 2px 2px 0 #000;
}
.blink { animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- classic nav buttons ---------- */
.navbtns { text-align: center; margin: 14px 0 6px; }
.navbtns a {
  display: inline-block; margin: 4px; padding: 8px 16px;
  font-family: var(--font-head); font-size: 16px; color: #000 !important;
  background: #c0c0c0; border: 3px outset #ffffff; text-decoration: none;
}
.navbtns a:active { border-style: inset; }
.navbtns a:visited { color: #000 !important; }

/* ---------- rainbow rule ---------- */
hr.rainbow {
  border: 0; height: 8px; margin: 22px 0;
  background: linear-gradient(90deg, var(--red), #ff8800, var(--yellow), var(--lime), var(--cyan), var(--blue), var(--magenta));
}
hr.plain { border: 0; border-top: 2px dashed var(--cyan); margin: 22px 0; }

/* ---------- panels ---------- */
.panel {
  background: var(--panel); border: 4px ridge var(--cyan);
  padding: 18px; margin: 18px 0;
}
.panel h2, .panel h3 { font-family: var(--font-head); color: var(--lime); margin-top: 0; text-shadow: 2px 2px 0 #000; }
.panel.hot { border-color: var(--magenta); }
.panel.hot h2, .panel.hot h3 { color: var(--yellow); }

h2.page-title {
  font-family: var(--font-head); color: var(--cyan); text-align: center;
  font-size: clamp(30px, 7vw, 46px); text-shadow: 3px 3px 0 var(--blue), 5px 5px 0 #000;
  margin: 14px 0 4px;
}
.center { text-align: center; }
.comic { font-family: var(--font-head); }
.big { font-size: 22px; }
.tiny { font-size: 13px; color: #bbbbbb; }

/* ---------- visitor counter (odometer) ---------- */
.counter { text-align: center; margin: 16px 0; font-family: var(--font-head); color: var(--yellow); }
.odometer { display: inline-block; background: #111; border: 3px inset #888; padding: 4px 8px; letter-spacing: 4px; }
.odometer span {
  display: inline-block; background: #000; color: var(--lime);
  font-family: "Courier New", monospace; font-weight: bold; font-size: 26px;
  border: 1px solid #333; padding: 2px 6px; margin: 0 1px;
  text-shadow: 0 0 8px var(--lime);
}

/* ---------- construction ---------- */
.construction {
  text-align: center; border: 4px dashed var(--yellow); background: #220000;
  padding: 16px; margin: 18px 0; font-family: var(--font-head); color: var(--yellow);
}
.construction .stripes {
  height: 14px; margin: -16px -16px 12px;
  background: repeating-linear-gradient(45deg, var(--yellow) 0 14px, #111 14px 28px);
}

/* ---------- guestbook entries ---------- */
.gb-entry { border: 2px solid var(--cyan); background: #000022; padding: 12px 14px; margin: 12px 0; }
.gb-entry .who { font-family: var(--font-head); color: var(--magenta); }
.gb-entry .when { font-size: 13px; color: #9999cc; }
.gb-entry p { margin: 8px 0 0; }

/* ---------- forms ---------- */
label.flabel { display: block; font-family: var(--font-head); color: var(--cyan); margin: 12px 0 4px; }
input.finput, textarea.finput, select.finput {
  width: 100%; font-family: var(--font-body); font-size: 17px;
  background: #fff; color: #000; border: 3px inset #888; padding: 8px 10px;
}
textarea.finput { min-height: 110px; }
.btn90 {
  font-family: var(--font-head); font-size: 18px; color: #000;
  background: #c0c0c0; border: 4px outset #fff; padding: 10px 26px; cursor: pointer;
  margin-top: 14px;
}
.btn90:active { border-style: inset; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-ok { border: 3px solid var(--lime); background: #002200; padding: 12px; margin-top: 14px; display: none; font-family: var(--font-head); }
.form-ok.show { display: block; }
.form-err { border: 3px solid var(--red); background: #220000; padding: 12px; margin-top: 14px; display: none; font-family: var(--font-head); }
.form-err.show { display: block; }

/* ---------- webring / footer ---------- */
.webring {
  text-align: center; margin: 26px 0 8px; font-family: var(--font-head); color: var(--cyan);
}
.webring a { margin: 0 8px; }
.badge-row { text-align: center; margin: 14px 0; }
.badge {
  display: inline-block; font-family: var(--font-head); font-size: 12px;
  border: 2px solid var(--yellow); color: var(--yellow); padding: 4px 10px; margin: 3px;
  background: #111;
}
footer.site { text-align: center; padding: 10px 0 34px; }
footer.site .tiny { margin: 6px 0; }

/* playlist "CD rack" */
.cd { border: 3px outset #888; background: #1a1a2e; padding: 14px; margin: 12px 0; }
.cd h3 { font-family: var(--font-head); color: var(--yellow); margin: 0 0 6px; text-shadow: 2px 2px 0 #000; }
.cd .tag { display: inline-block; font-family: var(--font-head); font-size: 12px; background: var(--magenta); color: #fff; padding: 2px 8px; margin-bottom: 8px; }
.cd p { margin: 6px 0; }

/* gate */
.gatebox { text-align: center; border: 4px ridge var(--magenta); background: #220022; padding: 26px 18px; margin: 20px 0; }
.gatebox input { max-width: 300px; margin: 0 auto; text-align: center; font-size: 20px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .panel { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee span { animation: none; padding-left: 0; }
  .blink { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- playlist accordion ---------- */
.acc { border: 3px outset #888; background: #1a1a2e; margin: 12px 0; }
.acc-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; padding: 12px 14px; cursor: pointer; text-align: left;
  background: #22223a; border: 0; border-bottom: 3px outset #888;
  font-family: var(--font-head); font-size: 20px; color: var(--yellow);
  text-shadow: 2px 2px 0 #000;
}
.acc-head:hover { background: #2a2a48; }
.acc-head.open { border-bottom-style: inset; }
.acc-head .acc-title { overflow: hidden; text-overflow: ellipsis; }
.acc-head .acc-meta { white-space: nowrap; font-size: 14px; color: var(--cyan); }
.acc-head .acc-caret { display: inline-block; margin-left: 8px; color: var(--lime); font-size: 22px; transition: transform .15s; }
.acc-head.open .acc-caret { transform: rotate(45deg); }
.acc-body { padding: 14px; }
.acc-body h3 { font-family: var(--font-head); color: var(--yellow); margin: 0 0 6px; text-shadow: 2px 2px 0 #000; }
.acc-cols { display: flex; gap: 18px; align-items: flex-start; margin-top: 10px; }
.acc-left { flex: 0 0 240px; max-width: 240px; }
.acc-left .cd-cover { margin: 0 0 10px; }
.acc-right { flex: 1; min-width: 0; }
.acc-right .ip-tracks { max-height: 420px; overflow-y: auto; margin: 0; padding-left: 26px; }
.acc-right .ip-tracks li { margin: 4px 0; }
@media (max-width: 640px) {
  .acc-cols { flex-direction: column; }
  .acc-left { flex: none; max-width: 100%; }
  .acc-right { width: 100%; }
}

/* ---------- admin tabs ---------- */
.tabnav { display: flex; gap: 8px; margin: 14px 0 4px; flex-wrap: wrap; }
.tabnav button {
  font-family: var(--font-head); font-size: 18px; padding: 8px 18px; cursor: pointer;
  background: #22223a; color: var(--cyan); border: 3px outset #888;
}
.tabnav button:hover { background: #2a2a48; }
.tabnav button.on { background: var(--magenta); color: #fff; border-style: inset; }

/* ---------- playlist table ---------- */
.pl-table { width: 100%; border-collapse: collapse; }
.pl-table th, .pl-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #444; vertical-align: top; }
.pl-table th { font-family: var(--font-head); color: var(--lime); font-size: 15px; }
.pl-table tr.editing td { background: #22223a; }
.pl-table .flabel { margin: 6px 0 2px; }
.pl-table .finput { margin: 0 0 4px; }
