/* ============================================================
   TOKENS & THEME CONFIGURATION
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=League+Gothic&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg:            #0f0f0f;
  --surface-0:     #161616;
  --surface-1:     #1c1c1c;
  --surface-2:     #242424;
  --surface-3:     #2e2e2e;

  --accent:        #e50914;
  --accent-hover:  #c10711;
  --accent-glow:   rgba(229, 9, 20, 0.25);

  --white:         #ffffff;
  --white-dim:     #a0a0a0;
  --muted:         #666666;

  --border:        rgba(255, 255, 255, 0.08);
  --border-mid:    rgba(255, 255, 255, 0.16);

  --font-heading:  'League Gothic', Impact, sans-serif;
  --font-body:     'Space Mono', monospace;
  --font-mono:     'Space Mono', monospace;

  --radius-sm:     4px;
  --radius-md:     6px;

  --transition:    0.15s ease;

  --grid-cols:     3;
  --grid-gap:      2px;
}

/* ============================================================
   SPLASH SCREEN / INTRO FULLSCREEN OVERLAY
   ============================================================ */
#splash-intro {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #161616;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  overflow: hidden;
  pointer-events: all;
}

#splash-intro .brand-logo {
  opacity: 1;
}

#splash-intro.splash-active {
  animation: revealSiteBg 0.01s forwards 2.72s;
}

#splash-intro.splash-active .brand-logo {
  animation: logoBreath 2.3s ease-out forwards;
}

#splash-intro.splash-active .layer-red {
  animation: sweepScreen 0.85s cubic-bezier(0.77, 0, 0.175, 1) forwards 2.3s;
}

#splash-intro.splash-active .layer-white {
  animation: sweepScreen 0.85s cubic-bezier(0.77, 0, 0.175, 1) forwards 2.45s;
}

@keyframes revealSiteBg {
  to { background-color: transparent; }
}

.brand-logo {
  font-family: "League Gothic", Impact, sans-serif !important;
  font-style: italic !important;
  font-stretch: condensed !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.9;
  color: #ffffff;
  white-space: nowrap;
  user-select: none;
  font-size: clamp(3.2rem, 11vw, 9rem);
  z-index: 10;
  opacity: 1;
  transform: scale(0.96);
}

.wipe-bar {
  position: absolute;
  top: -20vh;
  left: -20vw;
  width: 140vw;
  height: 140vh;
  transform: translateX(-110%) skewX(-14deg);
  pointer-events: none;
  z-index: 30;
}

.layer-red {
  background-color: #e50914;
  animation: sweepScreen 0.85s cubic-bezier(0.77, 0, 0.175, 1) forwards 2.3s;
}

.layer-white {
  background-color: #ffffff;
  animation: sweepScreen 0.85s cubic-bezier(0.77, 0, 0.175, 1) forwards 2.45s;
}

@keyframes sweepScreen {
  0% { transform: translateX(-110%) skewX(-14deg); }
  100% { transform: translateX(110%) skewX(-14deg); }
}

@keyframes logoBreath {
  0% { opacity: 0; transform: scale(0.96); opacity: 0; }
  15% { opacity: 1; transform: scale(0.98); opacity: 1; }
  99.9% { opacity: 1; transform: scale(1.03); opacity: 1; }
  100% { opacity: 0; transform: scale(1.03); opacity: 0; }
}

.splash-finish {
  display: none !important;
  pointer-events: none !important;
}

body.loading-intro {
  overflow: hidden;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

img, iframe {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   FILM-GRAIN NOISE OVERLAY
   ============================================================ */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grain 0.4s steps(1) infinite;
}

@keyframes grain {
  0%  { background-position: 0 0; }
  10% { background-position: -5% -10%; }
  20% { background-position: -15% 5%; }
  30% { background-position: 7% -25%; }
  40% { background-position: -5% 25%; }
  50% { background-position: -15% 10%; }
  60% { background-position: 15% 0; }
  70% { background-position: 0 15%; }
  80% { background-position: 3% 35%; }
  90% { background-position: -10% 10%; }
  100%{ background-position: 0 0; }
}

/* ============================================================
   PROFILE HEADER
   ============================================================ */
.profile {
  background: var(--surface-0);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.profile__inner {
  max-width: 935px;
  margin: 0 auto;
  padding: 28px 24px 20px;
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

/* Avatar com Anel de Story do Instagram */
.profile__avatar-wrap {
  flex-shrink: 0;
}

.profile__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile__avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface-1);
  border: 2px solid var(--surface-0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}

/* Info */
.profile__info {
  flex: 1;
  min-width: 0;
}

.profile__name {
  font-family: var(--font-heading);
  font-style: italic;
  font-stretch: condensed;
  font-size: clamp(32px, 5vw, 46px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.9;
  color: var(--white);
}

.profile__handle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  letter-spacing: 0.01em;
}

.profile__stats {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-top: 16px;
}

.profile__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.profile__stat-value {
  font-family: var(--font-heading);
  font-style: italic;
  font-stretch: condensed;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--white);
}

.profile__stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.profile__bio {
  margin-top: 12px;
  font-size: 12px;
  color: var(--white-dim);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* CTA WhatsApp */
.profile__cta {
  display: inline-block;
  margin-top: 14px;
  padding: 9px 20px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
}

.profile__cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ============================================================
   FILTERS / TABS (SLIDING PILL ANIMATION)
   ============================================================ */
.filters {
  max-width: 935px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  position: relative;
}

.filters::-webkit-scrollbar { display: none; }

.filters__pill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent);
  border-top: 2px solid var(--accent);
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4);
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1), width 0.28s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}

