/* ---------- custom scrollbar (firefox) ---------- */
html {
  scrollbar-width: thin;
  scrollbar-color: #8b0000 #050505;
}

/* ---------- custom scrollbar (webkit) ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #050505;
  border-left: 1px solid #3a0000;
}
::-webkit-scrollbar-thumb {
  background: #800000;
  border: 1px solid #000;
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
  background: #a00000;
}
::-webkit-scrollbar-corner {
  background: #050505;
}

/* ---------- text selection ---------- */
::selection {
  background: #6b0000;
  color: #fff;
}
::-moz-selection {
  background: #6b0000;
  color: #fff;
}

body {
  background-color: #1a0000;
  background-image:
linear-gradient(rgba(3, 3, 3, 0.60), rgba(3, 3, 3, 0.60)),
    url('backdrop.jpg');
  background-attachment: fixed;
  background-size: auto;
  background-position: top left;
  background-repeat: repeat;
  image-rendering: pixelated;
  color: #bbb;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.3;
  margin: 0;
  padding: 10px 0;
}

a {
  color: #ff3333;
  text-decoration: none;
}
a:hover {
  color: #ff6666;
  text-decoration: underline;
}
a:visited {
  color: #8b0000;
}

.emote {
  vertical-align: middle;
  height: 15px;
  width: auto;
  image-rendering: pixelated;
  margin: 0 1px;
}

.emote-silly {
  vertical-align: middle;
  height: 16px;
  width: auto;
  image-rendering: pixelated;
  margin: 0 5px;
}

.reader-gif {
  display: block;
  margin: 2px auto 4px;
  image-rendering: pixelated;
  max-height: 32px;
  width: auto;
}

.website-bio {
  font-size: 11px;
  color: #ddd;
  margin: 0;
  font-weight: bold;
}

.visitor-gif {
  display: inline-block;
  margin-top: 3px;
  image-rendering: pixelated;
  max-width: 100%;
}

.online-gif {
  display: inline-block;
  vertical-align: middle;
  image-rendering: pixelated;
  max-height: 34px;
  margin-top: 3px;
}

/* ---------- header (floating above the page box) ---------- */
#header-top {
  width: 960px;
  margin: 0 auto 8px;
  text-align: center;
}

#site-title {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 28px;
  font-weight: bold;
  font-style: italic;
  color: #cc0000;
  letter-spacing: 0;
  text-shadow:
    2px 2px 0 #000,
    3px 3px 0 #4a0000;
  margin-bottom: 8px;
}

.star {
  color: #ff3333;
  animation: starfade 1.35s steps(2, end) infinite;
}

#site-title .star:last-child {
  animation-delay: 0.675s;
}

@keyframes starfade {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

#site-sub {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 10px;
  margin: 0;
  padding: 3px 6px;
  width: 100%;
  overflow: hidden;
  text-align: left;
  background: #0a0a0a;
  border: 1px solid #800000;
  box-sizing: border-box;
}

#site-sub .static-label {
  white-space: nowrap;
  color: #d0d0d0;
  flex-shrink: 0;
  padding-right: 6px;
}

#site-sub .marquee-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
  height: 12px;
  min-width: 0;
}

#site-sub .marquee-text {
  position: absolute;
  white-space: nowrap;
  animation: site-marquee 18s linear infinite;
  color: #a0a0a0;
}

@keyframes site-marquee {
  0%   { left: 100%; }
  100% { left: -100%; }
}

/* ---------- main page box ---------- */
#page {
  width: 960px;
  margin: 0 auto;
  background: #111;
  border: 1px solid #800000;
  padding: 5px;
}

#topnav {
  margin-top: 0;
  margin-bottom: 5px;
  text-align: center;
  font-size: 11px;
  border-top: 1px solid #800000;
  border-bottom: 1px solid #800000;
  padding: 3px 0;
  background: #1a0202;
  color: #d0b0b0;
}

#topnav a {
  padding: 0 4px;
  color: #d0b0b0;
}
#topnav a:hover {
  color: #ff6666;
}
#topnav a:visited {
  color: #a08080;
}

.sep {
  color: #5a2020;
  margin: 0 2px;
}

#main {
  display: flex;
  gap: 5px;
  align-items: flex-start;
}

#left {
  width: 200px;
  flex-shrink: 0;
}

#right {
  flex: 1;
  min-width: 0;
}

.box {
  background: #141414;
  border: 1px solid #800000;
  margin-bottom: 5px;
  align-self: start;
}

.sub-box {
  border: 1px dashed #ff0000;
}

.boxhead {
  background: #2a0505;
  border-bottom: 1px solid #800000;
  padding: 3px 6px;
  font-weight: bold;
  font-size: 11px;
  color: #ffcccc;
  letter-spacing: 0.2px;
}

