body {
  margin: 0;
  min-height: 100vh;
  background: #000 url('../assets/images/hero-background.png') center/cover no-repeat fixed;
  font-family: 'Courier New', Courier, monospace;
  color: #fff;
  overflow-x: hidden;
  position: relative;
}


.nav-bar {
  width: 100vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

.nav-left {
  display: flex;
  gap: 2rem;
  font-size: 1.2rem;
  margin: 24px 32px;
}

.nav-left a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav-left a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* .site-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Dancing Script', cursive, sans-serif;
  font-size: 2rem;
  letter-spacing: 0.1em;
  opacity: 0.9;
  top: 32px;
} */
.nav-right {
  display: flex;
  gap: 1.2rem;
  font-size: 1.7rem;
  align-items: center;
  position: relative;
  z-index: 20;
  background: rgba(35, 37, 42, 0.85);
  padding: 6px 12px;
  border-radius: 16px;
  box-shadow: 0 2px 8px #0004;
  margin-right: 32px;
}

.nav-right a {
  color: #fff;
  opacity: 0.9;
  transition: opacity 0.2s;
  text-decoration: none;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-right a:hover {
  opacity: 1;
  background: #ff5500;
  color: #fff;
}

#radio-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

#radio-label {
  /* margin-top: 20px; */
  font-size: 2rem;
  color: #fff;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 8px #0008;
}

#soundcloud-player {
  margin-top: 32px;
  display: block;
  width: 100%;
  max-width: 500px;
  min-height: 0;
  height: 0;
  overflow: hidden;
  position: absolute;
  left: -9999px;
  top: -9999px;
  pointer-events: none;
  opacity: 0;
}

#radio-ui-wrapper {
  max-width: 98vw;
  width: 500px;
  margin: 0 auto;
  position: relative;
}

#radio-black-overlay {
  transition: all 0.2s;
  overflow: hidden;
  padding-right: 8px;
  display: none;
  align-items: center;
  position: absolute;
  background: transparent;
  border-radius: 0;
  z-index: 2;
}

#radio-artwork {
  box-shadow: 0 2px 8px #0007;
  background: #222;
  border-radius: 12px;
  object-fit: cover;
  min-width: 44px;
  min-height: 44px;
  max-width: 56px;
  max-height: 56px;
  aspect-ratio: 1/1;
  margin-left: 12px;
  flex-shrink: 0;
  display: block;
}

#radio-title-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  max-width: 300px;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 56px;
  flex: 1;
  margin-left: 18px;
  margin-right: 18px;
}

#radio-title {
  display: inline-block;
  vertical-align: middle;
  font-size: 1.45rem;
  font-weight: bold;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 8px #000a;
  will-change: transform;
  transition: color 0.2s;
  padding-left: 2px;
  padding-right: 0;
  max-width: 100%;
}

#radio-controls button:active {
  filter: brightness(0.95);
}

#radio-controls button:focus {
  outline: 2px solid #ff5252;
  outline-offset: 2px;
}

/* Modal styles for Microsoft Form */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 32, 36, 0.85);
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-window {
  background: #23252a;
  border-radius: 14px;
  box-shadow: 0 4px 32px #000b;
  padding: 0;
  min-width: 0;
  width: 620px;
  max-width: 99vw;
  min-height: 720px;
  max-height: 99vh;
  color: #fff;
  position: relative;
  font-family: 'Courier New', Courier, monospace;
  animation: modalIn 0.18s cubic-bezier(.4, 2, .6, 1) both;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes modalIn {
  from {
    transform: translateY(40px) scale(0.98);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 18px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 2;
}

.modal-close:hover {
  opacity: 1;
}

.modal-iframe-container {
  width: 520px;
  max-width: 94vw;
  height: 600px;
  max-height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #23252a;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  padding-top: 32px;
  box-sizing: border-box;
}

@media (max-width: 500px) {

  #radio-ui-wrapper {
    width: 100vw;
    max-width: 100vw;
    aspect-ratio: 1/1;
    margin: 10 auto;
    display: block;
    position: relative;
  }

  #radio-img {
    width: 100%;
    height: auto;
    max-height: 100vw;
    object-fit: contain;
    display: block;
    z-index: 1;
  }

  #radio-black-overlay {
    position: absolute;
    left: 12%;
    top: 42%;
    width: 78%;
    height: 12vw;
    min-height: 44px;
    max-height: 60px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    z-index: 2;
  }

  #radio-controls {
    position: absolute !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    background: none;
  }

  #radio-play-btn {
    left: 49.7%;
    top: 72%;
    width: 80px;
    height: 80px;
  }

  #radio-next-btn {
    left: 60.2%;
    top: 83%;
    width: 31px;
    height: 31px;
  }


  #radio-artwork {
    width: 11vw;
    height: 11vw;
    min-width: 44px;
    min-height: 44px;
    max-width: 56px;
    max-height: 56px;
    margin-left: 2vw;
  }

  #radio-title-container {
    max-width: 60vw;
    min-width: 0;
    margin-left: 3vw;
    margin-right: 3vw;
  }

  #radio-title-main {
    position: absolute;
    top: 0%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    pointer-events: none;
  }

  #radio-title-main .radio-title-text {
    pointer-events: auto;
    font-size: 1.3rem !important;
    text-align: center;
  }

  /* Mobile: render the logo directly above the "Sedna FM" title without moving other components */
  #radio-title-main::before {
    content: "";
    width: 62px;
    height: 62px;
    margin-bottom: 0px;
    background: url('../assets/images/sedna_logo.png') no-repeat center/contain;
    display: block;
  }

  /* Hide the original logo so we don't duplicate it; positions of other elements remain unchanged */
  #radio-label img {
    display: none;
  }

  .home .nav-right {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    padding: 12px 0 8px 0;
    margin: 0;
    z-index: 100;
    box-shadow: none;
  }

  .home .nav-right a {
    font-size: 2rem;
    margin: 0 18px;
    color: #fff;
  }
}


