﻿:root {
  --bg: #040507;
  --ink: #d3d7dc;
  --muted: #959ca3;
  --panel: rgba(5, 6, 8, 0.91);
  --edge: rgba(189, 194, 199, 0.36);
  --accent: #aeb7c2;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Cinzel", Georgia, serif;
  color: var(--ink);
  background: radial-gradient(circle at 54% 22%, #0f0f0f 0%, #070707 46%, var(--bg) 100%, url("/assets/film-grain.gif"));
  background-blend-mode: overlay;
  background-size: cover, 128px;
  filter: contrast(1.03) brightness(0.95);
}

canvas{
  image-rendering: pixelated;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: -200%;
  width: 400vw;
  height: 400vh;
  background-image: url("/assets/film-grain.gif");
  background-repeat: repeat;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  z-index: 10001;
  display: block;
  animation: grainMove 8s steps(8) infinite;
}

@keyframes grainMove {
  0% { transform: translate(0,0) }
  10% { transform: translate(-5%,-10%) }
  20% { transform: translate(-15%,5%) }
  30% { transform: translate(7%,-25%) }
  40% { transform: translate(-5%,25%) }
  50% { transform: translate(-15%,10%) }
  60% { transform: translate(15%,0%) }
  70% { transform: translate(0%,15%) }
  80% { transform: translate(3%,35%) }
  90% { transform: translate(-10%,10%) }
  100% { transform: translate(0,0) }
}

#app {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: grayscale(1) contrast(1.12) brightness(1.04);
}

.vignette {
  display: block;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  background-image: url("/assets/vignette.jpg");
  background-size: cover;
  mix-blend-mode: overlay;
  opacity: 0.75;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;

  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.2) 3px,
    rgba(0,0,0,0.2) 4px
  );
  display: block;
}

/* tosens site link */
.credit {
  position: fixed;
  left: clamp(0.7rem, 2vw, 1.4rem);
  bottom: clamp(0.6rem, 2.8vw, 1.2rem);
  z-index: 10000;
  font-size: clamp(0.64rem, 1.6vw, 0.8rem);
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: rgba(204, 211, 218, 0.76);
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
  user-select: none;
}

.credit a {
  color: rgba(220, 225, 228, 0.92);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.tooltip {
  position: fixed;
  z-index: 10;
  transform: translate(-50%, -120%);
  padding: 0.38rem 0.62rem;
  border: 1px solid rgba(179, 187, 193, 0.5);
  border-radius: 4px;
  background: rgba(6, 7, 9, 0.9);
  color: rgba(223, 228, 232, 0.94);
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 140ms ease;
  pointer-events: none;
}

.tooltip.visible {
  opacity: 0.75;
}

.panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8;
  background: rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 170ms ease;
}

.panel-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* 4 my profile */
.info-panel {
  position: fixed;
  left: 50%;
  top: 48%;
  z-index: 9998;
  width: min(94vw, 920px);
  min-height: min(76vh, 470px);
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: clamp(0.8rem, 2vw, 1.6rem);
  transform: translate(-50%, -50%) scale(0.96);
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: var(--panel);
  box-shadow:
    0 18px 70px rgba(0, 0, 0, 0.58),
    inset 0 0 0 1px rgba(219, 226, 232, 0.05);
  padding: clamp(0.8rem, 2vw, 1.2rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 170ms ease, transform 170ms ease;
  overflow: hidden;
}

.info-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(178, 196, 218, 0.06) 0%, rgba(0, 0, 0, 0) 36%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0 1px, rgba(0, 0, 0, 0) 1px 3px);
  pointer-events: none;
  mix-blend-mode: screen;
}

.info-panel::after {
  content: "";
  position: absolute;
  left: -8%;
  top: -20%;
  width: 36%;
  height: 160%;
  transform: rotate(9deg);
  background: linear-gradient(to bottom, rgba(138, 138, 138, 0.15), rgba(167, 167, 167, 0));
  pointer-events: none;
}

.info-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.info-close {
  position: absolute;
  right: 0.66rem;
  top: 0.55rem;
  z-index: 2;
  border: 1px solid rgba(188, 193, 197, 0.52);
  background: rgba(10, 10, 12, 0.82);
  color: rgba(225, 230, 232, 0.92);
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
}

.info-media {
  position: relative;
  min-height: 270px;
  border: 1px solid rgba(150, 160, 170, 0.34);
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(circle at 58% 20%, rgba(196, 196, 196, 0.22), rgba(0, 0, 0, 0) 62%),
    linear-gradient(150deg, rgba(20, 20, 20, 0.9) 0%, rgba(5, 5, 5, 0.96) 60%);
}

.media-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(180, 202, 230, 0.22), rgba(0, 0, 0, 0) 38%),
    radial-gradient(circle at 64% 62%, rgba(165, 178, 196, 0.16), rgba(0, 0, 0, 0) 52%);
}

.media-face {
  position: absolute;
  inset: 0;
  background: url("../foid.jpg") center / cover no-repeat;
  mix-blend-mode: normal;
  opacity: 0.96;
  filter: contrast(1.02) saturate(0.9);
}

.info-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
  padding: 0.2rem 0.3rem 0.1rem;
}

