:root {
  color-scheme: dark;
  --bg: #08090d;
  --bg-soft: #0e1118;
  --panel: rgba(18, 22, 31, .82);
  --panel-solid: #12161f;
  --panel-2: #171c27;
  --text: #f7f8fb;
  --muted: #99a2b1;
  --muted-2: #6f7888;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .17);
  --accent: #ff3b5f;
  --accent-2: #ff708a;
  --accent-glow: rgba(255, 59, 95, .27);
  --radius: 20px;
  --radius-sm: 13px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .42);
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 59, 95, .10), transparent 31rem),
    radial-gradient(circle at 5% 30%, rgba(72, 85, 255, .06), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
body::selection { background: rgba(255,59,95,.35); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
.page-width { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.hidden { display: none !important; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(8, 9, 13, .78);
  backdrop-filter: blur(22px) saturate(140%);
}
.topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,59,95,.28), transparent);
  opacity: .7;
}
.topbar-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand-mark {
  display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), #ff2452);
  box-shadow: 0 9px 26px var(--accent-glow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.brand-mark span { font-size: .78rem; transform: translateX(1px); }
.brand:hover .brand-mark { transform: translateY(-2px) rotate(-4deg) scale(1.04); box-shadow: 0 14px 34px rgba(255,59,95,.38); }
.brand-word { font-size: 1.08rem; font-weight: 900; letter-spacing: -.045em; }
.brand-word span { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 5px; flex: 0 1 auto; }
.nav-pill, .genres-menu > summary {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 11px; border: 1px solid transparent; border-radius: 999px;
  color: #b9c0cc; text-decoration: none; font-size: .84rem; font-weight: 760; cursor: pointer;
  transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.nav-pill::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -5px; height: 2px; border-radius: 99px;
  background: var(--accent); box-shadow: 0 0 12px var(--accent); transition: left .22s ease, right .22s ease, opacity .22s ease; opacity: 0;
}
.nav-pill:hover, .nav-pill.active, .genres-menu > summary:hover {
  color: white; background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.08); transform: translateY(-1px);
}
.nav-pill:hover::after, .nav-pill.active::after { left: 30%; right: 30%; opacity: 1; }
.nav-pill.active { box-shadow: inset 0 0 0 1px rgba(255,59,95,.12), 0 8px 22px rgba(0,0,0,.16); }
.genres-menu { position: relative; }
.genres-menu > summary { list-style: none; }
.genres-menu > summary::-webkit-details-marker { display: none; }
.genres-menu[open] > summary { color: white; background: rgba(255,255,255,.06); }
.genres-popover {
  position: absolute; top: calc(100% + 13px); left: 50%; transform: translateX(-50%);
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px; width: min(620px, 76vw); padding: 20px;
  border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(12, 15, 22, .98); box-shadow: var(--shadow); backdrop-filter: blur(20px);
  animation: popIn .18s ease both;
}
.genres-popover strong { display: block; margin-bottom: 10px; color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.genre-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.genre-links a { padding: 8px 9px; border-radius: 9px; color: #aeb6c3; text-decoration: none; font-size: .8rem; transition: .18s ease; }
.genre-links a:hover { color: white; background: rgba(255,255,255,.06); transform: translateX(2px); }

.search {
  margin-left: auto; display: flex; align-items: center; width: min(330px, 25vw); min-width: 210px; height: 40px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.045); overflow: hidden;
  transition: border-color .22s ease, background .22s ease, box-shadow .22s ease, width .25s ease;
}
.search:focus-within { border-color: rgba(255,59,95,.42); background: rgba(255,255,255,.065); box-shadow: 0 0 0 4px rgba(255,59,95,.07); width: min(370px, 29vw); }
.search svg { width: 17px; margin-left: 14px; fill: none; stroke: #818998; stroke-width: 1.8; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: white; padding: 0 10px; font-size: .85rem; }
.search input::placeholder { color: #727b8a; }
.search button {
  width: 42px; align-self: stretch; border: 0; cursor: pointer; color: white; background: linear-gradient(135deg, var(--accent), #ff2452); font-weight: 900;
  transition: filter .2s ease, transform .2s ease;
}
.search button:hover { filter: brightness(1.12); }
.mobile-menu-button { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.04); }
.mobile-menu-button span { display: block; width: 17px; height: 2px; margin: 4px auto; border-radius: 2px; background: white; }

.hero { position: relative; min-height: min(70vh, 690px); overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -3; background: #11151e; }
.hero-art-image { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: saturate(.95) contrast(1.02); animation: heroZoom 13s ease-out both; }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(8,9,13,.97) 0%, rgba(8,9,13,.78) 31%, rgba(8,9,13,.24) 66%, rgba(8,9,13,.45) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(8,9,13,.0) 37%, rgba(8,9,13,.10) 100%);
}
.hero-content { display: flex; min-height: min(70vh, 690px); flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 24px; padding-bottom: 68px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 13px; color: #ff8ca1; font-size: .74rem; font-weight: 900; letter-spacing: .13em; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255,59,95,.5); animation: pulse 2s infinite; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(3.1rem, 7vw, 6.4rem); line-height: .92; letter-spacing: -.068em; text-wrap: balance; text-shadow: 0 12px 40px rgba(0,0,0,.34); }
.hero-overview { max-width: 650px; margin: 21px 0 0; color: #d2d7df; font-size: clamp(.96rem, 1.4vw, 1.08rem); line-height: 1.72; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-meta span, .detail-meta span { display: inline-flex; align-items: center; min-height: 29px; padding: 0 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(12,15,22,.46); color: #e2e6ec; font-size: .76rem; font-weight: 700; backdrop-filter: blur(9px); }
.hero-actions, .detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  color: white; text-decoration: none; font-size: .87rem; font-weight: 820; cursor: pointer; overflow: hidden; transition: transform .2s ease, filter .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.button::before { content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent); transition: transform .48s ease; }
.button:hover::before { transform: translateX(120%) skewX(-18deg); }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, var(--accent), #ff244f); box-shadow: 0 12px 28px rgba(255,59,95,.22); }
.button-primary:hover { box-shadow: 0 16px 36px rgba(255,59,95,.3); filter: brightness(1.05); }
.button-glass { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.11); backdrop-filter: blur(12px); }
.button-glass:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.19); }
.button:disabled { opacity: .42; cursor: not-allowed; transform: none; }

.quick-nav { display: flex; gap: 9px; margin-top: -25px; padding-bottom: 8px; position: relative; z-index: 4; overflow-x: auto; scrollbar-width: none; }
.quick-nav::-webkit-scrollbar { display: none; }
.quick-chip {
  flex: 0 0 auto; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(17,21,29,.86); color: #d7dce4; text-decoration: none; font-size: .79rem; font-weight: 760; backdrop-filter: blur(14px);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.quick-chip:hover { transform: translateY(-2px); border-color: rgba(255,59,95,.3); background: rgba(25,29,39,.96); color: white; }

.catalog-shell { padding-top: 16px; padding-bottom: 32px; }
.status { min-height: 20px; color: var(--muted); font-size: .8rem; }
.rail-section { margin: 35px 0 48px; animation: fadeUp .5s ease both; }
.rail-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin-bottom: 14px; }
.rail-heading h2, .section-heading h2 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 1.9rem); letter-spacing: -.04em; }
.rail-heading p { margin: 5px 0 0; color: var(--muted); font-size: .82rem; }
.rail-tools { display: flex; align-items: center; gap: 7px; }
.see-all { display: inline-flex; align-items: center; gap: 5px; margin-right: 3px; color: #c7ccd4; text-decoration: none; font-size: .77rem; font-weight: 760; transition: color .2s ease, transform .2s ease; }
.see-all span { transition: transform .2s ease; }
.see-all:hover { color: white; transform: translateX(2px); }
.see-all:hover span { transform: translateX(2px); }
.rail-arrow { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.035); color: white; cursor: pointer; font-size: 1.18rem; transition: .18s ease; }
.rail-arrow:hover { border-color: rgba(255,59,95,.28); background: rgba(255,255,255,.075); transform: translateY(-1px); }

