/* ═══════════════════════════════════════════
   LUPPAN — style.css (versão melhorada)
   ═══════════════════════════════════════════ */

/* ── VARIÁVEIS ── */
:root {
  --bg:         #0d0d14;
  --bg2:        #13131f;
  --bg3:        #1a1a2e;
  --purple:     #7b2fff;
  --purple-dk:  #5a1fd1;
  --purple-lt:  #a259ff;
  --accent:     #ff3e6c;
  --blue:       #2196f3;
  --text:       #e8e8f0;
  --text-muted: #7878a0;
  --radius:     12px;
  --radius-sm:  6px;
  --topbar-h:   68px;
}

/* ── RESET GLOBAL ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  padding-top: calc(var(--topbar-h) + 16px);
  min-height: 100vh;
  /* Fundo com textura sutil */
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(123,47,255,.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255,62,108,.08) 0%, transparent 60%);
}

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

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

/* ── DIVISOR ── */
.divider {
  height: 1px;
  margin: 28px 20px;
  background: linear-gradient(90deg, transparent, rgba(123,47,255,.4), transparent);
}

/* ════════════════════════════════════════════
   TOPBAR
   ════════════════════════════════════════════ */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(13, 13, 20, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(123,47,255,.25);
  padding: 0 20px;
  height: var(--topbar-h);
  position: fixed;
  top: 10px;
  left: 12px;
  right: 12px;
  border-radius: 16px;
  z-index: 999;
  box-shadow: 0 4px 30px rgba(0,0,0,.5), 0 0 0 1px rgba(123,47,255,.1);
}

/* Hamburguer */
#menuBtn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(123,47,255,.15);
  border: 1px solid rgba(123,47,255,.3);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  transition: background .2s;
}

#menuBtn:hover { background: rgba(123,47,255,.3); }

.burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Brand */
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.topbar-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.topbar-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #fff, var(--purple-lt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

/* Nav central */
.topbar-nav {
  display: flex;
  gap: 4px;
  margin: 0 auto;
}

.topbar-nav a {
  font-size: 14px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.topbar-nav a:hover {
  color: var(--text);
  background: rgba(123,47,255,.18);
}

/* Actions (pesquisa + login) */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Campo de busca */
.search-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(123,47,255,.3);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}

.search-wrap:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(123,47,255,.2);
}

.search-input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  padding: 8px 14px;
  width: 180px;
}

.search-input::placeholder { color: var(--text-muted); }

.search-btn {
  background: var(--purple);
  border: none;
  color: white;
  cursor: pointer;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  transition: background .2s;
}

.search-btn:hover { background: var(--purple-dk); }

/* Botão de login */
.btn-login {
  background: linear-gradient(135deg, var(--purple), var(--purple-dk));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: 50px;
  white-space: nowrap;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 2px 12px rgba(123,47,255,.4);
}

.btn-login:hover {
  opacity: .9;
  transform: translateY(-1px);
}

/* ════════════════════════════════════════════
   MENU LATERAL
   ════════════════════════════════════════════ */
#menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: var(--bg3);
  border-right: 1px solid rgba(123,47,255,.2);
  transition: left .3s cubic-bezier(.4,0,.2,1);
  z-index: 1001;
  display: flex;
  flex-direction: column;
}

#menu.active { left: 0; }

.menu-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.menu-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 7px;
}

.menu-header span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  flex: 1;
  background: linear-gradient(90deg, #fff, var(--purple-lt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#closeBtn {
  background: rgba(255,255,255,.07);
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}

#closeBtn:hover { background: rgba(255,62,108,.2); color: var(--accent); }

#menu ul {
  list-style: none;
  padding: 12px 0;
  flex: 1;
  overflow-y: auto;
}

#menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all .2s;
}

#menu li:hover {
  color: var(--text);
  background: rgba(123,47,255,.1);
  border-left-color: var(--purple);
}

#menu li a {
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.menu-icon { font-size: 18px; }

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 1000;
}

#overlay.active { display: block; }

/* ════════════════════════════════════════════
   REZE / PERSONAGEM ANIMADO
   ════════════════════════════════════════════ */
.reze-container {
  position: fixed;
  bottom: 0;
  right: 20px;
  width: 110px;
  z-index: 500;
  pointer-events: none;
}

.reze-animation {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(123,47,255,.4));
}

/* ════════════════════════════════════════════
   HERO / SLIDESHOW PRINCIPAL
   ════════════════════════════════════════════ */
.hero-section {
  padding: 0 20px;
}

.slider {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  height: 240px;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(123,47,255,.2);
  transition: transform .3s, box-shadow .3s;
}

