/* ===========================================
   GLOBAL THEME
=========================================== */
body {
  margin: 0;
  background: 
    radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 60px 70px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 50px 50px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 130px 80px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 90px 10px, #fff, rgba(0,0,0,0)),
    linear-gradient(90deg, #0a0e27 0%, #1a0033 25%, #0d1b3a 50%, #1a0033 75%, #0a0e27 100%);
  background-repeat: repeat;
  background-size: 200px 200px, 150px 150px, 300px 300px, 250px 250px, 350px 350px, 100%;
  background-position: 0 0, 40px 60px, 130px 270px, 70px 100px, 0 0, 0 0;
  background-attachment: fixed;
  color: #ddd;
  font-family: 'Crimson Pro', serif;
  overflow-x: hidden; /* remove scroll lateral */
}

/* Ensure images never overflow horizontally */
img, .gallery-item img, .network-logo, .footer-logo {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Global: justify all textual content for consistent reading */
body, p, .section, .section p, .channel-description, .gold-text, .network-item, .contact-email, .footer-copy {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

:root {
  --nav-height: 110px; /* default used for desktop scroll offsets */
  --logo-desktop-height: 45px; /* reduced 50% */
  --hero-logo-size: 220px;
}


/* ===========================================
   NAVBAR
=========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 1000;
  min-height: 60px;
  box-sizing: border-box;
}

/* LOGO À ESQUERDA + HOVER DOURADO */
.logo-container {
  display: none;
  align-items: center;
  gap: 12px;
}

.navbar-youtube-mobile {
  display: none !important;
}

.logo {
  cursor: pointer; /* vira botão */
  display: block;
  text-decoration: none;
}

.logo img {
  height: var(--logo-desktop-height);
  width: auto;
  display: block;

/* Centered logo inside hero video - hidden */
.hero-center-logo{
  display: none !important;
}
  margin-left: 30px;
  transition: 0.35s ease;
  filter: drop-shadow(0 0 0 rgba(255,215,120,0)); /* estado normal */
}

.logo:hover img {
  filter: drop-shadow(0 0 6px rgba(255,215,120,0.85))
          drop-shadow(0 0 14px rgba(255,200,90,0.55));
  transform: scale(1.03); /* leve zoom */
}

/* YOUTUBE BADGE */
.youtube-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 38px;
  background: transparent;
  border: none;
  border-radius: 38px;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s ease;
}

.youtube-badge:hover {
  transform: scale(12.15);
  filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.6));
}

.youtube-icon {
  width: 150px;
  height: 150px;
  display: block;
}

.youtube-badge .arrow {
  display: none;
}

/* ===========================================
   NAV BUTTONS — DOURADO CINEMÁTICO
=========================================== */
.nav-links {
  display: flex;
  align-items: center;
  margin-right: 1px; /* reduced lateral space on right */
}

.nav-links button {
  background: none;
  border: none;
  color: #d5b77a;
  margin: 0 14px;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  font-family: 'Crimson Pro', serif;
  cursor: pointer;
  transition: 0.3s ease;
  text-shadow: 0 0 6px rgba(213, 183, 122, 0.35);
}

.nav-links button:hover {
  color: #f2d9a3;
  text-shadow: 0 0 10px rgba(255, 220, 160, 0.8);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: 0.2s ease;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #d5b77a;
  box-shadow: 0 0 6px rgba(213,183,122,0.6);
}

.nav-toggle:focus-visible {
  outline: 2px solid #d5b77a;
  outline-offset: 2px;
}