.media-row { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(138px, 14.5vw, 172px); gap: 13px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: none; }
.media-row::-webkit-scrollbar { display: none; }
.media-card { position: relative; min-width: 0; color: white; text-decoration: none; scroll-snap-align: start; transform: translateZ(0); }
.media-poster {
  position: relative; overflow: hidden; aspect-ratio: 2 / 3; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: var(--panel-2);
  box-shadow: 0 10px 28px rgba(0,0,0,.18); transition: transform .32s cubic-bezier(.2,.8,.2,1), border-color .28s ease, box-shadow .32s ease;
}
.media-poster img { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1.001); transition: transform .48s cubic-bezier(.2,.8,.2,1), filter .32s ease; }
.media-poster-shade { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(4,5,8,.77)); opacity: .74; }
.media-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; background: rgba(4,5,8,.38); opacity: 0; transition: opacity .28s ease; font-size: .72rem; font-weight: 800; }
.mini-play { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); color: #0b0d12; padding-left: 2px; transform: scale(.82); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.type-badge, .card-rating { position: absolute; z-index: 2; top: 8px; padding: 5px 7px; border-radius: 8px; background: rgba(7,9,13,.72); backdrop-filter: blur(10px); font-size: .63rem; font-weight: 850; }
.type-badge { left: 8px; color: #e7e9ee; }
.card-rating { right: 8px; color: #ffd378; }
.media-copy { padding: 9px 2px 0; }
.media-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; letter-spacing: -.015em; }
.media-copy span { display: block; margin-top: 3px; color: var(--muted-2); font-size: .7rem; }
.media-card:hover .media-poster { transform: translateY(-6px) scale(1.025); border-color: rgba(255,59,95,.28); box-shadow: 0 19px 42px rgba(0,0,0,.38), 0 0 0 1px rgba(255,59,95,.08); }
.media-card:hover .media-poster img { transform: scale(1.055); filter: saturate(1.08) brightness(.88); }
.media-card:hover .media-overlay { opacity: 1; }
.media-card:hover .mini-play { transform: scale(1); }
.media-card:hover .media-copy strong { color: #fff; }
.ranked-card { padding-left: 23px; }
.rank-number {
  position: absolute; left: 0; bottom: 36px; z-index: 5; color: #090b10; -webkit-text-stroke: 1.25px rgba(255,255,255,.72);
  font-size: clamp(2.65rem, 3.6vw, 3.65rem); font-weight: 950; line-height: .82; letter-spacing: -.08em; text-shadow: 0 8px 18px rgba(0,0,0,.44); pointer-events: none;
}
.card-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #6f7888; font-size: .75rem; }

.catalog-page { min-height: calc(100vh - var(--header-h)); padding-top: 58px; padding-bottom: 72px; }
.catalog-header { max-width: 780px; margin-bottom: 27px; }
.catalog-header h1 { margin: 0; font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: .96; letter-spacing: -.062em; }
.catalog-header p:not(.eyebrow) { max-width: 620px; margin: 14px 0 0; color: var(--muted); line-height: 1.65; }
.compact-header h1 { font-size: clamp(2.3rem, 5vw, 4.3rem); }
.eyebrow { margin: 0 0 8px; color: var(--accent-2); font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.catalog-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 24px 13px; }
.catalog-grid .media-card { width: 100%; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 48px; }
#page-label { color: var(--muted); font-size: .82rem; min-width: 120px; text-align: center; }

.detail-page { position: relative; min-height: 100vh; isolation: isolate; }
.detail-backdrop { position: absolute; inset: 0 0 auto; height: min(76vh, 760px); z-index: -3; overflow: hidden; background: #11151e; }
.detail-backdrop-image { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; filter: saturate(.88) contrast(1.05); opacity: .72; }
.detail-gradient { position: absolute; inset: 0 0 auto; height: min(80vh, 800px); z-index: -2; background: linear-gradient(90deg, rgba(8,9,13,.98) 0%, rgba(8,9,13,.74) 42%, rgba(8,9,13,.25) 75%), linear-gradient(0deg, var(--bg) 3%, transparent 46%, rgba(8,9,13,.12)); }
.detail-hero {
  min-height: min(72vh, 710px); display: grid; grid-template-columns: minmax(190px, 245px) minmax(0, 720px); align-items: center; gap: clamp(30px, 4.4vw, 58px);
  padding-top: 54px; padding-bottom: 54px;
}
.poster-panel { align-self: center; }
.poster-wrap { overflow: hidden; aspect-ratio: 2 / 3; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: var(--panel-2); box-shadow: 0 24px 65px rgba(0,0,0,.42); }
.poster { width: 100%; height: 100%; display: block; object-fit: cover; }
.poster-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--muted); }
.detail-copy { align-self: center; padding: 18px 0; }
.detail-copy h1 { margin: 0; max-width: 760px; font-size: clamp(2.9rem, 6vw, 5.7rem); line-height: .94; letter-spacing: -.065em; text-wrap: balance; }
.tagline { margin: 14px 0 0; color: #c8ced7; font-style: italic; font-size: .94rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.overview { max-width: 700px; margin: 18px 0 0; color: #c8ced8; font-size: .96rem; line-height: 1.7; }
.credits { display: grid; gap: 7px; margin-top: 19px; }
.credits > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; font-size: .82rem; }
.credits span { color: #727b89; }
.credits strong { color: #d7dbe2; font-weight: 690; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-actions { margin-top: 24px; }

.content-section { padding-top: 28px; padding-bottom: 38px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.player-section { padding-top: 6px; animation: revealPlayer .36s ease both; }
.player-card { padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, rgba(20,24,33,.78), rgba(12,15,21,.88)); box-shadow: 0 18px 55px rgba(0,0,0,.28); }
.player-actions { display: flex; align-items: center; gap: 9px; }
.player-badge { display: inline-flex; align-items: center; min-height: 29px; padding: 0 9px; border-radius: 999px; background: rgba(255,59,95,.10); border: 1px solid rgba(255,59,95,.18); color: #ff9aac; font-size: .68rem; font-weight: 850; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.04); color: white; cursor: pointer; font-size: 1.25rem; transition: .18s ease; }
.icon-button:hover { background: rgba(255,255,255,.09); border-color: var(--line-strong); transform: rotate(3deg); }
.player-shell, .dialog-player { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid rgba(255,255,255,.08); border-radius: 17px; background: #020307; box-shadow: 0 20px 55px rgba(0,0,0,.36); }
.player-shell iframe, .dialog-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-loading, .player-error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 30px; text-align: center; color: #cbd1da; }
.player-error span { max-width: 600px; color: var(--muted); font-size: .82rem; }
.loader-ring { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.small-note { margin: 10px 2px 0; color: var(--muted-2); font-size: .74rem; line-height: 1.55; }

.provider-group + .provider-group { margin-top: 18px; }
.provider-group h3 { margin: 0 0 10px; font-size: .84rem; }
.provider-list { display: flex; flex-wrap: wrap; gap: 8px; }
.provider-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px 7px 7px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); color: #d4d9e1; font-size: .76rem; }
.provider-chip img { width: 31px; height: 31px; border-radius: 8px; }
.cast-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 13px; }
.cast-card { min-width: 0; }
.cast-photo { overflow: hidden; aspect-ratio: 1 / 1.1; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); transition: transform .25s ease, border-color .25s ease; }
.cast-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .4s ease; }
.cast-card:hover .cast-photo { transform: translateY(-3px); border-color: var(--line-strong); }
.cast-card:hover .cast-photo img { transform: scale(1.035); }
.cast-card strong, .cast-card span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cast-card strong { margin-top: 8px; font-size: .77rem; }
.cast-card span { margin-top: 2px; color: var(--muted-2); font-size: .67rem; }
.cast-placeholder { display: grid; width: 100%; height: 100%; place-items: center; font-size: 2rem; }

.live-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.live-card {
  position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr) 24px; align-items: center; gap: 12px; min-height: 82px; padding: 13px;
  border: 1px solid var(--line); border-radius: 16px; background: rgba(17,21,29,.78); color: white; text-align: left; cursor: pointer; overflow: hidden;
  transition: transform .24s ease, border-color .24s ease, background .24s ease, box-shadow .24s ease;
}
.live-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 0 50%, rgba(255,59,95,.11), transparent 48%); opacity: 0; transition: opacity .25s ease; }
.live-card:hover { transform: translateY(-3px); border-color: rgba(255,59,95,.26); background: rgba(22,26,36,.94); box-shadow: 0 15px 36px rgba(0,0,0,.24); }
.live-card:hover::before { opacity: 1; }
.live-orb { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, rgba(255,59,95,.22), rgba(255,59,95,.07)); border: 1px solid rgba(255,59,95,.17); color: #ff7891; }
.live-card-copy { position: relative; z-index: 1; min-width: 0; }
.live-card-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; }
.live-card-copy small { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: #7f8898; font-size: .62rem; font-weight: 850; letter-spacing: .07em; }
.live-card-copy small i { width: 6px; height: 6px; border-radius: 50%; background: #2bea74; box-shadow: 0 0 10px rgba(43,234,116,.55); }
.live-arrow { position: relative; z-index: 1; color: #7a8392; transition: transform .2s ease, color .2s ease; }
.live-card:hover .live-arrow { transform: translateX(3px); color: white; }
.live-card-skeleton { cursor: default; animation: shimmer 1.4s ease-in-out infinite alternate; }
.live-card-skeleton > span { width: 44px; height: 44px; border-radius: 14px; background: #171c27; }
.live-card-skeleton div strong, .live-card-skeleton div small { display: block; height: 10px; margin: 5px 0; border-radius: 9px; background: #171c27; }
.inline-player-card { margin-top: 32px; padding: 17px; border: 1px solid var(--line); border-radius: 21px; background: var(--panel); animation: revealPlayer .34s ease both; }
.inline-player-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.inline-player-top h2 { margin: 0; font-size: 1.35rem; }

.empty-state { display: flex; flex-direction: column; gap: 7px; padding: 36px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.025); color: var(--muted); }
.empty-state strong { color: white; }
.grid-empty { grid-column: 1 / -1; }
.error-view { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding-block: 70px; }
.error-card { width: min(660px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: var(--shadow); }
.error-card h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.055em; }
.error-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.error-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 17px; border-radius: 12px; background: rgba(255,59,95,.13); color: #ff8aa0; font-weight: 900; }
.error-actions { display: flex; gap: 10px; margin-top: 20px; }

footer { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; padding-top: 25px; padding-bottom: 38px; border-top: 1px solid var(--line); color: #677081; font-size: .72rem; line-height: 1.55; }
footer strong { color: #9da6b5; }
footer p { margin: 7px 0 0; max-width: 620px; }

dialog { width: min(1030px, calc(100% - 30px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 18px; background: #080a0f; color: white; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(7px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 15px; }
.dialog-top button { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.05); color: white; cursor: pointer; font-size: 1.25rem; }
.dialog-player { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 18px 18px; box-shadow: none; }

.skeleton-card { min-width: 0; }
.skeleton-card > div { aspect-ratio: 2 / 3; border-radius: 14px; background: #151923; animation: shimmer 1.2s ease-in-out infinite alternate; }
.skeleton-card > span, .skeleton-card > small { display: block; height: 9px; margin-top: 9px; border-radius: 99px; background: #151923; animation: shimmer 1.2s ease-in-out infinite alternate; }
.skeleton-card > small { width: 55%; height: 7px; margin-top: 5px; }
.skeleton-title, .skeleton-subtitle { display: block; width: 180px; height: 17px; border-radius: 99px; background: #151923; animation: shimmer 1.2s ease-in-out infinite alternate; }
.skeleton-subtitle { width: 250px; height: 9px; margin-top: 8px; }

@keyframes popIn { from { opacity: 0; transform: translate(-50%, -6px) scale(.985); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1.0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,95,.45); } 65% { box-shadow: 0 0 0 8px rgba(255,59,95,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,95,0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes revealPlayer { from { opacity: 0; transform: translateY(12px) scale(.992); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { opacity: .55; } to { opacity: 1; } }

@media (max-width: 1120px) {
  .topbar-inner { gap: 14px; }
  .main-nav { gap: 1px; }
  .nav-pill, .genres-menu > summary { padding-inline: 8px; font-size: .78rem; }
  .search { width: min(285px, 24vw); min-width: 170px; }
  .catalog-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cast-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .page-width { width: min(100% - 30px, 1240px); }
  .main-nav {
    position: absolute; top: calc(var(--header-h) - 2px); left: 15px; right: 15px; display: none; align-items: stretch; flex-direction: column; gap: 4px; padding: 13px;
    border: 1px solid var(--line-strong); border-radius: 17px; background: rgba(10,12,18,.985); box-shadow: var(--shadow);
  }
  .main-nav.mobile-open { display: flex; animation: mobileMenu .18s ease both; }
  .nav-pill, .genres-menu > summary { justify-content: flex-start; min-height: 41px; padding-inline: 12px; border-radius: 11px; font-size: .84rem; }
  .nav-pill::after { display: none; }
  .genres-popover { position: static; transform: none; width: 100%; margin-top: 7px; grid-template-columns: 1fr; max-height: 55vh; overflow: auto; animation: none; }
  .search { width: min(380px, 48vw); margin-left: auto; }
  .mobile-menu-button { display: block; flex: 0 0 auto; }
  .hero, .hero-content { min-height: 620px; }
  .hero h1 { font-size: clamp(3.2rem, 10vw, 5.8rem); max-width: 690px; }
  .catalog-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .detail-hero { grid-template-columns: 205px minmax(0, 1fr); gap: 30px; min-height: 650px; }
  .detail-copy h1 { font-size: clamp(2.8rem, 7vw, 4.7rem); }
  .cast-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .live-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  footer { grid-template-columns: 1fr; gap: 12px; }
  @keyframes mobileMenu { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 680px) {
  :root { --header-h: 62px; }
  .page-width { width: min(100% - 24px, 1240px); }
  .topbar-inner { gap: 10px; }
  .brand-word { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .search { height: 38px; min-width: 0; width: auto; flex: 1; }
  .search:focus-within { width: auto; }
  .search input { font-size: .8rem; }
  .search button { width: 38px; }
  .mobile-menu-button { width: 38px; height: 38px; }
  .main-nav { top: 60px; left: 12px; right: 12px; }
  .hero, .hero-content { min-height: 570px; }
  .hero-art-image { object-position: 62% 18%; opacity: .74; }
  .hero-shade { background: linear-gradient(90deg, rgba(8,9,13,.92), rgba(8,9,13,.48)), linear-gradient(0deg, var(--bg) 0%, rgba(8,9,13,.12) 55%); }
  .hero-content { justify-content: flex-end; padding-bottom: 78px; }
  .hero h1 { font-size: clamp(2.8rem, 15vw, 4.7rem); line-height: .93; }
  .hero-overview { font-size: .9rem; -webkit-line-clamp: 3; }
  .quick-nav { margin-top: -33px; }
  .rail-section { margin: 31px 0 42px; }
  .rail-heading { align-items: center; }
  .rail-heading p { display: none; }
  .rail-arrow { display: none; }
  .media-row { grid-auto-columns: 138px; gap: 10px; }
  .ranked-card { padding-left: 17px; }
  .rank-number { font-size: 2.7rem; bottom: 34px; }
  .catalog-page { padding-top: 38px; }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px 10px; }
  .detail-backdrop { height: 450px; }
  .detail-gradient { height: 490px; background: linear-gradient(0deg, var(--bg) 4%, rgba(8,9,13,.58) 40%, rgba(8,9,13,.32) 100%); }
  .detail-hero { display: block; min-height: auto; padding-top: 240px; padding-bottom: 34px; }
  .poster-panel { width: 135px; margin-bottom: 18px; }
  .poster-wrap { border-radius: 14px; }
  .detail-copy { padding: 0; }
  .detail-copy h1 { font-size: clamp(2.45rem, 12.5vw, 4.2rem); }
  .overview { font-size: .9rem; line-height: 1.65; }
  .credits > div { grid-template-columns: 62px minmax(0, 1fr); }
  .player-card { padding: 11px; border-radius: 17px; }
  .player-shell, .dialog-player { border-radius: 12px; }
  .section-heading h2 { font-size: 1.35rem; }
  .cast-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
  .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .live-card { grid-template-columns: 40px minmax(0,1fr); min-height: 72px; padding: 10px; }
  .live-orb { width: 39px; height: 39px; border-radius: 12px; }
  .live-arrow { display: none; }
  .error-card { padding: 28px 22px; }
}

@media (max-width: 430px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-row { grid-auto-columns: 132px; }
  .live-grid { grid-template-columns: 1fr; }
  .cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .button { min-height: 43px; padding-inline: 15px; }
}

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

/* === CineAPI v5 refinements === */

/* Header/navigation */
.topbar-inner { gap: 16px; }
.main-nav { gap: 5px; }
.nav-pill, .genres-menu > summary {
  min-height: 38px;
  padding: 0 11px;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #aeb6c3;
  font-size: .76rem;
  font-weight: 760;
  letter-spacing: -.01em;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), background .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.nav-pill::after { display: none; }
.nav-pill:hover, .nav-pill.active, .genres-menu > summary:hover, .genres-menu[open] > summary {
  transform: translateY(-1px);
  color: #fff;
  border-color: rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  box-shadow: 0 10px 24px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.04);
}
.nav-pill.active { border-color: rgba(255,59,95,.23); background: rgba(255,59,95,.09); }
.nav-icon { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .9; transition: transform .22s ease, opacity .22s ease; }
.nav-pill:hover .nav-icon, .nav-pill.active .nav-icon { transform: translateY(-1px) scale(1.06); opacity: 1; }
.chevron { width: 13px; height: 13px; margin-left: 1px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .22s ease; }
.genres-menu[open] .chevron { transform: rotate(180deg); }
.genres-popover {
  width: min(620px, calc(100vw - 40px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 18px;
  border-radius: 18px;
  border-color: rgba(255,255,255,.10);
  background: rgba(12,15,21,.96);
  box-shadow: 0 30px 80px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(22px);
  transform-origin: top center;
  animation: categoryDrop .2s cubic-bezier(.2,.8,.2,1) both;
}
.popover-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.popover-title strong { margin: 0; }
.popover-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: rgba(255,59,95,.12); color: #ff8ca1; font-size: .66rem; font-weight: 900; }
.genre-links { gap: 5px; }
.genre-links a { padding: 7px 9px; border-radius: 9px; transition: background .18s ease, color .18s ease, transform .18s ease; }
.genre-links a:hover { transform: translateX(2px); background: rgba(255,255,255,.055); color: #fff; }
@keyframes categoryDrop { from { opacity: 0; transform: translate(-50%, -8px) scale(.98); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }

/* Search with instant suggestions */
.search-area { position: relative; width: min(330px, 28vw); min-width: 210px; margin-left: auto; }
.search-area .search { width: 100%; min-width: 0; margin: 0; }
.search-area .search:focus-within { width: 100%; }
.search-suggestions {
  position: absolute;
  z-index: 80;
  top: calc(100% + 10px);
  right: 0;
  width: min(470px, 92vw);
  max-height: min(560px, 70vh);
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(10,12,17,.97);
  box-shadow: 0 28px 70px rgba(0,0,0,.48);
  backdrop-filter: blur(22px);
  animation: searchDrop .18s ease both;
}
.search-suggestion {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 22px;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 7px;
  border-radius: 11px;
  color: #fff;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.search-suggestion:hover { background: rgba(255,255,255,.055); transform: translateX(2px); }
.suggestion-poster { display: grid; place-items: center; overflow: hidden; width: 42px; height: 52px; border-radius: 8px; background: #171b24; }
.suggestion-poster img { width: 100%; height: 100%; object-fit: cover; }
.suggestion-poster-placeholder { color: #697383; font-size: .75rem; }
.suggestion-copy { min-width: 0; }
.suggestion-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .79rem; }
.suggestion-copy small { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #7f8898; font-size: .66rem; }
.suggestion-go { color: #7c8491; transition: transform .18s ease, color .18s ease; }
.search-suggestion:hover .suggestion-go { transform: translateX(2px); color: #fff; }
.suggestion-loading, .suggestion-empty { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 12px; color: #9199a8; font-size: .74rem; }
.suggestion-loading .loader-ring { width: 21px; height: 21px; border-width: 2px; }
@keyframes searchDrop { from { opacity: 0; transform: translateY(-6px) scale(.99); } to { opacity: 1; transform: none; } }

/* Quick chips */
.quick-nav { gap: 8px; }
.quick-chip {
  min-height: 38px;
  padding: 0 13px;
  gap: 7px;
  border-radius: 12px;
  font-size: .74rem;
  background: linear-gradient(180deg, rgba(22,26,36,.88), rgba(16,19,27,.88));
  transition: transform .22s cubic-bezier(.2,.8,.2,1), border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.quick-chip:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 12px 28px rgba(0,0,0,.22); }
.chip-icon { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 6px; background: rgba(255,59,95,.10); color: #ff879d; font-size: .66rem; font-weight: 900; }

/* Movie cards: smaller rank and smoother motion */
.media-card { transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .32s ease; }
.media-poster { transition: transform .32s cubic-bezier(.2,.8,.2,1), border-color .28s ease, box-shadow .32s ease; }
.media-poster img { transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .35s ease; }
.media-overlay { transition: opacity .24s ease; }
.media-card:hover .media-poster { transform: translateY(-4px) scale(1.018); }
.media-card:hover .media-poster img { transform: scale(1.045); }
.ranked-card { padding-left: 14px; }
.rank-number {
  left: -1px;
  bottom: 32px;
  font-size: clamp(2.05rem, 3vw, 3.25rem);
  line-height: .86;
  -webkit-text-stroke: 1px rgba(255,255,255,.72);
  color: rgba(8,9,13,.92);
  text-shadow: 0 8px 24px rgba(0,0,0,.58);
  opacity: .92;
}
.media-copy strong { font-size: .78rem; }
.media-copy span { font-size: .66rem; }

/* Detail page: more compact and better contained on screen */
.detail-backdrop { height: min(70vh, 680px); }
.detail-gradient { height: min(74vh, 720px); }
.detail-hero {
  min-height: min(66vh, 650px);
  grid-template-columns: minmax(170px, 220px) minmax(0, 700px);
  gap: clamp(26px, 4vw, 50px);
  padding-top: 44px;
  padding-bottom: 40px;
}
.poster-panel { max-width: 220px; }
.poster-wrap { border-radius: 16px; }
.detail-copy { padding: 12px 0; }
.detail-copy h1 { max-width: 700px; font-size: clamp(2.35rem, 4.7vw, 4.65rem); line-height: .96; }
.detail-meta { margin-top: 14px; }
.overview { max-width: 660px; margin-top: 14px; font-size: .9rem; line-height: 1.62; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.credits { margin-top: 15px; }
.detail-actions { margin-top: 19px; display: flex; flex-wrap: wrap; gap: 8px; }
.content-section { padding-top: 22px; padding-bottom: 30px; }
.player-card { max-width: 1080px; margin: 0 auto; border-radius: 19px; }
.player-shell { border-radius: 14px; }

/* Live TV toolbar/catalog */
.live-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -5px 0 20px; }
.live-search {
  display: flex; align-items: center; width: min(390px, 100%); height: 42px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.035);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.live-search:focus-within { border-color: rgba(255,59,95,.36); background: rgba(255,255,255,.055); box-shadow: 0 0 0 4px rgba(255,59,95,.06); }
.live-search svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: #7d8696; stroke-width: 1.8; }
.live-search input { min-width: 0; flex: 1; height: 100%; padding: 0 9px; border: 0; outline: 0; background: transparent; color: white; }
.live-filter-group { display: flex; gap: 6px; }
.live-filter { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.035); color: #9da6b4; cursor: pointer; font-size: .72rem; font-weight: 760; transition: .2s ease; }
.live-filter:hover, .live-filter.active { color: #fff; border-color: rgba(255,59,95,.22); background: rgba(255,59,95,.09); transform: translateY(-1px); }
.live-orb { font-size: .7rem; font-weight: 900; letter-spacing: .02em; }
.live-card-copy small b { color: #4f5764; }

/* Player reveal/close */
.player-section:not(.hidden), .inline-player-card:not(.hidden) { animation: playerReveal .28s cubic-bezier(.2,.8,.2,1) both; }
@keyframes playerReveal { from { opacity: 0; transform: translateY(10px) scale(.995); } to { opacity: 1; transform: none; } }

@media (max-width: 1120px) {
  .search-area { width: min(300px, 27vw); }
  .nav-pill, .genres-menu > summary { padding-inline: 9px; font-size: .72rem; }
}

@media (max-width: 900px) {
  .search-area { width: min(380px, 48vw); }
  .genres-popover { position: static; width: 100%; transform: none; animation: none; }
  @keyframes categoryDrop { from { opacity: 0; } to { opacity: 1; } }
  .detail-hero { grid-template-columns: 170px minmax(0, 1fr); min-height: auto; }
  .live-toolbar { align-items: stretch; flex-direction: column; }
  .live-search { width: 100%; }
}

@media (max-width: 680px) {
  .search-area { width: auto; min-width: 0; flex: 1; margin-left: 0; }
  .search-suggestions { left: 0; right: auto; width: min(94vw, 470px); }
  .nav-icon { width: 17px; height: 17px; }
  .quick-nav { overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .quick-nav::-webkit-scrollbar { display: none; }
  .quick-chip { flex: 0 0 auto; }
  .ranked-card { padding-left: 10px; }
  .rank-number { font-size: 2rem; bottom: 30px; }
  .detail-hero { display: grid; grid-template-columns: 118px minmax(0,1fr); gap: 18px; padding-top: 30vh; align-items: end; }
  .poster-panel { width: 118px; }
  .detail-copy h1 { font-size: clamp(2rem, 10vw, 3.3rem); }
  .overview { -webkit-line-clamp: 4; font-size: .84rem; }
  .live-filter-group { overflow-x: auto; }
  .live-filter { flex: 0 0 auto; }
}


/* v6 refinements */
.quick-nav { gap: 10px; align-items: center; margin-top: -21px; padding-top: 2px; }
.quick-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 14px;
  border-color: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.quick-chip:hover, .quick-chip.active {
  color: #fff;
  border-color: rgba(255,59,95,.24);
  background: linear-gradient(180deg, rgba(31,36,48,.95), rgba(17,20,28,.95));
  box-shadow: 0 12px 28px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.03);
}
.chip-icon { width: 20px; height: 20px; border-radius: 7px; font-size: .73rem; }

.ranked-card { padding-left: 0; }
.rank-number {
  left: 10px;
  top: 10px;
  bottom: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(10,12,18,.88);
  color: #fff;
  font-size: .72rem;
  line-height: 1;
  letter-spacing: .01em;
  -webkit-text-stroke: 0;
  text-shadow: none;
  opacity: 1;
  box-shadow: 0 10px 20px rgba(0,0,0,.28);
}
.media-card { width: 180px; }
.media-poster {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(18,22,31,.92), rgba(12,15,22,.96));
  box-shadow: 0 18px 38px rgba(0,0,0,.22);
}
.media-row { gap: 14px; padding: 6px 2px 12px; }
.media-card:hover .media-copy strong { color: #fff; }
.media-copy { padding-top: 10px; }
.media-copy strong { font-size: .85rem; }
.media-copy span { font-size: .7rem; }
.media-overlay { backdrop-filter: blur(8px); }

.search-area { width: min(370px, 31vw); }
.search { height: 44px; border-radius: 16px; }
.search-suggestions { width: min(520px, 94vw); padding: 9px; }
.search-suggestion { grid-template-columns: 48px minmax(0,1fr) 24px; min-height: 66px; gap: 12px; }
.suggestion-poster { width: 48px; height: 58px; border-radius: 10px; border: 1px solid rgba(255,255,255,.07); }
.suggestion-copy strong { font-size: .9rem; }
.suggestion-copy small { font-size: .72rem; }
.suggestion-poster.img-error, .cast-photo.img-error, .media-poster.img-error { display: grid; place-items: center; }
.fallback-media {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #8c95a5;
  font-size: .82rem;
  font-weight: 700;
  text-align: center;
  padding: 8px;
}
.media-poster .fallback-media { min-height: 260px; }
.cast-photo .fallback-media { min-height: 100px; font-size: 1.5rem; }

.genres-menu > summary { min-height: 38px; padding-inline: 12px; border-radius: 14px; }
.genres-popover { top: calc(100% + 10px); border-radius: 20px; }
.genre-links a { min-height: 34px; display: inline-flex; align-items: center; }

.detail-page .page-width { width: min(1160px, calc(100% - 34px)); }
.detail-hero {
  grid-template-columns: minmax(160px, 205px) minmax(0, 680px);
  justify-content: start;
  gap: clamp(20px, 3vw, 42px);
  padding-top: 36px;
}
.detail-copy h1 { font-size: clamp(2.15rem, 4.2vw, 4.1rem); }
.detail-meta { gap: 7px; }
.overview { max-width: 620px; }
.credits > div { gap: 10px; }
.detail-actions .button { min-height: 42px; padding-inline: 16px; }
.player-card, .inline-player-card {
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(15,18,26,.96), rgba(11,14,21,.96));
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.player-shell { background: #090b11; }
.live-player-note { margin-top: 10px; }

.live-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.live-card {
  display: grid;
  grid-template-columns: 52px minmax(0,1fr) 24px;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18,22,31,.94), rgba(13,16,24,.96));
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.live-card:hover { transform: translateY(-2px); border-color: rgba(255,59,95,.2); box-shadow: 0 18px 38px rgba(0,0,0,.26); }
.live-card.is-disabled { opacity: .5; cursor: not-allowed; }
.live-card-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .96rem; }
.live-card-copy small { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 5px; color: #9ca5b4; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.live-card-copy small i { width: 7px; height: 7px; border-radius: 50%; background: #2ff58a; box-shadow: 0 0 0 4px rgba(47,245,138,.12); }
.live-card-copy small u { text-decoration: none; color: #748093; }
.live-arrow { color: #a7afbd; font-size: 1rem; }
.live-orb {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: radial-gradient(circle at 30% 20%, rgba(255,59,95,.35), rgba(255,59,95,.08));
}
.live-orb span { font-size: .9rem; font-weight: 900; }

@media (max-width: 1120px) {
  .media-card { width: 168px; }
  .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .quick-nav { gap: 8px; }
  .quick-chip { min-height: 40px; padding-inline: 13px; }
  .search-area { width: auto; min-width: 0; }
  .media-card { width: 150px; }
  .live-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .rank-number { left: 8px; top: 8px; min-width: 30px; height: 22px; font-size: .66rem; }
  .detail-hero { grid-template-columns: 110px minmax(0,1fr); padding-top: 28vh; }
  .detail-copy h1 { font-size: clamp(1.8rem, 9vw, 2.9rem); }
}


/* v7 — logos de TV e estados de player */
.live-orb {
  overflow: hidden;
  position: relative;
  background: #f4f6fa;
}
.live-orb img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  background: #fff;
}
.live-initials {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #ff7992;
  font-size: .82rem;
  font-weight: 900;
  background: radial-gradient(circle at 30% 20%, rgba(255,59,95,.24), rgba(255,59,95,.07));
}
.live-orb:not(.logo-failed) img + .live-initials { opacity: 0; }
.live-orb.logo-failed .live-initials,
.live-orb:not(:has(img)) .live-initials { opacity: 1; }
.live-card-copy u {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-player-note {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin: 10px 0 0;
  padding: 0 4px;
  color: #7f8999;
}
.player-shell iframe { background: #08090d; }


/* v8: anime + dual live player + preview cards */
.live-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.live-card {
  grid-template-columns: 112px minmax(0,1fr) 24px;
  min-height: 96px;
  padding: 10px;
  border-radius: 18px;
  overflow: hidden;
}
.live-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 13px;
  background: radial-gradient(circle at 30% 20%, rgba(255,59,95,.26), rgba(16,19,28,.98));
  border: 1px solid rgba(255,255,255,.07);
}
.live-preview-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.live-visual .live-orb { width: 54px; height: 54px; z-index: 1; }
.live-now-badge { position: absolute; left: 7px; bottom: 7px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; min-height: 20px; padding: 0 7px; border-radius: 999px; background: rgba(7,9,14,.82); color: #fff; font-size: .58rem; font-weight: 850; letter-spacing: .07em; backdrop-filter: blur(8px); }
.live-now-badge i { width: 6px; height: 6px; border-radius: 50%; background: #34ef88; box-shadow: 0 0 0 3px rgba(52,239,136,.12); }
.live-card-copy small { margin-top: 6px; }
.live-provider-choice { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 12px; }
.live-provider-button { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.04); color: #cbd1da; cursor: pointer; transition: .2s ease; }
.live-provider-button span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(255,59,95,.11); color: #ff7891; font-size: .68rem; font-weight: 900; }
.live-provider-button strong { font-size: .78rem; }
.live-provider-button:hover, .live-provider-button.active { transform: translateY(-1px); color: white; border-color: rgba(255,59,95,.25); background: rgba(255,59,95,.08); }
.player-empty { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 280px; color: #96a0af; text-align: center; }
.player-empty strong { color: #fff; }
@media (max-width: 1080px) { .live-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 720px) { .live-grid { grid-template-columns: 1fr; } .live-card { grid-template-columns: 96px minmax(0,1fr) 20px; } .live-visual { width: 96px; } }


/* v9 TV categories + anime */
.live-category-filters{display:flex;gap:8px;margin:0 0 22px;padding:2px 0 4px;overflow-x:auto;scrollbar-width:none}.live-category-filters::-webkit-scrollbar{display:none}.live-category-chip{flex:0 0 auto;min-height:36px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.035);color:#aeb6c4;cursor:pointer;font-size:.72rem;font-weight:780;transition:.2s ease}.live-category-chip span{margin-left:5px;color:#6f7888;font-size:.65rem}.live-category-chip:hover,.live-category-chip.active{transform:translateY(-1px);color:#fff;border-color:rgba(255,59,95,.25);background:rgba(255,59,95,.09)}.live-grid.live-grouped{display:block}.live-category-section+.live-category-section{margin-top:34px}.live-category-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:13px}.live-category-heading h2{margin:0;font-size:1.15rem;letter-spacing:-.025em}.live-category-heading span{color:var(--muted);font-size:.72rem}.live-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.media-card[href^="/anime/"] .type-badge{background:rgba(125,85,255,.82)}.media-card[href^="/anime/"] .media-poster{box-shadow:0 18px 42px rgba(78,56,160,.12)}@media(max-width:1120px){.live-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.live-category-grid{grid-template-columns:1fr}}


/* v10 — seletor de anime */
.anime-episode-controls {
  display: flex;
  align-items: end;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin-top: 18px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  background: rgba(10,13,19,.66);
  backdrop-filter: blur(14px);
}
.anime-control-copy { min-width: 160px; padding: 0 6px 3px 2px; }
.anime-control-copy span { display: block; color: #ff708a; font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.anime-control-copy strong { display: block; margin-top: 4px; color: #dce1e9; font-size: .77rem; }
.anime-episode-controls label { display: grid; gap: 5px; color: #919aaa; font-size: .66rem; font-weight: 750; }
.anime-episode-controls input {
  width: 96px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  outline: 0;
  background: rgba(255,255,255,.045);
  color: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.anime-episode-controls input:focus { border-color: rgba(255,59,95,.38); background: rgba(255,255,255,.065); box-shadow: 0 0 0 4px rgba(255,59,95,.06); }
@media (max-width: 680px) {
  .anime-episode-controls { width: 100%; align-items: stretch; flex-wrap: wrap; }
  .anime-control-copy { width: 100%; min-width: 0; }
  .anime-episode-controls label { flex: 1; }
  .anime-episode-controls input { width: 100%; }
}


/* v11: TV completa e estados de imagem compatíveis com CSP */
.live-category-heading span { opacity: .72; }
.live-card .live-orb.logo-failed .live-initials { opacity: 1; }
.live-logo-image + .live-initials { opacity: 0; }
.live-logo-image { object-fit: contain; }


/* v12 — TV premium, legal/footer, cookies */
.live-page-header { display:flex; justify-content:space-between; gap:24px; align-items:end; }
.live-header-note { max-width:310px; padding:12px 14px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.035); }
.live-header-note strong,.live-header-note span { display:block; }
.live-header-note strong { font-size:.78rem; color:#fff; }
.live-header-note span { margin-top:4px; color:var(--muted); font-size:.7rem; line-height:1.45; }

.live-category-section { margin:0 0 34px; }
.live-category-heading { display:flex; align-items:center; justify-content:space-between; margin:0 0 14px; }
.live-category-heading h2 { margin:0; font-size:1.15rem; letter-spacing:-.025em; }
.live-category-heading span { color:var(--muted); font-size:.7rem; }
.live-category-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.live-grouped { display:block !important; }
.live-card-v12 {
  min-height:0; padding:0; display:grid; grid-template-columns:112px minmax(0,1fr) 28px; gap:13px;
  overflow:hidden; border-radius:18px; background:linear-gradient(145deg,rgba(18,22,31,.98),rgba(11,14,21,.98));
  box-shadow:0 18px 44px rgba(0,0,0,.22); text-align:left;
}
.live-card-v12:hover { transform:translateY(-3px); border-color:rgba(255,59,95,.23); box-shadow:0 24px 52px rgba(0,0,0,.32); }
.live-visual-v12 { position:relative; display:block; width:112px; height:104px; overflow:hidden; background:radial-gradient(circle at 30% 20%,rgba(255,59,95,.22),#111722 62%); }
.live-preview-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.72; transform:scale(1.02); }
.live-visual-shade { position:absolute; inset:0; background:linear-gradient(180deg,rgba(5,7,11,.05),rgba(5,7,11,.72)); }
.live-logo-box { position:absolute; left:10px; top:10px; width:48px; height:48px; display:grid; place-items:center; overflow:hidden; border:1px solid rgba(255,255,255,.15); border-radius:14px; background:rgba(8,10,15,.88); box-shadow:0 10px 25px rgba(0,0,0,.32); }
.live-logo-image { width:84%; height:84%; object-fit:contain; }
.live-logo-box.logo-failed .live-logo-image { display:none; }
.live-initials { position:absolute; font-size:.72rem; font-weight:900; color:#e9edf5; z-index:-1; }
.live-logo-box.logo-failed .live-initials { z-index:1; }
.live-now-badge { position:absolute; left:9px; bottom:9px; display:inline-flex; align-items:center; gap:5px; min-height:22px; padding:0 8px; border-radius:999px; background:rgba(7,10,14,.82); border:1px solid rgba(255,255,255,.12); font-size:.58rem; font-weight:900; letter-spacing:.08em; }
.live-now-badge i { width:6px; height:6px; border-radius:50%; background:#36f38a; box-shadow:0 0 0 3px rgba(54,243,138,.13); }
.live-preview-label { position:absolute; right:8px; top:8px; padding:4px 6px; border-radius:7px; background:rgba(6,8,12,.68); color:#c4cad5; font-size:.52rem; }
.live-info-v12 { min-width:0; align-self:center; padding:12px 0; }
.live-title-row { display:flex; gap:7px; align-items:center; min-width:0; }
.live-title-row strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.92rem; }
.live-category-mini { flex:0 0 auto; padding:3px 6px; border-radius:999px; background:rgba(255,255,255,.05); color:#7f8999; font-size:.55rem; text-transform:uppercase; }
.live-meta-row { display:flex; align-items:center; gap:7px; margin-top:8px; }
.live-access-pill { display:inline-flex; align-items:center; min-height:22px; padding:0 8px; border-radius:999px; font-size:.6rem; font-weight:850; }
.live-access-pill.free { color:#73f6aa; background:rgba(53,244,137,.08); border:1px solid rgba(53,244,137,.14); }
.live-access-pill.paid { color:#ffd17e; background:rgba(255,189,73,.08); border:1px solid rgba(255,189,73,.16); }
.live-price { color:#d9dee7; font-size:.67rem; font-weight:750; }
.live-info-v12 small { display:block; margin-top:7px; color:#737d8c; font-size:.62rem; }
.live-card-v12 .live-arrow { align-self:center; justify-self:center; margin-right:8px; }

.site-footer { margin-top:70px; padding:48px 0 0; border-top:1px solid var(--line); background:linear-gradient(180deg,rgba(12,15,21,.58),rgba(8,9,13,.92)); }
.footer-grid { display:grid; grid-template-columns:2fr repeat(3,1fr); gap:34px; padding-bottom:34px; }
.footer-brand p { max-width:520px; margin:16px 0 13px; color:#8d96a6; font-size:.78rem; line-height:1.65; }
.footer-storage-badge { display:inline-flex; padding:7px 9px; border-radius:9px; background:rgba(255,255,255,.035); border:1px solid var(--line); color:#99a3b3; font-size:.64rem; }
.footer-column { display:flex; flex-direction:column; gap:9px; }
.footer-column > strong { margin-bottom:4px; color:#fff; font-size:.76rem; text-transform:uppercase; letter-spacing:.08em; }
.footer-column a,.footer-link-button { width:fit-content; padding:0; border:0; background:none; color:#8f98a8; font:inherit; font-size:.75rem; text-decoration:none; cursor:pointer; transition:color .18s ease,transform .18s ease; }
.footer-column a:hover,.footer-link-button:hover { color:#fff; transform:translateX(2px); }
.footer-socials { display:flex; flex-direction:column; gap:8px; }
.footer-socials a { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:130px; }
.footer-muted { color:#687181; font-size:.7rem; line-height:1.4; }
.footer-bottom { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 0 28px; border-top:1px solid var(--line); color:#656e7d; font-size:.66rem; }
.footer-bottom p { margin:0; }

.cookie-banner { position:fixed; z-index:180; left:50%; bottom:20px; transform:translateX(-50%); width:min(1040px,calc(100% - 30px)); display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px; border:1px solid rgba(255,255,255,.13); border-radius:18px; background:rgba(13,16,23,.97); box-shadow:0 30px 80px rgba(0,0,0,.55); backdrop-filter:blur(22px); animation:cookieUp .26s ease both; }
.cookie-copy { display:flex; gap:12px; align-items:flex-start; min-width:0; }
.cookie-icon { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; border-radius:11px; background:rgba(255,59,95,.12); color:#ff8ba0; }
.cookie-copy strong { display:block; font-size:.82rem; }
.cookie-copy p { max-width:650px; margin:4px 0 0; color:#929bab; font-size:.72rem; line-height:1.5; }
.cookie-actions { display:flex; align-items:center; gap:8px; flex:0 0 auto; }
.cookie-actions .button { min-height:38px; padding:0 13px; font-size:.72rem; }
.cookie-learn { color:#9da6b5; font-size:.7rem; text-decoration:none; margin-right:4px; }
.cookie-learn:hover { color:#fff; }
@keyframes cookieUp { from { opacity:0; transform:translate(-50%,12px) scale(.99); } to { opacity:1; transform:translate(-50%,0) scale(1); } }

.legal-view { padding-top:90px; padding-bottom:80px; }
.legal-shell { max-width:860px; margin:0 auto; padding:34px; border:1px solid var(--line); border-radius:24px; background:linear-gradient(160deg,rgba(18,22,31,.92),rgba(11,14,20,.95)); box-shadow:var(--shadow); }
.legal-shell h1 { margin:0; font-size:clamp(2.3rem,6vw,4.6rem); line-height:.98; letter-spacing:-.055em; }
.legal-content { margin-top:28px; color:#b6bdc8; font-size:.9rem; line-height:1.78; }
.legal-content p { max-width:760px; }
.legal-content code { color:#fff; }
.legal-notice { display:flex; flex-direction:column; gap:6px; margin-top:24px; padding:16px; border:1px solid rgba(255,59,95,.18); border-radius:14px; background:rgba(255,59,95,.055); }
.legal-notice strong { color:#fff; font-size:.78rem; }
.legal-notice span { color:#aab2bf; font-size:.78rem; }

@media (max-width:1000px) {
  .live-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns:1.5fr 1fr 1fr; }
  .footer-column:last-child { grid-column:2 / -1; }
}
@media (max-width:760px) {
  .live-page-header { align-items:start; flex-direction:column; }
  .live-header-note { max-width:none; width:100%; }
  .live-category-grid { grid-template-columns:1fr; }
  .live-card-v12 { grid-template-columns:96px minmax(0,1fr) 24px; }
  .live-visual-v12 { width:96px; height:96px; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .footer-brand { grid-column:1 / -1; }
  .footer-column:last-child { grid-column:auto; }
  .cookie-banner { align-items:stretch; flex-direction:column; }
  .cookie-actions { width:100%; justify-content:flex-end; flex-wrap:wrap; }
}
@media (max-width:520px) {
  .footer-grid { grid-template-columns:1fr; }
  .footer-bottom { align-items:flex-start; flex-direction:column; }
  .cookie-actions { justify-content:stretch; }
  .cookie-actions .button { flex:1; }
  .cookie-learn { width:100%; margin-bottom:2px; }
  .legal-shell { padding:24px 18px; }
}


/* === CineAPI v13: image-first cards, complete seasons and contextual player === */
.image-only-card { width: 190px; min-width: 0; text-decoration: none; }
.image-only-card .media-poster { aspect-ratio: 2 / 3; min-height: 0; border-radius: 18px; }
.image-only-card .media-poster > img { width: 100%; height: 100%; object-fit: cover; }
.image-card-caption { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 3px; padding: 44px 12px 12px; background: linear-gradient(0deg, rgba(5,7,11,.96), rgba(5,7,11,.76) 58%, transparent); transition: transform .28s ease; }
.image-card-caption strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; color: #fff; }
.image-card-caption span { color: #a7afbd; font-size: .69rem; }
.image-only-card:hover .image-card-caption { transform: translateY(-2px); }
.image-only-card .rank-number { top: 11px; left: 10px; z-index: 6; }
.catalog-grid .image-only-card { width: 100%; }
.catalog-grid .image-only-card .media-poster { width: 100%; }

.episodes-section { padding-top: 8px; }
.episodes-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.episodes-heading h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.75rem); letter-spacing: -.04em; }
.episodes-heading .small-note { margin: 7px 0 0; }
.season-jump-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; max-width: 52%; }
.season-jump { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.035); color: #d9dee7; cursor: pointer; font-size: .74rem; font-weight: 800; transition: .2s ease; }
.season-jump span { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: rgba(255,255,255,.07); color: #98a2b2; font-size: .62rem; }
.season-jump:hover { transform: translateY(-2px); border-color: rgba(255,59,95,.26); background: rgba(255,59,95,.08); color: #fff; }
.episode-seasons { display: grid; gap: 42px; }
.season-block { scroll-margin-top: calc(var(--header-h) + 18px); }
.season-header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.season-header span { color: #ff8198; font-size: .67rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.season-header h3 { margin: 3px 0 0; font-size: 1.35rem; letter-spacing: -.025em; }
.season-header small { color: #7f8998; font-size: .72rem; }
.episode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.episode-card { display: block; min-width: 0; padding: 0; border: 1px solid rgba(255,255,255,.07); border-radius: 17px; overflow: hidden; background: #10141c; color: #fff; text-align: left; cursor: pointer; transition: transform .26s cubic-bezier(.2,.8,.2,1), border-color .24s ease, box-shadow .26s ease; }
.episode-card:hover, .episode-card.selected { transform: translateY(-4px); border-color: rgba(255,59,95,.34); box-shadow: 0 18px 42px rgba(0,0,0,.32); }
.episode-card.selected { box-shadow: 0 0 0 2px rgba(255,59,95,.12), 0 18px 42px rgba(0,0,0,.32); }
.episode-art { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #171c26; }
.episode-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .3s ease; }
.episode-card:hover .episode-art img { transform: scale(1.045); filter: brightness(.9); }
.episode-gradient { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,9,13,.55), transparent 58%); }
.episode-number { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 5px 8px; border-radius: 9px; background: rgba(7,9,13,.78); border: 1px solid rgba(255,255,255,.08); font-size: .68rem; font-weight: 900; }
.episode-play-icon { position: absolute; z-index: 3; left: 50%; top: 50%; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; transform: translate(-50%,-44%) scale(.86); background: rgba(255,59,95,.92); box-shadow: 0 10px 30px rgba(255,59,95,.28); opacity: 0; transition: .22s ease; }
.episode-card:hover .episode-play-icon, .episode-card.selected .episode-play-icon { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.episode-copy { display: grid; gap: 5px; padding: 11px 12px 13px; }
.episode-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; }
.episode-copy small { color: #8b94a3; font-size: .68rem; }
.episode-copy > span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #707b8b; font-size: .68rem; line-height: 1.45; }
.episode-image-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: #727d8e; font-size: 1.2rem; font-weight: 900; }

.player-card { max-width: 1120px; }
.player-now-playing { display: grid; grid-template-columns: 112px minmax(0,1fr) auto; align-items: center; gap: 14px; margin: 0 0 12px; padding: 10px; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: rgba(255,255,255,.025); }
.now-playing-art { overflow: hidden; width: 112px; aspect-ratio: 16 / 9; border-radius: 10px; background: #171c25; }
.now-playing-art img { width: 100%; height: 100%; object-fit: cover; }
.now-playing-art > span { display: grid; place-items: center; width: 100%; height: 100%; color: #788292; }
.now-playing-copy { min-width: 0; }
.now-label { display: block; color: #ff748d; font-size: .61rem; font-weight: 900; letter-spacing: .11em; }
.now-playing-copy strong { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.now-playing-copy small { display: block; margin-top: 4px; color: #8892a1; font-size: .69rem; }
.now-playing-source { display: grid; gap: 3px; padding: 8px 11px; border-left: 1px solid rgba(255,255,255,.07); text-align: right; }
.now-playing-source span { color: #717b8b; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; }
.now-playing-source strong { font-size: .72rem; color: #dce1e8; }
.player-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.player-privacy-note { color: #5e6877; font-size: .63rem; white-space: nowrap; }
.player-loading { gap: 7px; }
.player-loading > span:last-child { color: #7d8797; font-size: .72rem; }
@media (max-width: 1050px) { .episode-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .season-jump-list { max-width: 60%; } }
@media (max-width: 680px) { .image-only-card { width: 148px; } .episodes-heading { align-items: flex-start; flex-direction: column; } .season-jump-list { justify-content: flex-start; max-width: 100%; } .episode-grid { grid-template-columns: 1fr; gap: 11px; } .episode-card { display: grid; grid-template-columns: 42% minmax(0,1fr); border-radius: 14px; } .episode-art { height: 100%; aspect-ratio: auto; min-height: 104px; } .episode-copy { align-content: center; } .episode-copy > span { display: none; } .player-now-playing { grid-template-columns: 82px minmax(0,1fr); } .now-playing-art { width: 82px; } .now-playing-source { display: none; } .player-foot { align-items: flex-start; flex-direction: column; gap: 3px; } .player-privacy-note { white-space: normal; } }


/* v15 — escolha de fontes para filmes, séries e doramas */
.content-provider-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.content-provider-button { display: grid; grid-template-columns: 34px minmax(0,1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; min-height: 62px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.025)); color: #d8dde5; text-align: left; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.content-provider-button > span { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,59,95,.12); color: #ff8299; font-size: .78rem; font-weight: 900; }
.content-provider-button strong { align-self: end; font-size: .84rem; }
.content-provider-button small { align-self: start; margin-top: 2px; color: #7f8897; font-size: .68rem; }
.content-provider-button:hover, .content-provider-button.active { transform: translateY(-2px); border-color: rgba(255,59,95,.28); background: rgba(255,59,95,.075); box-shadow: 0 12px 28px rgba(0,0,0,.2); color: white; }
.player-choice-hint { min-height: 220px; }
@media (max-width: 680px) { .content-provider-choice { grid-template-columns: 1fr; } }


/* =========================================================
   CineAPI v16 — Navbar fluida / floating glass
   No topo: reta e integrada à página.
   Ao rolar: desgruda, encurta e arredonda progressivamente.
   ========================================================= */
.topbar {
  --nav-scroll-progress: 0;
  width: calc(100% - (var(--nav-scroll-progress) * 28px));
  max-width: 100vw;
  top: calc(var(--nav-scroll-progress) * 12px);
  height: calc(var(--header-h) - (var(--nav-scroll-progress) * 8px));
  margin-inline: auto;
  border: 1px solid rgba(255,255,255,calc(.02 + (var(--nav-scroll-progress) * .09)));
  border-top-color: rgba(255,255,255,calc(.02 + (var(--nav-scroll-progress) * .05)));
  border-radius: calc(var(--nav-scroll-progress) * 22px);
  background:
    linear-gradient(
      180deg,
      rgba(12,14,20,calc(.78 + (var(--nav-scroll-progress) * .14))),
      rgba(8,10,15,calc(.72 + (var(--nav-scroll-progress) * .17)))
    );
  box-shadow:
    0 calc(var(--nav-scroll-progress) * 18px)
    calc(var(--nav-scroll-progress) * 52px)
    rgba(0,0,0,calc(var(--nav-scroll-progress) * .34)),
    inset 0 1px 0 rgba(255,255,255,calc(var(--nav-scroll-progress) * .05));
  backdrop-filter: blur(calc(20px + (var(--nav-scroll-progress) * 8px))) saturate(calc(135% + (var(--nav-scroll-progress) * 25%)));
  -webkit-backdrop-filter: blur(calc(20px + (var(--nav-scroll-progress) * 8px))) saturate(calc(135% + (var(--nav-scroll-progress) * 25%)));
  transition:
    max-width .62s cubic-bezier(.18,.9,.22,1),
    border-color .35s ease,
    box-shadow .5s cubic-bezier(.18,.9,.22,1),
    background .45s ease;
  isolation: isolate;
}

.topbar.is-floating {
  max-width: 1280px;
}

/* brilho líquido que desliza pela superfície do vidro */
.topbar::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 8%;
  top: -38px;
  width: clamp(130px, 24vw, 330px);
  height: 82px;
  border-radius: 999px;
  pointer-events: none;
  opacity: calc(var(--nav-scroll-progress) * .52);
  background:
    radial-gradient(circle at 28% 50%, rgba(255,94,126,.32), transparent 47%),
    radial-gradient(circle at 72% 46%, rgba(98,110,255,.20), transparent 44%);
  filter: blur(20px);
  transform:
    translateX(calc(var(--nav-scroll-progress) * 24vw))
    scaleX(calc(.88 + (var(--nav-scroll-progress) * .22)));
  transition: opacity .32s ease;
}

.topbar::after {
  content: "";
  position: absolute;
  inset: auto 18px -1px;
  height: 1px;
  border-radius: 999px;
  pointer-events: none;
  opacity: calc(.55 - (var(--nav-scroll-progress) * .3));
  background: linear-gradient(90deg, transparent, rgba(255,59,95,.34), rgba(255,255,255,.08), transparent);
  transition: inset .5s cubic-bezier(.18,.9,.22,1), opacity .35s ease;
}

.topbar.is-floating::after {
  inset-inline: 42px;
}

.topbar-inner {
  width: min(
    calc(1240px - (var(--nav-scroll-progress) * 20px)),
    calc(100% - 40px)
  );
  gap: calc(24px - (var(--nav-scroll-progress) * 5px));
  transition: width .5s cubic-bezier(.18,.9,.22,1), gap .45s ease;
}

.topbar .brand-mark {
  transform: scale(calc(1 - (var(--nav-scroll-progress) * .05)));
}

.topbar.is-floating .brand-mark {
  box-shadow: 0 8px 24px rgba(255,59,95,.22);
}

.topbar .nav-pill,
.topbar .genres-menu > summary {
  min-height: calc(36px - (var(--nav-scroll-progress) * 2px));
  transition:
    min-height .35s ease,
    color .22s ease,
    background .22s ease,
    border-color .22s ease,
    transform .22s ease,
    box-shadow .22s ease;
}

.topbar.is-floating .nav-pill,
.topbar.is-floating .genres-menu > summary {
  background: rgba(255,255,255,.025);
}

.topbar.is-fully-floating {
  border-color: rgba(255,255,255,.105);
  box-shadow:
    0 22px 64px rgba(0,0,0,.34),
    0 2px 10px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.055);
}

@media (max-width: 1320px) {
  .topbar.is-floating { max-width: calc(100vw - 28px); }
}

@media (max-width: 900px) {
  .topbar {
    width: calc(100% - (var(--nav-scroll-progress) * 18px));
    top: calc(var(--nav-scroll-progress) * 8px);
    border-radius: calc(var(--nav-scroll-progress) * 18px);
  }
  .topbar.is-floating { max-width: calc(100vw - 18px); }
  .topbar-inner { width: calc(100% - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  .topbar,
  .topbar::before,
  .topbar::after,
  .topbar-inner,
  .topbar .brand-mark,
  .topbar .nav-pill,
  .topbar .genres-menu > summary {
    transition-duration: .01ms !important;
  }
}

/* v17 — seletor A/B sempre visível */
.content-provider-choice,
.live-provider-choice { position: relative; z-index: 2; }

.content-provider-button.is-unavailable,
.live-provider-button.is-unavailable,
.content-provider-button:disabled,
.live-provider-button:disabled {
  opacity: .48;
  cursor: not-allowed;
  transform: none !important;
  filter: saturate(.55);
  border-style: dashed;
  box-shadow: none !important;
}

.content-provider-button.is-unavailable > span,
.live-provider-button.is-unavailable > span {
  background: rgba(255,255,255,.055);
  color: #8d96a4;
}

.content-provider-button.is-unavailable small,
.live-provider-button.is-unavailable small { color: #8d96a4; }


/* === NetFilms v22 — correção do menu Categorias === */
.genres-menu { z-index: 260; }
.genres-popover {
  z-index: 280;
  width: min(650px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 96px));
  overflow: auto;
  overscroll-behavior: contain;
  background: rgb(10, 13, 19);
  border-color: rgba(255,255,255,.13);
  box-shadow: 0 34px 90px rgba(0,0,0,.62), 0 8px 28px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.055);
  scrollbar-width: thin;
}
.genres-popover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at 15% 0%, rgba(255,59,95,.07), transparent 34%), rgb(10,13,19);
}
.genres-popover > div { min-width: 0; }
.popover-title { position: sticky; top: -18px; z-index: 2; margin: -2px -2px 10px; padding: 4px 2px 8px; background: rgb(10,13,19); }
.genre-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.genre-links a { min-width: 0; min-height: 34px; display: flex; align-items: center; line-height: 1.25; }

@media (max-width: 900px) {
  .genres-menu { position: static; }
  .genres-popover {
    position: static;
    width: 100%;
    max-height: min(60vh, 520px);
    margin-top: 8px;
    padding: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    transform: none;
    border-radius: 15px;
  }
  .popover-title { top: -14px; }
}

@media (max-width: 560px) {
  .genres-popover { grid-template-columns: 1fr; gap: 18px; }
  .genre-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
  .genre-links { grid-template-columns: 1fr; }
}


/* ========================================================
   NetFilms v24 — Nova identidade visual
   ======================================================== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 10px 30px rgba(255, 28, 90, .23);
  transition:
    transform .28s cubic-bezier(.2,.8,.2,1),
    box-shadow .28s ease,
    filter .28s ease;
}

.brand:hover .brand-logo {
  transform: translateY(-2px) scale(1.045);
  filter: saturate(1.12) brightness(1.04);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12),
    0 14px 34px rgba(255, 28, 90, .34);
}

.brand-word {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.11rem;
  font-weight: 900;
  letter-spacing: -.045em;
  color: #f7f8fb;
  line-height: 1;
}

.brand-word > span {
  color: var(--accent);
}

/* Esconde o antigo marcador de play se um CSS antigo ainda o estilizar. */
.brand > .brand-mark {
  display: none !important;
}

.topbar.is-floating .brand-logo {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 11px;
}

.footer-brand .brand-logo {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 13px;
}

@media (max-width: 720px) {
  .brand-logo {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 11px;
  }

  .brand-word {
    font-size: 1rem;
  }
}


/* ========================================================
   NetFilms v25 — refinamento visual da marca
   Sem novas imagens: usa os assets existentes da v24.
   ======================================================== */

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  isolation: isolate;
}

.brand::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translateY(-50%);
  border-radius: 18px;
  background: radial-gradient(circle, rgba(255, 42, 91, .18), transparent 68%);
  filter: blur(8px);
  opacity: .72;
  z-index: -1;
  pointer-events: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.09);
  background: #08090d;
  box-shadow:
    0 0 0 1px rgba(255, 42, 91, .06),
    0 9px 26px rgba(0,0,0,.34),
    0 8px 28px rgba(255, 30, 83, .18);
  transition:
    transform .32s cubic-bezier(.16,1,.3,1),
    box-shadow .32s ease,
    filter .32s ease;
}

.brand:hover .brand-logo {
  transform: translateY(-1px) scale(1.055);
  filter: saturate(1.08) contrast(1.04);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12),
    0 12px 34px rgba(0,0,0,.42),
    0 11px 34px rgba(255, 30, 83, .28);
}

.brand-word {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.12rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.05em;
  color: #f7f8fb;
  text-shadow: 0 1px 18px rgba(255,255,255,.035);
}

.brand-word > span {
  background: linear-gradient(135deg, #ff5a79 0%, #ff274f 45%, #d40f49 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topbar.is-floating .brand-logo {
  width: 35px;
  height: 35px;
  flex-basis: 35px;
  border-radius: 11px;
}

.topbar.is-floating .brand-word {
  font-size: 1.04rem;
}

.footer-brand .brand {
  gap: 12px;
}

.footer-brand .brand-logo {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-radius: 14px;
}

/* Logos de canais: sem deformar, com fundo limpo e melhor contraste. */
.live-logo-box {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.06), transparent 44%),
    rgba(8,10,15,.78);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 8px 30px rgba(0,0,0,.25);
}

.live-logo-box img,
.live-logo-image {
  width: 84%;
  height: 84%;
  max-width: 84%;
  max-height: 84%;
  object-fit: contain !important;
  object-position: center;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.34));
}

.live-card:hover .live-logo-box img,
.live-card:hover .live-logo-image {
  transform: scale(1.035);
  transition: transform .28s cubic-bezier(.16,1,.3,1);
}

@media (max-width: 720px) {
  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 35px;
    height: 35px;
    flex-basis: 35px;
    border-radius: 11px;
  }

  .brand-word {
    font-size: 1rem;
  }
}
