:root {
  --bg: #070708;
  --bg-elev: #0e0e11;
  --surface: #141418;
  --border: #2c2c34;
  --text: #f2f2f5;
  --muted: #8c8c9b;
  --accent: #c9a227;
  --accent-dim: rgba(201, 162, 39, 0.35);
  --pop: #c41e3a;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-artist: "Syne", system-ui, sans-serif;
  --radius: 10px;
  --gutter: clamp(1rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.page-frame {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7, 7, 8, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: 100%;
  padding: 0.65rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.brand:hover {
  color: var(--accent);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--surface) 40%, #1a1a22);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 3px;
  border: 2px solid var(--pop);
  opacity: 0.85;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}

.nav-main a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--accent);
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}
.lang-btn {
  padding: 0.35rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.lang-btn[aria-pressed="true"] {
  background: var(--accent);
  color: #0a0a0c;
}
.lang-btn:hover:not([aria-pressed="true"]) {
  color: var(--text);
}

.search-bar {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  flex: 1 1 280px;
  min-width: 0;
  margin-left: auto;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.55rem 0.9rem;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
}
.search-bar input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.search-bar select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.85rem;
  max-width: 140px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: filter 0.12s ease, transform 0.1s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0c;
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.app-main {
  flex: 1;
  width: 100%;
  padding: 0 var(--gutter) 3rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Full-bleed sections */
.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.hero {
  position: relative;
  min-height: min(52vh, 520px);
  display: flex;
  align-items: flex-end;
  background: var(--surface);
  margin-bottom: 2.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  filter: brightness(0.4) saturate(0.85);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    rgba(7, 7, 8, 0.92) 35%,
    rgba(7, 7, 8, 0.45) 70%,
    rgba(7, 7, 8, 0.55) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2.5rem var(--gutter) 2rem;
}

.hero-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  line-height: 0.95;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  max-width: 20ch;
}

.hero .lead {
  margin: 0;
  color: #b9b9c4;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  max-width: 52ch;
  font-weight: 400;
}

.stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
}

.stat-pill {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}
.stat-pill strong {
  color: var(--text);
  font-weight: 700;
}

.ad-band {
  width: 100%;
  min-height: 90px;
  margin: 2rem 0;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: linear-gradient(180deg, var(--bg-elev), var(--surface));
  display: flex;
  align-items: center;
  justify-content: center;
}

.section {
  margin-top: 2.75rem;
  width: 100%;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}

.section-head .meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr));
  gap: clamp(0.65rem, 1.5vw, 1.1rem);
}

@media (min-width: 900px) {
  .grid-cards {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  }
}

