/* =========================================================
   SuperTraxs.com — 04 Clean White Blue
   v1.00.01 — added left/right edge fade.
   Dynamic overlays only: now-playing text + invisible Listen Live trigger.
   ========================================================= */

:root{
  --page-white:#f4f5f7;
  --panel-blue:#0d428e;
  --panel-blue-soft:#708099;
  --alert-red:#d71920;
  --text-dark:#0b2f6c;
}

*{box-sizing:border-box}

html{
  min-height:100%;
}

body{
  margin:0;
  min-height:100vh;
  overflow:hidden;
  background:var(--page-white);
  color:#0f2344;
  font-family:Inter, Arial, sans-serif;
}

.clean-page{
  min-height:100vh;
  display:grid;
  place-items:center;
  background:#f4f5f7;
  isolation:isolate;
}

.clean-frame{
  position:relative;
  width:min(100vw, calc(100vh * 1.7778958555));
  aspect-ratio:1672 / 941;
  overflow:hidden;
  background:#f4f5f7;
}

.clean-bg{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center center;
  pointer-events:none;
  user-select:none;
}

/* Left/right edge fade so the background blends softly into white on wide screens. */
.clean-frame::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(
      90deg,
      rgba(244,245,247,1) 0%,
      rgba(244,245,247,.92) 4%,
      rgba(244,245,247,.55) 8%,
      rgba(244,245,247,0) 14%,
      rgba(244,245,247,0) 86%,
      rgba(244,245,247,.55) 92%,
      rgba(244,245,247,.92) 96%,
      rgba(244,245,247,1) 100%
    );
}

/* Live title sits in the cleared now-playing area only. */
.now-live-panel {
    position: absolute;
    z-index: 2;
    left: 33%;
    top: 49%;
    width: 36.4%;
    height: 16.8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1.5%;
    text-align: center;
    text-transform: uppercase;
    color: var(--text-dark);
    pointer-events: none;
}

.track-title{
  width:100%;
  color:var(--text-dark);
  font-family:"Barlow Condensed", "Oswald", Arial, sans-serif;
  font-size:clamp(14px, 2.45vw, 48px);
  font-weight:700;
  line-height:.98;
  letter-spacing:.06em;
  text-shadow:0 1px 0 rgba(255,255,255,.8);
  text-wrap:balance;
}

.track-title .track-artist,
.track-title .track-song{
  display:block;
}

.track-title .track-song{
  margin-top:.10em;
  color:#1d58aa;
}

.stream-status{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Invisible click target over the baked LISTEN LIVE button. */
.listen-live-button {
    position: absolute;
    z-index: 4;
    left: 36.0%;
    top: 70%;
    width: 26.0%;
    height: 7.7%;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: transparent;
    cursor: pointer;
}

.listen-live-button::before{
  content:"";
  position:absolute;
  inset:5%;
  border-radius:16px;
  background:rgba(215,25,32,0);
  box-shadow:0 0 0 rgba(215,25,32,0);
  transition:box-shadow .18s ease, background .18s ease;
}

.listen-live-button:hover::before,
.listen-live-button:focus-visible::before{
  background:rgba(215,25,32,.08);
  box-shadow:0 0 20px rgba(215,25,32,.34);
}

.listen-live-button:focus-visible{
  outline:3px solid #0d428e;
  outline-offset:7px;
}

body.is-playing .listen-live-button::before{
  background:rgba(215,25,32,.12);
  box-shadow:0 0 24px rgba(215,25,32,.42);
}

body.is-off-air .track-title{
  color:var(--panel-blue-soft);
}

body.is-off-air .track-title .track-song{
  color:var(--panel-blue-soft);
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

@media (max-aspect-ratio: 1672/941){
  body{
    overflow:auto;
  }

  .clean-page{
    align-items:start;
  }

  .clean-frame{
    width:100vw;
  }
}

@media (max-width:760px){
  .now-live-panel{
    left:33.4%;
    top:43.1%;
    width:37.8%;
    height:18.4%;
  }

  .track-title{
    font-size:clamp(12px, 4.6vw, 32px);
    letter-spacing:.045em;
  }

  .listen-live-button{
    left:35.1%;
    top:68.0%;
    width:27.8%;
    height:8.5%;
  }
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms!important;
    transition-duration:.01ms!important;
    scroll-behavior:auto!important;
  }
}