:root {
  --pink: #d9be69;
  --pink-dark: #b5963f;
  --pink-soft: #2a2416;
  --ink: #f6f1e4;
  --muted: #cfc2a0;
  --line: rgba(217, 190, 105, 0.34);
  --panel: rgba(22, 22, 22, 0.92);
  --soft: rgba(37, 34, 27, 0.94);
  --surface: #141414;
  --history-surface: rgba(25, 25, 25, 0.86);
  --page-a: #0d0d0d;
  --page-b: #1b1a16;
  --on-pink: #171717;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #fff8e8;
  --muted: #d7c7a0;
  --line: rgba(217, 190, 105, 0.42);
  --panel: rgba(13, 13, 13, 0.9);
  --soft: rgba(28, 26, 22, 0.92);
  --surface: #0f0f0f;
  --history-surface: rgba(18, 18, 18, 0.88);
  --page-a: #070707;
  --page-b: #14120d;
  --on-pink: #111;
  --shadow: 0 28px 96px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.gtm-noscript {
  display: none;
  visibility: hidden;
}

html {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(217, 190, 105, 0.16), transparent 24rem),
    radial-gradient(circle at 92% 16%, rgba(217, 190, 105, 0.1), transparent 22rem),
    linear-gradient(145deg, var(--page-a) 0%, var(--page-b) 54%, var(--page-a) 100%);
}

body {
  min-height: 100vh;
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
}

body.has-cookie-banner {
  padding-bottom: 24px;
}

img,
svg {
  max-width: 100%;
}

button,
a,
input {
  font: inherit;
}

a {
  color: inherit;
}

.shell {
  width: 100%;
  overflow-x: clip;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
}

.player {
  width: min(100%, 980px);
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: clamp(18px, 2.6vw, 28px);
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  isolation: isolate;
}

.topbar {
  order: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.home-link,
.app-link {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--pink);
  background: var(--surface);
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
}

.home-link {
  min-width: 112px;
  gap: 7px;
  padding: 0 18px;
}

.home-link span {
  font-size: 1.45rem;
  line-height: 1;
}

.app-links {
  display: flex;
  gap: 10px;
}

.app-link {
  gap: 7px;
  padding: 0 14px;
}

.app-link svg {
  width: 25px;
  height: 25px;
  display: block;
}

.app-link svg:not(.icon-stroke) {
  fill: currentColor;
}

.install-link {
  display: none;
  cursor: pointer;
}

.icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-link .icon-stroke {
  width: 25px;
  height: 25px;
}

.brand {
  order: 1;
  position: relative;
  width: 100%;
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.eyebrow,
.status,
.status-row {
  margin: 0;
}

.status-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status {
  color: var(--pink);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.live-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 0 rgba(217, 190, 105, 0.42);
  animation: livePulse 2.2s ease-out infinite;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 190, 105, 0.42);
    transform: scale(1);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(217, 190, 105, 0);
    transform: scale(1.08);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(217, 190, 105, 0);
    transform: scale(1);
  }
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

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

.logo {
  width: min(100%, 390px);
  height: auto;
  display: block;
}

.main-grid {
  order: 2;
  display: grid;
  grid-template-columns: minmax(300px, 440px) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 34px);
}

.artwork-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: visible;
  border-radius: 8px;
  background: var(--pink);
  border: 1px solid var(--line);
  box-shadow: 0 14px 38px rgba(217, 190, 105, 0.08);
}

.artwork-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: var(--pink);
}

.artwork {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: var(--pink);
  border-radius: inherit;
}

.artwork-glow {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -10%;
  z-index: -1;
  width: 92%;
  height: 42%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  filter: blur(22px) saturate(1.25);
  opacity: 0.48;
  transform: scaleY(0.78);
  pointer-events: none;
}

.listen-panel {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: clamp(18px, 2.6vw, 28px);
  padding: 10px;
  margin: -10px;
  overflow: visible;
}

.now-playing {
  min-width: 0;
  display: grid;
  gap: 8px;
}

#trackTitle {
  overflow-wrap: anywhere;
  color: var(--pink);
  font-size: clamp(2.05rem, 5vw, 3.65rem);
  line-height: 1.02;
  font-weight: 800;
}

#trackArtist {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--pink-dark);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
}