.boxbody {
  padding: 4px;
}

.center {
  text-align: center;
}

.tiny {
  font-size: 10px;
  color: #888;
}

.img-ph {
  background: #0a0a0a;
  border: 1px solid #800000;
  color: #6a5a5a;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 10px;
  line-height: 1.2;
}

.profile-pic {
  width: 170px;
  height: 170px;
  margin: 0 auto 3px;
  object-fit: cover;
  display: block;
  background: #0a0a0a;
  border: 1px solid #800000;
  color: #6a5a5a;
  font-size: 10px;
}

div.profile-pic {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.username {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  margin-top: 2px;
  text-shadow: 1px 1px 0 #000;
}

.onlinestatus {
  font-size: 10px;
  color: #33ff33;
  margin-top: 3px;
}

.dot {
  color: #33ff33;
  font-size: 10px;
}

.btnrow {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
}

.btn {
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  background: #d4d0c8;
  color: #000;
  font-size: 10px;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  padding: 2px 5px;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background: #e4e0d8;
  text-decoration: none;
}

.btn:active {
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  background: #c8c4bc;
}

.section-sub {
  font-weight: bold;
  border-bottom: 1px dashed #800000;
  margin-bottom: 3px;
  padding-bottom: 1px;
  color: #ffcccc;
}

.details {
  width: 100%;
  border-collapse: collapse;
}

.details td {
  padding: 1px 3px;
  vertical-align: top;
  border-bottom: 1px dotted #3a0000;
}

.details tr:last-child td {
  border-bottom: none;
}

.details .k {
  width: 80px;
  color: #b08080;
  font-weight: bold;
}

.interest {
  margin-bottom: 5px;
}

.interest-label {
  font-size: 11px;
  font-weight: bold;
  color: #ff9999;
  text-transform: lowercase;
  border-bottom: 1px dotted #800000;
  padding-bottom: 1px;
  margin-bottom: 3px;
}

.interest-list {
  font-size: 10px;
  color: #bb8888;
  line-height: 1.4;
  padding: 2px 0 2px 8px;
  margin-left: 3px;
  border-left: 2px solid #800000;
}

.music-now {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 5px;
  padding-bottom: 5px;
  border-bottom: 1px solid #800000;
}

.album-art {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
  background: #0a0a0a;
  border: 1px solid #800000;
}

.music-info {
  flex: 1;
  min-width: 0;
  padding-top: 3px;
}

.now-playing {
  font-size: 10px;
  color: #a08080;
  margin-bottom: 2px;
}

.song-title {
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 2px;
}

.song-artist {
  font-size: 10px;
  color: #a08080;
}

.music-note {
  margin-top: 3px;
  color: #6a5a5a;
}

/* ---------- player — barebones blocky style ---------- */
.player {
  background: #0a0a0a;
  border: 1px solid #800000;
  padding: 4px;
  margin-bottom: 5px;
}

.player-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 4px 0;
  margin-bottom: 4px;
  border-bottom: 1px solid #3a0000;
}

.player-label {
  font-size: 11px;
  color: #a08080;
  display: flex;
  align-items: center;
  font-weight: normal;
}

.player-time {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  color: #ff3333;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  letter-spacing: 0;
  text-shadow: none;
}

.speaker {
  display: inline-block;
  vertical-align: middle;
  height: 14px;
  width: auto;
  margin-right: 4px;
  image-rendering: pixelated;
}

.speaker-anim {
  display: none;
}

body.audio-playing .speaker-anim {
  display: inline-block;
}

body.audio-playing .speaker-idle {
  display: none;
}

.progress {
  height: 10px;
  background: #000;
  border: 1px solid #800000;
  cursor: pointer;
  margin-bottom: 4px;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: #800000;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  flex-wrap: wrap;
}

.pbtn {
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  background: #d4d0c8;
  color: #000;
  padding: 2px 6px;
  font-size: 11px;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  line-height: 1;
  cursor: pointer;
  min-width: 28px;
  text-align: center;
}

.pbtn:hover {
  background: #e4e0d8;
}

.pbtn:active {
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  background: #c8c4bc;
}