.slider:hover {
  transform: scale(1.015);
  box-shadow: 0 16px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(123,47,255,.4);
}

.slides {
  width: 400%;
  height: 100%;
  display: flex;
}

.slides input { display: none; }

.slide {
  width: 25%;
  transition: margin .8s cubic-bezier(.4,0,.2,1);
}

.slide img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center top;
}

/* Navegação manual */
.manual-navigation {
  position: absolute;
  bottom: 14px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}

.manual-btn {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background .3s, border-color .3s;
}

.manual-btn:hover { background: rgba(255,255,255,.5); }

/* Navegação automática */
.navigation-auto {
  position: absolute;
  bottom: 14px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 9;
  pointer-events: none;
}

.navigation-auto div {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(123,47,255,.5);
  border-radius: 50%;
  transition: background .3s;
}

#radio1:checked ~ .first { margin-left: 0; }
#radio2:checked ~ .first { margin-left: -25%; }
#radio3:checked ~ .first { margin-left: -50%; }
#radio4:checked ~ .first { margin-left: -75%; }

#radio1:checked ~ .navigation-auto .auto-btn1,
#radio2:checked ~ .navigation-auto .auto-btn2,
#radio3:checked ~ .navigation-auto .auto-btn3,
#radio4:checked ~ .navigation-auto .auto-btn4 {
  background: var(--purple-lt);
  border-color: var(--purple-lt);
}

/* ════════════════════════════════════════════
   SEÇÃO DE ANIMES (cards com scroll)
   ════════════════════════════════════════════ */
.movie-section {
  padding: 0 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.section-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.accent-bar {
  color: var(--purple);
  font-size: 28px;
}

.see-all {
  background: linear-gradient(135deg, var(--purple), var(--purple-dk));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: opacity .2s;
}

.see-all:hover { opacity: .8; }

/* Grid horizontal com scroll */
.movie-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 14px;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) var(--bg2);
}

.movie-grid::-webkit-scrollbar { height: 6px; }
.movie-grid::-webkit-scrollbar-track { background: var(--bg2); border-radius: 10px; }
.movie-grid::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 10px; }
.movie-grid::-webkit-scrollbar-thumb:hover { background: var(--purple-lt); }

/* Card */
.movie-card-link {
  flex: 0 0 150px;
  text-decoration: none;
  color: inherit;
  display: block;
  outline: none;
}

.movie-card {
  width: 100%;
  cursor: pointer;
  transition: transform .25s;
}

.movie-card-link:hover .movie-card,
.movie-card:hover { transform: translateY(-6px); }

.poster-wrapper {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--bg2);
}

.poster-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}

.movie-card:hover .poster-wrapper img { transform: scale(1.06); }

/* Overlay de hover */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
  opacity: 0;
  transition: opacity .3s;
}

.movie-card:hover .card-overlay { opacity: 1; }

.card-overlay span {
  background: var(--purple);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
}

.badge {
  position: absolute;
  top: 8px;
  left: 0;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  border-radius: 0 5px 5px 0;
  text-transform: uppercase;
}

.legendado { background: var(--accent); }
.dublado   { background: var(--blue); }

.movie-info {
  padding: 8px 2px 0;
}

.movie-info h3 {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-info p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ════════════════════════════════════════════
   SEÇÃO DE LANÇAMENTOS
   ════════════════════════════════════════════ */
.recap-section {
  padding: 0 20px;
}

.recap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-left: 14px;
  border-left: 4px solid var(--purple);
}

.recap-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 1px;
  color: var(--text);
}

.recap-btn-ver-todos {
  background: var(--bg2);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,.1);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  transition: all .2s;
}

.recap-btn-ver-todos:hover {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.recap-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Card de lançamento */
.recap-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  outline: none;
}

.recap-card {
  cursor: pointer;
  transition: transform .2s;
}

.recap-card-link:hover .recap-card { transform: translateY(-4px); }

.recap-card:hover { transform: translateY(-4px); }

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

.recap-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg2);
}

.recap-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}

.recap-card:hover .recap-thumb img { transform: scale(1.05); }

.recap-tempo {
  position: absolute;
  bottom: 7px;
  right: 7px;
  background: rgba(0,0,0,.8);
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 20px;
}

.recap-info { padding: 8px 2px 0; }

.recap-info h3 {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}

.recap-info p {
  color: var(--text-muted);
  font-size: 12px;
}

/* ════════════════════════════════════════════
   SEGUNDO CARROSSEL (slidine)
   ════════════════════════════════════════════ */
.slidine {
  padding: 0 20px;
  display: flex;
  justify-content: center;
}

