:root {
  --eoy-audio-height: 54px;
  --eoy-audio-bg: #050706;
  --eoy-audio-panel: #0a0d0b;
  --eoy-audio-gold: var(--lime, #58e20f);
  --eoy-audio-gold-bright: #98ff63;
  --eoy-audio-paper: #fffdf7;
  --eoy-audio-muted: rgba(255, 253, 247, 0.62);
  scroll-padding-bottom: calc(var(--eoy-audio-height) + 18px);
}

.eoy-audio-reserve {
  display: block;
  width: 100%;
  height: var(--eoy-audio-height);
  min-height: var(--eoy-audio-height);
  background: var(--eoy-audio-bg);
  pointer-events: none;
}

.eoy-audio-dock,
.eoy-audio-dock * {
  box-sizing: border-box;
}

.eoy-audio-dock {
  position: fixed;
  z-index: 1400;
  right: 0;
  bottom: 0;
  left: 0;
  color: var(--eoy-audio-paper);
  font-family: var(--sans, "Manrope", Arial, sans-serif);
  font-size: 12px;
  line-height: 1.35;
}

body.nav-open .eoy-audio-dock {
  visibility: hidden;
  pointer-events: none;
}

.eoy-radio-bar {
  width: 100%;
  min-height: 54px;
  padding: 6px max(16px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border-top: 1px solid rgba(235, 213, 138, 0.24);
  background: rgba(15, 13, 10, 0.975);
  box-shadow: 0 -10px 30px rgba(15, 13, 10, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.eoy-radio-bar-inner {
  display: grid;
  width: min(100%, var(--max, 1240px));
  min-height: 41px;
  margin: 0 auto;
  align-items: center;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.eoy-audio-dock button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(235, 213, 138, 0.34);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--eoy-audio-paper);
  font: 700 10px/1 var(--sans, "Manrope", Arial, sans-serif);
  letter-spacing: 0.035em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  appearance: none;
  -webkit-appearance: none;
}

.eoy-audio-dock button:hover,
.eoy-audio-dock button:focus-visible,
.eoy-audio-dock button.is-active {
  border-color: var(--eoy-audio-gold);
  background: var(--eoy-audio-gold);
  color: #15120e;
}

.eoy-audio-dock button:focus-visible {
  outline: 2px solid var(--eoy-audio-gold-bright);
  outline-offset: 3px;
}

.eoy-audio-dock button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.eoy-radio-play {
  border-color: transparent !important;
  background: transparent !important;
  color: #15120e !important;
}

.eoy-radio-play:hover,
.eoy-radio-play:focus-visible {
  background: transparent !important;
}

.eoy-radio-play > [data-eoy-play-icon] {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--eoy-audio-gold);
  transition: background 160ms ease, transform 160ms ease;
}

.eoy-radio-play:hover > [data-eoy-play-icon],
.eoy-radio-play:focus-visible > [data-eoy-play-icon] {
  background: var(--eoy-audio-gold-bright);
  transform: scale(1.04);
}

.eoy-radio-play svg {
  width: 15px !important;
  height: 15px !important;
}

.eoy-radio-icon-button {
  color: var(--eoy-audio-muted) !important;
}

.eoy-radio-now {
  display: block;
  min-width: 0;
}

.eoy-radio-kicker {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: var(--eoy-audio-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.eoy-radio-kicker i {
  display: inline-block;
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.34);
  box-shadow: 0 0 0 3px rgba(255, 253, 248, 0.05);
}

.eoy-radio-kicker i.is-online {
  background: var(--eoy-audio-gold-bright);
  box-shadow: 0 0 0 3px rgba(235, 213, 138, 0.12), 0 0 10px rgba(235, 213, 138, 0.48);
}

.eoy-radio-now-line {
  display: flex;
  min-width: 0;
  margin-top: 2px;
  align-items: baseline;
  gap: 8px;
}

.eoy-radio-now-line strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--eoy-audio-paper);
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eoy-radio-now-line > strong {
  flex: 1 1 auto;
}

[data-eoy-compact-time] {
  flex: 0 0 auto;
  color: var(--eoy-audio-muted);
  font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.eoy-radio-panel {
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(100% + 8px);
  width: min(430px, calc(100vw - 32px));
  max-height: min(72vh, 620px);
  padding: 16px;
  overflow: auto;
  border: 1px solid rgba(235, 213, 138, 0.28);
  border-radius: 16px;
  background: rgba(23, 19, 14, 0.985);
  box-shadow: 0 24px 70px rgba(15, 13, 10, 0.42);
  color: var(--eoy-audio-paper);
  scrollbar-color: var(--eoy-audio-gold) transparent;
}

.eoy-radio-panel[hidden],
.eoy-radio-panel [hidden],
.eoy-radio-status:empty {
  display: none !important;
}

.eoy-radio-station {
  display: grid;
  min-width: 0;
  align-items: start;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
}

.eoy-radio-art {
  width: 76px;
  height: 76px;
  border: 1px solid rgba(235, 213, 138, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  object-fit: cover;
}

.eoy-radio-copy {
  min-width: 0;
}

.eoy-radio-state {
  display: flex;
  min-width: 0;
  margin-bottom: 4px;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: var(--eoy-audio-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.eoy-radio-state > :first-child {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid rgba(235, 213, 138, 0.28);
  border-radius: 999px;
}

.eoy-radio-state > :first-child.is-online {
  border-color: var(--eoy-audio-gold);
  background: var(--eoy-audio-gold);
  color: #15120e;
}

.eoy-radio-state > :last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.eoy-radio-song,
.eoy-radio-artist {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eoy-radio-song {
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
}

.eoy-radio-artist {
  margin-top: 3px;
  color: rgba(255, 253, 248, 0.82);
  font-size: 11px;
  font-weight: 600;
}

.eoy-radio-meta {
  display: grid;
  margin: 7px 0 0;
  gap: 4px;
}

.eoy-radio-meta > div {
  display: grid;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
}

.eoy-radio-meta dt,
.eoy-radio-meta dd {
  margin: 0;
}

.eoy-radio-meta dt {
  color: var(--eoy-audio-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eoy-radio-meta dd {
  overflow: hidden;
  color: rgba(255, 253, 248, 0.86);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eoy-radio-copyright {
  display: flex;
  margin-top: 6px;
  align-items: center;
  gap: 5px;
  color: var(--eoy-audio-muted);
  font-size: 9px;
}

.eoy-radio-copyright > :first-child {
  color: var(--eoy-audio-gold-bright);
  font-size: 13px;
  font-weight: 700;
}

.eoy-radio-timeline {
  margin-top: 9px;
}

.eoy-radio-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.14);
}

.eoy-radio-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--eoy-audio-gold), var(--eoy-audio-gold-bright));
  transition: width 350ms linear;
}

.eoy-radio-time {
  display: flex;
  margin-top: 4px;
  align-items: center;
  gap: 4px;
  color: var(--eoy-audio-muted);
  font: 600 9px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.eoy-radio-remaining {
  margin-left: auto;
}

.eoy-radio-up-next {
  display: flex;
  min-width: 0;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(235, 213, 138, 0.12);
  gap: 7px;
  color: var(--eoy-audio-muted);
  font-size: 9px;
}

.eoy-radio-up-next > span {
  flex: 0 0 auto;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eoy-radio-up-next strong {
  min-width: 0;
  overflow: hidden;
  color: var(--eoy-audio-paper);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eoy-radio-panel-controls {
  display: grid;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(235, 213, 138, 0.16);
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 12px;
}

.eoy-radio-panel-play {
  min-width: 108px !important;
  padding: 0 14px !important;
  border-color: var(--eoy-audio-gold) !important;
  border-radius: 9px !important;
  gap: 7px;
  background: var(--eoy-audio-gold) !important;
  color: #15120e !important;
}

.eoy-radio-panel-play:hover,
.eoy-radio-panel-play:focus-visible {
  background: var(--eoy-audio-gold-bright) !important;
}

.eoy-radio-panel-play > [data-eoy-panel-play-icon] {
  display: grid;
  place-items: center;
}

.eoy-radio-panel-play svg {
  width: 16px !important;
  height: 16px !important;
}

.eoy-radio-volume-control {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.eoy-radio-volume-control > span {
  color: var(--eoy-audio-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eoy-radio-volume {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(3, minmax(52px, 1fr));
}

.eoy-radio-volume button {
  min-height: 32px;
  border-radius: 7px;
}

.eoy-radio-status {
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(100% + 8px);
  max-width: min(330px, calc(100vw - 32px));
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(235, 213, 138, 0.24);
  border-radius: 9px;
  background: rgba(15, 13, 10, 0.96);
  box-shadow: 0 10px 30px rgba(15, 13, 10, 0.28);
  color: var(--eoy-audio-muted);
  font-size: 10px;
  font-weight: 600;
}

.eoy-audio-dock.is-expanded .eoy-radio-status {
  right: 28px;
  bottom: calc(100% + min(72vh, 630px));
}

.eoy-audio-dock audio {
  display: none !important;
}

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

@media (max-width: 600px) {
  .eoy-radio-bar {
    min-height: 52px;
    padding-top: 5px;
    padding-bottom: max(5px, env(safe-area-inset-bottom));
  }

  .eoy-radio-bar-inner {
    min-height: 41px;
    gap: 7px;
  }

  .eoy-audio-dock button {
    min-width: 44px;
    min-height: 44px;
  }

  .eoy-radio-now-line strong {
    font-size: 14px;
  }

  .eoy-radio-panel {
    right: 10px;
    width: calc(100vw - 20px);
    padding: 14px;
  }

  .eoy-radio-station {
    gap: 11px;
  }

  .eoy-radio-art {
    width: 64px;
    height: 64px;
  }

  .eoy-radio-song {
    font-size: 18px;
  }

  .eoy-radio-status {
    right: 10px;
    max-width: calc(100vw - 20px);
  }
}

@media (max-width: 390px) {
  .eoy-radio-bar-inner {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .eoy-radio-kicker {
    max-width: 150px;
  }

  [data-eoy-compact-time] {
    display: none !important;
  }

  .eoy-radio-panel {
    max-height: min(68vh, 540px);
  }

  .eoy-radio-panel-controls {
    grid-template-columns: 1fr;
  }

  .eoy-radio-panel-play {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eoy-audio-dock *,
  .eoy-audio-dock *::before,
  .eoy-audio-dock *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .eoy-audio-dock,
  .eoy-audio-reserve {
    display: none !important;
  }
}
