/* Cry Team — clean black + blood red layout */
:root {
  --bg: #000;
  --panel: #0c0000;
  --panel2: #140404;
  --line: #5a0000;
  --blood: #8b0000;
  --hot: #c41e3a;
  --bright: #e62828;
  --text: #edd6d6;
  --muted: #9a6a6a;
  --font: "Courier Prime", "Courier New", monospace;
  --display: "UnifrakturMaguntia", Georgia, serif;
  --pixel: "VT323", monospace;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  cursor: url("../img/cry/cursor.svg") 16 16, crosshair;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
a, button, .nav a, .wbtn, .btn, .links a, .neighbours a, .err404-ok, .err404-x {
  cursor: url("../img/cry/cursor.svg") 16 16, pointer;
}
img:not(.nav-crow), .gallery img, .avatar, .brand-logo {
  cursor: url("../img/cry/cursor.svg") 16 16, crosshair;
}
a { color: var(--bright); text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }

.site {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(180deg, #000 0%, #0a0000 50%, #000 100%);
}

.page {
  position: relative;
  width: 1000px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 12px 40px;
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 12px;
  align-items: start;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border: 2px solid var(--hot);
  background: var(--panel2);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  width: 64px; height: 64px;
  object-fit: contain;
  background: #000;
  border: 1px solid var(--line);
  padding: 4px;
}
.brand h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 7vw, 48px);
  color: var(--bright);
  line-height: 1;
  font-weight: 400;
}
.tag { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.top-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  font-family: var(--pixel); font-size: 18px;
}
.offline {
  color: #ff2a2a;
  text-shadow: 0 0 8px rgba(196, 30, 58, .55);
  animation: offline-blink 1.4s step-end infinite;
}
@keyframes offline-blink { 50% { opacity: .35; } }

/* Surprise old 404 / Error */
.err404 {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .72);
  display: grid;
  place-items: center;
  padding: 16px;
}
.err404[hidden] { display: none !important; }
.err404.is-pop {
  animation: err-shake .45s ease;
}
@keyframes err-shake {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-6px, 2px); }
  40% { transform: translate(6px, -2px); }
  60% { transform: translate(-4px, 1px); }
  80% { transform: translate(4px, -1px); }
}
.err404-window {
  width: min(420px, 94vw);
  background: #c0c0c0;
  border: 2px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  box-shadow: 4px 4px 0 #000, inset 1px 1px 0 #dfdfdf;
  color: #000;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}
.err404-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #8b0000, #400000);
  color: #fff;
  padding: 4px 6px;
  font-size: 12px;
  font-weight: 700;
}
.err404-x {
  width: 18px;
  height: 16px;
  line-height: 12px;
  padding: 0;
  background: #c0c0c0;
  border: 2px outset #fff;
  font-size: 14px;
  cursor: pointer;
  color: #000;
}
.err404-body {
  padding: 18px 20px 16px;
  text-align: center;
  background: #d4d0c8;
}
.err404-code {
  margin: 0;
  font-family: "Homemade Apple", "Caveat", cursive;
  font-size: clamp(64px, 18vw, 92px);
  line-height: 1;
  color: #8b0000;
  transform: rotate(-4deg);
  text-shadow: 2px 2px 0 #400;
}
.err404-msg {
  margin: 4px 0 10px;
  font-family: "Homemade Apple", "Caveat", cursive;
  font-size: 42px;
  color: #200;
  transform: rotate(2deg);
}
.err404-hand {
  margin: 0 0 6px;
  font-family: "Caveat", cursive;
  font-size: 26px;
  color: #222;
  transform: rotate(-1deg);
}
.err404-hand.small {
  font-size: 20px;
  color: #555;
  margin-bottom: 14px;
}
.err404-ok {
  min-width: 80px;
  padding: 4px 18px;
  background: #c0c0c0;
  border: 2px outset #fff;
  font-family: Tahoma, sans-serif;
  font-size: 13px;
  cursor: pointer;
}
.err404-ok:active { border-style: inset; }

.views { color: var(--muted); }
.views b { color: var(--bright); }

.nav-ad {
  display: block;
  width: min(420px, 100%);
  height: auto;
  object-fit: contain;
  border: 1px solid var(--hot);
  background: #000;
  margin: 0 auto 6px;
  image-rendering: auto;
}
.nav-wrap {
  position: relative;
  margin-bottom: 8px;
  padding-top: 52px;
}
.nav-crow {
  position: absolute;
  left: 917px;
  top: 320px;
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
  z-index: 40;
  filter: drop-shadow(0 2px 0 #000);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.nav {
  display: flex; flex-wrap: wrap; gap: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 8px;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}
.nav a {
  color: var(--text);
  padding: 6px 12px;
  border: 1px solid transparent;
  font-family: var(--pixel);
  font-size: 18px;
  text-decoration: none;
}
.nav a:hover {
  color: #fff;
  background: var(--blood);
  border-color: var(--hot);
  text-decoration: none;
}

.strip {
  display: block;
  font-family: var(--pixel);
  font-size: 17px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: #080000;
  padding: 4px 0;
  margin-bottom: 12px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 14px;
  margin-bottom: 12px;
}
.card h2 {
  margin: 0 0 12px;
  font-family: var(--pixel);
  font-size: 22px;
  color: var(--bright);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  font-weight: 400;
}
.card p { margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }

.avatar {
  width: 160px;
  height: 160px;
  margin: 0 auto 10px;
  object-fit: contain;
  background: #000;
  border: 2px solid var(--hot);
  padding: 8px;
}
.mood {
  text-align: center;
  font-style: italic;
  color: var(--bright);
  margin-bottom: 12px !important;
}
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}
.facts li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #2a0000;
}
.facts span { color: var(--muted); }

