@font-face {
  font-family: "Cabin Sketch";
  src: url("fonts/cabin-sketch-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 660px;
  background: radial-gradient(ellipse at 50% 33%, transparent 5%, rgb(0 0 0 / 65%) 85%), linear-gradient(rgb(0 0 0 / 76%), rgb(0 0 0 / 76%)), #000 url("bg.jpg") center top repeat-y;
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
}
#centro {
  position: absolute;
  z-index: 1;
  top: max(24px, calc(50% - 330px));
  left: 50%;
  transform: translateX(-50%);
  width: 690px;
  max-width: 100%;
  padding: 0 16px 40px;
  text-align: center;
}
.logo {
  display: block;
  width: 420px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  filter: brightness(.65);
}
h1, .contact {
  font-family: "Cabin Sketch", Arial, serif;
  font-size: 25px;
  font-weight: 700;
  line-height: normal;
}
h1 { margin: 15px 0 0; }
a { color: #fff; text-decoration: none; }
.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}
.socials a { display: block; line-height: 0; }
.socials a {
  transition: transform .25s ease, filter .25s ease;
}
.socials img {
  display: block; width: 30px; height: 30px; border: 0;
  transition: transform .25s ease, filter .25s ease;
}
.socials a:is(:hover, :focus-visible) img {
  transform: translateY(-5px) rotate(-6deg) scale(1.16);
  filter: drop-shadow(0 4px 9px rgb(255 223 164 / 55%));
}
.socials a:active img { transform: scale(.95); }
.searchlights, .eye-lights, .atmosphere-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .8s ease;
}
.contact { margin: 9px 0 0; }
.contact a { transition: text-shadow .25s ease; }
.contact a:hover { text-shadow: 0 0 12px rgb(255 231 184 / 50%); }
a:focus-visible { outline: 2px solid white; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .socials a, .socials img, .contact a, .searchlights { transition: none; }
}

