/* ════════════════════════════════════════════════════════════════════════
   MENU SHEET — left-side launcher. True glass, neutral tones.
   The left FAB lives here too, so the player + menu FAB CSS feel matched.
   ════════════════════════════════════════════════════════════════════════ */

.menu-fab {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  color: rgba(236, 232, 244, 0.92);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
  z-index: 850;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12),
              inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.menu-fab svg {
  width: 1.7rem;
  height: 1.7rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.menu-fab:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.40);
  transform: scale(1.06);
}
.menu-fab.open {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.50);
  color: #fff;
  transform: rotate(45deg) scale(1.04);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
}
.menu-overlay.open { pointer-events: all; }

.menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  opacity: 0;
  transition: opacity 0.30s ease;
}
.menu-overlay.open .menu-backdrop { opacity: 1; }

/* Same glass treatment as the player sheet. */
.menu-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 50vh;
  background: rgba(12, 12, 18, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 0.75rem 1.5rem 1.75rem;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.30s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: #f0f0f4;
  box-shadow: 0 -1rem 2.5rem rgba(0, 0, 0, 0.28),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.menu-overlay.open .menu-sheet { transform: translateY(0); }
.menu-sheet::-webkit-scrollbar { width: 2px; }
.menu-sheet::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 2px; }

.menu-handle {
  width: 2.5rem;
  height: 3px;
  background: rgba(255, 255, 255, 0.30);
  border-radius: 2px;
  align-self: center;
  flex-shrink: 0;
  margin-bottom: 0.25rem;
}

.menu-wordmark {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  padding: 0.31rem 0 0.625rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  gap: 0.625rem;
}

.menu-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 0.875rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  transition: background 0.18s, border-color 0.18s, transform 0.15s, color 0.18s;
  cursor: pointer;
}
.menu-tile:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.28);
  color: #f4f4f6;
  transform: translateY(-1px);
}
.menu-tile.active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.42);
  color: #f4f4f6;
}
.menu-tile svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.menu-tile span {
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 300;
}

@media (max-width: 600px) {
  .menu-fab {
    bottom: calc(1.25rem + env(safe-area-inset-bottom));
    left: 1.25rem;
    width: 4rem;
    height: 4rem;
  }
  .menu-sheet { max-height: 70vh; padding: 0.5rem 0.9rem 1.2rem; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
}
