:root {
  --bg: #000;
  --panel: rgba(0, 0, 0, 0.92);
  --line: rgba(255, 255, 255, 0.28);
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.68);
  --soft: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
  cursor: none !important;
}

html,
body,
a,
button,
[role="button"] {
  cursor: none !important;
}

/* fonts */
@font-face {
  font-family: dingbat;
  src: url("../fonts/Fiolex_Mephisto_Dingbats.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: Leander;
  src: url("../fonts/Leander.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: MagazineLetter;
  src: url("../fonts/MagazineLetterByBrntlbrnl-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: SwordSkull;
  src: url("../fonts/Swordskull.ttf") format("truetype");
  font-display: block;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden;
  background: #000;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 240px 240px, 360px 360px;
  background-position: 0 0, 40px 70px;
  opacity: 0.02;
}

/* blurs entire webpage for clean splash UI that appear before you open main page */
#Content {
  position: relative;
  min-height: 100vh;
  transition: filter 300ms ease, transform 300ms ease;
  transform-origin: center center;
}

#Content.blurred {
  filter: blur(10px);
  transform: scale(1.02);
  pointer-events: none;
}

.splash {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 100;
  pointer-events: auto;
  transition: opacity 300ms ease;
  background: transparent;
}

/* text in splash with a cool ass fucking font. */
.splash p {
  font-family: Swordskull;
  margin: 0;
  color: white;
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  position: relative;
  top: 0;
}

.splash.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.background {
  position: fixed;
  inset: 0;
  background: url("../img/giphy.gif") center center / cover no-repeat;
  z-index: 0;
  pointer-events: none;
  opacity: 0.25;
  filter: grayscale(1) brightness(0.32) contrast(1.25);
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  background: url("../img/curs.png") center center / contain no-repeat;
  pointer-events: none;
  z-index: 9999;
  opacity: .6;
  will-change: transform;
}

.custom-cursor.is-hidden {
  opacity: 0;
}

.header,
.profile-view,
.player-bar {
  position: relative;
  z-index: 2;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.header {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

/* text at the top of page (Tha foid.live, pentagram , and tosens site link */
.page-title {
  position: fixed;
  top: 2.5vh;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  gap: 2px;
  text-align: center;
  z-index: 3;
  opacity: 0;
}

.symbol {
  font-family: dingbat;
  font-size: clamp(34px, 3.6vw, 46px);
  color: rgba(244, 241, 234, 0.75);
  line-height: 1;
  margin-bottom: -6px;
}

.site-title {
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-family: Leander, Georgia, serif;
}

.site-title i {
  font-style: italic;
  font-size: 1.12em;
}

.site-subtitle {
  display: inline-block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-family: Leander, Georgia, serif;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1;
  text-decoration: none;
}

.site-subtitle a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.site-subtitle:hover {
  text-decoration: underline;
}

/* spin */
.carousel {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  touch-action: none;
  user-select: none;
  z-index: 2;
  cursor: grab;
}

.carousel:active {
  cursor: grabbing;
}

.carousel-scene {
  position: relative;
  width: min(1160px, 94vw);
  height: min(560px, 60vh);
  perspective: 1400px;
  transform-style: preserve-3d;
}

.carousel-ring {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.carousel-card {
  position: absolute;
  left: 50%;
  top: 50%;
  --card-w: clamp(132px, 13vw, 184px);
  --card-h: clamp(210px, 22vw, 276px);
  width: var(--card-w);
  height: var(--card-h);
  margin-left: calc(var(--card-w) / -2);
  margin-top: calc(var(--card-h) / -2);
  padding: 0;
  border: 1px dashed var(--line);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  cursor: pointer;
  transform-style: preserve-3d;
  transform-origin: center center;
}

.card-face {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.12);
  backface-visibility: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  backface-visibility: hidden;
}

.card-label {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 10px 12px 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.22);
  font-size: clamp(16px, 1.55vw, 22px);
  font-weight: 700;
  letter-spacing: 0.09em;
  background: rgba(0, 0, 0, 0.86);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  font-family: MagazineLetter, Georgia, serif;
}

.carousel-card[data-profile="strwnded"] .card-label {
  font-size: clamp(13px, 1.2vw, 18px);
  letter-spacing: 0.05em;
}

.profile-view {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(300px, 360px) 1fr;
  gap: 22px;
  width: min(980px, calc(100vw - 60px));
  height: min(480px, calc(100vh - 150px));
  padding: 14px 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%);
  align-items: start;
}

.profile-view.is-open {
  pointer-events: auto;
}

.profile-media {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  width: 100%;
  aspect-ratio: 4 / 5;
  align-self: start;
  justify-self: start;
}

.profile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.profile-copy {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 0 10px 6px 4px;
  overflow: hidden;
  font-family: Leander, Georgia, serif;
  align-self: start;
}

.profile-copy h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.92;
  text-transform: lowercase;
  font-weight: 700;
}

