/* =========================================================
   Álbum de fotos — CBEB 2026
   Tudo fica dentro de #album-cbeb e usa o prefixo "alb-",
   para não conflitar com o tema do site.
   ========================================================= */

@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("fontes/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("fontes/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("fontes/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 900; font-display: swap; src: url("fontes/montserrat-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 300; font-display: swap; src: url("fontes/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("fontes/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("fontes/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("fontes/poppins-latin-600-normal.woff2") format("woff2"); }

#album-cbeb {
  --alb-navy: #071A3A;
  --alb-fundo: #08204a;
  --alb-azul: #1B5FB4;
  --alb-ciano: #36B7E8;
  --alb-amarelo: #FFC20E;
  --alb-laranja: #F2542D;
  --alb-texto: #ffffff;
  --alb-suave: #c9dbf6;
  --alb-apagado: #8fb0de;
  --alb-linha: rgba(159, 195, 242, .18);
  --alb-max: 1280px;
  --alb-gutter: clamp(16px, 4vw, 48px);

  position: relative;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 400;
  color: var(--alb-texto);
  background:
    radial-gradient(1100px 600px at 85% -5%, rgba(54, 183, 232, .16), transparent 70%),
    linear-gradient(180deg, #06142e 0%, var(--alb-fundo) 38%, #06142e 100%);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
#album-cbeb *, #album-cbeb *::before, #album-cbeb *::after { box-sizing: border-box; }
#album-cbeb img { max-width: 100%; display: block; }
:where(#album-cbeb) a { color: inherit; }
:where(#album-cbeb) button { font: inherit; color: inherit; }
#album-cbeb :focus-visible { outline: 3px solid var(--alb-amarelo); outline-offset: 3px; border-radius: 6px; }

.alb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alb-faixa { display: flex; height: 6px; width: 100%; }
.alb-faixa i { display: block; height: 100%; }
.alb-faixa i:nth-child(1) { width: 55%; background: var(--alb-amarelo); }
.alb-faixa i:nth-child(2) { width: 25%; background: var(--alb-laranja); }
.alb-faixa i:nth-child(3) { width: 20%; background: var(--alb-azul); }

/* ---------- Botões ---------- */
.alb-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 16px; letter-spacing: .2px;
  text-decoration: none; line-height: 1;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.alb-btn svg { width: 20px; height: 20px; flex: none; }
.alb-btn--sol { background: var(--alb-amarelo); color: var(--alb-navy) !important; box-shadow: 0 10px 30px -10px rgba(255, 194, 14, .7); }
.alb-btn--sol:hover { transform: translateY(-2px); background: #ffd03f; }
.alb-btn--contorno { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.alb-btn--contorno:hover { box-shadow: inset 0 0 0 2px var(--alb-amarelo); color: var(--alb-amarelo) !important; }

/* =========================================================
   Portão de entrada (precisa de um clique para a música tocar)
   ========================================================= */
.alb-portao {
  position: fixed; inset: 0; z-index: 9000;
  display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(900px 520px at 75% 25%, #1d4f9c 0%, rgba(29, 79, 156, 0) 70%),
    linear-gradient(120deg, #06142e 0%, #0a2453 55%, #0d2f6b 100%);
  transition: clip-path 1.1s cubic-bezier(.77, 0, .18, 1), visibility 0s linear 1.1s;
  clip-path: inset(0 0 0 0);
}
.alb-portao.alb-aberto { clip-path: inset(0 0 100% 0); visibility: hidden; }
.alb-portao__ondas { position: absolute; inset: auto 0 0 0; width: 100%; height: 46vh; pointer-events: none; }
.alb-portao__ondas path { animation: alb-mar 9s ease-in-out infinite alternate; }
.alb-portao__ondas path:nth-child(2) { animation-duration: 11s; }
.alb-portao__ondas path:nth-child(3) { animation-duration: 13s; }
@keyframes alb-mar { from { transform: translateX(-3%); } to { transform: translateX(3%); } }

.alb-portao__miolo { position: relative; text-align: center; max-width: 560px; }
.alb-portao__cartao {
  display: inline-block; background: #fff; border-radius: 26px; padding: 26px 34px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
  animation: alb-chega .9s cubic-bezier(.2, .9, .3, 1.2) both;
}
.alb-portao__cartao img { width: min(300px, 62vw); height: auto; }
.alb-portao h1 {
  font-family: "Montserrat", sans-serif; font-weight: 900; font-size: clamp(34px, 6vw, 54px);
  line-height: 1.05; margin: 30px 0 10px; letter-spacing: -.5px;
  animation: alb-chega .9s .15s cubic-bezier(.2, .9, .3, 1) both;
}
.alb-portao p { color: var(--alb-suave); font-weight: 300; margin: 0 0 30px; font-size: 17px; animation: alb-chega .9s .25s both; }
.alb-portao__acoes { display: flex; flex-direction: column; align-items: center; gap: 16px; animation: alb-chega .9s .35s both; }
.alb-portao__sem {
  background: none; border: 0; cursor: pointer; color: var(--alb-apagado); font-size: 14px; text-decoration: underline;
  text-underline-offset: 4px;
}
.alb-portao__sem:hover { color: #fff; }
@keyframes alb-chega { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

/* pulso no botão de entrar */
.alb-pulso { position: relative; }
.alb-pulso::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(255, 194, 14, .55);
  animation: alb-pulso 2.2s ease-out infinite;
}
@keyframes alb-pulso { to { box-shadow: 0 0 0 18px rgba(255, 194, 14, 0); } }

/* =========================================================
   Topo + Hero
   ========================================================= */
.alb-topo {
  max-width: var(--alb-max); margin: 0 auto; padding: 18px var(--alb-gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.alb-topo__marca { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.alb-topo__marca span { background: #fff; border-radius: 12px; padding: 6px 10px; display: block; }
.alb-topo__marca img { height: 34px; width: auto; }
.alb-topo__marca b { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14px; color: var(--alb-suave); }
.alb-topo__voltar { font-size: 14px; color: var(--alb-suave) !important; text-decoration: none; border-bottom: 1px solid var(--alb-linha); padding-bottom: 2px; }
.alb-topo__voltar:hover { color: var(--alb-amarelo) !important; border-color: var(--alb-amarelo); }

.alb-hero { position: relative; padding: clamp(24px, 4vw, 48px) 0 0; }
.alb-hero__texto { max-width: var(--alb-max); margin: 0 auto; padding: 0 var(--alb-gutter); }
.alb-hero__data {
  display: inline-flex; gap: 10px; align-items: center; color: var(--alb-amarelo);
  font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 15px;
}
.alb-hero__data::before { content: ""; width: 28px; height: 3px; background: var(--alb-amarelo); border-radius: 2px; }
.alb-hero h2 {
  font-family: "Montserrat", sans-serif; font-weight: 900; letter-spacing: -1.5px;
  font-size: clamp(44px, 8vw, 96px); line-height: .95; margin: 14px 0 20px; max-width: 12ch;
}
.alb-hero h2 .alb-palavra { display: inline-block; opacity: 0; transform: translateY(40%); }
.alb-vivo .alb-hero h2 .alb-palavra { animation: alb-sobe .8s cubic-bezier(.2, .9, .3, 1) forwards; }
@keyframes alb-sobe { to { opacity: 1; transform: none; } }
.alb-hero__sub { color: var(--alb-suave); font-weight: 300; font-size: clamp(17px, 2vw, 20px); max-width: 52ch; margin: 0 0 30px; }
.alb-hero__acoes { display: flex; flex-wrap: wrap; gap: 14px; }

/* Faixas de fotos correndo (o "mar" de fotos) */
.alb-mar { position: relative; margin-top: clamp(28px, 4vw, 52px); padding: 26px 0 34px; overflow: hidden; }
.alb-mar__linha { display: flex; gap: 16px; width: max-content; will-change: transform; }
.alb-mar__linha + .alb-mar__linha { margin-top: 16px; }
.alb-mar__linha--a { animation: alb-corre 90s linear infinite; }
.alb-mar__linha--b { animation: alb-corre 110s linear infinite reverse; }
.alb-mar:hover .alb-mar__linha { animation-play-state: paused; }
@keyframes alb-corre { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.alb-mar__foto {
  height: clamp(130px, 17vw, 210px); aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; flex: none;
  background: #0d2f6b; cursor: pointer; border: 0; padding: 0;
  transition: transform .35s ease;
}
.alb-mar__foto:nth-child(3n+1) { transform: rotate(-1.2deg); }
.alb-mar__foto:nth-child(3n+2) { transform: rotate(.9deg) translateY(6px); }
.alb-mar__foto:hover { transform: scale(1.04); }
.alb-mar__foto img { width: 100%; height: 100%; object-fit: cover; }
.alb-mar::before, .alb-mar::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 8vw; z-index: 2; pointer-events: none;
}
.alb-mar::before { left: 0; background: linear-gradient(90deg, #071a3a, transparent); }
.alb-mar::after { right: 0; background: linear-gradient(-90deg, #071a3a, transparent); }

/* =========================================================
   Navegação por dia
   ========================================================= */
.alb-dias {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 26, 58, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--alb-linha);
}
.alb-dias__in { max-width: var(--alb-max); margin: 0 auto; padding: 10px var(--alb-gutter); display: flex; gap: 8px; position: relative; overflow-x: auto; scrollbar-width: none; }
.alb-dias__in::-webkit-scrollbar { display: none; }
.alb-dia {
  position: relative; z-index: 1; flex: none; cursor: pointer;
  background: none; border: 0; border-radius: 14px; padding: 10px 18px; text-align: left;
  transition: color .25s ease;
}
.alb-dia b { display: block; font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 17px; }
.alb-dia small { display: block; font-size: 13px; color: var(--alb-apagado); transition: color .25s ease; }
.alb-dia[aria-selected="true"] { color: var(--alb-navy); }
.alb-dia[aria-selected="true"] small { color: rgba(7, 26, 58, .75); }
.alb-dias__marca {
  position: absolute; z-index: 0; top: 10px; bottom: 10px; left: 0; width: 0; border-radius: 14px;
  background: var(--alb-amarelo);
  transition: transform .45s cubic-bezier(.3, 1.3, .5, 1), width .45s cubic-bezier(.3, 1.3, .5, 1);
}

/* =========================================================
   Galeria
   ========================================================= */
.alb-galeria { scroll-margin-top: 84px; max-width: var(--alb-max); margin: 0 auto; padding: clamp(28px, 4vw, 48px) var(--alb-gutter) 40px; }
.alb-galeria__cab { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 26px; }
.alb-galeria__cab h3 { font-family: "Montserrat", sans-serif; font-weight: 900; font-size: clamp(28px, 4vw, 40px); margin: 0; line-height: 1.1; }
.alb-galeria__cab p { margin: 4px 0 0; color: var(--alb-suave); font-weight: 300; }
.alb-drive-link {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 10px 16px; border-radius: 12px; background: rgba(54, 183, 232, .12); color: #dff3ff !important;
  transition: background-color .2s ease;
}
.alb-drive-link:hover { background: rgba(54, 183, 232, .24); }
.alb-drive-link svg { width: 22px; height: 22px; }

.alb-grade { display: flex; gap: 14px; align-items: flex-start; }
.alb-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.alb-item {
  position: relative; display: block; width: 100%;
  border: 0; padding: 0; cursor: zoom-in; border-radius: 12px; overflow: hidden; background: #0c2a5c;
  opacity: 0; transform: translateY(24px) scale(.98);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .9, .3, 1);
}
.alb-item.alb-ok { opacity: 1; transform: none; }
.alb-item img { width: 100%; height: auto; transition: transform .5s ease, filter .5s ease; }
.alb-item::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 0 var(--alb-amarelo); transition: box-shadow .25s ease;
}
.alb-item:hover img { transform: scale(1.05); }
.alb-item:hover::after, .alb-item:focus-visible::after { box-shadow: inset 0 0 0 3px var(--alb-amarelo); }

.alb-mais { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0 8px; color: var(--alb-apagado); font-size: 14px; }
.alb-proximo { margin: 30px auto 0; display: flex; justify-content: center; }

/* =========================================================
   Encerramento
   ========================================================= */
.alb-fim { position: relative; min-height: 78vh; display: grid; align-items: end; margin-top: 40px; overflow: hidden; }
.alb-fim__foto { position: absolute; inset: 0; }
.alb-fim__foto img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 2.5s ease; }
.alb-fim.alb-visto .alb-fim__foto img { transform: scale(1); }
.alb-fim__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 26, 58, .1) 0%, rgba(7, 26, 58, .55) 45%, #071A3A 92%); }
.alb-fim__texto { position: relative; max-width: var(--alb-max); width: 100%; margin: 0 auto; padding: 0 var(--alb-gutter) clamp(40px, 7vw, 80px); }
.alb-fim h3 { font-family: "Montserrat", sans-serif; font-weight: 900; font-size: clamp(34px, 6vw, 72px); line-height: 1; margin: 0 0 16px; max-width: 14ch; letter-spacing: -1px; }
.alb-fim p { max-width: 56ch; color: var(--alb-suave); margin: 0 0 26px; font-size: 18px; font-weight: 300; }

.alb-rodape { max-width: var(--alb-max); margin: 0 auto; padding: 34px var(--alb-gutter) 120px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.alb-rodape__logos { display: flex; align-items: center; gap: 22px; background: #fff; border-radius: 18px; padding: 14px 22px; }
.alb-rodape__logos img { height: 46px; width: auto; }
.alb-rodape__logos i { width: 1px; align-self: stretch; background: #d5dde8; }
.alb-rodape p { margin: 0; color: var(--alb-apagado); font-size: 14px; max-width: 46ch; }

/* =========================================================
   Player de música
   ========================================================= */
.alb-player {
  position: fixed; left: 16px; bottom: 16px; z-index: 8000;
  display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px;
  background: rgba(7, 26, 58, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .7), inset 0 0 0 1px var(--alb-linha);
  transform: translateY(140%); transition: transform .7s cubic-bezier(.2, .9, .3, 1.2);
}
.alb-vivo .alb-player { transform: none; }
.alb-player__btn {
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--alb-amarelo); color: var(--alb-navy); flex: none; transition: transform .2s ease;
}
.alb-player__btn:hover { transform: scale(1.07); }
.alb-player__btn svg { width: 20px; height: 20px; }
.alb-player__btn .alb-i-pausa { display: none; }
.alb-tocando .alb-player__btn .alb-i-play { display: none; }
.alb-tocando .alb-player__btn .alb-i-pausa { display: block; }
.alb-player__info b { display: block; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14px; line-height: 1.2; }
.alb-player__info small { display: block; font-size: 12px; color: var(--alb-apagado); }
.alb-eq { display: flex; align-items: end; gap: 3px; height: 18px; }
.alb-eq i { width: 4px; height: 4px; border-radius: 2px; background: var(--alb-ciano); transition: height .3s ease; }
.alb-tocando .alb-eq i { animation: alb-eq .9s ease-in-out infinite alternate; }
.alb-tocando .alb-eq i:nth-child(2) { animation-delay: -.3s; background: var(--alb-amarelo); }
.alb-tocando .alb-eq i:nth-child(3) { animation-delay: -.6s; background: var(--alb-laranja); }
.alb-tocando .alb-eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes alb-eq { 0% { height: 4px; } 50% { height: 18px; } 100% { height: 8px; } }
.alb-player__vol { width: 84px; accent-color: var(--alb-amarelo); }

/* =========================================================
   Visualizador (tela cheia)
   ========================================================= */
.alb-vis {
  position: fixed; inset: 0; z-index: 9500; display: none;
  background: rgba(4, 13, 30, .96);
}
.alb-vis.alb-on { display: block; }
.alb-vis__palco { position: absolute; inset: 64px 72px 84px; display: grid; place-items: center; }
.alb-vis__img {
  max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); transition: opacity .25s ease;
}
.alb-vis__voo { position: fixed; z-index: 9600; object-fit: cover; border-radius: 12px; pointer-events: none; }
.alb-vis__topo { position: absolute; top: 0; left: 0; right: 0; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 24px; }
.alb-vis__cont { font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--alb-suave); font-size: 15px; }
.alb-vis__base { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 16px; flex-wrap: wrap; }
.alb-vis__base .alb-btn { padding: 12px 20px; font-size: 14px; }
.alb-icone {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .2s ease;
}
.alb-icone:hover { background: rgba(255, 255, 255, .18); }
.alb-icone svg { width: 24px; height: 24px; }
.alb-vis__seta { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.alb-vis__seta--ant { left: 12px; }
.alb-vis__seta--prox { right: 12px; }

/* ---------- Responsivo ---------- */
@media (max-width: 720px) {
  .alb-topo__marca b { display: none; }
  .alb-dias__in { gap: 2px; }
  .alb-dia { padding: 8px 12px; }
  .alb-dia b { font-size: 15px; }
  .alb-dia small { font-size: 11.5px; }
  .alb-dias__marca { top: 10px; bottom: 10px; }
  .alb-grade, .alb-col { gap: 10px; }
  .alb-item { border-radius: 10px; }
  .alb-vis__palco { inset: 56px 8px 140px; }
  .alb-vis__seta { top: auto; bottom: 84px; transform: none; }
  .alb-vis__base { height: auto; bottom: 14px; }
  .alb-player { left: 10px; bottom: 10px; padding-right: 14px; }
  .alb-player__vol { display: none; }
  .alb-fim { min-height: 64vh; }
}

/* ---------- Menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  #album-cbeb *, #album-cbeb *::before, #album-cbeb *::after { animation: none !important; transition-duration: .01ms !important; }
  .alb-hero h2 .alb-palavra { opacity: 1; transform: none; }
  .alb-item { opacity: 1; transform: none; }
  .alb-mar__linha { flex-wrap: nowrap; }
}