/* Logo on desktop navbar */
.navbar-logo-desktop {
  height: 105px;
  width: auto;
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* NAVBAR TEXT */
.navbar-text {
  color: #d5b77a;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(213, 183, 122, 0.6),
               0 0 16px rgba(255, 215, 120, 0.3);
  display: none;
  white-space: nowrap;
}

@keyframes pulse-glow {
  0%, 100% {
    text-shadow: 0 0 8px rgba(213, 183, 122, 0.6),
                 0 0 16px rgba(255, 215, 120, 0.3);
  }
  50% {
    text-shadow: 0 0 16px rgba(213, 183, 122, 1),
                 0 0 32px rgba(255, 215, 120, 0.8);
  }
}

/* Hide on mobile */
@media (max-width: 768px) {
  .navbar {
    display: flex !important;
    overflow: hidden !important;
    height: 60px !important;
    min-height: 60px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .navbar-text {
    display: flex !important;
    font-size: 28px;
    animation: pulse-glow 2s ease-in-out infinite;
    align-items: center;
    justify-content: center;
  }

  .navbar-youtube-mobile {
    position: absolute !important;
    left: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: 0.3s ease !important;
  }

  .navbar-youtube-mobile:hover {
    transform: scale(1.2) !important;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.8)) !important;
  }

  .youtube-icon-mobile {
    width: 28px !important;
    height: 28px !important;
    display: block !important;
  }

  .navbar::before {
    display: none !important;
  }

  .navbar::after {
    display: none !important;
  }

  .navbar-logo-desktop {
    display: none !important;
  }

  .nav-links {
    display: none !important;
  }

  .nav-home-desktop {
    display: none !important;
  }

  .logo-container {
    display: none !important;
  }

  .navbar img {
    display: none !important;
  }

  .navbar > div:not(.navbar-text) {
    display: none !important;
  }
}

/* Home button on desktop */
.nav-home-desktop{
  background: transparent;
  border: none;
  color: #d5b77a;
  font-family: 'Crimson Pro', serif;
  font-weight: 600;
  font-size: 15px;
  padding: 6px 8px;
  margin-right: 30px;
  cursor: pointer;
  text-shadow: 0 0 6px rgba(213, 183, 122, 0.35);
  transition: 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.nav-home-desktop:hover {
  color: #f2d9a3;
  text-shadow: 0 0 10px rgba(255, 220, 160, 0.8);
  transform: scale(1.03);
}

/* Mobile hamburger button removed */
.nav-toggle { display: none !important; }

/* Mobile navbar adjustments */
@media (max-width: 768px) {
  .navbar {
    width: 100%;
    max-width: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    gap: 0;
    background: rgba(0,0,0,0.45);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  /* Show YouTube on left, logo centered */
  .logo-container { 
    display: none;
    flex: 0 0 auto;
    order: 1;
  }
  .logo-container::after {
    content: '';
    flex: 1;
  }
  /* Insert logo in center via pseudo-element on navbar */
  .navbar::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: url('Logos/logo_ct.png') center/contain no-repeat;
    z-index: 20;
    pointer-events: none;
  }
  .nav-links { display: none !important; }
  .nav-home-desktop { display: none; }
  
  /* keep document font-size unchanged; only adjust logo size below */
  .logo-container {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }
  .logo img {
    /* explicit smaller logo on mobile, do not change fonts */
    height: 45px;
    margin-left: 0;
  }
  .youtube-icon {
    width: 34px;
    height: 34px;
  }
  
  .nav-links {
    display: none;
    width: 100%;
    margin-right: 0;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 0 4px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links button {
    margin: 0;
    font-size: 14px;
    width: 100%;
    text-align: center;
  }
  .gold-title {
    font-size: 2rem;
  }
  /* Justify body text on mobile for cleaner reading */
  body, .section, .section p, .channel-description, .gold-text, .network-item, .contact-email, .footer-copy {
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
  }
  .section p {
    font-size: 0.95rem;
    line-height: 1.55;
  }
  .channel-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  .gold-text {
    font-size: 0.78rem;
  }
  .section {
    padding: 30px 18px 50px;
  }
  /* Mobile: make hero section and video behave (avoid full-screen overflow) */
  .hero {
    height: auto;
    min-height: 100px;
    align-items: flex-start;
    padding-top: 0;
  }
  .hero-video {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: auto;
    max-height: 48vh;
    object-fit: cover;
    z-index: 1;
  }
}

/* ===========================================
   HERO SECTION (somente vídeo + seta)
=========================================== */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

/* Make main scrollable and enable snap scrolling */
html, body {
  height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden; /* ensure no horizontal scroll even when pinched */
  touch-action: pan-y; /* prefer vertical panning to avoid accidental horizontal drag */
}

/* ensure page content is pushed below fixed navbar using the CSS variable */
main {
  padding-top: 0;
}

/* main remains normal document flow so the page is one long scrollable document */
main {
  width: 100%;
}

/* VIDEO */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 1;
  transform: none;
}

/* OVERLAY */
.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: center;
  pointer-events: none;
  z-index: 5;
}