.filter-btn {
  padding: 11px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: color 0.25s ease;
}

.filter-btn:hover {
  color: var(--white-dim);
}

.filter-btn--active {
  color: #ffffff !important;
}

/* ============================================================
   VIDEO GRID (SLIDE ANIMATION)
   ============================================================ */
.grid-section {
  max-width: 935px;
  margin: 0 auto;
  padding: var(--grid-gap);
  overflow: hidden;
}

.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), 1fr);
  gap: var(--grid-gap);
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.25s ease;
}

.grid--slide-left {
  opacity: 0;
  transform: translateX(-40px);
}

.grid--slide-right {
  opacity: 0;
  transform: translateX(40px);
}

/* ============================================================
   VIDEO GRID
   ============================================================ */
.grid-section {
  max-width: 935px;
  margin: 0 auto;
  padding: var(--grid-gap);
}

.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), 1fr);
  gap: var(--grid-gap);
}

.grid__loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* ============================================================
   VIDEO CARD
   ============================================================ */
.card {
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--surface-1);
  overflow: hidden;
  cursor: pointer;
  list-style: none;
}

.card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.15s ease, filter 0.15s ease;
  filter: brightness(0.9) saturate(0.85);
}

.card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14, 15, 18, 0.85) 0%,
    rgba(14, 15, 18, 0.2) 40%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 12px;
}

.card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__play-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 42, 42, 0.25);
  border: 1px solid var(--accent);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}

.card__play-icon svg {
  margin-left: 2px;
}

.card__play-icon svg path {
  fill: #ffffff;
  stroke: #ffffff;
}

.card__category {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.card__title {
  font-family: var(--font-heading);
  font-style: italic;
  font-stretch: condensed;
  font-size: clamp(16px, 2.2vw, 22px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--white);
  margin-top: 3px;
}

.card__duration {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
  background: rgba(0, 0, 0, 0.65);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity var(--transition);
}

/* Hover state */
.card:hover .card__thumb {
  transform: scale(1.04);
  filter: brightness(0.78) saturate(0.95);
}

.card:hover .card__overlay {
  opacity: 1;
}

.card:hover .card__play-icon {
  transform: scale(1);
  opacity: 1;
}

.card:hover .card__duration {
  opacity: 1;
}

/* Focus visible */
.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* Thumbnail placeholder */
.card__thumb--placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface-2);
}

/* Badge Instagram */
.card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.card__badge--ig {
  background: rgba(255, 42, 42, 0.15);
  border: 1px solid rgba(255, 42, 42, 0.4);
  color: var(--accent);
}

/* Hidden state for filter */
.card--hidden {
  display: none;
}

/* ============================================================
   MODAL / LIGHTBOX — FULLSCREEN REELS
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Reel container — 9:16, altura máxima da tela */
.modal__reel {
  position: relative;
  z-index: 1;
  height: 100dvh;
  width: min(100dvw, calc(100dvh * 9 / 16));
  background: #0a0a0c;
  transform: scale(0.97);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  flex-shrink: 0;
}

.modal[aria-hidden="false"] .modal__reel {
  transform: scale(1);
}

/* Video wrap */
.modal__video-wrap {
  position: absolute;
  inset: 0;
}

.modal__iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: calc(100vw * 16 / 9);
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: auto;
}

.modal__native-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.modal__instagram {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #000;
}

.modal__ig-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 135%;
  height: 135%;
  transform: translate(-50%, -46%) scale(1.15);
  border: none;
  pointer-events: none;
}

/* Shield */
.modal__click-shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