.carousel {
  width: 100%;
  max-width: 820px;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0d0d14;
  box-shadow: 0 8px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(123,47,255,.2);
}

.slidesa {
  position: relative;
  width: 100%;
  height: 100%;
}

.sliden {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  display: block;
  text-decoration: none;
  pointer-events: none;           /* só o slide ativo é clicável */
}

.sliden img {
  width: 100%;
  height: 100%;
  object-fit: contain;            /* NUNCA corta, em qualquer rácio de ecrã */
  display: block;
  background: #0d0d14;            /* funde com o fundo das imagens do tutorial */
}

.sliden-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 22px 14px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  background: linear-gradient(to top, rgba(8,6,16,.92) 0%, rgba(8,6,16,.55) 55%, transparent 100%);
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
.sliden-cap b { color: #c4a0ff; }

.sliden.active { opacity: 1; pointer-events: auto; }

/* ════════════════════════════════════════════
   SEÇÃO SOBRE (Asura)
   ════════════════════════════════════════════ */
.about-section {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px;
  background: linear-gradient(135deg, rgba(123,47,255,.07), rgba(255,62,108,.04));
  border-radius: var(--radius);
  margin: 0 20px;
  border: 1px solid rgba(123,47,255,.15);
}

.about-img {
  max-width: 300px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 0 20px rgba(123,47,255,.3));
}

.about-text {
  padding: 20px 30px;
}

.about-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 2px;
  margin-bottom: 14px;
  line-height: 1.1;
}

.about-title span {
  background: linear-gradient(90deg, var(--purple-lt), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 15px;
  margin-bottom: 22px;
}

.about-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--purple), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(123,47,255,.4);
  transition: transform .2s, box-shadow .2s;
}

.about-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(123,47,255,.5);
}

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
.site-footer {
  text-align: center;
  padding: 30px 20px 40px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #fff, var(--purple-lt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 12px;
  max-width: 600px;
  margin: 0 auto 14px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: color .2s;
}

.footer-links a:hover { color: var(--purple-lt); }

/* ════════════════════════════════════════════
   TELA DE LOGIN
   ════════════════════════════════════════════ */
.login-page-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 60% at 30% 0%, rgba(123,47,255,.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 75% 100%, rgba(255,62,108,.1) 0%, transparent 60%);
  padding: 20px;
}

.login-card {
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(123,47,255,.25);
  padding: 48px 44px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(123,47,255,.1);
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.login-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto 16px;
  border-radius: 14px;
}

.login-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 3px;
  background: linear-gradient(90deg, #fff, var(--purple-lt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.login-card h1 {
  color: var(--text);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 32px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-form input {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 13px 16px;
  border-radius: 10px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}

.login-form input::placeholder { color: var(--text-muted); }

.login-form input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(123,47,255,.2);
}

.login-form button {
  background: linear-gradient(135deg, var(--purple), var(--purple-dk));
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 4px 18px rgba(123,47,255,.4);
  transition: transform .2s, box-shadow .2s;
}

.login-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(123,47,255,.5);
}

.forgot-pass {
  display: block;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 13px;
  transition: color .2s;
}

.forgot-pass:hover { color: var(--purple-lt); }

/* ════════════════════════════════════════════
   RESPONSIVO — TODOS OS TAMANHOS
   ════════════════════════════════════════════ */

/* ── 1024px: tablets landscape ── */
@media (max-width: 1024px) {
  .topbar-nav a { font-size: 13px; padding: 6px 10px; }
  .search-input { width: 150px; }
  .recap-grid-container { grid-template-columns: repeat(3, 1fr); }
}

/* ── 900px: tablet portrait ── */
@media (max-width: 900px) {
  /* Topbar — esconder nav central, manter tudo o resto */
  .topbar-nav { display: none; }
  .topbar { gap: 10px; padding: 0 14px; }
  .search-input { width: 130px; }

  .recap-grid-container { grid-template-columns: repeat(2, 1fr); }

  .about-section { flex-direction: column; text-align: center; }
  .about-img { max-width: 200px; }
  .about-text { padding: 20px 10px; }
}