/* CIRCUIT GRID */
.circuit-grid {
  position: absolute;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(#00eaff33 1px, transparent 1px),
    linear-gradient(90deg, #00eaff33 1px, transparent 1px);
  background-size: 80px 80px;
  animation: circuitMove 18s linear infinite;
  opacity: 0;
  z-index: 3;
}

@keyframes circuitMove {
  from { transform: translate(0,0); }
  to   { transform: translate(-80px,-80px); }
}

/* ===========================================
   HERO INFO — aparece DEPOIS do vídeo
=========================================== */
.hero-info {
  padding: 120px 40px;
  text-align: center;
  background: #000000dd;
  backdrop-filter: blur(3px);
  min-height: 60vh;
}


/* HERO TITLE */
.hero-title {
  font-size: 3.6rem;
  color: #fff;
  text-shadow: 0 0 20px #000;
  margin: 0 0 10px 0;
}

/* NAVBAR placement: small YouTube badge to the left of main logo */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 30px; /* moved a bit left to make room on the right */
}

.logo img {
  height: 90px;
  width: auto;
  display: block;
  margin-left: 0; /* remove large left margin so logo sits at top-left */
  transition: 0.35s ease;
  filter: drop-shadow(0 0 0 rgba(255,215,120,0)); /* estado normal */
}

/* Navbar-specific YouTube badge sizing */
.navbar-badge {
  padding: 4px;
  background: transparent;
  border: none;
}

.navbar-badge .youtube-icon {
  width: 44px;
  height: 44px;
  display: block;
}

.navbar-badge:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.55));
}

/* Hide leftover mobile menu elements (buttons without styling) that may appear white
   and cause the small white bar at the top-left on some devices */
.mobile-menu, .mobile-menu-toggle {
  display: none !important;
}

/* Ensure nav-links overlay uses a dark background when opened */
.nav-links.open {
  background: rgba(0,0,0,0.95) !important;
  color: #d5b77a;
}

.hero-info .hero-subtitle {
  font-size: 1.3rem;
  max-width: 760px;
  margin: 15px auto 30px;
  color: #ddd;
}

.hero-info .hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* ===========================================
   BUTTONS GENERAL
=========================================== */
.hero-btn {
  padding: 12px 26px;
  border: 1px solid #ffffffaa;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 6px;
  font-family: 'Crimson Pro', serif;
  cursor: pointer;
  transition: 0.25s;
}

.hero-btn:hover {
  background: #d5b77a;
  color: #000;
  box-shadow: 0 0 18px #d5b77a;
}

/* ===========================================
   SECTIONS
=========================================== */
section {
  display: block;
  padding: 30px 50px 30px;
  /* reduce nav height on mobile so content isn't hidden */
  :root { --nav-height: 68px; }
  box-sizing: border-box;
  scroll-margin-top: 110px; /* keep space from fixed navbar when jumping */
}

section:not(.hero) {
  padding-top: 2px;
  margin-top: 0;
}

/* Desktop: reduce padding */
@media (min-width: 769px) {
  section {
    padding: 30px 50px 50px;
  }
}

/* Optional helper to mark the currently active section */

.section p {
  font-size: 1.15rem;
  color: #d5b77a;
  text-shadow: 0 0 8px rgba(213,183,122,0.5);
  line-height: 1.7;
}

.gold-title {
  font-size: 2.7rem;
  color: #d5b77a;
  text-shadow: 0 0 10px #d5b77a77;
  margin-bottom: 10px;
}

/* Center only main title classes */
.gold-title, .hero-title {
  text-align: center;
}

.series-title {
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  margin: 12px 0 24px 0;
}

.series-title.year2142 {
  color: #ff8800;
  text-shadow: 0 0 10px #ff8800, 0 0 20px rgba(255, 136, 0, 0.6);
}

.series-title.hollowlight {
  color: #ff2b2b;
  text-shadow: 0 0 10px #ff2b2b, 0 0 20px rgba(255, 43, 43, 0.6);
}

.gold-subtitle {
  font-size: 1.25rem;
  color: #d5b77a;
  font-family: 'Crimson Pro', serif;
  text-shadow: 0 0 10px rgba(213,183,122,0.45);
  margin: 12px 0;
  text-align: center; /* center titles above the show button */
}

.partner-name {
  font-family: 'Crimson Pro', serif;
  font-weight: 700;
  color: #d5b77a; /* default gold for Clever Tales */
  text-shadow: 0 0 8px rgba(213,183,122,0.45);
}