.profile-bio {
  margin: 0;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.2;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}

.profile-extra-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.profile-extra-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 0;
  color: rgba(244, 241, 234, 0.82);
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.02em;
  font-family: Leander, Georgia, serif;
}

.profile-extra-links a:hover {
  text-decoration: underline;
}

.profile-bio {
  max-width: 42ch;
  color: rgba(244, 241, 234, 0.86);
  margin-top: 2px;
  white-space: pre-line;
}

.profile-corner-image {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: min(128px, 16vw);
  height: auto;
  max-height: 28%;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.95;
  filter: grayscale(1) contrast(1.05);
}

.back-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 9;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
}

/* audio player */
.player-bar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 12;
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 24px));
  display: grid;
  gap: 4px;
  padding: 6px 0;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  font-family: Leander, Georgia, serif;
}

.player-bar.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
}

.player-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.player-arrow {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  flex: 0 0 auto;
}

.player-arrow:hover {
  opacity: 0.8;
  background: transparent;
  color: var(--text);
}

.player-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
  padding: 0 2px;
}

.player-line {
  display: flex;
  gap: 7px;
  align-items: baseline;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  justify-content: center;
  font-family: inherit;
}

.player-title {
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-artist {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-progress {
  width: 100%;
  height: 10px;
  border-radius: 2px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

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

@media (max-width: 880px) {
  .carousel-scene {
    height: min(460px, 52vh);
  }

  .profile-view {
    width: calc(100vw - 20px);
    height: min(68vh, 520px);
    grid-template-columns: 1fr;
  }

  .profile-media img {
    max-height: 38vh;
  }

  .player-top {
    gap: 6px;
  }

  .player-arrow {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 600px) {
  .page-title {
    top: 4.8vh;
  }

  .profile-view {
    top: 52%;
    width: calc(100vw - 16px);
    height: auto;
    max-height: calc(100dvh - 170px);
    padding: 10px;
    gap: 10px;
    overflow-y: auto;
    grid-template-columns: 1fr;
  }

  .profile-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 42vh;
  }

  .profile-copy {
    padding: 0 6px 34px;
    gap: 6px;
  }

  .profile-copy h2 {
    font-size: clamp(30px, 11vw, 46px);
  }

  .profile-bio {
    font-size: 15px;
    max-width: none;
    line-height: 1.18;
  }

  .profile-links {
    gap: 8px;
    margin-top: 6px;
  }

  .profile-links a {
    min-width: 0;
    flex: 1 1 calc(50% - 4px);
    padding: 9px 10px;
    font-size: 13px;
  }

  .profile-extra-links {
    gap: 6px;
    margin-top: 6px;
  }

  .profile-extra-links a {
    font-size: 12px;
  }

  .profile-corner-image {
    display: none;
  }

  .player-bar {
    bottom: 10px;
    width: calc(100vw - 16px);
    padding: 8px 0;
    gap: 3px;
  }

  .player-title {
    font-size: 15px;
  }

  .player-artist {
    font-size: 13px;
  }
}

@media (hover: none), (pointer: coarse) {
  * {
    cursor: auto !important;
  }

  html,
  body,
  a,
  button,
  [role="button"] {
    cursor: auto !important;
  }

  .custom-cursor {
    display: none !important;
  }
}
