:root {
  --bg: #050608;
  --bg-soft: #0c0f14;
  --card: rgba(8, 10, 15, 0.92);
  --accent: #f5f5f5;
  --accent-soft: #8c8f96;
  --accent-strong: #8fffba;
  --danger: #ff5565;
  --radius-lg: 22px;
  --radius-pill: 999px;
}

/* base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    sans-serif;
}

/* PAGRINDINIS gradientas – visada ant HTML */
html {
  min-height: 100%;
  background:
    radial-gradient(circle at 0% 0%, #232a3b 0, transparent 55%),
    radial-gradient(circle at 100% 100%, #191c28 0, transparent 55%),
    radial-gradient(circle at 50% 120%, #0d1017 0, #050608 55%);
}

body {
  position: relative;
  min-height: 100vh;
  background: transparent; /* jokio balto fono */
  color: var(--accent);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

/* tamsus overlay virš gradiento, kai atsidaro disclaimer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #161a23;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2s ease;
  z-index: 0; /* virš html bg, bet po turiniu */
}

body.bg-solid::before {
  opacity: 1; /* švelniai užtamsina, be flash */
}

/* fade-in scena */
.scene {
  width: 100%;
  max-width: 460px;
  animation: fadeInUp 650ms ease-out both;
  position: relative;
  z-index: 1; /* turinys virš overlay */
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* 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;
  gap: 8px;
  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-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;
  gap: 8px;
  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-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;
  gap: 14px;
  margin-top: 4px;
}

/* 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;
  gap: 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);
}

/* 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: 520px; /* pakankamai, kad tilptų tekstas */
  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: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.8;
}

.tagline-small {
  opacity: 0.7;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.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;
}

/* mobile */
@media (max-width: 480px) {
  body {
    padding: 16px;
  }

  .card {
    padding: 16px 14px 14px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .logo-img {
    max-width: 180px;
    width: 75%;
  }

  /* sumažinam tarpą tarp player ir footerio, net kai disclaimer uždarytas */
  .disclaimer-card {
    margin-top: 4px;        /* vietoj 14px */
  }

  footer {
    position: relative;     /* kad Contact būtų galima fiksuoti kampe */
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-top: 0;          /* nebededam papildomo tarpo virš footerio */
  }

  /* 1 eilutė: tekstas kairėje, paliekam vietos mygtukui dešinėje */
  .tagline-small {
    width: 100%;
    padding-right: 80px;    /* „zona“ Contact mygtukui */
  }

  /* Contact prisukam prie dešinio viršutinio kampo */
  .footer-link {
    position: absolute;
    top: 0;
    right: 0;
  }

  /* 2 eilutė: tik copyright, centre */
  .footer-right {
    justify-content: center;
    width: 100%;
    margin-top: 4px;
  }

  .footer-right span {
    text-align: center;
    width: 100%;
  }
}
