:root {
  --color-border: rgba(255, 255, 255, 0.25);
  --color-ink: #f0eee6;
  --color-ink-hover: #151515;
  --color-cream: #f5f5f0;
  --font-mono: 'JetBrains Mono', 'Ubuntu Sans Mono', monospace;
  --radius-sm: 4px;
  --transition-fast: 0.2s ease;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

/* ==========================================================================
   Top-Right Radio Player Widget (from valentina)
   ========================================================================== */
.nav-radio-item {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
}

/* Radio Live Track Ticker */
.radio-track-info {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease,
              padding 0.3s ease,
              border-color 0.3s ease,
              margin-right 0.3s ease;
  pointer-events: none;
  height: 28px;
  display: flex;
  align-items: center;
  margin-right: 0;
}

.radio-track-info.visible {
  max-width: min(340px, calc(100vw - 160px));
  opacity: 1;
  padding: 0 10px;
  border-color: var(--color-border);
  margin-right: 8px;
  pointer-events: auto;
}

.radio-track-scroll {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.radio-track-text {
  display: inline-block;
  white-space: nowrap;
  animation: track-marquee 30s linear infinite;
}

.radio-track-info:hover .radio-track-text {
  animation-play-state: paused;
}

@keyframes track-marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.radio-player-widget {
  display: flex;
  align-items: center;
}

.radio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.radio-btn:hover {
  background-color: var(--color-ink);
  color: var(--color-ink-hover);
  border-color: var(--color-ink);
}

/* Blink when inactive to attract user clicks */
.radio-btn:not(.playing) {
  animation: radio-blink 1.8s infinite ease-in-out;
}

.radio-btn:not(.playing):hover {
  animation: none;
}

@keyframes radio-blink {
  0%, 100% {
    border-color: var(--color-border);
    background-color: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    border-color: rgba(255, 255, 255, 0.85);
    background-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
  }
}

.radio-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #999999;
  transition: background-color var(--transition-fast);
}

.radio-btn:not(.playing) .radio-status-dot {
  animation: dot-blink 1.8s infinite ease-in-out;
}

@keyframes dot-blink {
  0%, 100% {
    background-color: #888888;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    background-color: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.75);
  }
}

.radio-btn.playing .radio-status-dot {
  background-color: #55ff55;
  box-shadow: 0 0 8px #55ff55;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.radio-label {
  font-weight: 600;
}

.radio-icon {
  font-size: 0.7rem;
  line-height: 1;
}

/* ==========================================================================
   Temporary Work in Progress Banner
   ========================================================================== */
.wip-banner {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  max-width: 90vw;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  font-family: var(--font-mono);
  text-align: center;
  user-select: none;
  pointer-events: none;
}

.wip-tag {
  font-size: clamp(0.85rem, 0.5vw + 0.8rem, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-cream);
}

.wip-sub {
  font-size: clamp(0.72rem, 0.3vw + 0.68rem, 0.82rem);
  color: #a7a297;
  letter-spacing: 0.05em;
}

/* Sky parallax animation fixed to the bottom */
#sky {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 287px;
  background: url('assets/cielo.png') repeat-x;
  animation: movebg 9s linear infinite;
}

/* Sea parallax animation */
#sea {
  background: url('assets/mar.png') repeat-x;
  animation: movebg 6s linear infinite;
  position: relative;
  top: 145px;
  box-shadow: 10px 10px 45px rgba(0, 0, 0, 0.85) inset;
}

/* Bernard Bernoulli animation */
#bern {
  width: 112px;
  height: 156px;
  margin: auto;
  background: url('assets/bern.png') repeat-x;
  animation: walk 0.8s steps(6) infinite;
  position: relative;
  bottom: 34px;
  left: 0px;


}

/* Walk animation */
@keyframes walk {
  0% { background-position: 0; }
  100% { background-position: -672px; }
}

/* Parallax movement for sky and sea */
@keyframes movebg {
  0% { background-position: 550px; }
  100% { background-position: 0; }
}