.partner-name.hollowlight {
  color: #ff2b2b; /* neon red */
  text-shadow: 0 0 8px rgba(255,43,43,0.9), 0 0 18px rgba(255,43,43,0.6);
  letter-spacing: 0.6px;
}

.partner-feature.partner-horizontal {
  flex-direction: row;
  align-items: center;
  gap: 30px;
  max-width: 900px;
  margin: 18px auto 12px;
}

.partner-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.partner-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.partner-feature.partner-horizontal .channel-description.gold-text {
  text-align: left;
  margin: 0;
}

.channel-description {
  max-width: 100%;
  margin: 0;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: 'Crimson Pro', serif;
}

@media (max-width: 768px) {
  .partner-feature.partner-horizontal {
    flex-direction: column;
    gap: 12px;
  }
  .channel-description {
    text-align: center;
  }
}

.partner-feature .channel-description.horror-text {
  color: #ff1f1f;
  text-shadow: 0 0 10px rgba(255,43,43,0.75), 
               0 0 22px rgba(255,43,43,0.5),
               0 0 34px rgba(255,0,0,0.25);
  animation: flicker 3s infinite alternate;
  letter-spacing: 0.5px;
}

@keyframes flicker {
  0%, 100% { 
    opacity: 1;
    text-shadow: 0 0 10px rgba(255,43,43,0.7), 
                 0 0 20px rgba(255,43,43,0.4),
                 0 0 30px rgba(255,0,0,0.2);
  }
  50% { 
    opacity: 0.92;
    text-shadow: 0 0 8px rgba(255,43,43,0.9), 
                 0 0 16px rgba(255,43,43,0.5),
                 0 0 25px rgba(255,0,0,0.3);
  }
}

.gold-text {
  color: #d5b77a;
  text-shadow: 0 0 8px rgba(213,183,122,0.6), 0 0 14px rgba(245,220,150,0.2);
  filter: drop-shadow(0 0 10px rgba(213,183,122,0.35));
  animation: neonPulse 3s infinite alternate;
  letter-spacing: 0.4px;
  font-size: 0.85rem;
  text-align: center;
}

@keyframes neonPulse {
  0%, 100% { 
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(213,183,122,0.6));
  }
  50% { 
    opacity: 0.92;
    filter: drop-shadow(0 0 12px rgba(213,183,122,0.8));
  }
}

/* consolidated horror and description styles kept above */

/* Network grid */
.network-grid {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.network-item {
  min-width: 160px;
  padding: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
  color: #ddd;
  text-align: center;
}

.network-partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.network-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(213,183,122,0.12);
}

.network-name {
  color: #d5b77a;
  font-weight: 600;
}

.network-name.hollowlight {
  color: #ff2b2b;
  text-shadow: 0 0 10px #ff2b2b, 0 0 20px rgba(255, 43, 43, 0.6);
}

.network-email {
  color: #ddd;
  font-size: 13px;
}

/* ===========================================
   GALLERY
=========================================== */
.gallery-controls { text-align: center; margin-bottom: 12px; }

/* Gallery scroll wrapper for mobile */
.gallery-scroll-wrapper {
  display: block;
}

.gallery-scroll-arrow {
  display: none;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)); /* 6 items per row on large screens */
  gap: 14px;
  align-items: start;
  transition: max-height 0.45s ease, opacity 0.35s ease;
  overflow: hidden;
}

@media (max-width: 768px) {
  .gallery-controls {
    display: none;
  }
}

/* collapsed state limits visible rows to avoid very long page */
.image-grid.collapsed {
  /* collapsed -> show only 1 row of thumbnails (thumbnail height + gap) */
  max-height: calc(100px + 14px);
  opacity: 1;
  overflow: hidden;
}

.image-grid.expanded {
  max-height: 2000px; /* large enough to show many images */
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
}

.gallery-item img {
  width: 100%;
  height: 110px; /* reduced thumbnail height */
  object-fit: cover;
  display: block;
  transition: filter 0.25s ease; /* no scale on hover */
  cursor: pointer;
}

/* hover only adjusts brightness, no expansion */
.gallery-item img:hover {
  filter: brightness(1.02);
}

/* Modal view */
.gallery-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.75);
  z-index: 2000;
}

.gallery-modal[aria-hidden="false"] { display: flex; }

.gallery-modal-content {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
}

.gallery-modal-content img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

