/* header / brand */
header {
  margin-bottom: 18px;
}

.scene {
  --switch-y: 332px;
}

/* station switch arrows */
.station-switch {
  position: absolute;
  top: var(--switch-y);
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--accent);
  background: rgba(5, 7, 10, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.36);
  z-index: 3;
  transition: transform 120ms ease, opacity 120ms ease, border-color 160ms ease;
}

.station-switch,
.brand,
.card {
  background-color: rgba(10, 12, 18, 0.9);
}

.station-switch:hover {
  transform: translateY(-50%) scale(1.04);
  border-color: rgba(255, 255, 255, 0.28);
}

.station-switch:active {
  transform: translateY(-50%) scale(0.96);
}

.station-switch-left {
  left: -58px;
}

.station-switch-right {
  right: -58px;
}

.station-switch-mark {
  position: relative;
  display: block;
  width: 9px;
  height: 9px;
  font-size: 0;
  line-height: 0;
}

.station-switch-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform-origin: center;
}

.station-switch-left .station-switch-mark {
  transform: translateX(2px);
}

.station-switch-right .station-switch-mark {
  transform: translateX(-2px);
}

.station-switch-left .station-switch-mark::before {
  transform: translate(-50%, -50%) rotate(-135deg);
}

.station-switch-right .station-switch-mark::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

/* LOGO blokas */
.logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

/* LOGO – be animacijos, tik transition ant opacity */
.logo-img {
  max-width: 220px;
  width: 70%;
  height: auto;
  opacity: 1; /* startuoja matomas */
  filter: drop-shadow(0 0 18px rgba(143, 255, 186, 0.25));
  transition: opacity 2s ease;
}

/* kai atidarytas disclaimer – logo per 2s išnyksta, kai uždarai – grįžta */
body.bg-solid .logo-img {
  opacity: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(
    circle at 0 0,
    rgba(255, 255, 255, 0.08),
    transparent 55%
  );
  backdrop-filter: blur(24px);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.brand > * + * {
  margin-left: 8px;
}

.brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 10px rgba(143, 255, 186, 0.8);
}

.title-wrap {
  margin-top: 12px;
}

h1 {
  font-size: 1.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.subtitle {
  font-size: 0.9rem;
  color: var(--accent-soft);
}

/* card / player */
.card {
  margin-top: 18px;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 18px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at 20% 0%,
    rgba(143, 255, 186, 0.08),
    transparent 55%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease-out;
}

.card.playing::before {
  opacity: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

/* LIVE badge */
.live-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
}

.live-pill > * + * {
  margin-left: 8px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 14px rgba(255, 85, 101, 0.9);
  opacity: 0.4;
}

.card.playing .live-dot {
  animation: pulse 900ms ease-in-out infinite;
  opacity: 1;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(255, 85, 101, 0.5);
  }
  50% {
    transform: scale(1.3);
    box-shadow: 0 0 18px rgba(255, 85, 101, 1);
  }
}

/* status / now playing */
.status {
  font-size: 0.78rem;
  color: var(--accent-soft);
  text-align: right;
}

.status-strong {
  color: var(--accent-strong);
}

.main-line {
  margin-bottom: 16px;
}

.main-line-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-soft);
  margin-bottom: 6px;
}

.main-line-text {
  font-size: 1.05rem;
}

/* controls */
.controls {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.controls > * + * {
  margin-left: 14px;
}

/* PLAY / PAUSE button */
.play-btn {
  position: relative;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0; /* paslepiam tekstą/emoji, ikoną piešiam CSS */
  cursor: pointer;
  background: #f5f5f5;
  color: #050608;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  transition:
    transform 90ms ease,
    box-shadow 90ms ease,
    background 160ms ease,
    color 160ms ease;
}

.play-btn:active {
  transform: scale(0.95) translateY(1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

.card.playing .play-btn {
  background: var(--accent-strong);
  color: #050608;
}

/* custom play/pause icon */
.play-btn::before,
.play-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
}

/* PLAY – trikampis */
.play-btn::before {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #050608;
  transform: translate(-38%, -50%); /* truputį į dešinę, kad vizualiai būtų centre */
}

.play-btn::after {
  display: none;
}

/* kai groja: PAUSE – dvi juostelės */
.card.playing .play-btn::before,
.card.playing .play-btn::after {
  width: 4px;
  height: 16px;
  background: #050608;
  border-radius: 2px;
  border: none;
}

.card.playing .play-btn::before {
  transform: translate(-6px, -50%);
}

.card.playing .play-btn::after {
  display: block;
  transform: translate(2px, -50%);
}

.slider-block {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.slider-block > * + * {
  margin-top: 6px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--accent-soft);
}

.slider-label-row span:last-child {
  opacity: 0.7;
}

/* volume slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #252732;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f5f5f5;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
  margin-top: -5px;
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f5f5f5;
  border: none;
}

/* bottom text */
.hint {
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--accent-soft);
}

.seo-card {
  margin-top: 12px;
  color: var(--accent-soft);
  font-size: 0.72rem;
  line-height: 1.45;
  opacity: 0.58;
}

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

/* DISCLAIMER CARD */
.disclaimer-card {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--accent-soft);
  padding-top: 0;
  padding-bottom: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    opacity 220ms ease,
    max-height 220ms ease,
    padding-top 220ms ease,
    padding-bottom 220ms ease;
}

