/* Premium Experience — Cinema, A11y, Polish, Safe Area */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

body {
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

.header {
  padding-top: var(--safe-top);
}

.back-to-top {
  bottom: calc(32px + 48px + 14px + var(--safe-bottom));
  right: calc(32px + var(--safe-right));
}

.now-playing {
  padding-bottom: calc(12px + var(--safe-bottom));
}

.hero__content {
  padding-top: calc(24px + var(--safe-top));
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-gold), #e8c547);
  z-index: 9999;
  pointer-events: none;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--color-gold);
  color: var(--color-bg);
  font-weight: 600;
  border-radius: 4px;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.hero--cinematic .hero__overlay {
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(212,175,55,0.06), transparent 60%),
    linear-gradient(to bottom, rgba(9,9,9,0.4), rgba(9,9,9,0.55) 35%, rgba(9,9,9,0.92));
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__particle {
  position: absolute;
  background: rgba(212,175,55,0.35);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.5; }
  100% { transform: translateY(-10vh); opacity: 0; }
}

.hero-slide.active { animation: kenBurns 22s ease-out forwards; }

@keyframes kenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero--cinematic .hero__content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.9s ease forwards;
}
.hero--cinematic .hero__subtitle { animation-delay: 0.15s; }
.hero--cinematic .hero__title { animation-delay: 0.35s; }
.hero--cinematic .hero__tagline { animation-delay: 0.55s; }
.hero--cinematic .hero__buttons { animation-delay: 0.75s; }

@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

.btn--glow {
  box-shadow: 0 0 24px rgba(212,175,55,0.25);
  transition: box-shadow 0.4s, transform 0.3s;
}
.btn--glow:hover {
  box-shadow: 0 0 36px rgba(212,175,55,0.45);
  transform: translateY(-2px);
}

.skeleton-wrap.is-loading > *:not(.skeleton) { visibility: hidden; opacity: 0; }
.skeleton-wrap.is-loaded > .skeleton { opacity: 0; pointer-events: none; }
.skeleton-wrap.is-loaded > *:not(.skeleton) { animation: contentFadeIn 0.5s ease forwards; }

@keyframes contentFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.skeleton { position: absolute; inset: 0; z-index: 2; transition: opacity 0.4s; }
.skeleton__block {
  background: linear-gradient(110deg, #141414 8%, #1e1e1e 18%, #141414 33%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s linear infinite;
  border-radius: 8px;
  height: 100%;
}

@keyframes skeletonShimmer { to { background-position: -200% 0; } }

.skeleton--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; position: relative; min-height: 200px; }
.skeleton--grid .skeleton__block { aspect-ratio: 1; height: auto; }
.skeleton--list { position: relative; min-height: 120px; }
.skeleton--list .skeleton__block { height: 64px; margin-bottom: 10px; }
.skeleton--hero { min-height: 320px; position: relative; }

body.page-enter { animation: pageEnter 0.5s ease forwards; }
@keyframes pageEnter {
  from { opacity: 0; filter: blur(4px); transform: translateY(10px); }
  to { opacity: 1; filter: none; transform: none; }
}

body.page-leave { animation: pageLeave 0.28s ease forwards; }
@keyframes pageLeave { to { opacity: 0; filter: blur(3px); } }

.disc-card, .videoteca-card, .timeline-card, .testemunho-card, .favorites-card, .galeria__item {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.disc-card:hover, .videoteca-card:hover, .timeline-card:hover, .testemunho-card:hover, .favorites-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}

.card-spotlight { position: relative; overflow: hidden; }
.card-spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 100px at var(--spot-x,50%) var(--spot-y,50%), rgba(212,175,55,0.1), transparent);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
  z-index: 1;
}
.card-spotlight:hover::before { opacity: 1; }

.glightbox-counter-premium {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  padding: 6px 16px;
  background: rgba(9,9,9,0.8);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 20px;
  color: var(--color-gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

@media (max-width: 375px) {
  .hero__buttons { flex-direction: column; width: 100%; }
  .galeria__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

.section__note {
  text-align: center;
  color: var(--color-gray);
  max-width: 560px;
  margin: 16px auto 0;
}

.section__note--center { margin-top: 32px; }

.text-link {
  color: var(--color-white);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover { color: var(--color-gold); }
