:root {
  --bg: #0a0a0a;
  --blood: #8b0000;
  --crimson: #c9184a;
  --text: #e8e8e8;
  --charcoal: #3a3a3a;
  --charcoal-light: #5a5a5a;
}

* {
  box-sizing: border-box;
  cursor: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-10.2-9.6C.3 8.4 1.6 4.8 5 4c2.2-.5 4 .7 5 2.4L12 4s2-2.3 4.5-2.5C19.6 1.2 22 3.6 22 7c0 5-6 9.4-8 11.6l-1 1.4z' fill='%238b0000' stroke='%23c9184a' stroke-width='0.8'/%3E%3Cpath d='M12 6 10 12l3 1-2 5' fill='none' stroke='%230a0a0a' stroke-width='1'/%3E%3C/svg%3E") 12 12, auto;
}

/* thin, blood-red scrollbar - the classic hacked-CSS MySpace signature */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--crimson), var(--blood));
  border-radius: 4px;
  border: 1px solid #000;
}
::-webkit-scrollbar-thumb:hover { background: var(--crimson); }
* { scrollbar-width: thin; scrollbar-color: var(--blood) #050505; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Special Elite', monospace;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-image:
    repeating-linear-gradient(0deg, rgba(139,0,0,0.03) 0px, transparent 1px, transparent 2px, rgba(139,0,0,0.03) 3px),
    radial-gradient(circle at 10px 10px, rgba(139,0,0,0.10) 1.5px, transparent 1.5px),
    radial-gradient(circle at 45px 35px, rgba(139,0,0,0.07) 1px, transparent 1px),
    radial-gradient(circle at 25px 60px, rgba(139,0,0,0.06) 1px, transparent 1px);
  background-size: auto, 70px 70px, 70px 70px, 70px 70px;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.75) 100%);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 6px 0;
  color: var(--charcoal-light);
}

.divider::before, .divider::after {
  content: "";
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--charcoal-light), transparent);
}

.divider span {
  color: var(--blood);
  font-size: 16px;
  text-shadow: 0 0 6px rgba(139,0,0,0.7);
}

a { color: var(--crimson); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--blood); }

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

.narrow {
  max-width: 700px;
  margin: 0 auto;
}

.content-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: 980px;
  margin: 0 auto;
}

.content-main {
  flex: 1;
  min-width: 0;
  max-width: 700px;
  margin: 0 auto;
}

.sidebar-column {
  width: 520px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 20px;
}

.gallery-sidebar {
  border: 1px solid var(--charcoal);
  background: #0f0f0f;
  padding: 24px 22px;
  box-shadow: inset 0 0 0 1px rgba(139,0,0,0.12), 0 0 14px rgba(139,0,0,0.08);
}

.gallery-sidebar::before {
  content: attr(data-label);
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--charcoal-light);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.gallery-empty {
  grid-column: 1 / -1;
  font-size: 12px;
  text-align: center;
  padding: 20px 0;
}

/* ---- SITE PET ---- */
.pet-panel {
  text-align: center;
  padding: 18px 16px;
  border: 1px solid var(--charcoal);
  background: #0f0f0f;
  box-shadow: inset 0 0 0 1px rgba(139,0,0,0.12), 0 0 14px rgba(139,0,0,0.08);
}

.pet-gif {
  width: 80px;
  height: auto;
  cursor: pointer;
  transition: transform 0.15s ease;
  filter: drop-shadow(0 0 6px rgba(139,0,0,0.5));
}

.pet-gif:hover {
  transform: scale(1.08);
}

.pet-gif.pet-fed {
  animation: pet-bounce 0.3s ease;
}