.modal-close {
  position: absolute;
  top: -18px;
  right: -18px;
  background: #111;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

/* small helper size for the hero-btn inside gallery controls */
.hero-btn.small { padding: 8px 12px; font-size: 14px; }

/* Make the small gallery buttons more attractive */
.hero-btn.small {
  background: linear-gradient(90deg, #f7dfb9 0%, #d5b77a 60%);
  color: #111;
  border: none;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(213,183,122,0.18), 0 0 18px rgba(213,183,122,0.05) inset;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.hero-btn.small:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(213,183,122,0.28), 0 0 26px rgba(213,183,122,0.12) inset;
}

/* Feature partner (Hollowlight) styling */
.partner-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 18px 0 12px; /* add spacing under the Partners title */
}
.partner-feature img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 3px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

/* Clever Tales featured logo - 50% larger than default partner logo */
.partner-feature.partner-clever-tales img {
  width: 165px;
  height: 165px;
  object-position: center;
}

@media (max-width: 768px) {
  /* Increase logo by 40% on mobile */
  .partner-feature.partner-clever-tales img {
    width: 231px;
    height: 231px;
  }
}

/* thin gold separator used between featured channel and other channels */
.gold-separator {
  width: 60%;
  height: 4px;
  margin: 2px auto 1px;
  background: linear-gradient(90deg, rgba(213,183,122,0) 0%, rgba(213,183,122,0.95) 20%, rgba(245,220,150,1) 50%, rgba(213,183,122,0.95) 80%, rgba(213,183,122,0) 100%);
  box-shadow: 0 0 12px rgba(213,183,122,0.25);
  border-radius: 2px;
}

/* Desktop: reduce top margin on gold separator */
@media (min-width: 769px) {
  .gold-separator {
    margin: 0 auto 18px;
  }
}

/* Responsive column counts */
@media (max-width: 1200px) {
  .image-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .image-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Desktop: add padding-top to movies section */
#movies {
  padding-top: 80px !important;
}

/* Mobile: make expanded gallery scroll inside viewport instead of pushing content */
@media (max-width: 768px) {
  .hero {
    height: 50vh;
  }

  .hero + section .gold-separator:first-of-type {
    display: none !important;
  }

  #movies {
    padding: 120px 18px 0 18px !important;
    margin: 0 !important;
  }

  #studio {
    padding-top: 0 !important;
    padding-bottom: 60px !important;
    margin: 0 !important;
  }

  #process {
    padding: 0 18px !important;
    margin: 0 !important;
  }

  #gallery {
    padding: 0 18px !important;
    margin: 0 !important;
  }

  #contact {
    padding: 0 18px !important;
    margin: 0 !important;
    text-align: center !important;
  }

  .contact-email {
    text-align: center !important;
    text-justify: none !important;
  }

  #network {
    padding: 0 18px !important;
    margin: 0 !important;
  }

  #hollowlight-episodes {
    padding: 0 18px !important;
    margin: 0 !important;
    padding-top: 12px !important;
  }

  #studio .gold-separator {
    margin: 0 auto 0 !important;
  }

  #network .gold-separator {
    margin-top: 20px !important;
    margin-bottom: 0 !important;
  }

  .gold-separator {
    margin: 0 auto 0 !important;
  }

  .episodes-grid {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    gap: 12px !important;
  }

  .episodes-container {
    margin-bottom: 0 !important;
  }

  .gold-separator {
    margin: 6px auto 8px !important;
  }

  #studio {
    padding: 20px 18px 20px !important;
  }

  #gallery p,
  .partner-feature,
  .partner-clever-tales,
  .partner-horizontal,
  .gallery-scroll-wrapper,
  .gallery-modal,
  .gallery-controls {
    display: none !important;
  }

  .gallery-project-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    text-align: center;
  }

  .gallery-project-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 20px 0;
  }

  .gallery-project-title.year2142 {
    color: #ff8800;
    text-shadow: 0 0 10px #ff8800, 0 0 20px rgba(255, 136, 0, 0.6);
  }

  .gallery-project-title.hollowlight-gallery {
    color: #ff2b2b;
    text-shadow: 0 0 10px #ff2b2b, 0 0 20px rgba(255, 43, 43, 0.6);
  }

  .teste-scroll-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 12px;
    width: auto;
    min-width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 8px 18px;
    margin-bottom: 20px;
    height: calc(2 * 100px + 12px);
    align-content: flex-start;
  }

  .teste-scroll-box {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    border-radius: 8px;
  }

  /* Gallery zoom modal */
  .gallery-zoom-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
  }

  .gallery-zoom-modal[aria-hidden="false"] {
    display: flex;
  }

  .gallery-zoom-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
  }

  .gallery-zoom-content img {
    width: 100%;
    height: auto;
    max-height: 95vh;
    object-fit: contain;
    display: block;
  }

  .gallery-zoom-modal .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    font-size: 32px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    z-index: 2001;
  }

  .gallery-zoom-modal .modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
  }
}