.vol-group {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.vol-lbl {
  font-size: 10px;
  color: #a08080;
}

.vol-track {
  width: 60px;
  height: 8px;
  background: #000;
  border: 1px solid #800000;
  display: inline-block;
  cursor: pointer;
  vertical-align: middle;
}

.vol-fill {
  width: 60%;
  height: 100%;
  background: #800000;
  display: block;
}

.vol-num {
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  color: #a08080;
  min-width: 28px;
  text-align: right;
}

/* ---------- playlist ---------- */
.playlist {
  border: 1px solid #800000;
  background: #0a0a0a;
}

.playlist-head {
  font-weight: bold;
  font-size: 10px;
  border-bottom: 1px solid #800000;
  padding: 3px 5px;
  color: #ffcccc;
  background: #2a0505;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tracklist {
  margin: 0;
  padding: 4px 5px 4px 24px;
  font-size: 10px;
  color: #b0b0b0;
}

.tracklist li {
  cursor: pointer;
  padding: 1px 0;
  color: #b0b0b0;
}

.tracklist li:hover {
  color: #e0e0e0;
}

.tracklist li::marker {
  color: #707070;
}

/* ---------- friends grid ---------- */
.friends-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.friend {
  width: 80px;
  text-align: center;
}

.friend-pic {
  width: 80px;
  height: 80px;
  margin: 0 auto 2px;
  object-fit: cover;
  background: #0a0a0a;
  border: 1px dashed #ff0000;
  display: block;
  color: #6a5a5a;
  font-size: 10px;
}

div.friend-pic {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.friend-name {
  font-size: 10px;
  color: #ff5555;
  text-decoration: none;
}

.friend-name:hover {
  text-decoration: underline;
  color: #ff8888;
}

/* ---------- footer columns ---------- */
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 220px;
  gap: 5px;
  margin-top: 5px;
  align-items: start;
}

.footer-col {
  min-width: 0;
}

.footer-col .box {
  margin-bottom: 0;
}

.updates {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 10px;
}

.updates li {
  padding: 1px 0;
  border-bottom: 1px dotted #3a0000;
  color: #a08080;
}

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

.date {
  color: #ff5555;
  font-weight: bold;
  margin-right: 4px;
}

.favs {
  font-size: 10px;
  text-align: center;
  padding: 2px 0;
}

.sep2 {
  color: #800000;
  margin: 0 3px;
}

.statusline {
  font-size: 11px;
  margin-bottom: 2px;
}

.counter-wrap {
  margin-top: 3px;
}

/* ---------- footer ---------- */
#footer {
  margin-top: 5px;
  border-top: 1px dashed #800000;
  padding-top: 4px;
  text-align: center;
}

.blink {
  animation: blink 1s step-end infinite;
  color: #ff0000;
  font-weight: bold;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- 88x31 badge row ---------- */
#bottom-buttons {
  width: 960px;
  margin: 6px auto 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 5px;
  line-height: 0;
}

.badge {
  width: 88px;
  height: 31px;
  display: block;
  background: #0a0a0a;
  border: 1px solid #800000;
  image-rendering: pixelated;
  box-sizing: border-box;
  object-fit: cover;
}

/* ---------- contact form (message.html) ---------- */
.contact-form {
  padding: 4px;
}

.contact-form label {
  display: block;
  font-size: 10px;
  font-weight: bold;
  color: #ff9999;
  margin-top: 8px;
  margin-bottom: 2px;
}

.contact-form label:first-of-type {
  margin-top: 0;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: #0a0a0a;
  border: 1px solid #800000;
  color: #ddd;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 11px;
  padding: 3px 4px;
  outline: none;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: #ff3333;
  background: #111;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.4;
}

.contact-form-buttons {
  margin-top: 10px;
  display: flex;
  gap: 4px;
}

.contact-form button.btn {
  cursor: pointer;
  font-family: Verdana, Tahoma, Arial, sans-serif;
}

/* ---------- cursors ---------- */
html, body {
  cursor: url('Cursor/Skull-normal-select.png') 10 9, auto;
}

a, button, .btn, .pbtn, .badge, .friend-name,
.tracklist li, .progress, .vol-track {
  cursor: url('Cursor/Skull-normal-select.png') 10 9, pointer;
}

:where(
  .box,
  .sep,
  #topnav
) {
  cursor: url('Cursor/Skull-Help-select.png') 2 2, help;
}

body.text-hover {
  cursor: url('Cursor/Skull-Text-select.png') 16 19, text;
}

.pbtn:disabled {
  cursor: url('Cursor/Skull-Unavailable.gif') 2 2, not-allowed;
}

body.audio-waiting,
body.audio-waiting * {
  cursor: url('Cursor/Skull-Workinginbackground.gif') 2 2, wait !important;
}

/* ---------- responsive fallbacks ---------- */
@media (max-width: 980px) {
  #page,
  #header-top,
  #bottom-buttons {
    width: auto;
    margin-left: 10px;
    margin-right: 10px;
  }

  #main {
    flex-direction: column;
  }

  #left {
    width: auto;
  }

  #right {
    margin-left: 0;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  #bottom-buttons {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .music-now {
    flex-direction: column;
    align-items: center;
  }

  .btnrow {
    justify-content: flex-start;
  }
}