.disclaimer-card.disclaimer-open {
  opacity: 1;
  max-height: 760px; /* daugiau vietos ilgesniam tekstui / mažesniems ekranams */
  padding-top: 16px;
  padding-bottom: 14px;
}

.disclaimer-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 10px;
}

.disclaimer-text {
  margin-bottom: 10px;
  line-height: 1.5;
}

.disclaimer-text:last-child {
  margin-bottom: 0;
}

.disclaimer-text a {
  color: var(--accent-strong);
  text-decoration: none;
}

.disclaimer-text a:hover {
  text-decoration: underline;
}

/* footer */
footer {
  margin-top: 16px;
  font-size: 0.7rem;
  color: var(--accent-soft);
  display: grid;
  grid-template-columns: auto auto;
  row-gap: 12px;
  column-gap: 14px;
  justify-content: center;
  align-items: center;
  opacity: 0.8;
}

/* kai disclaimer atidarytas, išlaikom aiškų tarpą virš footerio */
.disclaimer-card.disclaimer-open + footer {
  margin-top: 20px;
}

.tagline-small {
  grid-column: 1 / -1;
  justify-self: center;
  text-align: center;
  opacity: 0.7;
}

.footer-links {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.footer-copy {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.15;
  white-space: nowrap;
  transform: translateY(2px);
}

.footer-link {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.7rem;
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  opacity: 0.9;
}

.footer-link:hover {
  opacity: 1;
}

/* About modal */
.about-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease;
}

.about-modal.about-open {
  opacity: 1;
  pointer-events: auto;
}

.about-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.08), transparent 42%),
    rgba(1, 2, 5, 0.62);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 420ms ease;
}

.about-modal.about-open .about-backdrop {
  opacity: 1;
}

.about-panel {
  position: relative;
  width: min(380px, 100%);
  padding: 28px 24px 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 48%),
    var(--card);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.76);
  text-align: center;
  color: var(--accent);
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  transition: opacity 420ms ease, transform 420ms ease;
}

.about-modal.about-open .about-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.about-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(5, 7, 10, 0.58);
  color: var(--accent);
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  opacity: 0.84;
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.about-close::before,
.about-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.about-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.about-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.about-close:hover {
  opacity: 1;
  transform: rotate(8deg) scale(1.04);
  border-color: rgba(255, 255, 255, 0.28);
}

.about-photo-wrap {
  width: 138px;
  height: 138px;
  margin: 8px auto 18px;
  border-radius: 50%;
  padding: 4px;
  background:
    conic-gradient(
      from 180deg,
      rgba(45, 24, 64, 0.72),
      #7b5aa3 22%,
      #5f3f84 46%,
      #2a183c 68%,
      #6d4b8f 86%,
      rgba(45, 24, 64, 0.72)
    ),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 0 24px rgba(123, 90, 163, 0.3),
    0 0 58px rgba(95, 63, 132, 0.24),
    0 0 82px rgba(34, 18, 52, 0.18);
  animation: aboutSpin 24s linear infinite;
}

.about-photo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #050608;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-title {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.about-copy {
  color: var(--accent-soft);
  font-size: 0.82rem;
  line-height: 1.58;
}

.about-socials {
  display: grid;
  grid-template-columns: repeat(2, minmax(128px, 1fr));
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  width: min(350px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.about-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--accent);
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.78;
  transition:
    opacity 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.about-socials a:hover {
  opacity: 1;
  border-color: rgba(123, 90, 163, 0.62);
  background: rgba(123, 90, 163, 0.12);
  transform: translateY(-1px);
}

body.about-modal-open {
  overflow: hidden;
}

@keyframes aboutSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