/* Watch trailer label above logo */
.watch-trailer-label {
  color: #d5b77a;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(213, 183, 122, 0.6);
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

.arrow-down {
  display: inline-block;
  font-size: 16px;
  animation: arrowBounceDown 2s infinite ease-in-out;
}

@keyframes arrowBounceDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

.partner-left:hover .watch-trailer-label {
  color: #f2d9a3;
  text-shadow: 0 0 12px rgba(255, 220, 160, 0.8);
}

@media (max-width: 768px) {
  .watch-trailer-label {
    font-size: 12px;
    margin-bottom: 6px;
    gap: 3px;
  }

  .arrow-down {
    font-size: 14px;
  }
}

/* Trailer container and text */
.trailer-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.watch-trailer-text {
  color: #d5b77a;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(213, 183, 122, 0.6);
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.logo-trailer-button:hover ~ .watch-trailer-text,
.trailer-container:hover .watch-trailer-text {
  color: #f2d9a3;
  text-shadow: 0 0 12px rgba(255, 220, 160, 0.8);
  transform: translateX(-4px);
}

/* Partner info container - below logo */
.partner-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

/* Logo trailer button */
.logo-trailer-button {
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
  border-radius: 8px;
  overflow: hidden;
}

.logo-trailer-button img {
  display: block;
  transition: filter 0.25s ease;
}

.logo-trailer-button:hover img {
  filter: brightness(1.1) drop-shadow(0 0 12px rgba(213, 183, 122, 0.6));
}

.logo-trailer-button:hover {
  transform: scale(1.05);
}

/* ===========================================
   CONTACT — circular logo + YouTube link
=========================================== */
.contact-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.contact-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.contact-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 4px solid rgba(213,183,122,0.12);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.contact-logo-name {
  color: #d5b77a;
  font-weight: 600;
  letter-spacing: 0.6px;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-youtube-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: none;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.contact-youtube-button:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.6));
}

.contact-youtube-button .yt-icon { 
  display: block;
  width: 24px;
  height: 24px;
}

.contact-email {
  width: 100%;
  text-align: center;
  margin-top: 6px;
}

/* Ensure contact email is centered on desktop as well */
@media (min-width: 769px) {
  #contact {
    text-align: center;
  }
  .contact-email {
    display: block;
    margin: 6px auto 0 auto;
    max-width: 780px;
    text-align: center;
  }
}

/* Responsive: stack on small screens */
@media (max-width: 640px) {
  .contact-inner { gap: 12px; }
  .contact-logo { width: 96px; height: 96px; }
  .nav-links { margin-right: 16px; }
}

/* ===========================================
   FOOTER
=========================================== */
.site-footer {
  background: transparent;
  padding: 36px 20px;
  border-top: 1px solid rgba(255,255,255,0.04);
  text-align: center;
}

.site-footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.footer-logo {
  width: 600px;
  height: auto;
  display: block;
  margin-bottom: 1px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.6));
}

.footer-copy {
  margin: 0;
  color: #d5b77a;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(213,183,122,0.45);
}

@media (max-width: 768px) {
  .footer-copy {
    font-size: 16px;
  }
}

/* ===========================================
   GALLERY
=========================================== */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.image-box {
  height: 150px;
  background: #111;
  border: 1px solid #333;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #777;
  transition: 0.25s;
}

.image-box:hover {
  border-color: #d5b77a;
  color: #d5b77a;
  box-shadow: 0 0 15px #d5b77a77;
}

/* ================================
   SCROLL INDICATOR — ALINHADO E MAIOR
================================= */

.scroll-indicator {
  position: absolute;
  bottom: -110px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 6;
  opacity: 0.95;
  width: auto;
  pointer-events: none;
}