.play-button {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: clamp(132px, 17vw, 168px);
  display: grid;
  grid-template-columns: clamp(78px, 12vw, 104px) 1fr;
  align-items: center;
  gap: clamp(16px, 2.6vw, 24px);
  padding: clamp(18px, 2.6vw, 26px);
  border: 0;
  border-radius: 8px;
  color: var(--on-pink);
  background:
    linear-gradient(135deg, #d9be69 0%, #f0d987 34%, #c940a9 68%, #5a2aa1 100%);
  background-size: 180% 180%;
  box-shadow:
    0 22px 48px rgba(217, 190, 105, 0.26),
    0 0 34px rgba(201, 64, 169, 0.16);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, filter 160ms ease;
}

.play-button:hover {
  filter: brightness(1.05) saturate(1.08);
  transform: translateY(-1px);
}

.play-button.is-playing {
  animation: playColorLive 6.8s ease-in-out infinite;
}

.play-button::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 4px solid rgba(217, 190, 105, 0.5);
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  animation: playBorderCallout 2s ease-out infinite;
}

.play-button.is-playing::after {
  animation: none;
  opacity: 0;
}

@keyframes playBorderCallout {
  0% {
    opacity: 0;
    transform: scale(0.985);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.026);
  }
}

@keyframes playColorLive {
  0%,
  100% {
    background-position: 0% 50%;
    box-shadow:
      0 22px 48px rgba(217, 190, 105, 0.26),
      0 0 34px rgba(201, 64, 169, 0.14);
  }

  50% {
    background-position: 100% 50%;
    box-shadow:
      0 24px 54px rgba(240, 217, 135, 0.34),
      0 0 46px rgba(90, 42, 161, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot,
  .play-button.is-playing,
  .play-button::after {
    animation: none;
  }
}

.play-icon {
  width: clamp(78px, 12vw, 104px);
  height: clamp(78px, 12vw, 104px);
  display: grid;
  place-items: center;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1;
  text-align: center;
  text-indent: 4px;
}

.play-button.is-playing .play-icon {
  text-indent: 0;
  font-size: clamp(1.9rem, 3.4vw, 2.4rem);
}

.play-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.play-copy strong {
  min-width: 0;
  font-size: clamp(1.65rem, 3.8vw, 2.45rem);
  line-height: 1;
  font-weight: 800;
}

.play-copy span {
  min-width: 0;
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  font-weight: 700;
}

.volume-control {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px rgba(217, 190, 105, 0.08);
}

.volume-control label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
}

.volume-control label span,
.volume-control label strong {
  font-size: clamp(1.02rem, 2.1vw, 1.18rem);
  font-weight: 800;
}

.volume-actions {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
}

.volume-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--on-pink);
  background: var(--pink);
  box-shadow: 0 10px 24px rgba(217, 190, 105, 0.18);
  cursor: pointer;
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 800;
}

.volume-button:hover {
  background: var(--pink-dark);
}

.volume-meter {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.volume-meter span {
  width: var(--volume-level, 80%);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--pink);
}

.volume-control input:not(.sr-only) {
  width: 100%;
  height: 34px;
  accent-color: var(--pink);
  cursor: pointer;
}

.system-volume .volume-actions,
.system-volume label strong {
  display: none;
}

.system-volume {
  gap: 6px;
}

.system-volume-hint {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 600;
}

.save-prompt {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(217, 190, 105, 0.28);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(0deg, rgba(217, 190, 105, 0.06), rgba(217, 190, 105, 0.06)),
    var(--surface);
}

body.is-mobile-device .save-prompt {
  position: fixed;
  left: max(8px, env(safe-area-inset-left));
  right: max(8px, env(safe-area-inset-right));
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 30;
  width: auto;
  max-width: 430px;
  margin: 0 auto;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px;
  border-color: rgba(217, 190, 105, 0.52);
  border-width: 2px;
  background:
    linear-gradient(0deg, rgba(217, 190, 105, 0.1), rgba(217, 190, 105, 0.1)),
    var(--surface);
  box-shadow:
    0 18px 52px rgba(84, 89, 95, 0.28),
    0 0 0 4px rgba(217, 190, 105, 0.08);
}

body.is-mobile-device.has-cookie-banner .save-prompt {
  bottom: max(104px, calc(env(safe-area-inset-bottom) + 104px));
}

.save-prompt-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.save-prompt-copy strong {
  color: var(--pink);
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 800;
}

.save-prompt-copy span,
.save-prompt-copy small {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.15;
  font-weight: 600;
}

.save-prompt-copy small {
  color: var(--pink);
  font-size: 0.84rem;
}

.save-prompt-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.save-prompt-button,
.save-prompt-dismiss {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.save-prompt-button {
  border: 0;
  padding: 0 14px;
  color: var(--on-pink);
  background: var(--pink);
  box-shadow: 0 10px 24px rgba(217, 190, 105, 0.16);
}

.save-prompt-dismiss {
  border: 1px solid var(--line);
  padding: 0 12px;
  color: var(--pink);
  background: var(--surface);
}

.history-panel {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.history-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 700;
}

.history-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-item {
  display: grid;
  grid-template-columns: 44px 72px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 68px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--history-surface);
}

