/* Ações de acesso rápido — camada complementar ao sistema visual 2.1.0. */
.nav-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 72px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: #171b14;
  background: var(--accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  transition: background .18s, border-color .18s, transform .18s;
}

.nav-play .icon {
  width: 16px;
  height: 16px;
}

.nav-play:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav-play:focus-visible,
.quick-action:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
}

.quick-actions {
  display: none;
}

@media (max-width: 680px) {
  /* The footer owns the clearance so every page's final content stays above the dock. */
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .footer {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .nav-container {
    gap: 8px;
  }

  .nav-actions {
    gap: 7px;
  }

  .nav-play {
    min-width: 64px;
    min-height: 44px;
    padding-inline: 9px;
  }

  .nav-discord {
    display: none;
  }

  .quick-actions {
    position: fixed;
    z-index: 60;
    right: 12px;
    bottom: 0;
    left: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    min-height: 72px;
    padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
    border: 1px solid rgba(245, 184, 91, .22);
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
    background: rgba(16, 20, 18, .94);
    box-shadow: 0 -12px 34px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .025) inset;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .quick-action {
    display: inline-flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 4px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--muted);
    background: transparent;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    transition: color .18s, background .18s, border-color .18s;
  }

  .quick-action:hover,
  .quick-action:active,
  .quick-action[aria-current="page"] {
    color: var(--text);
    border-color: rgba(245, 184, 91, .24);
    background: rgba(245, 184, 91, .09);
  }

  .quick-action[aria-current="page"] {
    color: var(--accent);
  }

  .quick-action-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
  }

  .quick-action .icon {
    width: 19px;
    height: 19px;
  }

  .quick-action-label {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .quick-action-play {
    border-color: var(--accent);
    color: #171b14;
    background: var(--accent);
  }

  .quick-action-play:hover,
  .quick-action-play:active {
    border-color: var(--accent-hover);
    color: #171b14;
    background: var(--accent-hover);
  }

  /* Toasts stay above the dock, while native dialog top-layer rendering remains untouched. */
  .toast {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 360px) {
  .nav-container {
    width: calc(100% - 24px);
  }

  .brand {
    min-width: 0;
    gap: 4px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-type {
    min-width: 0;
    font-size: 19px;
  }

  .brand-type small {
    display: none;
  }

  .nav-actions {
    gap: 4px;
  }

  .nav-play {
    min-width: 58px;
    padding-inline: 7px;
    gap: 5px;
    font-size: 10px;
  }

  .nav-play .icon {
    width: 15px;
    height: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-play,
  .quick-action {
    transition: none;
  }
}
