/* ── Navigation + mobile overhaul ── */

.top-chrome {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: 0.6rem clamp(0.75rem, 3vw, 1.25rem) 0;
  background: linear-gradient(180deg, rgba(8, 6, 14, 0.92) 0%, rgba(8, 6, 14, 0.75) 70%, transparent 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.chrome-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.55rem 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
}

.top-chrome .brand {
  flex-shrink: 0;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
}

.site-link {
  position: relative;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 0;
  background: none !important;
  white-space: nowrap;
}

.site-link::after {
  display: block;
  content: '';
  position: absolute;
  bottom: 0.15rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 1.25rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.site-link:hover {
  color: var(--text);
}

.site-link.active {
  color: var(--text);
  box-shadow: none !important;
}

.site-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.album-dock {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.album-dock .nav-album {
  padding: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.45;
}

.album-dock .nav-album img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.album-dock .nav-album-label,
.album-dock .nav-album-glow {
  display: none !important;
}

.album-dock .nav-album.active {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.top-chrome.chrome-scrolled .chrome-row {
  background: rgba(8, 6, 14, 0.92);
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
}

.tab-more {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
}

.header,
.album-bar {
  display: none !important;
}

.splash {
  display: flex;
  flex-direction: column;
  min-height: min(88vh, 820px);
  padding-bottom: 0;
}

.splash-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 1rem;
}

.splash-bottom {
  flex-shrink: 0;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.splash-stats {
  width: 100%;
  margin: 0;
}

.splash-scroll {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  opacity: 0.4;
}

html {
  overscroll-behavior: none;
  height: 100%;
}

body {
  overscroll-behavior-y: none;
}

.app {
  min-height: 0;
  padding-bottom: 0;
}

.site-footer {
  padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
  margin-bottom: 0;
}

.bottom-tabs {
  display: none;
}

@media (min-width: 901px) {
  .player {
    left: auto !important;
    right: 1.75rem !important;
    bottom: 2rem !important;
    transform: translateY(20px) !important;
    width: min(460px, calc(100vw - 3.5rem)) !important;
  }

  @keyframes player-in {
    to { opacity: 1; transform: translateY(0) !important; }
  }
}

@media (max-width: 900px) {
  .top-chrome {
    padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
  }

  .chrome-row {
    padding: 0.5rem 0.75rem;
  }

  .site-nav {
    display: none;
  }

  .album-dock {
    margin-left: auto;
    margin-right: 0.25rem;
    flex-shrink: 0;
    gap: 0.4rem;
  }

  .album-dock .nav-album {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px;
    padding: 0 !important;
    border-radius: 50% !important;
    overflow: hidden;
  }

  .album-dock .nav-album img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
    object-fit: cover;
  }

  .nav-toggle {
    display: flex;
  }

  .bottom-tabs {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 190;
    justify-content: space-around;
    align-items: stretch;
    min-height: calc(3.35rem + env(safe-area-inset-bottom, 0px));
    padding: 0.35rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
    background: rgba(8, 6, 14, 0.94);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
  }

  .tab-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.35rem 0.25rem;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;
    min-width: 0;
  }

  .tab-icon {
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.7;
  }

  .tab-link.active {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
  }

  .tab-link.active .tab-icon {
    opacity: 1;
  }

  .app {
    padding-bottom: 0;
  }

  .site-footer {
    padding-bottom: calc(9rem + env(safe-area-inset-bottom, 0px));
  }

  .player {
    right: 0.75rem !important;
    left: 0.75rem !important;
    bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: none;
    z-index: 180;
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
  }

  .player-row {
    min-height: 64px;
    padding: 0.65rem 0.85rem;
  }

  .player-compact {
    max-width: 45%;
  }

  .player-track {
    font-size: 0.85rem;
    max-width: 120px;
  }

  .player-album {
    font-size: 0.68rem;
  }

  .player-art {
    width: 40px;
    height: 40px;
  }

  .player .pbtn-mode {
    display: none;
  }

  .toast {
    bottom: calc(10rem + env(safe-area-inset-bottom, 0px));
    right: 1rem;
    left: 1rem;
    text-align: center;
  }

  .player-extra {
    display: none !important;
  }

  .stage {
    grid-template-columns: 1fr !important;
    padding: 1rem 1rem 1.5rem !important;
    gap: 1.5rem !important;
  }

  .hero-cover {
    width: min(280px, 72vw) !important;
    height: min(280px, 72vw) !important;
  }

  .cover-glow,
  .vinyl-ring {
    width: min(300px, 76vw) !important;
    height: min(300px, 76vw) !important;
  }

  .cover-zone {
    gap: 1.25rem;
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }

  .tracks-card {
    max-height: 42vh;
  }

  .now-track {
    font-size: 1.65rem !important;
  }

  .splash {
    min-height: auto;
    padding: 2rem 0 0;
  }

  .splash-stats {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  .splash-bottom {
    padding: 0 1rem 1.5rem;
    gap: 1.25rem;
  }

  .splash-title .splash-line {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .section {
    padding: 3rem 1rem !important;
  }

  .mobile-nav {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }

  .lyrics-panel {
    width: 100vw;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
    text-align: center;
  }

  .footer-brand-col .brand {
    display: block;
  }

  .footer-tagline {
    margin-inline: auto;
  }

  .footer-social {
    align-items: center;
  }

  .social-link {
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
  }

  .press-grid,
  .eras-band,
  .moments-grid,
  .collab-grid {
    grid-template-columns: 1fr !important;
  }

  .tour-grid {
    grid-template-columns: 1fr !important;
  }

  .about-grid {
    grid-template-columns: 1fr !important;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .awards-grid {
    grid-template-columns: 1fr !important;
  }

  .album-detail-grid {
    grid-template-columns: 1fr !important;
  }

  .moment-filters {
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .album-dock .nav-album {
    width: 30px;
    height: 30px;
  }

  .tab-link span:not(.tab-icon) {
    font-size: 0.5rem;
  }
}
