:root {
  --gr-radio-base-font-size: 12px;
}

.gr-radio-shell {
  --gr-radio-wood-1: #7a4b21;
  --gr-radio-wood-2: #4a2912;
  --gr-radio-wood-3: #1e1109;
  --gr-radio-brass-1: #f4d58e;
  --gr-radio-amber-1: #ffd78a;
  --gr-radio-amber-2: #ffb64b;
  --gr-radio-amber-4: rgba(255, 176, 68, 0.16);
  --gr-radio-line: rgba(255, 202, 120, 0.18);
  color-scheme: dark;
  position: relative;
  display: block;
  width: min(40rem, 100%);
  margin: 0 auto;
  padding: 0.4rem;
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at top, rgba(255, 189, 90, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(122, 75, 33, 0.96), rgba(49, 27, 13, 0.98)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02) 0 10px,
      rgba(0, 0, 0, 0.05) 10px 20px
    );
  border: 1px solid rgba(248, 219, 164, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 214, 0.22),
    inset 0 0 0 2px rgba(45, 24, 11, 0.8),
    0 18px 32px rgba(0, 0, 0, 0.34);
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--gr-radio-base-font-size);
}

.gr-radio-shell *,
.gr-radio-shell *::before,
.gr-radio-shell *::after {
  box-sizing: border-box;
}

.gr-radio-frame {
  width: 100%;
}

.gr-radio-screen {
  position: relative;
  overflow: hidden;
  padding: 0.4rem;
  border-radius: 1rem;
  border: 1px solid rgba(248, 219, 164, 0.14);
  background:
    linear-gradient(180deg, rgba(44, 26, 10, 0.97), rgba(17, 10, 5, 0.98)),
    linear-gradient(180deg, rgba(255, 154, 42, 0.06), transparent 60%);
  box-shadow: inset 0 1px 0 rgba(255, 245, 218, 0.08);
}

.gr-radio-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 172, 77, 0.05), transparent 15%, transparent 85%, rgba(255, 172, 77, 0.04)),
    repeating-linear-gradient(
      180deg,
      rgba(255, 189, 97, 0.045) 0 1px,
      transparent 1px 4px
    );
  mix-blend-mode: screen;
}

.gr-radio-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 173, 58, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.16));
}

.gr-radio-video {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 189, 97, 0.2);
  background: #000;
}

.gr-radio-video__player,
.gr-radio-video iframe {
  width: 100%;
  height: 100%;
}

.gr-radio-lyrics-wrap {
  position: relative;
  z-index: 1;
  margin-top: 0.35rem;
  height: 10rem;
  max-height: 10rem;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(255, 189, 97, 0.18);
  background:
    radial-gradient(circle at 50% 0, rgba(255, 169, 58, 0.1), transparent 32%),
    rgba(20, 12, 6, 0.92);
}

.gr-radio-centerline {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 1;
  height: 1.75rem;
  transform: translateY(-50%);
  border-top: 1px solid var(--gr-radio-line);
  border-bottom: 1px solid var(--gr-radio-line);
  background: var(--gr-radio-amber-4);
  pointer-events: none;
}

.gr-radio-lyrics {
  position: relative;
  z-index: 0;
  height: 10rem;
  max-height: 10rem;
  margin: 0;
  padding: 4rem 0;
  overflow-y: auto;
  overflow-x: hidden;
  list-style: none;
  scroll-behavior: smooth;
}

.gr-radio-lyrics::-webkit-scrollbar {
  width: 0.45rem;
}

.gr-radio-lyrics::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 1px solid rgba(20, 12, 6, 0.8);
  background: rgba(255, 175, 59, 0.28);
}

.gr-radio-lyrics li {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: 0.3rem;
  align-items: center;
  min-height: 1.75rem;
  padding: 0 0.45rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.66rem;
  line-height: 1.15;
  color: rgba(255, 199, 118, 0.54);
  text-shadow: 0 0 8px rgba(255, 158, 26, 0.08);
}

.gr-radio-lyrics-marker {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.gr-radio-lyrics li.gr-radio-is-active {
  color: var(--gr-radio-amber-1);
  background: linear-gradient(90deg, rgba(255, 171, 52, 0.14), transparent 82%);
  text-shadow: 0 0 14px rgba(255, 183, 74, 0.34);
}

.gr-radio-lyrics li.gr-radio-is-active .gr-radio-lyrics-marker {
  opacity: 1;
}

.gr-radio-lyrics li.gr-radio-is-past {
  color: rgba(255, 198, 116, 0.34);
}

.gr-radio-lyrics li.gr-radio-is-error {
  color: #ffba78;
}

@media (max-width: 860px) {
  .gr-radio-shell {
    width: min(100%, 30rem);
  }
}

@media (max-width: 640px) {
  .gr-radio-shell {
    width: min(100%, 28rem);
    padding: 0.35rem;
    border-radius: 1rem;
  }

  .gr-radio-lyrics-wrap,
  .gr-radio-lyrics {
    height: 10rem;
    max-height: 10rem;
  }
}