/* The stage stays open; playback lives in a small bottom dock. */
body { padding-bottom: 92px; }
#centro { position: relative; left: auto; top: auto; transform: none; margin: max(28px, calc((100svh - 720px) / 2)) auto 0; padding-bottom: 20px; }
.logo { width: clamp(220px, calc(100svh - 325px), 420px); }
.stage-canvas { z-index: 2; mix-blend-mode: screen; opacity: 1; transition: none; }
.player { position: fixed; z-index: 5; bottom: 0; left: 0; width: 100%; color: #d7cfc5; border-top: 1px solid #ffffff12; background: #0d0c0bf5; backdrop-filter: blur(18px); font-size: 12px; padding-bottom: env(safe-area-inset-bottom); }
.player-dock { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(180px, 410px) 42px; align-items: center; gap: 20px; padding: 10px 28px; max-width: 1280px; margin: auto; }
.player button { font: inherit; cursor: pointer; color: inherit; border: 0; background: none; }
.player button:hover { color: #f3bd76; }
.player svg { width: 18px; height: 18px; fill: currentColor; }
.dock-track { display: flex; align-items: center; gap: 12px; min-width: 0; }
.album-thumb { background: #251a14; border-radius: 3px; object-fit: contain; padding: 2px; }
.track-info { min-width: 0; }
.track-info h2 { margin: 0; color: #eee7dd; font-size: 12px; line-height: 1.5; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-info p { margin: 3px 0 0; color: #897e70; font-size: 9px; }
.transport { display: flex; align-items: center; justify-content: center; gap: 17px; }
.transport button { display: grid; place-items: center; padding: 5px; }
.transport svg { width: 15px; height: 15px; }
.transport .play-button { width: 30px; height: 30px; padding: 0; border-radius: 50%; background: #e4d5bd; color: #17110b; }
.play-button:hover { background: #f5d4a2; }
.player .pause-icon, .player.is-playing .play-icon { display: none; }
.player.is-playing .pause-icon { display: block; }
.timeline { display: flex; align-items: center; gap: 9px; font-size: 8px; font-variant-numeric: tabular-nums; color: #8c8478; margin-top: 4px; }
.player input[type="range"] { appearance: none; height: 3px; border-radius: 2px; background: #393129; cursor: pointer; accent-color: #d5a66a; min-width: 0; margin: 4px 0; }
.player input[type="range"]::-webkit-slider-thumb { appearance: none; width: 7px; height: 7px; border-radius: 50%; background: #e2bd88; }
.player input[type="range"]::-moz-range-thumb { width: 7px; height: 7px; border: 0; border-radius: 50%; background: #e2bd88; }
#seek { flex: 1; box-sizing: content-box; border: 0; padding: 10px 0; margin: -6px 0; touch-action: pan-y; background: linear-gradient(to right, #c99757 var(--progress, 0%), #393129 var(--progress, 0%)); background-clip: content-box; }
.dock-actions { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.dock-actions button { display: grid; place-items: center; padding: 8px; }
#queue-toggle[aria-expanded="true"] { color: #e7b87c; }
.queue { position: absolute; right: 24px; bottom: calc(100% + 12px); width: 345px; max-width: calc(100vw - 24px); padding: 15px 18px 12px; border: 1px solid #483725; border-radius: 8px; background: #11100ff7; box-shadow: 0 12px 50px #0008; }
.queue[hidden] { display: none; }
.player-heading { display: flex; align-items: center; justify-content: space-between; }
.player-kicker { font-size: 9px; letter-spacing: 1.8px; color: #a99a88; }
#queue-close { font-size: 20px; padding: 0 4px; color: #9c8e7d; }
.playlist { list-style: none; margin: 8px 0 10px; padding: 0; }
.queue { box-sizing: border-box; max-height: calc(100svh - 125px); overflow-y: auto; overscroll-behavior: contain; }
.album-picker { display: block; margin-top: 12px; }
.album-picker select { box-sizing: border-box; width: 100%; padding: 7px 8px; border: 1px solid #92857880; border-radius: 0; background: #0b0806; color: #d8cbb7; font: inherit; font-size: 14px; cursor: pointer; }
.album-picker select:focus-visible { outline: 2px solid #e5af67; outline-offset: 3px; }
.track-name { min-width: 0; overflow-wrap: anywhere; }
.track-number, .track-duration { flex-shrink: 0; }
.playlist button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 0; text-align: left; font-size: 10px; line-height: 1.5; color: #aba197; }
.playlist button[aria-current] { color: #edb770; }
.track-number { font-size: 8px; color: #736658; }
.track-duration { margin-left: auto; font-size: 9px; font-variant-numeric: tabular-nums; color: #8c7c66; }
.player button:focus-visible, .player input:focus-visible { outline: 2px solid #e5af67; outline-offset: 4px; }
.native-player { width: 100%; }
.is-enhanced .native-player { display: none; }
.player:not(.is-enhanced) .player-dock { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.atmosphere-canvas { opacity: 1; transition: none; }
.atmosphere-canvas[hidden] { display: none; }
.eye-lights { z-index: 3; }
.searchlights.is-ready, .eye-lights.is-ready { opacity: 1; transition: none; }
.beam-halo { opacity: .95; }
.beam-body { opacity: 1; }
.beam-inner { opacity: .85; }
.beam-shaft { opacity: .78; }
.beam-sprites { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; mix-blend-mode: screen; visibility: hidden; }
.beam-sprite { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; will-change: transform, opacity; }
.beam-sprite img { position: absolute; max-width: none; }
/* Use the original site's hand-drawn type and plain punk-era controls. */
.player { font-family: "Cabin Sketch", Arial, serif; font-weight: 700; background: #090706f5; border-top: 1px solid #92857855; backdrop-filter: none; }
.album-thumb { border-radius: 0; background: none; padding: 0; filter: brightness(.8); }
.track-info h2 { font-family: inherit; font-size: 15px; font-weight: 700; color: #e5ded1; }
.track-info p { font-size: 11px; color: #8e877b; }
.transport .play-button { border-radius: 0; border: 1px solid #c4b7a280; background: none; color: #e5ded1; }
.transport .play-button:hover { background: #e5ded112; }
.timeline { font-size: 10px; }
.queue { border-radius: 0; border-color: #92857880; background: #0b0806fc; box-shadow: none; }
.player-kicker { font-size: 13px; letter-spacing: .5px; color: #d8cbb7; }
.playlist button { font-family: inherit; font-size: 14px; color: #b8ae9e; }
.track-number, .track-duration { font-size: 11px; }
/* Keep touch controls still, separated and usable with a thumb. */
@media (pointer: coarse), (max-width: 600px), (max-width: 900px) and (max-height: 500px) {
  .socials { flex-wrap: wrap; gap: 8px; }
  .socials a { display: grid; place-items: center; width: 44px; height: 44px; }
  .socials a:is(:hover, :focus-visible) img { transform: none; }
  .contact a { display: inline-flex; align-items: center; min-height: 44px; }
  .player button { min-width: 44px; min-height: 44px; touch-action: manipulation; }
  .transport { gap: 4px; }
  .transport .play-button { width: 44px; height: 44px; }
  .transport svg, .dock-actions svg { width: 20px; height: 20px; }
  .album-picker select { min-height: 44px; font-size: 16px; }
  .playlist button { min-height: 48px; padding: 12px 0; font-size: 16px; }
  .track-number, .track-duration { font-size: 12px; }
  #queue-close { font-size: 28px; }
  #seek { height: 4px; padding: 20px 0; margin: 0; }
  #seek::-webkit-slider-thumb { width: 12px; height: 12px; }
  #seek::-moz-range-thumb { width: 12px; height: 12px; }
}

@media (max-width: 600px) {
  body { min-height: 100svh; padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
  #centro {
    margin-top: clamp(20px, 5svh, 48px);
    padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-left), env(safe-area-inset-right)) 24px;
  }
  .logo { width: min(100%, 360px, 46svh, max(150px, calc(100svh - 380px))); }
  h1 { margin-top: 18px; font-size: 25px; }
  .socials { max-width: 260px; margin: 12px auto 0; }
  .contact { margin-top: 8px; font-size: clamp(20px, 5.8vw, 25px); }
  .player-dock {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px 12px;
    padding: 12px max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
  }
  .dock-track { gap: 10px; }
  .album-thumb { width: 40px; height: 40px; flex-shrink: 0; }
  .track-info h2 { font-size: 16px; line-height: 1.4; }
  .track-info p { font-size: 12px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dock-actions { grid-column: 2; grid-row: 1; }
  .dock-center { grid-column: 1 / -1; display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; gap: 12px; }
  .timeline { gap: 6px; margin: 0; font-size: 11px; }
  .timeline span { flex-shrink: 0; }
  .queue {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(100% + 8px);
    width: auto;
    max-width: none;
    max-height: calc(100svh - 156px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 8px 16px 12px;
    scroll-padding-block: 12px;
  }
  .playlist { margin-bottom: 0; }
  .player-kicker { line-height: 1.5; }
}

@media (max-height: 500px) and (min-width: 601px) {
  body { min-height: 100svh; padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
  #centro { margin-top: max(12px, env(safe-area-inset-top)); }
  .logo { width: min(230px, 42svh); }
  .player-dock { padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(28px, env(safe-area-inset-right)); }
  .queue { bottom: calc(100% + 8px); max-height: calc(100svh - 144px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); right: max(12px, env(safe-area-inset-right)); }
}

@media (max-height: 500px) and (min-width: 601px) and (max-width: 900px) {
  #centro { display: grid; grid-template-columns: minmax(140px, 200px) minmax(0, 1fr); align-items: center; gap: 0 24px; width: min(760px, 100%); padding-inline: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)); }
  .logo { grid-column: 1; grid-row: 1 / 4; width: min(200px, 52svh); }
  h1 { grid-column: 2; margin-top: 0; }
  .socials { grid-column: 2; margin-top: 8px; }
  .contact { grid-column: 2; margin-top: 4px; font-size: clamp(18px, 2.8vw, 23px); }
}
