:root {
  --navy: #001542;
  --navy-soft: #0b2a5a;
  --teal: #086465;
  --teal-dark: #064e50;
  --gold: #ffb30d;
  --cream: #fff8e9;
  --ink: #14213b;
  --muted: #637086;
  --line: #dfe6ee;
  --surface: #ffffff;
  --page: #f3f6f8;
  --shadow: 0 20px 55px rgba(0, 21, 66, .12);
}

html { scroll-behavior: smooth; }

body {
  min-width: 280px;
  background: var(--page);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
}

button, input { font: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: -5rem;
  left: 1rem;
  padding: .75rem 1rem;
  border-radius: 0 0 10px 10px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus { top: 0; }

.site-header {
  height: auto;
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand img {
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
}

.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand small { color: #c6d2ea; letter-spacing: .08em; }
.brand strong { font-family: Lora, Georgia, serif; font-size: 1.04rem; letter-spacing: .04em; }

.header-badge {
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: #dce7f7;
  font-size: .8rem;
  font-weight: 800;
}

.section-nav {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid #e1e7ef;
  background: rgba(255,255,255,.97);
  box-shadow: 0 8px 24px rgba(0,21,66,.08);
  backdrop-filter: blur(12px);
}

.section-nav-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 54px;
  margin: auto;
  display: flex;
  align-items: center;
}

.desktop-menu { width: 100%; display: flex; align-items: center; gap: 5px; }
.desktop-menu a, .mobile-menu-links a {
  border-radius: 9px;
  color: #344159;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}
.desktop-menu a { padding: 10px 12px; }
.desktop-menu a:hover, .mobile-menu-links a:hover { background: #e8f4f2; color: var(--teal-dark); }
.desktop-menu a[aria-current="page"], .mobile-menu-links a[aria-current="page"] { background: var(--navy); color: white; }
.mobile-menu { display: none; width: 100%; }
.mobile-menu summary {
  min-height: 50px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #596579;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { font-size: 1.25rem; }
.mobile-menu-links {
  position: absolute;
  inset: 100% 0 auto;
  padding: 8px 12px 13px;
  display: grid;
  gap: 4px;
  border-top: 1px solid #e5eaf1;
  border-radius: 0 0 16px 16px;
  background: white;
  box-shadow: 0 18px 34px rgba(0,21,66,.15);
}
.mobile-menu-links a { padding: 12px 14px; }

main { padding-bottom: 54px; }

.cine {
  position: relative;
  isolation: isolate;
  width: min(1180px, calc(100% - 32px));
  min-height: 280px;
  margin: 30px auto 0;
  padding: clamp(36px, 6vw, 70px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(105deg, rgba(0,21,66,.98) 10%, rgba(0,72,82,.9) 100%), url("img/backCine.png") center/cover;
  box-shadow: var(--shadow);
}

.cine::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 290px;
  height: 290px;
  right: -80px;
  bottom: -160px;
  border: 42px solid rgba(255,179,13,.13);
  border-radius: 50%;
}

.cine-copy { max-width: 680px; }
.cine .eyebrow {
  margin: 0 0 10px;
  color: #9ad8d2;
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cine h1 {
  margin: 0;
  color: #fff;
  font-family: Lora, Georgia, serif;
  font-size: clamp(2.35rem, 7vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.cine h1 span { color: var(--gold); font-style: normal; text-shadow: none; }
.cine-copy > p:last-child { max-width: 590px; margin: 20px 0 0; color: #dce7f7; font-size: clamp(1rem, 2vw, 1.13rem); }

.search-bar {
  position: relative;
  z-index: 2;
  width: min(1050px, calc(100% - 48px));
  margin: -34px auto 34px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 20px;
  background: rgba(255,255,255,.97);
  box-shadow: var(--shadow);
  text-align: left;
}

.search-bar > label, #filt legend {
  color: var(--navy);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.search-field { position: relative; margin-top: 8px; }
.search-field > span {
  position: absolute;
  left: 17px;
  top: 50%;
  color: var(--teal);
  font-size: 1.55rem;
  font-weight: 800;
  transform: translateY(-53%);
}

#searchInput {
  width: 100%;
  height: 52px;
  padding: 0 18px 0 49px;
  border: 1px solid #cdd7e2;
  border-radius: 13px;
  background: #f8fafb;
  color: var(--ink);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
#searchInput:focus { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(8,100,101,.12); }

#filt {
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
}
#filt legend { width: 100%; margin-bottom: 7px; }
#filt label { cursor: pointer; }
#filt input { position: absolute; opacity: 0; pointer-events: none; }
#filt label span {
  display: block;
  padding: 8px 13px;
  border: 1px solid #dbe3eb;
  border-radius: 999px;
  background: #fff;
  color: #4d5a6f;
  font-size: .84rem;
  font-weight: 700;
  transition: .18s ease;
}
#filt label:hover span { border-color: #86b5b2; color: var(--teal-dark); }
#filt input:focus-visible + span { outline: 3px solid rgba(255,179,13,.55); outline-offset: 2px; }
#filt input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; box-shadow: 0 6px 14px rgba(0,21,66,.18); }

.result-status { margin: 16px 0 0; color: var(--muted); font-size: .86rem; font-weight: 600; }

.caixa {
  width: min(1050px, calc(100% - 32px));
  max-width: none;
  margin: 0 auto 22px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(190px, 28%) 1fr;
  align-items: stretch;
  gap: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0,21,66,.07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.caixa:hover { transform: translateY(-2px); border-color: #c8d6e1; box-shadow: 0 18px 42px rgba(0,21,66,.11); }

.banner { width: 100%; min-height: 100%; margin: 0; display: block; overflow: hidden; border-radius: 15px; background: #dfe7eb; }
.banner img { width: 100%; height: 100%; min-height: 310px; max-width: none; display: block; border-radius: 0; object-fit: cover; }
.banner img:hover { outline: none; }

.inform { min-width: 0; padding: 10px 10px 8px 0; display: flex; flex-direction: column; border-radius: 0; background: transparent; }
.inform #biblia {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #4d5a6f;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .91rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.7;
}
.inform #biblia > b:first-of-type { color: var(--navy); }

#biblia #classif, #biblia #classiD, #biblia #classiE, #biblia #classiA {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaf2f2;
  color: var(--teal-dark);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
#biblia #classif { background: #fff0d0; color: #7c5000; }
#biblia #classiD { background: #e7edf8; color: var(--navy); }
#biblia #classiA { background: #f5e8f4; color: #722a67; }
#biblia #classif b, #biblia #classiD b, #biblia #classiE b, #biblia #classiA b { color: inherit; }

.inform > p { margin: 0 0 16px; color: #596579; font-family: "DM Sans", Arial, sans-serif; font-size: .98rem; line-height: 1.72; }
.inform hr { height: 1px; margin: auto 0 0; border: 0; background: var(--line); }

.film { width: 100%; margin: 14px 0; border-radius: 12px; background: transparent; }
.film [id="btn"], body > [id="btn"] {
  min-height: 46px;
  margin: 0;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--teal);
  color: #fff;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .93rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.film [id="btn"]::after { content: "  ›"; margin-left: 8px; font-size: 1.2rem; }
.film [id="btn"]:hover { background: var(--teal-dark); box-shadow: 0 8px 18px rgba(8,100,101,.2); transform: translateY(-1px); }

.inform .eps { margin: 10px 0; }
.inform .eps p { margin: 12px 0 8px; color: var(--navy); font-family: "DM Sans", Arial, sans-serif; font-size: .93rem; font-weight: 800; text-align: left; }
.eps [id="capt"] { margin: 10px 0; color: var(--navy); font-family: "DM Sans", Arial, sans-serif; }
.inform .eps a, .inform .eps [id="off"] { display: inline-flex; margin: 3px 2px; padding: 7px 11px; border-radius: 8px; background: var(--teal); color: #fff; font-size: .8rem; font-weight: 700; text-decoration: none; }
.inform .eps a:hover { background: var(--navy); color: #fff; }

footer {
  padding: 24px 16px;
  border-top: 4px solid var(--gold);
  background: var(--navy);
  color: #cbd6e7;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .78rem;
  font-style: normal;
}

@media (max-width: 820px) {
  .header-inner { min-height: 72px; }
  .brand img { width: 44px; height: 44px; }
  .section-nav-inner { width: min(100% - 22px, 1180px); min-height: 50px; }
  .desktop-menu { display: none; }
  .mobile-menu { display: block; }
  .cine { min-height: 240px; margin-top: 20px; }
  .caixa { grid-template-columns: minmax(160px, 34%) 1fr; gap: 17px; }
  .banner img { min-height: 280px; }
}

@media (max-width: 600px) {
  .header-inner { width: min(100% - 22px, 1180px); }
  .brand strong { font-size: .87rem; }
  .brand small { font-size: .72rem; }
  .header-badge { display: none; }
  .cine { width: calc(100% - 20px); min-height: 225px; padding: 32px 24px 52px; border-radius: 20px; }
  .cine::after { width: 210px; height: 210px; right: -75px; bottom: -130px; border-width: 30px; }
  .cine h1 { font-size: clamp(2.2rem, 15vw, 3.4rem); }
  .cine-copy > p:last-child { font-size: .95rem; line-height: 1.55; }
  .search-bar { width: calc(100% - 36px); margin-top: -28px; padding: 18px; border-radius: 17px; }
  #filt { gap: 7px; }
  #filt label span { padding: 7px 10px; font-size: .76rem; }
  .caixa { width: calc(100% - 20px); display: block; padding: 12px; border-radius: 18px; }
  .banner { aspect-ratio: 16 / 10; min-height: 0; margin-bottom: 16px; }
  .banner img { min-height: 0; }
  .inform { padding: 4px 4px 0; }
  .inform #biblia { font-size: .86rem; }
  .inform > p { font-size: .91rem; line-height: 1.65; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
