/*
Theme Name: Mozflix
Theme URI: https://example.com/mozflix
Author: Mozflix
Author URI: https://example.com
Description: Tema WordPress estilo Netflix para catálogo de filmes, séries e animes usando a API do TMDb. Inclui hero rotativo, filtros por gênero estilo Netflix, paginação e player via embed.
Version: 1.7.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mozflix
Tags: dark, full-width-template, custom-colors, custom-menu, theme-options, translation-ready
*/

:root {
  --bg: #0a0a0c;
  --bg-2: #141418;
  --card: #1c1c22;
  --border: #2a2a31;
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --primary: #e50914;
  --primary-hover: #f6121d;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Navbar */
.cf-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 14px 4vw; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: background .25s ease; background: linear-gradient(to bottom, rgba(0,0,0,.85), transparent); }
.cf-nav.scrolled { background: rgba(10,10,12,.95); backdrop-filter: blur(10px); }
.cf-nav .cf-brand { color: var(--primary); font-weight: 900; font-size: 26px; letter-spacing: -.5px; }
.cf-nav .cf-menu { display: flex; gap: 18px; flex: 1; margin-left: 28px; overflow-x: auto; }
.cf-nav .cf-menu a { font-size: 14px; color: #e5e5e5; white-space: nowrap; }
.cf-nav .cf-menu a:hover { color: var(--primary); }
.cf-nav form { display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.55); border: 1px solid var(--border); border-radius: 4px; padding: 6px 8px; }
.cf-nav form input { background: transparent; border: 0; color: var(--text); outline: none; width: 180px; }

