*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --surface2: #222;
  --border: #2e2e2e;
  --accent: #c8352a;
  --accent2: #922018;
  --gold: #e8a020;
  --text: #f0f0f0;
  --muted: #888;
  --tag-bg: #2a2a2a;
  --radius: 12px;
}

/* ── KEYFRAMES ── */
@keyframes titleGradientSweep {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes titleGlowPulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(232,160,32,0.45)) drop-shadow(0 0 30px rgba(200,53,42,0.18)); }
  50%       { filter: drop-shadow(0 0 20px rgba(232,160,32,0.75)) drop-shadow(0 0 50px rgba(200,53,42,0.35)); }
}
@keyframes headerSlideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes filterSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes revealFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes starPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,160,32,0); }
  50%       { box-shadow: 0 0 8px 2px rgba(232,160,32,0.30); }
}

html { scroll-behavior: smooth; overflow-anchor: none; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── HEADER ── */
header {
  text-align: center;
  border-bottom: 1px solid rgba(232,160,32,0.18);
  position: sticky;
  top: 0;
  background: rgba(10,8,4,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  overflow: hidden;
  padding: 1.4rem 1.5rem 1.1rem;
  transition: padding 0.45s cubic-bezier(0.4,0,0.2,1), border-color 0.45s;
  animation: headerSlideDown 1.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

header.scrolled {
  padding: 0.6rem 1.2rem 0.55rem;
}

/* Glowing top border */
header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent2) 20%,
    var(--accent) 50%,
    var(--accent2) 80%,
    transparent 100%
  );
  pointer-events: none;
}

/* Ambient warm glow */
header::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 120px;
  background: radial-gradient(ellipse at 50% 0%,
    rgba(232,160,32,0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
  transition: opacity 0.45s;
}

header.scrolled::after { opacity: 0.3; }

/* ── BANDEIRINHAS ── */
.header-flags {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  padding-top: 6px;
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
  max-height: 3rem;
  opacity: 1;
  transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1),
              opacity 0.25s,
              margin 0.45s,
              padding 0.45s;
}

/* Varal */
.header-flags::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 7%;
  right: 7%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(232,160,32,0.45) 15%,
    rgba(232,160,32,0.45) 85%,
    transparent
  );
}

.flag {
  width: 15px;
  height: 19px;
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  flex-shrink: 0;
  opacity: 0.88;
}

