:root {
  --bg0: #0b1220;
  --bg1: #152238;
  --accent: #ff9d59;
  --text: #f6f3ee;
  --muted: rgba(246, 243, 238, 0.7);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(255, 157, 89, 0.18), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(123, 165, 247, 0.14), transparent 55%),
    linear-gradient(160deg, var(--bg0), var(--bg1));
  color: var(--text);
}

.fm {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  padding: 2rem 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px));
}

.fm__logo-btn {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.fm__logo-btn:focus-visible {
  outline: 3px solid #7ba5f7;
  outline-offset: 8px;
  border-radius: 50%;
}

.fm__spin {
  display: block;
  width: min(168px, 42vw);
  aspect-ratio: 1;
  transform-origin: 50% 50%;
}

.fm__mark {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  pointer-events: none;
}

/* Явная кнопка play поверх знака — без подложки под лого */
.fm__glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.fm__glyph-play,
.fm__glyph-pause {
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.fm__logo-btn:hover .fm__glyph {
  transform: scale(1.08);
}

.fm__logo-btn.is-playing .fm__spin {
  animation: fm-spin 8s linear infinite;
}

.fm__logo-btn.is-playing .fm__glyph-play {
  display: none;
}

.fm__logo-btn:not(.is-playing) .fm__glyph-pause {
  display: none;
}

.fm__logo-btn.is-playing .fm__glyph-pause {
  display: block;
  opacity: 0.92;
}

.is-hidden {
  display: none !important;
}

@keyframes fm-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fm__logo-btn.is-playing .fm__spin {
    animation: none;
  }
}

.fm__vol {
  width: min(200px, 64vw);
  accent-color: var(--accent);
}


.fm__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  max-width: min(420px, 92vw);
}

.fm__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.42rem 0.85rem;
  border: 1.5px solid transparent;
  border-radius: 9px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.fm__btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.fm__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.fm__btn:active {
  transform: translateY(0);
  filter: brightness(0.96);
}

.fm__btn--orange {
  background: linear-gradient(180deg, #ffb06f 0%, #ff9d59 45%, #ef7d2c 100%);
  border-color: #c85e12;
  color: #1a120c;
}

.fm__btn--blue {
  background: linear-gradient(180deg, #6ea0ff 0%, #3d7dff 45%, #2a63d6 100%);
  border-color: #1d4fb8;
  color: #ffffff;
}