/* Hero */
.cf-hero { position: relative; height: 85vh; min-height: 460px; overflow: hidden; }
.cf-hero .cf-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.cf-hero .cf-slide.active { opacity: 1; }
.cf-hero .cf-slide img { width: 100%; height: 100%; object-fit: cover; }
.cf-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 5%, transparent 60%), linear-gradient(to right, rgba(0,0,0,.7), transparent 60%); pointer-events: none; }
.cf-hero .cf-hero-info { position: absolute; left: 4vw; bottom: 12vh; max-width: 640px; z-index: 2; }
.cf-hero h1 { font-size: clamp(28px, 4.5vw, 60px); font-weight: 900; margin: 0 0 12px; }
.cf-hero p { font-size: clamp(13px, 1.1vw, 16px); color: #e5e5e5; line-height: 1.45; margin: 0 0 22px; }
.cf-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 4px; font-weight: 600; font-size: 15px; }
.cf-btn-primary { background: #fff; color: #000; }
.cf-btn-primary:hover { background: rgba(255,255,255,.85); }
.cf-btn-secondary { background: rgba(109,109,110,.7); color: #fff; margin-left: 10px; }
.cf-btn-secondary:hover { background: rgba(109,109,110,.5); }

/* Rows */
.cf-row { padding: 28px 4vw; }
.cf-row h2 { font-size: clamp(18px, 1.5vw, 24px); margin: 0 0 14px; }
.cf-row .cf-scroller { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.cf-row .cf-scroller::-webkit-scrollbar { display: none; }
.cf-card { flex: 0 0 auto; width: 230px; }
.cf-card .cf-poster { aspect-ratio: 2/3; border-radius: 4px; overflow: hidden; background: var(--card); transition: transform .2s ease; }
.cf-card:hover .cf-poster { transform: scale(1.06); outline: 2px solid var(--primary); }
.cf-card img { width: 100%; height: 100%; object-fit: cover; }
.cf-card p { margin: 10px 0 0; font-size: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Category browser */
.cf-browser { padding: 100px 4vw 40px; }
.cf-browser-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.cf-browser-head h1 { font-size: clamp(22px, 2.4vw, 36px); margin: 0; }
.cf-dropdown { position: relative; }
.cf-dropdown > button { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: #fff; border: 1px solid #fff; padding: 8px 14px; font-size: 14px; cursor: pointer; }
.cf-dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; max-height: 360px; overflow-y: auto; background: rgba(0,0,0,.92); border: 1px solid #333; padding: 6px 0; display: none; z-index: 30; }
.cf-dropdown.open .cf-dropdown-menu { display: block; }
.cf-dropdown-menu button { width: 100%; text-align: left; background: transparent; border: 0; color: #ddd; padding: 8px 14px; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: space-between; }
.cf-dropdown-menu button:hover { background: rgba(255,255,255,.08); color: #fff; }
.cf-dropdown-menu button.active { color: var(--primary); font-weight: 600; }

.cf-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.cf-grid .cf-card { width: 100%; }

/* Pagination */
.cf-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 40px 0 10px; flex-wrap: wrap; }
.cf-pagination a, .cf-pagination span { padding: 8px 12px; border: 1px solid var(--border); border-radius: 4px; color: #ddd; font-size: 14px; min-width: 38px; text-align: center; }
.cf-pagination a:hover { background: var(--card); }
.cf-pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Single (movie/tv) */
.cf-single { padding-top: 64px; }
.cf-player { width: 100%; aspect-ratio: 16/9; background: #000; }
.cf-player iframe { width: 100%; height: 100%; border: 0; }
.cf-backdrop { position: relative; height: 60vh; min-height: 340px; }
.cf-backdrop img { width: 100%; height: 100%; object-fit: cover; }
.cf-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), transparent 70%); pointer-events: none; z-index: 1; }
.cf-play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; z-index: 2; }
.cf-play-btn .cf-play-circle { width: 96px; height: 96px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; color: #fff; font-size: 38px; box-shadow: 0 12px 40px rgba(0,0,0,.5); transition: background .2s ease; }
.cf-play-btn:hover .cf-play-circle { background: var(--primary-hover); transform: scale(1.05); }
.cf-meta { padding: 28px 4vw; max-width: 900px; }
.cf-meta h1 { font-size: clamp(26px, 3vw, 48px); margin: 0 0 8px; font-weight: 900; }
.cf-meta .cf-tags { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin: 12px 0 16px; }
.cf-meta .cf-tag { background: var(--card); padding: 3px 8px; border-radius: 4px; }
.cf-meta p.cf-overview { font-size: 15px; line-height: 1.6; color: #e5e5e5; }

/* Footer */
.cf-footer { position: relative; overflow: hidden; margin-top: 80px; border-top: 1px solid var(--border); background: rgba(5,5,7,.92); }
.cf-footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgba(229,9,20,.06), transparent 45%), radial-gradient(circle at 10% 30%, rgba(229,9,20,.04), transparent 40%); pointer-events: none; }
.cf-footer-glow { position: absolute; left: 0; right: 0; top: -80px; height: 80px; background: linear-gradient(to top, rgba(5,5,7,.92), transparent); pointer-events: none; }
.cf-footer-inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 56px 4vw 32px; }
.cf-footer-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.4fr) repeat(3, 1fr); }
.cf-footer-logo { display: inline-block; font-size: 28px; font-weight: 900; letter-spacing: -1px; color: var(--primary); margin-bottom: 16px; }
.cf-footer-brand p { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 360px; margin: 0 0 20px; }
.cf-footer-socials { display: flex; gap: 12px; }
.cf-footer-socials a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255,255,255,.03); color: var(--muted); transition: all .2s ease; }
.cf-footer-socials a:hover { color: var(--primary); border-color: rgba(229,9,20,.5); background: rgba(229,9,20,.08); transform: translateY(-2px); }
.cf-footer-socials svg { width: 18px; height: 18px; }
.cf-footer-col h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--text); margin: 0 0 18px; }
.cf-footer-col ul { list-style: none; margin: 0; padding: 0; }
.cf-footer-col li + li { margin-top: 11px; }
.cf-footer-col a, .cf-footer-col span { font-size: 14px; color: var(--muted); transition: color .2s ease; }
.cf-footer-col a:hover { color: var(--primary); }
.cf-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); margin-top: 48px; padding-top: 24px; }
.cf-footer-bottom p { margin: 0; color: var(--muted); font-size: 12px; }
.cf-footer-bottom p:last-child { text-transform: uppercase; letter-spacing: .12em; color: rgba(161,161,170,.7); }
@media (max-width: 900px) {
  .cf-footer-grid { grid-template-columns: 1fr 1fr; }
  .cf-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .cf-footer-grid { grid-template-columns: 1fr; }
  .cf-footer-bottom { flex-direction: column; text-align: center; }
}