.flag:nth-child(5n+1) { background: #e8a020; }
.flag:nth-child(5n+2) { background: #b02e22; }
.flag:nth-child(5n+3) { background: #2a8a4a; }
.flag:nth-child(5n+4) { background: #1e60a0; }
.flag:nth-child(5n+5) { background: #c8a010; }

header.scrolled .header-flags {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  padding-top: 0;
}

/* ── MAIN ROW (title + compact countdown) ── */
.header-main-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  z-index: 1;
  transition: gap 0.45s cubic-bezier(0.4,0,0.2,1);
}

header.scrolled .header-main-row {
  justify-content: space-between;
  gap: 1rem;
}

header h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(110deg,
    var(--accent) 0%, var(--gold) 35%, #fff0c0 50%, var(--gold) 65%, var(--accent) 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
  animation: titleGradientSweep 5s ease-in-out infinite, titleGlowPulse 3.5s ease-in-out infinite;
  transition: font-size 0.45s cubic-bezier(0.4,0,0.2,1), letter-spacing 0.45s;
}

header.scrolled h1 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  animation: none;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: var(--gold);
  color: var(--gold);
  filter: none;
}

/* ── COMPACT COUNTDOWN ── */
.countdown-compact {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: opacity 0.3s, max-width 0.45s cubic-bezier(0.4,0,0.2,1);
}

header.scrolled .countdown-compact {
  opacity: 1;
  max-width: 240px;
}

header p.subtitle {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  margin-top: 0.28rem;
  overflow: hidden;
  max-height: 2rem;
  opacity: 1;
  transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.25s, margin 0.45s;
}

header.scrolled p.subtitle {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

/* ── HEADER CREDIT ── */
.header-credit {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.75rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
  max-height: 2rem;
  opacity: 1;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1),
              opacity 0.35s,
              margin 0.4s;
}

header.scrolled .header-credit {
  margin-top: 0.35rem;
}

.header-credit a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

header.footer-visible .header-credit {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

/* ── COUNTDOWN ── */
.countdown-wrap {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 0.9rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
  max-height: 6rem;
  opacity: 1;
  transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.3s, margin 0.45s;
}

header.scrolled .countdown-wrap {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-num {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--accent);
  min-width: 2.8ch;
  text-align: center;
}

.countdown-label {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.countdown-sep {
  font-size: 1.8rem;
  color: var(--border);
  align-self: flex-start;
  padding-top: 0.15rem;
  font-weight: 300;
}

/* ── WEEK FILTER ── */
.filter-bar {
  position: relative;
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  animation: filterSlideUp 0.5s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-indicator {
  position: absolute;
  border-radius: 999px;
  background: var(--accent);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

.filter-btn {
  position: relative;
  z-index: 1;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-btn:hover { border-color: var(--accent); color: var(--accent); }

.filter-btn.active {
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

/* ── MAIN LAYOUT ── */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

/* ── WEEK SECTION ── */
.week-section {
  margin-bottom: 2.5rem;
}

.week-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.8rem;
  padding-left: 0.2rem;
}

.week-title span {
  color: var(--accent);
  font-weight: 700;
}

/* ── SCROLL REVEAL ── */
.week-title.reveal-ready,
.day-card.reveal-ready {
  opacity: 0;
  transform: translateY(22px);
}
.week-title.revealed {
  animation: revealFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.day-card.revealed {
  animation: revealFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}
.week-title.revealed,
.day-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── DAY CARD ── */
.day-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 0.6rem;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.8rem 1rem;
  transition: border-color 0.15s, transform 0.1s;
  cursor: default;
}

.day-card:hover {
  border-color: #3e3e3e;
  transform: translateY(-1px);
}

.day-card.today {
  border-color: var(--accent);
  background: #1e0605;
}

.day-card.special {
  border-left: 3px solid var(--accent2);
}

.day-card.hidden { display: none; }

/* Date column */
.day-date {
  text-align: center;
  padding-top: 0.1rem;
}

.day-num {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.day-month {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 1px;
}

.day-weekday {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Content column */
.day-content {}

.day-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--accent2);
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.day-artists {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.artist-tag {
  font-size: 0.82rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  color: var(--text);
  line-height: 1.3;
}

.artist-tag.headline {
  font-weight: 600;
  border-color: #3a3a3a;
}

.artist-tag.star {
  color: #e8a020;
  border-color: rgba(232, 160, 32, 0.45);
  background: rgba(232, 160, 32, 0.08);
  font-weight: 700;
  animation: starPulse 2.8s ease-in-out infinite;
}

.artist-tag.brasil {
  color: #FFDF00;
  border-color: rgba(0, 156, 59, 0.6);
  background: linear-gradient(135deg, rgba(0, 156, 59, 0.18) 0%, rgba(0, 39, 118, 0.18) 100%);
  font-weight: 700;
  box-shadow: 0 0 8px rgba(0, 156, 59, 0.25);
}

.palco360 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.palco360-label {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.palco360-artist {
  font-size: 0.78rem;
  color: #aaa;
}

/* TODAY badge */
.today-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--border);
}

.visit-bubble {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--accent);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s, transform 0.2s ease, background 0.35s, border-color 0.35s, color 0.35s;
  pointer-events: none;
  line-height: 1;
  cursor: pointer;
}

.visit-bubble:hover { opacity: 1 !important; }

.visit-bubble.flip-out {
  transform: perspective(300px) rotateY(90deg);
}

.visit-bubble.instagram-mode {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  border-color: transparent;
  color: #fff;
  font-size: 0.65rem;
}

/* ── BOLINHA DE CONTATO ── */
.contact-bubble {
  position: fixed;
  bottom: 5.2rem;
  right: 1.5rem;
  z-index: 90;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0);
  transform-origin: bottom right;
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  line-height: 1;
}
.contact-bubble.visible {
  opacity: 0.85;
  transform: scale(1);
  pointer-events: auto;
}
.contact-bubble:hover { opacity: 1 !important; }

/* ── POP-UP DE CONTATO ── */
.contact-popup {
  position: fixed;
  bottom: 5.2rem;
  right: 1.5rem;
  z-index: 100;
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.75rem 2rem 0.75rem 1rem;
  max-width: 220px;
  opacity: 0;
  transform: scale(0);
  transform-origin: bottom right;
  transition: opacity 0.35s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.contact-popup.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.contact-popup.collapsing {
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.4s ease-in, transform 0.4s cubic-bezier(0.55, 0, 1, 0.45);
}
.contact-popup__text {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.4;
}
.contact-popup__link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.contact-popup__link:hover { text-decoration: underline; }
.contact-popup__close {
  position: absolute;
  top: 0.3rem;
  right: 0.4rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.2rem;
}
.contact-popup__close:hover { color: var(--text); }

/* ── ACCESSIBILITY: Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  header h1 { animation: none; filter: none; -webkit-text-fill-color: var(--gold); background: none; }
  header { animation: none; }
  .filter-bar { animation: none; }
  .week-title.reveal-ready, .day-card.reveal-ready { opacity: 1; transform: none; }
  .week-title.revealed, .day-card.revealed { animation: none; }
  .artist-tag.star { animation: none; }
}

/* ── SCROLL PROGRESS BAR ── */
#scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent2), var(--accent), var(--gold));
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .day-card {
    grid-template-columns: 60px 1fr;
    gap: 0.6rem 0.8rem;
    padding: 0.8rem 0.9rem;
  }
  .day-num { font-size: 1.4rem; }
}