.history-cover {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  background: var(--pink);
}

.history-item time {
  min-width: 0;
  color: var(--pink);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.history-text {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.history-text strong,
.history-text span {
  overflow: hidden;
}

.history-text strong {
  display: -webkit-box;
  color: var(--pink-dark);
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 700;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.history-text span {
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.play-button:focus-visible,
.home-link:focus-visible,
.app-link:focus-visible,
.volume-button:focus-visible,
.save-prompt-button:focus-visible,
.save-prompt-dismiss:focus-visible,
.volume-control input:focus-visible {
  outline: 4px solid rgba(217, 190, 105, 0.28);
  outline-offset: 4px;
}

.install-dialog,
.cookie-dialog {
  width: min(calc(100% - 32px), 360px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-family: inherit;
}

.cookie-dialog {
  width: min(calc(100% - 32px), 620px);
  max-height: min(86vh, 720px);
  overflow: auto;
  overscroll-behavior: contain;
}

.install-dialog::backdrop,
.cookie-dialog::backdrop {
  background: rgba(84, 89, 95, 0.28);
}

.install-dialog h2,
.install-dialog p,
.cookie-dialog h2,
.cookie-dialog h3,
.cookie-dialog p {
  margin: 0;
}

.install-dialog h2,
.cookie-dialog h2 {
  color: var(--pink);
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 800;
}

.install-dialog p,
.cookie-dialog-intro {
  margin-top: 10px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 600;
}

.cookie-dialog form {
  display: grid;
  gap: 12px;
}

.cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.cookie-category h3 {
  color: var(--pink);
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 800;
}

.cookie-category p,
.cookie-category small,
.cookie-policy-links {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.3;
  font-weight: 500;
}

.cookie-category small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.cookie-category strong {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.cookie-choice input {
  appearance: none;
  width: 54px;
  height: 32px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}

.cookie-choice input::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 160ms ease, background-color 160ms ease;
}

.cookie-choice input:checked {
  border-color: var(--pink);
  background: var(--pink-soft);
}

.cookie-choice input:checked::after {
  background: var(--pink);
  transform: translateX(22px);
}

.cookie-policy-links a {
  color: var(--pink);
  font-weight: 800;
}

.cookie-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.install-dialog button {
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  border: 0;
  border-radius: 8px;
  color: var(--on-pink);
  background: var(--pink);
  font-weight: 800;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 20;
  width: min(calc(100% - 28px), 720px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 18px 58px rgba(84, 89, 95, 0.22);
  backdrop-filter: blur(18px);
}

.cookie-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.cookie-copy strong {
  color: var(--pink);
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 800;
}

.cookie-copy p {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.25;
  font-weight: 500;
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

.cookie-button,
.cookie-settings {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.cookie-button {
  min-width: 92px;
  padding: 0 14px;
  color: var(--on-pink);
  background: var(--pink);
}

.cookie-button-ghost {
  color: var(--pink);
  background: var(--surface);
  border: 2px solid var(--line);
}

.cookie-settings {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 19;
  min-height: auto;
  padding: 0;
  color: var(--pink);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .play-button::after {
    inset: -7px;
    border-width: 3px;
    border-radius: 12px;
  }

  .shell {
    align-items: start;
    min-height: auto;
  }

  .player {
    gap: 14px;
    overflow: hidden;
  }

  .topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
    padding-top: 2px;
    min-width: 0;
    overflow: hidden;
  }

  .home-link {
    min-height: 46px;
    min-width: 0;
    flex: 0 0 auto;
    padding: 0 10px;
    font-size: 0.95rem;
  }

  .home-link span {
    font-size: 1.25rem;
  }

  .app-links {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    justify-content: flex-end;
    gap: 6px;
  }

  .install-link.is-visible {
    display: inline-flex;
  }

  .app-link {
    min-height: 46px;
    min-width: 46px;
    gap: 0;
    padding: 0 8px;
    font-size: 0;
  }

  .app-link svg {
    width: 24px;
    height: 24px;
  }

  #frequenzeLink {
    min-width: 104px;
    gap: 6px;
    padding: 0 10px;
    font-size: 0.88rem;
  }

  #frequenzeLink svg {
    width: 20px;
    height: 20px;
  }

  .brand {
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    min-width: 0;
  }

  .logo {
    width: clamp(150px, 52vw, 230px);
    min-width: 0;
    max-width: 100%;
    flex-shrink: 0;
    justify-self: center;
  }

  .main-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .artwork-frame {
    width: min(100%, 252px);
    justify-self: center;
  }

  .listen-panel {
    padding: 7px;
    margin: -7px;
    gap: 12px;
  }

  .now-playing {
    gap: 4px;
  }

  .status {
    font-size: 0.82rem;
  }

  #trackTitle {
    font-size: clamp(1.7rem, 8vw, 2.15rem);
  }

  #trackArtist {
    font-size: clamp(1rem, 4.7vw, 1.18rem);
  }

  .play-button {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 122px;
    padding: 16px;
    max-width: 100%;
  }

  .play-icon {
    width: 76px;
    height: 76px;
    font-size: 2.08rem;
  }

  .play-copy strong {
    font-size: clamp(1.32rem, 6.4vw, 1.82rem);
  }

  .play-copy span {
    font-size: clamp(0.94rem, 4vw, 1.08rem);
  }

  .volume-control {
    gap: 6px;
    padding: 9px 10px;
  }

  .volume-actions {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 7px;
  }

  .volume-button {
    width: 44px;
    height: 44px;
    font-size: 1.65rem;
  }

  .save-prompt {
    position: fixed;
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 30;
    width: auto;
    max-width: 430px;
    margin: 0 auto;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
    border-color: rgba(217, 190, 105, 0.52);
    border-width: 2px;
    background:
      linear-gradient(0deg, rgba(217, 190, 105, 0.1), rgba(217, 190, 105, 0.1)),
      var(--surface);
    box-shadow:
      0 18px 52px rgba(84, 89, 95, 0.28),
      0 0 0 4px rgba(217, 190, 105, 0.08);
  }

  body.has-cookie-banner .save-prompt {
    bottom: max(104px, calc(env(safe-area-inset-bottom) + 104px));
  }

  .save-prompt-copy {
    gap: 5px;
  }

  .save-prompt-copy strong {
    font-size: 1.18rem;
    line-height: 1.08;
  }

  .save-prompt-copy span {
    font-size: 1.02rem;
    line-height: 1.22;
  }

  .save-prompt-copy small {
    font-size: 0.92rem;
    line-height: 1.2;
    font-weight: 700;
  }

  .save-prompt-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(104px, 0.65fr);
    gap: 8px;
  }

  .save-prompt-button,
  .save-prompt-dismiss {
    min-width: 0;
    min-height: 54px;
    padding: 0 13px;
    font-size: 1rem;
  }

  .save-prompt-button {
    box-shadow: 0 12px 30px rgba(217, 190, 105, 0.24);
  }

  .history-panel {
    gap: 8px;
  }

  .history-panel h3 {
    font-size: 0.95rem;
  }

  .history-list {
    gap: 6px;
  }

  .history-item {
    grid-template-columns: 40px 68px minmax(0, 1fr);
    min-height: 66px;
    padding: 8px 10px;
  }

  .history-cover {
    width: 40px;
    height: 40px;
  }

  .cookie-banner {
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    width: min(calc(100% - 16px), 420px);
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 8px;
  }

  .cookie-copy strong {
    font-size: 0.82rem;
  }

  .cookie-copy p {
    display: none;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 0.85fr 1fr 1.15fr;
    gap: 5px;
  }

  .cookie-button {
    min-width: 0;
    min-height: 36px;
    padding: 0 7px;
    font-size: 0.82rem;
  }

  #acceptCookies {
    grid-column: auto;
  }

  .cookie-settings {
    position: static;
    justify-self: center;
    display: block;
    width: max-content;
    min-height: auto;
    margin: 0 auto;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 600;
  }

  .cookie-category {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cookie-choice input {
    justify-self: start;
  }

  .cookie-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-dialog {
    width: min(calc(100% - 20px), 390px);
    max-height: calc(100dvh - 28px);
    padding: 16px;
  }
}

@media (max-width: 420px) {
  .shell {
    padding: 10px;
  }

  .player {
    padding: 12px;
  }

  .logo {
    width: clamp(142px, 50vw, 205px);
  }

  .artwork-frame {
    width: min(100%, 236px);
  }

  .play-button {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    min-height: 116px;
    padding: 15px;
  }

  .play-icon {
    width: 70px;
    height: 70px;
    border-width: 3px;
  }

  .app-links {
    gap: 6px;
  }

  .app-link {
    min-width: 42px;
    padding: 0 6px;
  }

  #frequenzeLink {
    min-width: 96px;
    padding: 0 8px;
    font-size: 0.82rem;
  }

  .volume-actions {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .volume-button {
    width: 42px;
    height: 42px;
  }
}