.links { display: grid; gap: 6px; }
.links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #100000;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
.links a:hover {
  background: var(--blood);
  color: #fff;
  text-decoration: none;
}
.link-ico {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 3px;
}

.mini-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.mini-icons a {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: #000;
  border: 1px solid var(--line);
  padding: 6px;
}
.mini-icons a:hover { border-color: var(--hot); }
.mini-icons img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.muted { color: var(--muted); font-size: 12px; margin-bottom: 12px !important; }
.sub-h {
  margin: 16px 0 8px;
  font-family: var(--pixel);
  font-size: 18px;
  color: var(--hot);
  font-weight: 400;
}

.web-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.wbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 88px;
  height: 31px;
  padding: 0 6px;
  border: 1px solid #fff;
  box-shadow: inset -1px -1px 0 #000, inset 1px 1px 0 #666;
  text-decoration: none !important;
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: .04em;
  color: #fff !important;
  image-rendering: pixelated;
}
.wbtn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}
.wbtn span { line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbtn.cry { background: linear-gradient(180deg, #5a0000, #1a0000); border-color: var(--hot); }
.wbtn.spocry, .wbtn.app { background: linear-gradient(180deg, #2a2a2a, #0a0a0a); border-color: #e91429; }
.wbtn.tg { background: linear-gradient(180deg, #2a9fc9, #1578a0); border-color: #7ad4f5; }
.wbtn:hover { filter: brightness(1.15); }

.neighbours {
  display: grid;
  gap: 6px;
}
.neighbours a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #100000;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
.neighbours a:hover {
  border-color: var(--hot);
  background: #1a0000;
  text-decoration: none;
  color: #fff;
}
.neighbours img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 16px;
  background: var(--blood);
  border: 2px solid var(--hot);
  color: #fff !important;
  font-family: var(--pixel);
  font-size: 20px;
  text-decoration: none !important;
}
.btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  background: #000;
  border-radius: 4px;
}
.btn:hover { background: var(--hot); }

.foot-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}
.foot-icons a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #0a0000;
  padding: 4px;
}
.foot-icons a:hover { border-color: var(--hot); }
.foot-icons img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.side-gif {
  width: 100%;
  border: 1px solid var(--hot);
  background: #000;
}
.side-gif + .side-gif {
  margin-top: 10px;
}
.side-ad-banner {
  aspect-ratio: auto;
  object-fit: contain;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #000;
}
.gallery img[src$=".gif"],
.gallery img[src$="logo.png"] {
  object-fit: contain;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th, .table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.table th {
  width: 90px;
  background: #1a0000;
  color: var(--hot);
}

ol { margin: 0; padding-left: 20px; }
ol li { margin: 6px 0; }

.stamp {
  display: inline-block;
  margin: 12px 0;
  border: 1px dashed var(--hot);
  padding: 5px 10px;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--hot);
}

.foot {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.foot p { margin: 4px 0; }

/* Win95-style CD player */
.cd-player {
  width: 100%;
  max-width: 420px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: 1px 1px 0 #000;
  font-family: "VT323", "MS Sans Serif", Tahoma, sans-serif;
  color: #000;
  user-select: none;
}
.cd-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #000;
  color: #fff;
  padding: 3px 4px;
  font-size: 15px;
  line-height: 1;
}
.cd-ico {
  font-size: 12px;
  line-height: 1;
  width: 14px;
  text-align: center;
}
.cd-title { flex: 1; letter-spacing: 0.5px; }
.cd-winbtns {
  display: flex;
  gap: 2px;
}
.cd-winbtns span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 14px;
  background: #c0c0c0;
  color: #000;
  border: 1px solid;
  border-color: #fff #000 #000 #fff;
  font-size: 11px;
  line-height: 1;
  font-family: Tahoma, sans-serif;
}
.cd-body {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 10px;
  padding: 10px;
}
.cd-art {
  position: relative;
  width: 118px;
  height: 118px;
  background: #000;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  overflow: hidden;
}
.cd-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  filter: grayscale(1) contrast(1.15);
}
.cd-yt {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  border: 0;
  left: 0;
  top: 0;
}
.cd-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding-top: 2px;
}
.cd-select {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  min-height: 26px;
}
.cd-track {
  flex: 1;
  padding: 3px 6px;
  font-size: 16px;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cd-caret {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  background: #c0c0c0;
  border-left: 1px solid #808080;
  font-size: 12px;
  line-height: 1;
}
.cd-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
  margin: 10px 0;
}
.cd-time {
  font-size: 15px;
  color: #000;
  min-width: 2.4em;
}
.cd-time:last-child { text-align: right; }
.cd-bar {
  position: relative;
  height: 8px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.cd-bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #000;
}
.cd-bar i {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0%;
  height: 2px;
  background: #000;
  pointer-events: none;
}
.cd-knob {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 8px;
  height: 12px;
  margin: 0;
  transform: translate(-50%, -50%);
  background: #c0c0c0;
  border: 1px solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: inset 1px 1px 0 #dfdfdf;
  pointer-events: none;
}
.cd-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.cd-btn {
  height: 28px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: inset 1px 1px 0 #dfdfdf;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cd-btn svg {
  width: 14px;
  height: 14px;
  display: block;
}
.cd-btn:active,
.cd-btn.is-on {
  border-color: #000 #fff #fff #000;
  box-shadow: inset 1px 1px 0 #808080;
}
.cd-btn.is-playing .ico-play { display: none; }
.cd-btn.is-playing .ico-pause { display: block !important; }
.cd-btn.is-muted .ico-vol { display: none; }
.cd-btn.is-muted .ico-muted { display: block !important; }
.cd-btn:focus { outline: 1px dotted #000; outline-offset: -4px; }