.movie-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: inherit;
  font: inherit;
  width: 100%;
  display: block;
}
.movie-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.movie-card .poster {
  aspect-ratio: 2/3;
  background: linear-gradient(160deg, #1a1a22, #0a0a0e);
  position: relative;
  overflow: hidden;
}

.movie-card .poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-ph {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: linear-gradient(135deg, #1e1e26 0%, #12121a 50%, #1a1a24 100%);
}

.movie-card .meta {
  padding: 0.65rem 0.7rem 0.85rem;
}
.movie-card .title {
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.movie-card .sub {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  display: inline-flex;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.chip-static {
  cursor: default;
  background: rgba(201, 162, 39, 0.12);
  border-color: var(--accent-dim);
  color: var(--accent);
}
.chip-static:hover {
  color: var(--accent);
}

.chip-count {
  opacity: 0.65;
  font-weight: 500;
  font-size: 0.7rem;
}

.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 0.5rem;
}
.year-grid button {
  padding: 0.55rem 0.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.year-grid button:hover {
  border-color: var(--pop);
  color: var(--pop);
}
.year-grid small {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.15rem;
}

.pagination {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.pagination span {
  font-size: 0.85rem;
  color: var(--muted);
  margin-right: auto;
}

/* Página de filme */
.film-page {
  width: 100%;
}

.film-page__wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.film-page > .film-page__wrap:first-child {
  padding-top: 0.35rem;
}

.detail-hero-band {
  position: relative;
  min-height: min(42vh, 480px);
  margin: 0 calc(-1 * var(--gutter)) 2rem;
  width: calc(100% + 2 * var(--gutter));
  max-width: none;
  background: var(--surface);
}
.detail-hero-band .hero-bg {
  filter: brightness(0.38);
}
.detail-hero-band .hero-inner {
  padding-top: 3rem;
  padding-bottom: 2rem;
}
.hero-inner--film {
  display: flex;
  align-items: flex-end;
  min-height: min(42vh, 480px);
}
.detail-hero-band h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  max-width: 18ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8);
}

.film-top {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  width: 100%;
}

@media (max-width: 900px) {
  .film-top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .film-aside {
    max-width: 280px;
    position: static;
  }
  .film-intro .chips {
    justify-content: center;
  }
}

.film-aside {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.film-aside__poster {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  display: block;
}

.film-aside__poster--empty {
  aspect-ratio: 2/3;
  background: linear-gradient(160deg, #1a1a22, #0e0e12);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.film-stat-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.film-stat-list > div {
  margin: 0;
  padding: 0.55rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.film-stat-list dt {
  margin: 0;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}

.film-stat-list dd {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.film-primary {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-width: 0;
  width: 100%;
}

.film-title-standalone {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.5rem;
}

.film-intro {
  width: 100%;
}

.detail-alt-title {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  font-weight: 500;
}

.film-primary__split {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 300px);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  width: 100%;
}

@media (max-width: 900px) {
  .film-primary__split {
    grid-template-columns: 1fr;
  }
}

.film-panel--synopsis {
  min-width: 0;
}

.film-themes {
  padding: 1rem 1.15rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.film-panel__h {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.film-panel {
  min-width: 0;
}

.film-panel__scroll {
  max-height: none;
}

.film-panel__scroll--crew {
  max-height: min(55vh, 480px);
  overflow-y: auto;
  padding-right: 0.35rem;
}

.film-panel__scroll--cast {
  max-height: min(70vh, 640px);
  overflow-y: auto;
  padding-right: 0.35rem;
}

.film-panel__scroll--gallery {
  max-height: min(55vh, 520px);
  overflow-y: auto;
  padding-right: 0.35rem;
}

.film-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  width: 100%;
}

@media (max-width: 960px) {
  .film-split {
    grid-template-columns: 1fr;
  }
}

.film-panel--wide {
  width: 100%;
}

.film-panel--trailers .video-grid {
  width: 100%;
}

.synopsis-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.7;
  color: #d8d8e0;
  max-width: none;
  width: 100%;
}

.image-gallery--poster button {
  aspect-ratio: 2/3;
}

.table-staff {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.table-staff th,
.table-staff td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.table-staff th {
  color: var(--muted);
  font-weight: 500;
  width: 32%;
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 1rem;
}

.cast-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  text-align: center;
}
.cast-card img {
  width: 100%;
  aspect-ratio: 138/175;
  object-fit: cover;
  background: var(--bg-elev);
}
.cast-card .cname {
  padding: 0.45rem 0.45rem 0.1rem;
  font-weight: 700;
  font-size: 0.8rem;
}
.cast-card .cchar {
  padding: 0 0.45rem 0.55rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.video-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .video-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

.video-box {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.video-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 0.5rem;
}
.image-gallery button {
  padding: 0;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-elev);
}
.image-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-footer {
  margin-top: auto;
  padding: 1.5rem var(--gutter);
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.loading,
.error-banner {
  padding: 3rem var(--gutter);
  text-align: center;
  width: 100%;
}
.loading {
  color: var(--muted);
}
.error-banner {
  color: #f0a0a0;
  background: rgba(196, 30, 58, 0.12);
  border: 1px solid rgba(196, 30, 58, 0.35);
  border-radius: var(--radius);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.empty-state {
  color: var(--muted);
  padding: 2.5rem 1rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  width: 100%;
}
.empty-state a {
  color: var(--accent);
  font-weight: 600;
}

.lang-columns {
  columns: min(100%, 320px) 3;
  gap: 0.65rem;
}
.lang-columns .chip {
  break-inside: avoid;
  margin-bottom: 0.45rem;
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.artists-surface .section-head h2 {
  font-family: var(--font-artist);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}
.artists-surface .section-head .meta {
  font-family: var(--font-body);
}
.artists-surface .pagination {
  font-family: var(--font-body);
}

.artists-lead {
  color: var(--muted);
  max-width: 52rem;
  margin: 0 0 1.25rem;
  font-family: var(--font-artist);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.artists-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 36rem;
}
.artists-toolbar input[type="search"] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.grid-artists {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr));
  gap: 0.85rem;
  width: 100%;
}

.artist-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.artist-card--text-only {
  padding: 0;
}
.artist-card--text-only .artist-card__meta {
  padding: 0.75rem 0.65rem 0.85rem;
}
.artist-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.artist-card__photo {
  aspect-ratio: 2/3;
  background: #0a0a0c;
  overflow: hidden;
}
.artist-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.artist-card__meta {
  padding: 0.55rem 0.6rem 0.7rem;
}
.artist-card__name {
  font-family: var(--font-artist);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.artist-card__sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.25rem;
  line-height: 1.3;
}

.artist-detail {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter) 2rem;
}
.artist-detail__head {
  display: grid;
  grid-template-columns: min(185px, 42vw) 1fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
  margin-bottom: 1.75rem;
}
.artist-detail__head--no-photo {
  grid-template-columns: 1fr;
}
@media (max-width: 560px) {
  .artist-detail__head {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .artist-detail__stats {
    justify-items: start;
  }
}
.artist-detail__photo-wrap {
  width: 100%;
  max-width: 185px;
}
.artist-detail__photo {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  border: 1px solid var(--border);
}
.artist-detail__intro h1 {
  font-family: var(--font-artist);
  font-weight: 700;
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #fff;
}
.artists-surface .film-panel__h {
  font-family: var(--font-artist);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.artists-surface .artist-detail__films .section-head .film-panel__h {
  font-size: 1.35rem;
}
.artist-detail__stats {
  margin: 0;
}
.artist-bio {
  margin-bottom: 2rem;
}
.artist-bio__text {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
  white-space: pre-wrap;
}
.artist-detail__films {
  margin-top: 0.5rem;
}