/* ============================================================
   MODAL INTRO WIPE — Animação igual a abertura do site ao abrir vídeo
   ============================================================ */
.modal-wipe {
  position: absolute;
  inset: 0;
  z-index: 99;
  background-color: #161616;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.modal-wipe .wipe-bar {
  z-index: 100 !important;
}

.modal-wipe--active {
  opacity: 1;
  visibility: visible;
  animation: revealSiteBg 0.01s forwards 1.35s;
}

/* Indicador sutil de Swipe (setinha centralizada) estilo Reels/TikTok */
.modal__swipe-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.75);
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  animation: bounceSwipeCentral 2s infinite;
}

@keyframes bounceSwipeCentral {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); opacity: 0.75; }
  40% { transform: translate(-50%, -8px); opacity: 1; }
  60% { transform: translate(-50%, -4px); opacity: 0.9; }
}

.modal-wipe .brand-logo {
  font-size: clamp(2.5rem, 8vw, 6rem);
  z-index: 10;
  opacity: 1;
}

.modal-wipe--active .brand-logo {
  animation: logoBreathModal 1.0s ease-out forwards;
}

.modal-wipe--active .layer-red {
  animation: sweepScreenModal 0.65s cubic-bezier(0.77, 0, 0.175, 1) forwards 1.0s;
}

.modal-wipe--active .layer-white {
  animation: sweepScreenModal 0.65s cubic-bezier(0.77, 0, 0.175, 1) forwards 1.1s;
}

@keyframes sweepScreenModal {
  0% { transform: translateX(-110%) skewX(-14deg); }
  100% { transform: translateX(110%) skewX(-14deg); }
}

@keyframes logoBreathModal {
  0% { opacity: 0; transform: scale(0.96); }
  15% { opacity: 1; transform: scale(0.98); }
  99.9% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 0; transform: scale(1.03); }
}

/* Overlay info no rodapé */
.modal__overlay-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 56px 20px 28px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.3) 55%,
    transparent 100%
  );
  pointer-events: none;
}

.modal__category {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}

.modal__title {
  font-family: var(--font-heading);
  font-style: italic;
  font-stretch: condensed;
  font-size: clamp(24px, 4vw, 36px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--white);
  margin-top: 4px;
}

/* Botão fechar */
.modal__close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1100;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(14, 15, 18, 0.75);
  border: 1px solid var(--border-mid);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  pointer-events: auto;
}

.modal__close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* Mobile */
@media (max-width: 600px) {
  .modal {
    padding: 0;
    overflow: hidden;
  }

  .modal__reel {
    width: 100dvw;
    height: 100dvh;
    border-radius: 0;
  }

  .modal__iframe {
    width: 100dvw;
    height: calc(100dvw * 16 / 9);
  }
}

}

/* ============================================================
   REEL SWIPE — animações de transição estilo Instagram Reels / TikTok
   ============================================================ */
.modal__reel--exit-up {
  animation: reel-exit-up 0.22s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.modal__reel--exit-down {
  animation: reel-exit-down 0.22s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.modal__reel--enter-up {
  animation: reel-enter-up 0.25s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.modal__reel--enter-down {
  animation: reel-enter-down 0.25s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

@keyframes reel-exit-up   { to { transform: translateY(-100%); opacity: 0.7; } }
@keyframes reel-exit-down { to { transform: translateY(100%); opacity: 0.7; } }
@keyframes reel-enter-up  { from { transform: translateY(100%); opacity: 0.7; } to { transform: translateY(0); opacity: 1; } }
@keyframes reel-enter-down{ from { transform: translateY(-100%); opacity: 0.7; } to { transform: translateY(0); opacity: 1; } }

/* ============================================================
   RESPONSIVE — HEADER & GRID
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --grid-cols: 3;
    --grid-gap: 2px;
  }

  .profile__inner {
    padding: 18px 16px 14px;
    gap: 18px;
  }

  .profile__avatar {
    width: 68px;
    height: 68px;
    padding: 2px;
  }

  .profile__avatar-placeholder {
    font-size: 16px;
  }

  .profile__name {
    font-size: 22px;
  }

  .profile__stats {
    gap: 20px;
  }

  .profile__stat-value {
    font-size: 16px;
  }

  .profile__bio {
    font-size: 11px;
  }

  .profile__cta {
    display: inline-block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .filters {
    padding: 0 8px;
  }

  .filter-btn {
    padding: 10px 12px;
    font-size: 10px;
  }

  .grid-section {
    padding: var(--grid-gap);
  }
}

@media (max-width: 480px) {
  .profile__stats {
    gap: 14px;
  }

  .card__title {
    font-size: 11px;
  }
}