#infoTitle {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 2.3rem);
  letter-spacing: 0.045em;
  line-height: 1.05;
}

.info-meta {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.13em;
  text-transform: none;
  font-size: 0.74rem;
}

.info-description {
  margin: 0.5rem 0 0.3rem;
  color: rgba(223, 226, 229, 0.93);
  line-height: 1.58;
  max-width: 64ch;
}

.info-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
  padding-top: 0.2rem;
}

.info-links a {
  border: 1px solid rgba(172, 180, 188, 0.38);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.56rem;
  border-radius: 4px;
  background: rgba(10, 12, 15, 0.58);
}

.info-links a:hover {
  border-color: rgba(205, 213, 223, 0.7);
  color: #e0e5ec;
}

.info-note {
  margin: auto 0 0;
  color: rgba(186, 193, 198, 0.78);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.info-extras {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.lastfm-widget {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(164, 172, 181, 0.32);
  border-radius: 6px;
  background: rgba(7, 9, 12, 0.6);
}

.lastfm-cover {
  width: 56px;
  height: 56px;
  border-radius: 5px;
  object-fit: cover;
  background: rgba(10, 12, 15, 0.8);
}

.lastfm-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lastfm-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(176, 184, 193, 0.7);
}

.lastfm-track {
  font-size: 0.9rem;
  color: rgba(232, 236, 240, 0.95);
}

.lastfm-artist {
  font-size: 0.75rem;
  color: rgba(188, 196, 204, 0.8);
}

.info-footer-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-footer-links a {
  color: rgba(207, 214, 221, 0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(190, 198, 206, 0.4);
}

.info-footer-links a:hover {
  color: #f0f4f8;
  border-bottom-color: rgba(240, 244, 248, 0.7);
}

/*screen and anim for loading site */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: radial-gradient(rgba(30, 32, 36), rgba(6, 7, 9));
  color: rgba(227, 233, 239, 0.9);
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.2em;
}

.loading-inner {
  width: min(80vw, 520px);
  display: grid;
  gap: 0.8rem;
  text-align: center;
}

.loading-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border: 1px solid rgba(190, 198, 206, 0.3);
}

.loading-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(214, 220, 226, 0.9), rgba(128, 136, 149, 0.6));
  transition: width 160ms ease;
}

.loading-note {
  font-size: 0.68rem;
  color: rgba(174, 182, 191, 0.75);
}

.loading-enter {
  justify-self: center;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(178, 186, 194, 0.5);
  border-radius: 999px;
  background: rgba(10, 12, 16, 0.7);
  color: rgba(228, 234, 240, 0.92);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.loading-enter.active {
  opacity: 1;
  pointer-events: auto;
}

.loading-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

/* for the song player in the bottom right */
.audio-widget {
  position: fixed;
  right: clamp(0.4rem, 1.8vw, 0.9rem);
  bottom: clamp(0.4rem, 1.8vw, 0.9rem);
  z-index: 12;
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  color: rgba(228, 234, 240, 0.9);
  font-family: inherit;
}

.audio-vinyl {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 1px solid rgba(180, 188, 196, 0.5);
  background: url("../dod.jpg") center / cover no-repeat;
  filter: brightness(1.32) saturate(1.2);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  animation: spin 2.6s linear infinite;
}

.audio-panel {
  width: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  border: 1px solid rgba(172, 180, 188, 0.4);
  border-radius: 8px;
  background: rgba(6, 8, 10, 0.7);
  backdrop-filter: blur(6px);
  padding: 0.6rem 0.7rem;
  transition: width 220ms ease, opacity 220ms ease;
  transform-origin: right bottom;
}

.audio-widget.open .audio-panel {
  width: min(68vw, 240px);
  opacity: 1;
  pointer-events: auto;
}

.audio-title {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(236, 240, 244, 0.95);
}

.audio-artist {
  font-size: 0.66rem;
  color: rgba(182, 190, 198, 0.8);
  margin-bottom: 0.4rem;
}

.audio-seek {
  width: 100%;
}

.audio-controls {
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.audio-skip {
  border: 1px solid rgba(172, 180, 188, 0.4);
  background: rgba(10, 12, 15, 0.6);
  color: rgba(228, 234, 240, 0.88);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  cursor: pointer;
}

.audio-mute {
  border: 1px solid rgba(172, 180, 188, 0.4);
  background: rgba(10, 12, 15, 0.6);
  color: rgba(228, 234, 240, 0.88);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  cursor: pointer;
}

.audio-time {
  font-size: 0.6rem;
  color: rgba(178, 186, 194, 0.75);
  white-space: nowrap;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.boot-error {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: min(92vw, 680px);
  padding: 1rem 1.2rem;
  border: 1px solid rgba(214, 100, 100, 0.6);
  background: rgba(20, 8, 10, 0.94);
  color: #f6c3c3;
  font-family: "Courier New", monospace;
  font-size: 0.86rem;
  line-height: 1.4;
}

@media (max-width: 860px) {
  .info-panel {
    grid-template-columns: 1fr;
    top: 50%;
  }

  .info-media {
    min-height: 190px;
  }
}

@media (max-width: 700px) {
  .credit {
    letter-spacing: 0.1em;
  }

  .tooltip {
    font-size: 0.68rem;
  }
}