/* ── 768px: tablet pequeno ── */
@media (max-width: 768px) {
  :root { --topbar-h: 60px; }

  .topbar {
    top: 8px;
    left: 8px;
    right: 8px;
    border-radius: 14px;
    padding: 0 12px;
    gap: 8px;
  }

  /* Topbar: logo + hamburger sempre visíveis, pesquisa reduzida, login mantido */
  .topbar-title { font-size: 20px; letter-spacing: 1.2px; }
  .topbar-logo  { width: 30px; height: 30px; }
  #menuBtn      { width: 34px; height: 34px; }

  .slider { height: 200px; }
  .slide img { height: 200px; }

  .recap-grid-container { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .movie-card-link { flex: 0 0 130px; }
}

/* ── 600px: telemóvel grande ── */
@media (max-width: 600px) {
  :root { --topbar-h: 56px; }

  .topbar {
    top: 6px;
    left: 6px;
    right: 6px;
    border-radius: 12px;
    padding: 0 10px;
    gap: 6px;
  }

  /* topbar mobile: ver bloco TOPBAR MOBILE no fim do ficheiro */

  body { padding-top: calc(var(--topbar-h) + 12px); }

  .slider { height: 160px; }
  .slide img { height: 160px; }

  .recap-grid-container { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .recap-info h3 { font-size: 12px; }

  .movie-section,
  .recap-section,
  .slidine,
  .about-section,
  .hero-section { padding-left: 12px; padding-right: 12px; }

  .movie-card-link { flex: 0 0 120px; }

  .about-img { max-width: 160px; }
  .about-title { font-size: 26px; }
  .about-text p { font-size: 13px; }

  .reze-container { width: 70px; right: 10px; }

  .footer-links { flex-wrap: wrap; gap: 12px; }
}

/* ── 480px: telemóvel médio ── */
@media (max-width: 480px) {
  :root { --topbar-h: 52px; }

  .topbar {
    top: 5px;
    left: 5px;
    right: 5px;
    border-radius: 10px;
    padding: 0 8px;
    gap: 6px;
  }

  .topbar-logo { width: 28px; height: 28px; }
  #menuBtn { width: 32px; height: 32px; padding: 6px; }



  .slider { height: 140px; }
  .slide img { height: 140px; }

  .recap-grid-container { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .movie-card-link { flex: 0 0 110px; }
  .movie-info h3 { font-size: 12px; }

  .carousel { aspect-ratio: 16/9; }

  .reze-container { display: none; } /* esconder em ecrãs muito pequenos */
}

/* ── 360px: telemóvel pequeno ── */
@media (max-width: 360px) {
  .topbar { padding: 0 6px; gap: 4px; }
  .recap-grid-container { grid-template-columns: 1fr 1fr; gap: 6px; }
  .movie-card-link { flex: 0 0 100px; }
}

/* ════════════════════════════════════════════
   TOPBAR MOBILE — tudo numa linha:
   logotipo · nome do site · pesquisa · conta
   ════════════════════════════════════════════ */
@media (max-width: 900px) {
  .topbar { gap: 8px; }

  /* marca: logo + nome sempre visiveis */
  .topbar-brand { flex-shrink: 0; gap: 7px; }
  .topbar-title {
    display: block !important;
    font-size: 16px;
    letter-spacing: .6px;
    white-space: nowrap;
  }

  /* a zona de acoes ocupa o espaco que sobra */
  .topbar-actions { flex: 1 1 auto; min-width: 0; gap: 8px; }

  /* pesquisa elastica, com campo VISIVEL */
  .search-wrap {
    flex: 1 1 auto;
    min-width: 0;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(123,47,255,.3);
    border-radius: 50px;
    overflow: hidden;
  }
  .search-input {
    display: block !important;
    width: 100% !important;
    min-width: 0;
    font-size: 12px;
    padding: 8px 12px;
  }
  .search-btn {
    border-radius: 0;
    width: auto;
    height: auto;
    padding: 9px 13px;
    flex-shrink: 0;
  }

  /* conta: circulo, sem texto */
  .btn-login {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    flex-shrink: 0;
  }
  .btn-login::before { content: '\1F464'; font-size: 16px; line-height: 1; }

  /* com sessao iniciada: so o avatar, sem nome nem cargo */
  .topbar .u-btn { padding: 2px !important; gap: 0 !important; }
  .topbar .u-btn > span { display: none !important; }
  .topbar .u-av { width: 30px !important; height: 30px !important; }
}

@media (max-width: 420px) {
  .topbar-title { font-size: 13.5px; letter-spacing: .3px; }
  .topbar-logo  { width: 26px; height: 26px; }
  #menuBtn      { width: 30px; height: 30px; }
  .search-input { padding: 7px 10px; }
  .search-btn   { padding: 8px 11px; }
  .btn-login    { width: 30px; height: 30px; }
  .topbar .u-av { width: 27px !important; height: 27px !important; }
}

/* ecras muito estreitos: nome fica, mas compacto (antes desaparecia por completo) */
@media (max-width: 330px) {
  .topbar-title { font-size: 11px; letter-spacing: .1px; }
}
