/* As fontes (Bricolage Grotesque e DM Sans) agora vêm de fonts.css, hospedadas localmente. */

:root {
  color-scheme: dark;
  --bg: #090d15;
  --surface: #141c29;
  --text: #f6f8fc;
  --muted: #abb6c7;
  --accent: #6ee6cb;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 'DM Sans', Arial, sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:focus, a:focus, input:focus, video:focus { outline: 3px solid var(--accent); outline-offset: 4px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
button svg, a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; flex: 0 0 auto; }
.topbar { display: flex; position: relative; z-index: 2; align-items: center; justify-content: space-between; padding: 0 5%; height: 70px; border-bottom: 1px solid rgba(255,255,255,.08); background: var(--bg); }
.brand { display: flex; align-items: center; padding: 0; border: 0; background: none; color: var(--text); font: 800 21px 'Bricolage Grotesque', Arial, sans-serif; letter-spacing: -.05em; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; margin-right: 10px; color: var(--accent); stroke: none; }
.brand-accent { color: var(--accent); }
.main-nav { display: flex; align-self: stretch; }
.main-nav button { position: relative; padding: 0 17px; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.main-nav button:hover, .main-nav .active { color: var(--text); }
.main-nav .active:after { content: ''; position: absolute; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); left: 17px; right: 17px; bottom: -1px; }
.header-actions { display: flex; align-items: center; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0; width: 42px; height: 42px; border: 1px solid rgba(210,225,250,.18); border-radius: 50%; background: rgba(23,32,47,.78); }
.icon-btn + .icon-btn { margin-left: 10px; }
.icon-btn:hover, .icon-btn.active { border-color: var(--accent); color: var(--accent); }
.header-search { width: auto; padding: 0 14px; border-radius: 7px; font-size: 14px; font-weight: 700; }
.header-search svg { width: 19px; height: 19px; margin-right: 7px; }
.hero { height: 560px; height: clamp(510px,40vw,670px); position: relative; z-index: 0; display: flex; align-items: center; padding: 0 5% 54px; }
.hero-art { position: absolute; top: 0; right: 0; bottom: 0; left: 13%; z-index: -1; background: #141c29 center 46% / cover no-repeat; }
.hero-art:after { position: absolute; content: ''; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(0deg,#090d15 0%,rgba(9,13,21,.94) 9%,rgba(9,13,21,.28) 34%,transparent 70%), linear-gradient(90deg,#090d15 0%,rgba(9,13,21,.94) 12%,rgba(9,13,21,.51) 43%,transparent 69%); }
.hero-copy { width: 54%; max-width: 680px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; }
.eyebrow span { display: block; width: 7px; height: 7px; border-radius: 50%; margin-right: 9px; background: var(--accent); box-shadow: 0 0 13px rgba(110,230,203,.5); }
h1,h2,h3 { font-family: 'Bricolage Grotesque', Arial, sans-serif; margin: 0; letter-spacing: -.042em; line-height: 1.1; }
.hero h1 { font-size: 82px; font-size: clamp(64px,7.55vw,121px); max-width: 100%; margin: 12px 0 15px; font-weight: 800; line-height: .94; }
.hero-meta { margin: 0 0 15px; color: #e3ebf7; font-weight: 700; font-size: 14px; }
.meta-dot { display: inline-block; margin: 0 9px; color: var(--accent); }
.hero-description { margin: 0; max-width: 412px; color: #cad4e4; font-size: 16px; line-height: 1.64; }
.hero-actions, .detail-actions { display: flex; flex-wrap: wrap; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 0 19px; border: 1px solid transparent; border-radius: 8px; font-weight: 800; text-decoration: none; font-size: 14px; line-height: 1.25; }
.btn + .btn { margin-left: 9px; }
.btn svg { margin-right: 7px; }
.primary { color: #090d15; background: #f6f8fc; border-color: #f6f8fc; }
.primary:hover { background: var(--accent); border-color: var(--accent); }
.secondary { color: var(--text); background: rgba(28,39,56,.78); border-color: rgba(210,225,250,.21); }
.secondary:hover { background: #344359; border-color: #d8e2f0; }
.hero-controls { position: absolute; display: flex; align-items: center; bottom: 70px; right: 5%; }
.hero-controls .icon-btn { width: 34px; height: 34px; margin: 0; background: rgba(9,13,21,.72); }
.hero-controls .icon-btn svg { width: 17px; height: 17px; }
.slide-previews { display: flex; margin: 0 10px; }
.slide-preview { width: 67px; height: 42px; padding: 0; border: 2px solid rgba(238,248,255,.22); background: var(--surface); border-radius: 7px; opacity: .65; overflow: hidden; }
.slide-preview + .slide-preview { margin-left: 7px; }
.slide-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide-preview.active, .slide-preview:hover { border-color: var(--accent); opacity: 1; }
.slide-preview.active { box-shadow: 0 0 15px rgba(110,230,203,.25); }
.content { padding: 0 5% 38px; min-height: 35vh; }
.hero:not([hidden]) + .content { position: relative; margin-top: -26px; }
.section { margin-bottom: 37px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.section-head h2 { font-size: 27px; font-weight: 800; }
.section-head .section-link { display: inline-flex; align-items: center; background: none; border: 0; padding: 4px 0 4px 9px; color: var(--muted); font-size: 13px; font-weight: 700; }
.section-link svg { width: 15px; height: 15px; margin-left: 4px; }
.section-link:hover { color: var(--accent); }
.tiles { display: flex; overflow-x: auto; padding: 6px 5px 10px; margin: -6px -5px -10px; scrollbar-width: thin; scrollbar-color: #2f3b50 transparent; }
.tile { display: block; flex: 0 0 calc((100% - 56px) / 5); width: 225px; min-width: 177px; padding: 0; margin-right: 14px; border: 1px solid rgba(214,231,255,.1); border-radius: 10px; background: var(--surface); color: var(--text); text-align: left; overflow: hidden; transition: border-color .18s ease, background .18s ease; }
.tile:last-child { margin-right: 0; }
.tile:hover, .tile:focus { border-color: var(--accent); background: #1a2636; }
.tile-image { display: block; position: relative; width: 100%; padding-top: 59%; overflow: hidden; background: #222d40; }
.tile-image img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease; }
.tile:hover .tile-image img { transform: scale(1.045); }
.tile-image:after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(transparent 58%,rgba(5,10,18,.6) 100%); }
.duration { position: absolute; z-index: 1; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 5px; background: rgba(9,13,21,.83); font-size: 11px; color: #fff; font-weight: 700; }
.tile-copy { display: block; padding: 9px 11px 10px; }
.tile-title { display: block; font-weight: 800; font-size: 15px; }
.tile-caption { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.page-title { font-size: 48px; margin: 0 0 20px; }
.page { padding-top: 49px; }
.page-description { color: var(--muted); margin: 0 0 22px; }
.page .tiles { flex-wrap: wrap; overflow: visible; }
.page .tile { margin-bottom: 22px; }
.page .tile:nth-child(5n) { margin-right: 0; }
.empty { padding: 26px; background: var(--surface); border: 1px solid rgba(255,255,255,.09); border-radius: 9px; color: var(--muted); }
.search-field { display: block; width: 100%; max-width: 550px; height: 52px; padding: 0 15px; margin-bottom: 23px; border: 1px solid rgba(224,237,255,.27); border-radius: 7px; color: #fff; background: var(--surface); }
.footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.09); padding: 22px 5%; color: var(--muted); font-size: 14px; }
.footer span { font-weight: 800; color: #e4e6ec; }
.footer button { background: none; border: 0; padding: 5px 0 5px 15px; color: inherit; }
.footer button:hover { color: var(--accent); }
.footer svg { width: 17px; height: 17px; }
.overlay { position: fixed; z-index: 4; top: 0; right: 0; bottom: 0; left: 0; overflow-y: auto; padding: 42px 5%; background: rgba(4,8,14,.91); }
.overlay-card { max-width: 810px; margin: auto; position: relative; background: var(--surface); border: 1px solid rgba(219,235,255,.15); border-radius: 14px; overflow: hidden; }
.overlay-card .close { position: absolute; z-index: 2; right: 14px; top: 14px; background: var(--bg); }
.detail-art { height: 295px; background-size: cover; background-position: center; position: relative; }
.detail-art:after { position: absolute; content: ''; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(transparent 45%,var(--surface) 100%); }
.detail-body { padding: 26px 30px 31px; }
.detail-art + .detail-body { position: relative; margin-top: -51px; }
.detail-body h2 { font-size: 40px; margin-bottom: 12px; padding-right: 38px; }
.detail-body p { color: #c8cad2; }
.detail-body .credit { color: var(--muted); font-size: 13px; margin-top: 20px; }
.detail-body a { color: var(--accent); }
.detail-body a.primary { color: var(--bg); }
.watch-providers { margin-top: 25px; }
.watch-providers h3 { font-size: 21px; margin-bottom: 12px; }
.watch-providers p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.provider-links { display: flex; flex-wrap: wrap; }
.provider-links .btn { margin: 0 8px 6px 0; }
.provider-links .secondary { color: var(--text); }
.provider-links svg { width: 17px; height: 17px; margin: 0 0 0 5px; }
.episode-list { margin: 21px 0 0; padding: 0; list-style: none; }
.episode-season {
  margin-top: 21px;
  padding: 9px 12px;
  border: 1px solid rgba(219,235,255,.15);
  border-radius: 7px;
  color: inherit;
  background: #202c3d;
  font: inherit;
}
.episode-season:focus { outline: 3px solid var(--accent); outline-offset: 4px; }
.episode-season + .episode-list { margin-top: 10px; }
.episode-list li + li { margin-top: 8px; }
.episode-list button { width: 100%; padding: 12px; text-align: left; border: 1px solid rgba(219,235,255,.15); border-radius: 7px; background: #202c3d; }
.episode-list button:hover { border-color: var(--accent); }
.episode-list svg { margin-right: 8px; color: var(--accent); }
.episode-list span { color: var(--muted); float: right; }
.toast { position: fixed; z-index: 5; bottom: 18px; right: 5%; padding: 11px 15px; margin: 0; color: var(--bg); background: var(--accent); border-radius: 6px; font-weight: 800; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.toast.show { opacity: 1; }
.tile-progress { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); }
.tile-progress span { display: block; height: 100%; background: var(--accent); }
.chips { display: flex; flex-wrap: wrap; margin: -8px 0 20px -8px; }
.chip { margin: 8px 0 0 8px; padding: 8px 15px; border: 1px solid rgba(210,225,250,.22); border-radius: 999px; background: rgba(23,32,47,.78); color: var(--muted); font-size: 13px; font-weight: 700; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.tv .chip { font-size: 16px; padding: 10px 18px; }
.tv .topbar { height: 85px; }
.tv .main-nav button, .tv .btn { font-size: 17px; }
.tv .tile-title { font-size: 18px; }
.tv .tile-caption { font-size: 14px; }
.tv .btn { min-height: 51px; }
.tv .overlay-card { max-width: 1000px; }

@media(max-width: 850px) {
  .main-nav button { padding: 0 10px; }
  .main-nav .active:after { left: 10px; right: 10px; }
  .hero { height: 520px; }
  .tile { flex-basis: calc((100% - 42px) / 4); }
  .page .tile:nth-child(n) { margin-right: 14px; }
  .page .tile:nth-child(4n) { margin-right: 0; }
}
@media(max-width: 640px) {
  .topbar, .tv .topbar { flex-wrap: wrap; height: auto; min-height: 100px; padding-top: 10px; }
  .brand { font-size: 17px; }
  .brand svg { width: 28px; height: 28px; }
  .header-actions { order: 1; }
  .header-actions .icon-btn { width: 38px; height: 38px; }
  .header-search { padding: 0; border-radius: 50%; }
  .header-search svg { margin: 0; }
  .header-search span { display: none; }
  .main-nav { order: 2; width: 100%; margin-top: 5px; height: 46px; overflow-x: auto; }
  .main-nav button, .tv .main-nav button { font-size: 13px; }
  .main-nav button:first-child { padding-left: 0; }
  .main-nav button:first-child:after { left: 0; }
  .hero { height: 530px; align-items: flex-end; padding-bottom: 105px; }
  .hero-art { left: 0; background-position: 78% top; }
  .hero-art:after { background: linear-gradient(0deg,#090d15 4%,rgba(9,13,21,.94) 22%,rgba(9,13,21,.69) 42%,transparent 83%); }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: 59px; }
  .hero-description { font-size: 15px; }
  .hero-controls { bottom: 34px; }
  .slide-preview { width: 58px; height: 44px; }
  .hero-controls .icon-btn { width: 44px; height: 44px; }
  .hero:not([hidden]) + .content { margin-top: 0; }
  .section-head h2 { font-size: 23px; }
  .tile { flex: 0 0 46%; min-width: 145px; margin-right: 12px; }
  .page .tile:nth-child(n) { margin-right: 12px; }
  .page .tile:nth-child(2n) { margin-right: 0; }
  .page-title { font-size: 37px; }
  .detail-art { height: 225px; }
  .detail-body { padding: 19px; }
  .detail-body h2 { font-size: 31px; }
  .overlay { padding-top: 25px; }
}
@media(prefers-reduced-motion: reduce) {
  .tile, .tile-image img { transition: none; }
}
