:root { --ath-app-dock-height: 76px; }
body:not(.wp-admin) { padding-bottom: calc(var(--ath-app-dock-height) + 24px); }
.ath-app-dock {
  position: fixed;
  z-index: 99980;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  width: min(680px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}
.ath-app-dock__inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  min-height: 66px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 24px;
  background: rgba(9, 13, 24, .92);
  box-shadow: 0 20px 50px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  pointer-events: auto;
}
.ath-app-dock__item {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  border-radius: 15px;
  color: #94a0b8;
  text-decoration: none !important;
  font: 700 11px/1.1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  transition: transform .18s ease, color .18s ease, background .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.ath-app-dock__item:hover,
.ath-app-dock__item:focus-visible,
.ath-app-dock__item.is-active { color: #fff; background: rgba(52,113,255,.13); }
.ath-app-dock__item:active { transform: scale(.94); }
.ath-app-dock__item.is-active::after {
  content: "";
  position: absolute;
  bottom: 1px;
  width: 18px;
  height: 3px;
  border-radius: 99px;
  background: #3975ff;
  box-shadow: 0 0 12px rgba(57,117,255,.85);
}
.ath-app-dock__icon { display: grid; place-items: center; width: 25px; height: 25px; }
.ath-app-dock__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ath-app-dock__create { transform: translateY(-15px); }
.ath-app-dock__create:hover,
.ath-app-dock__create:focus-visible { background: transparent; transform: translateY(-17px); }
.ath-app-dock__create:active { transform: translateY(-14px) scale(.94); }
.ath-app-dock__create .ath-app-dock__icon {
  width: 52px;
  height: 52px;
  border: 5px solid #0a0e19;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg,#3981ff,#2357dd);
  box-shadow: 0 10px 26px rgba(38,98,244,.46), inset 0 1px 0 rgba(255,255,255,.3);
}
.ath-app-dock__create .ath-app-dock__icon svg { width: 25px; height: 25px; stroke-width: 2.3; }
.ath-app-dock__create .ath-app-dock__label { margin-top: -2px; color: #fff; }
@media (max-width: 680px) {
  :root { --ath-app-dock-height: 72px; }
  body:not(.wp-admin) { padding-bottom: calc(var(--ath-app-dock-height) + env(safe-area-inset-bottom) + 12px); }
  .ath-app-dock { bottom: 0; width: 100%; }
  .ath-app-dock__inner {
    min-height: 68px;
    padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
  }
  .ath-app-dock__item { min-height: 48px; font-size: 10px; }
  .ath-app-dock__create { transform: translateY(-12px); }
  .ath-app-dock__create:hover,
  .ath-app-dock__create:focus-visible { transform: translateY(-13px); }
  .ath-app-dock__create .ath-app-dock__icon { width: 50px; height: 50px; }
}
@media (min-width: 1100px) {
  .ath-app-dock { width: 720px; bottom: 20px; }
  .ath-app-dock__inner { min-height: 70px; padding-inline: 20px; }
  .ath-app-dock__item { font-size: 12px; }
}


/* ATH guest app dock v2.13: conversion-focused logged-out navigation. */
.ath-app-dock__join .ath-app-dock__icon {
  background: linear-gradient(145deg,#3981ff,#2357dd);
  box-shadow: 0 10px 28px rgba(38,98,244,.52), 0 0 0 0 rgba(57,117,255,.48), inset 0 1px 0 rgba(255,255,255,.32);
  animation: athGuestJoinPulse 12s ease-in-out infinite;
}
.ath-app-dock__join .ath-app-dock__icon svg { fill: currentColor; stroke: currentColor; }
@keyframes athGuestJoinPulse {
  0%, 82%, 100% { box-shadow: 0 10px 28px rgba(38,98,244,.52), 0 0 0 0 rgba(57,117,255,0), inset 0 1px 0 rgba(255,255,255,.32); }
  88% { box-shadow: 0 10px 28px rgba(38,98,244,.58), 0 0 0 10px rgba(57,117,255,.16), inset 0 1px 0 rgba(255,255,255,.32); }
  94% { box-shadow: 0 10px 28px rgba(38,98,244,.54), 0 0 0 18px rgba(57,117,255,0), inset 0 1px 0 rgba(255,255,255,.32); }
}
@media (prefers-reduced-motion: reduce) {
  .ath-app-dock__join .ath-app-dock__icon { animation: none; }
}

/* ATH guest dock v2.15: Feed, We Outside, Join Now, Yū Knō The Vibe, Shop. */
.ath-app-dock.is-guest .ath-app-dock__inner {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.ath-app-dock.is-guest .ath-app-dock__join .ath-app-dock__label {
  color: #fff;
}

/* ATH v2.22 — keep Play Block's native player above the ATH app dock.
 * Do not hide, recreate, or force the player's internal state. */
:root {
  --ath-native-player-space: 86px;
}

body:not(.wp-admin) #plyr-playlist,
body:not(.wp-admin) .plyr-playlist.player.fixed-bottom,
body:not(.wp-admin) .player.fixed-bottom[data-player] {
  bottom: calc(var(--ath-app-dock-height) + 8px + env(safe-area-inset-bottom)) !important;
  z-index: 1000002 !important;
}

body:not(.wp-admin) {
  padding-bottom: calc(var(--ath-app-dock-height) + var(--ath-native-player-space) + 24px + env(safe-area-inset-bottom)) !important;
}

@media (min-width: 761px) {
  body:not(.wp-admin) #plyr-playlist,
  body:not(.wp-admin) .plyr-playlist.player.fixed-bottom,
  body:not(.wp-admin) .player.fixed-bottom[data-player] {
    bottom: calc(var(--ath-app-dock-height) + 28px) !important;
  }
  body:not(.wp-admin) {
    padding-bottom: calc(var(--ath-app-dock-height) + var(--ath-native-player-space) + 52px) !important;
  }
}