/* Static pages */
.cf-page { max-width: 760px; margin: 0 auto; padding: 120px 4vw 60px; }
.cf-page h1 { font-size: clamp(26px, 3vw, 38px); font-weight: 900; margin: 0; }
.cf-page-sub { color: var(--muted); margin: 10px 0 0; }
.cf-page-body { margin-top: 28px; line-height: 1.7; font-size: 15px; color: #ddd; }
.cf-page-body h2 { font-size: 20px; margin: 28px 0 8px; color: var(--text); }
.cf-page-body ul { padding-left: 22px; }
.cf-page-body li { margin-bottom: 6px; }
.cf-page-body a { color: var(--primary); text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
  .cf-nav { padding: 10px 16px; }
  .cf-nav form input { width: 100px; }
  .cf-card { width: 150px; }
  .cf-hero { height: 70vh; }
  .cf-btn-secondary { margin-left: 0; }
}

/* Smart TV / D-pad navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
  transform: scale(1.04);
  transition: transform 120ms ease;
  z-index: 5;
  position: relative;
}
html { scroll-behavior: smooth; }
@media (min-width: 1920px) {
  html { font-size: 18px; }
  body { padding: 24px; }
}
@media (min-width: 2560px) {
  html { font-size: 22px; }
  body { padding: 40px; }
}

/* === v1.2.0 additions === */
.cf-skip { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 8px 14px; z-index: 100; }
.cf-skip:focus { left: 12px; top: 12px; }

/* Dropdown items now real anchors (a11y/HTML válido) */
.cf-dd-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; color: #ddd; font-size: 14px; }
.cf-dd-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.cf-dd-item.active { color: var(--primary); font-weight: 600; }

/* Episódios */
.cf-ep { display: flex; gap: 14px; padding: 12px; border-radius: 8px; border: 1px solid var(--border); background: transparent; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.cf-ep:hover { background: rgba(255,255,255,.04); }
.cf-ep.is-active { border-color: var(--primary); background: rgba(229,9,20,.10); }
.cf-ep-thumb { flex: 0 0 160px; aspect-ratio: 16/9; background: var(--card); border-radius: 4px; overflow: hidden; }
.cf-ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cf-ep-info { flex: 1; min-width: 0; }
.cf-ep-title { margin: 0; font-weight: 600; }
.cf-ep-desc  { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
@media (max-width: 640px) {
  .cf-ep { flex-direction: column; }
  .cf-ep-thumb { flex: 0 0 auto; width: 100%; }
}

/* Modal de trailer (YouTube) */
.cf-modal { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 4vw; }
.cf-modal[hidden] { display: none; }
.cf-modal-body { width: 100%; max-width: 1100px; aspect-ratio: 16/9; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.cf-modal-body iframe { width: 100%; height: 100%; border: 0; }
.cf-modal-close { position: absolute; top: 16px; right: 20px; background: transparent; border: 0; color: #fff; font-size: 40px; cursor: pointer; line-height: 1; }


/* === v1.5.0 — alinhado ao design do app === */
.cf-notice { max-width: 720px; margin: 140px auto 80px; padding: 28px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-2); text-align: center; }
.cf-notice h2 { margin: 0 0 10px; font-size: 22px; }
.cf-notice p { color: var(--muted); line-height: 1.6; margin: 8px 0 0; }

/* Navbar: menu central em pilula + busca arredondada */
.cf-nav { padding: 12px 4vw; position: fixed; }
.cf-nav .cf-menu {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; flex: 0 0 auto; margin: 0; overflow: visible;
  border: 1px solid var(--border); border-radius: 999px;
  background: rgba(20,20,24,.55); backdrop-filter: blur(10px); padding: 5px 6px;
}
.cf-nav .cf-menu a { padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: rgba(245,245,247,.82); transition: background .2s, color .2s; }
.cf-nav .cf-menu a:hover { background: rgba(255,255,255,.10); color: #fff; }
.cf-nav .cf-menu a.active { background: var(--primary); color: #fff; }
.cf-nav .cf-brand { font-size: 28px; }

.cf-nav form.cf-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: rgba(10,10,12,.6); backdrop-filter: blur(10px); width: 250px; transition: width .25s ease, border-color .2s ease, box-shadow .2s ease; }
.cf-nav form.cf-search:focus-within { width: 320px; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(229,9,20,.18); }
.cf-nav form.cf-search input { background: transparent; border: 0; outline: none; color: var(--text); width: 100%; font-size: 14px; }
.cf-search-icon { background: transparent; border: 0; color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
.cf-nav form.cf-search:focus-within .cf-search-icon { color: var(--primary); }

/* Hero cinematografico */
.cf-hero { height: 88vh; min-height: 460px; }
.cf-hero::after { background: linear-gradient(to top, var(--bg) 4%, rgba(10,10,12,.55) 45%, rgba(10,10,12,.10) 100%), linear-gradient(to right, rgba(10,10,12,.95), rgba(10,10,12,.3) 55%, transparent); }
.cf-hero .cf-slide { transition: opacity 1.2s ease, transform 1.2s ease; transform: scale(1.05); }
.cf-hero .cf-slide.active { transform: scale(1); }
.cf-hero .cf-hero-info { bottom: 14vh; max-width: 680px; }
.cf-badges { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.cf-badge { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 4px; background: rgba(10,10,12,.55); border: 1px solid var(--border); backdrop-filter: blur(6px); color: #f0f0f2; }
.cf-badge-primary { background: var(--primary); border-color: var(--primary); color: #fff; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; }
.cf-hero h1 { font-weight: 900; letter-spacing: -.02em; line-height: .98; text-shadow: 0 4px 24px rgba(0,0,0,.6); }
.cf-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cf-btn { border-radius: 999px; padding: 12px 26px; font-weight: 700; }
.cf-btn-secondary { margin-left: 0; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); }
.cf-hero-dots { position: absolute; left: 4vw; bottom: 6vh; z-index: 3; display: flex; gap: 8px; }
.cf-hero-dots button { height: 6px; width: 12px; border: 0; padding: 0; border-radius: 999px; background: rgba(255,255,255,.3); cursor: pointer; transition: all .3s ease; }
.cf-hero-dots button:hover { background: rgba(255,255,255,.6); }
.cf-hero-dots button.active { width: 32px; background: var(--primary); }

/* Rows sobrepondo o hero como no app */
.cf-rows { position: relative; z-index: 4; margin-top: -6vh; }
.cf-card p { font-size: 14px; }

@media (max-width: 900px) {
  .cf-nav { flex-wrap: wrap; padding-bottom: 8px; }
  .cf-nav .cf-menu { position: static; transform: none; order: 3; width: 100%; justify-content: center; overflow-x: auto; margin-top: 8px; }
  .cf-nav form.cf-search { width: 180px; }
  .cf-nav form.cf-search:focus-within { width: 220px; }
  .cf-hero .cf-hero-info { bottom: 16vh; }
  .cf-rows { margin-top: 0; }
}

/* === v1.7.0 — página de detalhes redesenhada (poster compacto, Inter) === */
.cf-detail-banner {
  position: relative; height: 240px; overflow: hidden;
  border-radius: 24px; margin: 84px auto 0; max-width: 1152px; width: calc(100% - 2 * 4vw);
}
.cf-detail-banner img { width: 100%; height: 100%; object-fit: cover; }
.cf-detail-banner-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), rgba(10,10,12,.55) 55%, rgba(10,10,12,.15)); }

.cf-detail-card {
  position: relative; z-index: 5;
  max-width: 1152px; margin: -110px auto 0; width: calc(100% - 2 * 4vw);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 24px;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.7); padding: 28px;
}
.cf-detail-body { display: flex; gap: 32px; }
.cf-detail-poster { flex: 0 0 190px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--card); box-shadow: 0 18px 44px rgba(0,0,0,.55); }
.cf-detail-poster img { width: 100%; height: auto; display: block; }
.cf-detail-noposter { aspect-ratio: 2/3; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.cf-detail-info { flex: 1; min-width: 0; }

.cf-detail-badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cf-detail-badges .cf-badge-primary { display: inline-block; }
.cf-detail-match { color: var(--primary); font-weight: 600; font-size: 14px; }

.cf-detail-info h1 { font-size: clamp(24px, 3vw, 44px); font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.08; }
.cf-detail-tagline { color: var(--muted); font-style: italic; margin: 8px 0 0; font-size: 15px; }
.cf-detail-hd { border: 1px solid rgba(255,255,255,.25); border-radius: 4px; padding: 1px 6px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.cf-detail-genres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cf-detail-genres .cf-tag { background: var(--card); border: 1px solid var(--border); padding: 4px 12px; border-radius: 999px; font-size: 12px; color: rgba(245,245,247,.85); }
.cf-detail-info .cf-overview { font-size: 15px; line-height: 1.65; color: rgba(245,245,247,.78); margin: 18px 0 0; }

.cf-detail-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.cf-btn-play { background: var(--primary); color: #fff; border: 0; box-shadow: 0 0 20px rgba(229,9,20,.35); cursor: pointer; }
.cf-btn-play:hover { background: var(--primary-hover); }

.cf-detail-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 26px; }
.cf-fact { background: rgba(28,28,34,.6); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.cf-fact span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.cf-fact strong { display: block; margin-top: 4px; font-size: 14px; color: rgba(245,245,247,.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Episódios dentro do card */
.cf-eps { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--border); }
.cf-eps-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.cf-eps-head h3 { margin: 0; font-size: 18px; font-weight: 700; }
.cf-eps-head select { appearance: none; background: var(--card); color: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 9px 36px 9px 14px; font-size: 14px; font-weight: 600; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.cf-eps-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cf-eps-grid .cf-ep { text-align: left; cursor: pointer; color: inherit; font: inherit; border-radius: 14px; padding: 10px; }
.cf-ep-thumb { flex: 0 0 112px; height: 64px; aspect-ratio: auto; position: relative; border-radius: 10px; }
.cf-ep-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.4); color: var(--primary); opacity: 0; transition: opacity .15s ease; border-radius: 10px; font-size: 16px; }
.cf-ep:hover .cf-ep-play { opacity: 1; }
.cf-ep-code { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.cf-ep:hover .cf-ep-code { color: var(--primary); }
.cf-ep-year { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.cf-detail-extra { max-width: 1152px; margin: 8px auto 0; width: calc(100% - 2 * 4vw); }

/* Recomendações */
.cf-recs { margin-top: 36px; }
.cf-recs-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cf-recs-bar { width: 4px; height: 24px; border-radius: 999px; background: var(--primary); }
.cf-recs-head h2 { margin: 0; font-size: clamp(18px, 2vw, 24px); font-weight: 800; }
.cf-recs .cf-scroller { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.cf-recs .cf-scroller::-webkit-scrollbar { display: none; }
.cf-rec { flex: 0 0 auto; width: 170px; }
.cf-rec-poster { position: relative; display: block; aspect-ratio: 2/3; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--border); transition: transform .25s ease, box-shadow .25s ease; }
.cf-rec-poster img { width: 100%; height: 100%; object-fit: cover; }
.cf-rec-noposter { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 12px; padding: 8px; text-align: center; }
.cf-rec:hover .cf-rec-poster { transform: scale(1.04); box-shadow: 0 0 0 2px var(--primary); }
.cf-rec-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.1)); opacity: 0; transition: opacity .2s ease; }
.cf-rec:hover .cf-rec-overlay { opacity: 1; }
.cf-rec-play { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; color: #fff; font-size: 15px; box-shadow: 0 0 20px rgba(229,9,20,.5); }
.cf-rec-rating { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); border-radius: 6px; padding: 2px 6px; font-size: 10px; font-weight: 600; color: #f0f0f2; }
.cf-rec-title { display: block; margin-top: 8px; font-size: 13px; color: rgba(245,245,247,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s ease; }
.cf-rec:hover .cf-rec-title { color: #fff; }

@media (max-width: 768px) {
  .cf-detail-banner { height: 180px; border-radius: 18px; margin-top: 76px; }
  .cf-detail-card { margin-top: -70px; padding: 18px; border-radius: 18px; }
  .cf-detail-body { flex-direction: column; gap: 18px; }
  .cf-detail-poster { flex: 0 0 auto; width: 144px; margin: 0 auto; }
  .cf-detail-facts { grid-template-columns: repeat(2, 1fr); }
  .cf-rec { width: 128px; }
}