@keyframes pet-bounce {
  0% { transform: scale(1); }
  40% { transform: scale(0.85); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .pet-gif { transition: none; }
  .pet-gif:hover { transform: none; }
  .pet-gif.pet-fed { animation: none; }
}

.pet-counter {
  font-size: 11px;
  color: var(--charcoal-light);
  margin-top: 8px;
}

@media (max-width: 860px) {
  .content-row { flex-direction: column; }
  .sidebar-column { width: 100%; position: static; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---- BANNER ---- */
.banner {
  max-width: 700px;
  height: 260px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #1a0000 0%, #0a0a0a 100%);
  border-bottom: 2px solid #ffffff;
  position: relative;
}

/*
  PLACEHOLDER BANNER (CSS-animated, vampire motif) - active by default.
  When you have a real GIF, delete the .banner-css block below
  and uncomment the <img> line in index.html.
*/
.banner-css {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-moon {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,0,0,0.55) 0%, rgba(139,0,0,0.15) 55%, transparent 75%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.banner-text {
  position: relative;
  z-index: 2;
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 42px;
  color: var(--text);
  text-shadow: 0 0 8px rgba(139,0,0,0.9), 0 0 20px rgba(139,0,0,0.6);
  white-space: nowrap;
}

.drip {
  position: absolute;
  top: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blood), transparent);
  border-radius: 0 0 3px 3px;
  animation: drip-fall 3.5s linear infinite;
}

.drip::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: -1.5px;
  width: 6px;
  height: 6px;
  background: var(--blood);
  border-radius: 50%;
}

@keyframes drip-fall {
  0% { height: 0; opacity: 1; }
  70% { opacity: 1; }
  100% { height: 55px; opacity: 0; }
}

.bat {
  position: absolute;
  top: 30%;
  font-size: 18px;
  opacity: 0.7;
  animation: fly linear infinite;
  filter: drop-shadow(0 0 3px rgba(139,0,0,0.5));
}

@keyframes fly {
  0% { transform: translateX(-40px) translateY(0); }
  50% { transform: translateX(50vw) translateY(-14px); }
  100% { transform: translateX(120%) translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .banner-moon, .drip, .bat { animation: none; opacity: 0.5; }
}

/* ---- TITLE ---- */
.title-block {
  text-align: center;
  padding: 30px 0 10px;
  border-bottom: 1px dashed var(--charcoal-light);
}

h1 {
  font-family: 'Special Elite', monospace;
  font-size: 48px;
  margin: 0 0 6px;
  letter-spacing: 1px;
  background: linear-gradient(180deg, var(--blood) 0%, #000000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 14px rgba(139,0,0,0.55);
}

.tagline {
  color: var(--charcoal-light);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ---- UPDATES LIST ---- */
.updates-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.updates-list li {
  padding: 5px 0;
  border-bottom: 1px dashed var(--charcoal);
}

.updates-list li:last-child {
  border-bottom: none;
}

.update-date {
  color: var(--crimson);
  font-weight: bold;
  margin-right: 8px;
}

/* ---- NAV ---- */
nav {
  text-align: center;
  padding: 14px 0;
  border-bottom: 1px dashed var(--charcoal-light);
  font-size: 14px;
  letter-spacing: 1px;
}

nav a { margin: 0 10px; }
nav span { color: var(--charcoal-light); }

/* ---- SECTION BOXES ---- */
.box {
  border: 1px solid var(--charcoal);
  background: #0f0f0f;
  padding: 18px 20px;
  margin: 22px 0;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(139,0,0,0.12), 0 0 14px rgba(139,0,0,0.08);
}

.box::before {
  content: attr(data-label);
  position: absolute;
  top: -11px;
  left: 14px;
  background: var(--bg);
  padding: 0 8px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--crimson);
}

.placeholder {
  color: var(--charcoal-light);
  font-style: italic;
}

.box p {
  white-space: pre-line;
  margin: 0;
}

.listening-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.player {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-btn {
  background: linear-gradient(180deg, #2a2a2a 0%, #141414 55%, #0a0a0a 100%);
  border: 1px solid var(--charcoal-light);
  color: var(--crimson);
  width: 32px;
  height: 32px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.player-btn:hover {
  border-color: var(--crimson);
  color: var(--text);
}

.track-info {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  color: var(--text);
}

.track-info .placeholder { font-size: 13px; }

.progress-track {
  width: 100%;
  height: 4px;
  background: #1a1a1a;
  border: 1px solid var(--charcoal);
  cursor: pointer;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--blood);
}

.player-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--charcoal-light);
}

.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.eq-bars span {
  width: 3px;
  background: var(--crimson);
  animation: eq 1s ease-in-out infinite;
}
.eq-bars span:nth-child(1) { height: 40%; animation-delay: 0s; }
.eq-bars span:nth-child(2) { height: 90%; animation-delay: 0.2s; }
.eq-bars span:nth-child(3) { height: 60%; animation-delay: 0.4s; }
.eq-bars span:nth-child(4) { height: 100%; animation-delay: 0.1s; }

@keyframes eq {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .eq-bars span { animation: none; }
}

/* ---- WEBRING / AFFILIATE BUTTONS ---- */
.buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.btn88x31 {
  width: 88px;
  height: 31px;
  border: 1px solid var(--charcoal-light);
  background: #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--charcoal-light);
  text-align: center;
  letter-spacing: 0.5px;
}

/* ---- TOP 8 ---- */
.top8-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.top8-slot {
  aspect-ratio: 1;
  border: 1px solid var(--charcoal-light);
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.top8-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top8-slot.empty {
  background: linear-gradient(180deg, #1c1c1c 0%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--charcoal-light);
}

.top8-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  color: var(--text);
  font-size: 9px;
  line-height: 1.3;
  padding: 3px 4px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.top8-slot:hover .top8-caption {
  opacity: 1;
}

/* ---- FAVORITE ANIME/MANGA (portrait covers, not square like top 8) ---- */
.favmedia-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.favmedia-slot {
  aspect-ratio: 2 / 3;
  border: 1px solid var(--charcoal-light);
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.favmedia-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.favmedia-slot.empty {
  background: linear-gradient(180deg, #1c1c1c 0%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--charcoal-light);
}

.favmedia-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  color: var(--text);
  font-size: 9px;
  line-height: 1.3;
  padding: 3px 4px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.favmedia-slot:hover .favmedia-caption {
  opacity: 1;
}

/* ---- GUESTBOOK ---- */
.guestbook-frame {
  width: 100%;
  height: 700px;
  border: 1px solid var(--charcoal);
  background: #0f0f0f;
  display: block;
}

/* ---- FOOTER ---- */
footer {
  text-align: center;
  padding-top: 20px;
  margin-top: 30px;
  border-top: 1px dashed var(--charcoal-light);
  font-size: 12px;
  color: var(--charcoal-light);
  letter-spacing: 1px;
}

.webring-nav {
  margin-bottom: 10px;
}

.webring-nav a { margin: 0 8px; }

.counter {
  display: inline-block;
  background: #000;
  border: 1px solid var(--blood);
  color: var(--crimson);
  font-family: 'Special Elite', monospace;
  padding: 3px 8px;
  letter-spacing: 3px;
  margin-top: 8px;
}