@media (min-width: 501px) {
  #radio-black-overlay {
    position: absolute;
    left: 58px;
    top: 206px;
    width: 395px;
    height: 70px;
  }

  #radio-play-btn {
    left: 49.7%;
    top: 71.8%;
    width: 85px;
    height: 85px;
  }

  #radio-next-btn {
    left: calc(50% + 53px);
    top: 75.8%;
    width: 39px;
    height: 39px;
  }

  #radio-artwork {
    width: 56px;
    height: 56px;
  }

  #radio-title-container {
    max-width: 300px;
  }

  #radio-ui-wrapper {
    position: relative;
  }

  #radio-title-main {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    pointer-events: none;
  }

  #radio-title-main .radio-title-text {
    pointer-events: auto;
    font-size: 1.8rem !important;
  }

}

@keyframes scroll-title {
  0% {
    transform: translateX(0);
  }

  10% {
    transform: translateX(0);
  }

  90% {
    transform: translateX(calc(-1 * (var(--scroll-distance, 0px))));
  }

  100% {
    transform: translateX(0);
  }
}
/* Make play button invisible but still clickable */
#radio-play-btn {
  background: none !important;
  border: none !important;
  color: transparent !important;
  box-shadow: none !important;
  fill: transparent !important;
}
#radio-play-btn svg,
#radio-play-btn i,
#radio-play-btn::before,
#radio-play-btn::after {
  color: transparent !important;
  fill: transparent !important;
  background: none !important;
  box-shadow: none !important;
}
/* Hide SVG play icon inside the play button */
#radio-play-btn svg,
#radio-play-btn svg * {
  fill: transparent !important;
  color: transparent !important;
}
/* Make next button invisible but still clickable */
#radio-next-btn {
  background: none !important;
  border: none !important;
  color: transparent !important;
  box-shadow: none !important;
  fill: transparent !important;
}
#radio-next-btn svg,
#radio-next-btn i,
#radio-next-btn::before,
#radio-next-btn::after {
  color: transparent !important;
  fill: transparent !important;
  background: none !important;
}
/* Hide SVG icon inside the next button */
#radio-next-btn svg,
#radio-next-btn svg * {
  fill: transparent !important;
  color: transparent !important;
}
/* Mobile-only luminosity pulse over the image play button without adding visible graphics */
@media (max-width: 500px) {
  /* Ensure overlay circle sits exactly on the clickable area and only changes underlying luminosity */
  body.home #radio-play-btn {
    position: absolute; /* already absolute, keep for clarity */
  }

  /* Use a pseudo-element as a circular overlay that modulates brightness of pixels behind it */
  body.home #radio-play-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;

    /* Important: override earlier "background: none !important" that hides pseudo-elements */
    background: rgba(255, 255, 255, 0.03) !important;

    /* Brightness modulation of backdrop (the radio image) */
    -webkit-backdrop-filter: brightness(var(--btn-brightness, 1));
    backdrop-filter: brightness(var(--btn-brightness, 1));

    animation: playLumPulse 1.8s ease-in-out infinite;
    will-change: backdrop-filter, -webkit-backdrop-filter, background-color;
  }

  @keyframes playLumPulse {
    0%   { --btn-brightness: 1; }
    50%  { --btn-brightness: 1.28; }
    100% { --btn-brightness: 1; }
  }

  /* Fallback for browsers without backdrop-filter: simulate with blend mode */
  @supports not ((backdrop-filter: brightness(1.1)) or (-webkit-backdrop-filter: brightness(1.1))) {
    body.home #radio-play-btn::after {
      /* Overlay uses blend mode to make red look brighter/darker without adding a hard shape */
      mix-blend-mode: overlay;
      animation: playLumPulseFallback 1.8s ease-in-out infinite;
    }

    @keyframes playLumPulseFallback {
      0%   { background-color: rgba(255, 255, 255, 0.12) !important; }
      50%  { background-color: rgba(255, 255, 255, 0.34) !important; }
      100% { background-color: rgba(255, 255, 255, 0.12) !important; }
    }
  }

  /* Respect reduced-motion preferences */
  @media (prefers-reduced-motion: reduce) {
    body.home #radio-play-btn::after { animation: none; }
  }
}
/* Desktop luminosity pulse over the image play button (same as mobile) */
@media (min-width: 501px) {
  /* Ensure overlay circle sits exactly on the clickable area and only changes underlying luminosity */
  body.home #radio-play-btn {
    position: absolute; /* already absolute, keep for clarity */
  }

  /* Use a pseudo-element as a circular overlay that modulates brightness of pixels behind it */
  body.home #radio-play-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;

    /* Important: override earlier "background: none !important" that hides pseudo-elements */
    background: rgba(255, 255, 255, 0.03) !important;

    /* Brightness modulation of backdrop (the radio image) */
    -webkit-backdrop-filter: brightness(var(--btn-brightness, 1));
    backdrop-filter: brightness(var(--btn-brightness, 1));

    animation: playLumPulse 1.8s ease-in-out infinite;
    will-change: backdrop-filter, -webkit-backdrop-filter, background-color;
  }

  @keyframes playLumPulse {
    0%   { --btn-brightness: 1; }
    50%  { --btn-brightness: 1.28; }
    100% { --btn-brightness: 1; }
  }

  /* Fallback for browsers without backdrop-filter: simulate with blend mode */
  @supports not ((backdrop-filter: brightness(1.1)) or (-webkit-backdrop-filter: brightness(1.1))) {
    body.home #radio-play-btn::after {
      /* Overlay uses blend mode to make red look brighter/darker without adding a hard shape */
      mix-blend-mode: overlay;
      animation: playLumPulseFallback 1.8s ease-in-out infinite;
    }

    @keyframes playLumPulseFallback {
      0%   { background-color: rgba(255, 255, 255, 0.12) !important; }
      50%  { background-color: rgba(255, 255, 255, 0.34) !important; }
      100% { background-color: rgba(255, 255, 255, 0.12) !important; }
    }
  }

  /* Respect reduced-motion preferences */
  @media (prefers-reduced-motion: reduce) {
    body.home #radio-play-btn::after { animation: none; }
  }
}
/* Desktop luminosity pulse over the image play button (mirrors mobile behavior) */
@media (min-width: 501px) {
  /* Ensure overlay circle sits exactly on the clickable area and only changes underlying luminosity */
  body.home #radio-play-btn {
    position: absolute; /* already absolute, keep for clarity */
  }

  /* Use a pseudo-element as a circular overlay that modulates brightness of pixels behind it */
  body.home #radio-play-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;

    /* Important: override earlier "background: none !important" that hides pseudo-elements */
    background: rgba(255, 255, 255, 0.03) !important;

    /* Brightness modulation of backdrop (the radio image) */
    -webkit-backdrop-filter: brightness(var(--btn-brightness, 1));
    backdrop-filter: brightness(var(--btn-brightness, 1));

    animation: playLumPulse 1.8s ease-in-out infinite;
    will-change: backdrop-filter, -webkit-backdrop-filter, background-color;
  }

  @keyframes playLumPulse {
    0%   { --btn-brightness: 1; }
    50%  { --btn-brightness: 1.28; }
    100% { --btn-brightness: 1; }
  }

  /* Fallback for browsers without backdrop-filter: simulate with blend mode */
  @supports not ((backdrop-filter: brightness(1.1)) or (-webkit-backdrop-filter: brightness(1.1))) {
    body.home #radio-play-btn::after {
      /* Overlay uses blend mode to make red look brighter/darker without adding a hard shape */
      mix-blend-mode: overlay;
      animation: playLumPulseFallback 1.8s ease-in-out infinite;
    }

    @keyframes playLumPulseFallback {
      0%   { background-color: rgba(255, 255, 255, 0.12) !important; }
      50%  { background-color: rgba(255, 255, 255, 0.34) !important; }
      100% { background-color: rgba(255, 255, 255, 0.12) !important; }
    }
  }

  /* Respect reduced-motion preferences */
  @media (prefers-reduced-motion: reduce) {
    body.home #radio-play-btn::after { animation: none; }
  }
}