@media (max-width: 768px) {
  .scroll-indicator {
    bottom: -110px;
  }

  .scroll-indicator span {
    font-size: 0.rem;
    letter-spacing: 2px;
  }

  .scroll-arrow {
    width: 10px;
    height: 10px;
    margin: 10px auto 0;
    border-right: 2px solid #e6d3a3;
    border-bottom: 2px solid #e6d3a3;
  }
}

.scroll-indicator span {
  font-size: 1.4rem;
  font-weight: 400;
  color: #e6d3a3;
  letter-spacing: 3px;
  text-shadow:
      0 0 8px rgba(255, 210, 140, 0.7),
      0 0 16px rgba(255, 180, 90, 0.4);
}

/* SETA HOLOGRÁFICA DOURADA */
.scroll-arrow {
  width: 32px;
  height: 32px;
  margin: 18px auto 0;
  border-right: 3px solid #e6d3a3;
  border-bottom: 3px solid #e6d3a3;
  transform: rotate(45deg);
  animation: arrowBounce 1.6s infinite ease-in-out;
  filter: drop-shadow(0 0 8px rgba(255, 200, 120, 0.95));
}

@keyframes arrowBounce {
  0%   { transform: translateY(0) rotate(45deg); }
  50%  { transform: translateY(10px) rotate(45deg); }
  100% { transform: translateY(0) rotate(45deg); }
}

/* Episodes Grid */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 30px;
  justify-items: center;
}

.episodes-container {
  width: 100%;
}

.episode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s ease;
}

.episode-card:hover {
  transform: scale(1.05);
}

.episode-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
}

.episode-number {
  color: #d5b77a;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(213, 183, 122, 0.6);
  letter-spacing: 0.5px;
}

.coming-soon {
  color: #d5b77a;
  font-size: 11px;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(213, 183, 122, 0.6);
  letter-spacing: 0.5px;
  display: block;
  margin-top: 4px;
}

.episode-arrow {
  color: #d5b77a;
  font-size: 14px;
  text-shadow: 0 0 8px rgba(213, 183, 122, 0.6);
  animation: arrowPulse 1.5s infinite ease-in-out;
}

@keyframes arrowPulse {
  0%, 100% {
    opacity: 1;
    transform: translateX(0);
  }
  50% {
    opacity: 0.7;
    transform: translateX(3px);
  }
}

.episode-date {
  color: #d5b77a;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(213, 183, 122, 0.6);
  letter-spacing: 0.5px;
}

.episode-thumbnail {
  width: 100%;
  max-width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(213, 183, 122, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.episode-thumbnail:hover {
  border-color: rgba(213, 183, 122, 0.65);
  box-shadow: 0 8px 30px rgba(213, 183, 122, 0.25);
}

.episode-thumbnail-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 180px;
}

.episode-overlay-soon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 180px;
  height: 120px;
  color: #d5b77a;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(213, 183, 122, 0.8);
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  border: 2px solid rgba(213, 183, 122, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

/* Responsive: reduce grid columns on smaller screens */
@media (max-width: 768px) {
  .episodes-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
    margin: 0 -18px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .episodes-grid {
    display: flex;
    grid-template-columns: none;
    width: fit-content;
    gap: 12px;
    margin-top: 0;
    justify-items: auto;
  }

  .episode-card {
    flex: 0 0 auto;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .episode-info {
    gap: 4px;
  }

  .episode-number {
    font-size: 11px;
  }

  .episode-arrow {
    font-size: 12px;
  }

  .episode-date {
    font-size: 11px;
  }
  
  .episode-thumbnail {
    max-width: 110px;
    height: 70px;
  }
}

/* Zoom modals: hide by default to avoid broken-image placeholders */
.gallery-zoom-modal,
#episodeZoomModal,
#galleryZoomModal {
  display: none !important;
}

/* When modal is opened we set aria-hidden="false" from JS — show modal then */
.gallery-zoom-modal[aria-hidden="false"],
.gallery-zoom-modal[aria-hidden="false"] .gallery-zoom-content,
#episodeZoomModal[aria-hidden="false"],
#galleryZoomModal[aria-hidden="false"] {
  display: flex !important;
  position: fixed !important;
  inset: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0,0,0,0.85) !important;
  z-index: 3000 !important;
}

/* Ensure the image inside the modal is hidden until modal opens */
.gallery-zoom-modal img,
#episodeZoomModal img,
#galleryZoomModal img {
  max-width: 92vw;
  max-height: 86vh;
  display: block;
}


