:root {
  --bg: #141414;
  --panel: #181818;
  --panel2: #2f2f2f;
  --text: #fff;
  --muted: #a3a3a3;
  --red: #e50914;
  --green: #46d369;
  --gutter: 4%;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, "Helvetica Neue", Arial, sans-serif; }
body.locked { overflow: hidden; }
/* Shown until the landing or the app paints (auth.js removes it). */
.boot { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--bg); }
.boot .logo { color: var(--red); font-weight: 900; font-size: 48px; letter-spacing: -1px; animation: boot-pulse 1.4s ease-in-out infinite; }
@keyframes boot-pulse { 50% { opacity: .45; } }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; cursor: pointer; }
svg { width: 1em; height: 1em; display: block; fill: currentColor; }
.muted { color: var(--muted); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: 68px;
  display: flex; align-items: center; gap: 36px; padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(0,0,0,.7) 10%, transparent); transition: background .4s;
}
.nav.solid { background: var(--bg); }
.logo { color: var(--red); font-weight: 900; font-size: 30px; letter-spacing: -1px; cursor: pointer; transform: scaleY(1.15); }
.nav-links { display: flex; gap: 20px; font-size: 14px; }
.nav-links a { color: #e5e5e5; transition: color .3s; }
.nav-links a:hover { color: #b3b3b3; }
.nav-links a.active { color: #fff; font-weight: 700; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.icon-btn { background: none; border: 0; padding: 4px; cursor: pointer; font-size: 22px; display: grid; place-items: center; }
.icon-btn.big { font-size: 34px; }
.search { display: flex; align-items: center; border: 1px solid transparent; transition: all .3s; }
.search input { width: 0; padding: 0; border: 0; background: transparent; outline: none; transition: width .3s; font-size: 14px; }
.search.open { border-color: #fff; background: rgba(0,0,0,.75); }
.search.open input { width: 230px; padding: 6px 6px 6px 0; }
.nav-add { background: none; border: 1px solid #ffffff55; border-radius: 4px; padding: 4px 10px; cursor: pointer; font-size: 13px; }
.nav-add:hover { border-color: #fff; }
.avatar { width: 32px; height: 32px; border-radius: 4px; background: linear-gradient(135deg, #e50914, #7c3aed); }

/* ---------- Billboard ---------- */
.billboard { position: relative; height: 56.25vw; max-height: 88vh; min-height: 480px; overflow: hidden; }
.bb-media { position: absolute; inset: 0; }
.bb-media img, .bb-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.bb-media iframe { width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.77vh; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(1.15); pointer-events: none; opacity: 0; transition: opacity 1s; }
.bb-media iframe.on { opacity: 1; }
.bb-media.vertical img.blur { filter: blur(40px) brightness(.55); transform: scale(1.2); }
.bb-media.vertical img.fg { left: auto; right: 12%; width: auto; height: 100%; aspect-ratio: 9/16; object-fit: cover; box-shadow: 0 0 80px #000; }
.billboard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(77deg, rgba(0,0,0,.75) 0%, transparent 70%), linear-gradient(0deg, var(--bg) 0%, transparent 25%);
}
.bb-info { position: absolute; z-index: 2; left: var(--gutter); bottom: 32%; width: 40%; min-width: 320px; }
.bb-kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .25em; color: #ddd; margin-bottom: 10px; }
.bb-kicker b { color: var(--red); font-size: 22px; letter-spacing: 0; font-weight: 900; }
.bb-title { font-size: clamp(34px, 5vw, 76px); font-weight: 900; line-height: .95; letter-spacing: -2px; margin: 0 0 18px; text-shadow: 2px 2px 8px rgba(0,0,0,.5); }
.bb-synopsis { font-size: clamp(14px, 1.3vw, 19px); line-height: 1.35; text-shadow: 1px 1px 4px rgba(0,0,0,.6); margin: 0 0 22px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bb-buttons { display: flex; gap: 10px; }
.btn-play, .btn-info {
  display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 4px; cursor: pointer;
  padding: 10px 26px 10px 20px; font-size: clamp(14px, 1.2vw, 19px); font-weight: 700;
}
.btn-play { background: #fff; color: #000; }
.btn-play:hover { background: rgba(255,255,255,.75); }
.btn-info { background: rgba(109,109,110,.7); color: #fff; }
.btn-info:hover { background: rgba(109,109,110,.4); }
.btn-play svg, .btn-info svg { font-size: 1.5em; }
.bb-side { position: absolute; z-index: 2; right: 0; bottom: 32%; display: flex; align-items: center; gap: 12px; }
.bb-mute { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ffffffb3; background: transparent; cursor: pointer; display: grid; place-items: center; font-size: 18px; }
.bb-mute:hover { background: #ffffff1a; }
.bb-rating { background: rgba(51,51,51,.6); border-left: 3px solid #dcdcdc; padding: 6px 40px 6px 12px; font-size: 15px; }

/* ---------- Rows ---------- */
.rows { position: relative; z-index: 3; margin-top: -11vw; padding-bottom: 80px; }
.billboard[hidden] + .rows { margin-top: 0; padding-top: 100px; }
.row { margin: 0 0 3vw; position: relative; }
.row-head { display: flex; align-items: baseline; gap: 12px; padding: 0 var(--gutter); margin-bottom: 8px; }
.row-head h2 { font-size: clamp(14px, 1.4vw, 21px); font-weight: 700; margin: 0; color: #e5e5e5; }
.row-head .row-sub { font-size: 12px; color: var(--muted); }
.row-pages { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity .2s; }
.row:hover .row-pages { opacity: 1; }
.row-pages i { width: 12px; height: 2px; background: #4d4d4d; }
.row-pages i.on { background: #aaa; }
.slider { position: relative; }
.track { display: flex; gap: .4vw; overflow-x: auto; scroll-behavior: smooth; padding: 0 var(--gutter); scrollbar-width: none; scroll-padding: 0 var(--gutter); }
.track::-webkit-scrollbar { display: none; }
.arrow {
  position: absolute; top: 0; bottom: 0; z-index: 4; width: calc(var(--gutter) - .4vw); border: 0; cursor: pointer;
  background: rgba(20,20,20,.5); color: #fff; font-size: 2.6vw; opacity: 0; transition: opacity .2s, background .2s; display: grid; place-items: center;
}
.arrow.l { left: 0; border-radius: 0 4px 4px 0; }
.arrow.r { right: 0; border-radius: 4px 0 0 4px; }
.slider:hover .arrow { opacity: 1; }
.arrow:hover { background: rgba(20,20,20,.7); }
.arrow:hover svg { transform: scale(1.25); }
.arrow[disabled] { visibility: hidden; }

.card { flex: none; position: relative; border-radius: 4px; overflow: hidden; cursor: pointer; background: var(--panel); }
.card.h { width: calc((100vw - 2 * var(--gutter)) / 6 - .4vw); aspect-ratio: 16/9; }
.card.v { width: calc((100vw - 2 * var(--gutter)) / 7.5 - .4vw); aspect-ratio: 2/3; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Posters fade in once loaded, so nobody sees a half-painted or broken image (user, 2026-10-28). */
img[data-img] { opacity: 0; transition: opacity .25s; }
img[data-img].ok { opacity: 1; }
.card .ct {
  position: absolute; inset: auto 0 0 0; padding: 24px 8px 7px; font-weight: 800; font-size: clamp(11px, .95vw, 15px); line-height: 1.1;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); text-shadow: 0 1px 3px #000;
}
.card .tag { position: absolute; top: 0; left: 6px; background: var(--red); font-size: 9px; font-weight: 800; padding: 3px 5px 2px; border-radius: 0 0 2px 2px; letter-spacing: .05em; }
.card .n-badge { position: absolute; top: 6px; left: 6px; color: var(--red); font-weight: 900; font-size: 18px; text-shadow: 0 0 4px #000; }
.card .bar { position: absolute; left: 8px; right: 8px; bottom: 6px; height: 3px; background: #ffffff55; }
.card .bar i { display: block; height: 100%; background: var(--red); }
.card.continue .ct { bottom: 10px; }
.card-x { position: absolute; top: 6px; right: 6px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #ffffff66; background: #000000b3; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.card:hover .card-x, .card-x:focus-visible { opacity: 1; }
.card-x:hover { background: #000; border-color: #fff; }
@media (hover: none) { .card-x { opacity: 1; width: 26px; height: 26px; font-size: 16px; } }

/* Top 10 */
.card.top { width: calc((100vw - 2 * var(--gutter)) / 5.5 - .4vw); aspect-ratio: 1.4/1; background: none; display: flex; overflow: visible; }
.card.top .num { flex: 1; font-size: clamp(90px, 11vw, 190px); font-weight: 900; line-height: .8; letter-spacing: -.08em; color: var(--bg); -webkit-text-stroke: 4px #595959; display: flex; align-items: flex-end; justify-content: flex-end; margin-right: -4%; z-index: 0; }
.card.top .poster { width: 50%; height: 100%; border-radius: 4px; overflow: hidden; position: relative; z-index: 1; }
.card.top .poster img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hover popup ---------- */
.popup {
  position: absolute; z-index: 40; background: var(--panel); border-radius: 6px; overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,.75); transform: scale(.66); opacity: 0; transition: transform .25s ease, opacity .2s;
}
.popup.show { transform: scale(1); opacity: 1; }
.pop-media { position: relative; aspect-ratio: 16/9; background: #000; cursor: pointer; }
.pop-media img, .pop-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.pop-media iframe { pointer-events: none; opacity: 0; transition: opacity .6s; transform: scale(1.35); }
.pop-media iframe.on { opacity: 1; }
.pop-media .pop-title { position: absolute; left: 12px; bottom: 8px; font-weight: 900; font-size: 18px; text-shadow: 0 1px 6px #000; }
.pop-body { padding: 14px 14px 18px; }
.pop-actions { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.circle {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); background: rgba(42,42,42,.6);
  cursor: pointer; display: grid; place-items: center; font-size: 18px; transition: border-color .2s; position: relative;
  flex: none; aspect-ratio: 1; padding: 0; /* never squeezed into an oval inside a crowded flex row */
}
.circle:hover { border-color: #fff; }
.circle.white { background: #fff; color: #000; border-color: #fff; }
.circle.white:hover { background: #e6e6e6; }
.circle.on { border-color: #fff; }
.circle[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: #e6e6e6; color: #000; font-size: 13px; font-weight: 700; white-space: nowrap; padding: 6px 10px; border-radius: 4px; pointer-events: none;
}
.spacer { flex: 1; }
.circle.dis svg { transform: rotate(180deg); }
.rate { position: relative; display: inline-grid; }
.rate-menu {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); display: flex; gap: 6px; padding: 5px;
  border-radius: 999px; background: #232323; box-shadow: 0 2px 10px #000c; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 3;
}
.rate-menu .circle { background: transparent; border-color: transparent; }
.rate-menu .circle:hover, .rate-menu .circle.on { border-color: #fff; background: #ffffff1a; }
.rate.open .rate-menu { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
@media (hover: hover) { .rate:hover .rate-menu { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); } }
.pop-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: #bcbcbc; margin-bottom: 10px; }
.match { color: var(--green); font-weight: 700; }
.new { color: var(--green); font-weight: 700; }
.pill { border: 1px solid rgba(255,255,255,.4); padding: 0 6px; font-size: 12px; }
.hd { border: 1px solid rgba(255,255,255,.4); border-radius: 3px; padding: 0 4px; font-size: 10px; font-weight: 700; }
.pop-genres { font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.pop-genres span + span::before { content: "•"; color: #646464; margin-right: 6px; }

/* ---------- Detail modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; overflow-y: auto; display: flex; justify-content: center; padding: 32px 0; }
.overlay[hidden] { display: none; }
.overlay-bg { position: fixed; inset: 0; background: rgba(0,0,0,.7); }
.detail { position: relative; width: min(850px, 96vw); background: var(--panel); border-radius: 8px; overflow: hidden; height: max-content; box-shadow: 0 3px 10px #000; animation: pop .25s ease; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.x { position: absolute; top: 14px; right: 14px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #181818; cursor: pointer; font-size: 24px; line-height: 1; }
.d-hero { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.d-hero .d-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.d-hero iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; opacity: 0; transition: opacity .8s; transform: scale(1.3); } /* zoom crops YouTube's title bar */
.d-hero iframe.on { opacity: 1; }
/* Deeper scrim under the title: many posters carry their own title text right where ours sits. */
.d-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--panel) 0%, rgba(24,24,24,.82) 28%, rgba(24,24,24,.35) 58%, transparent 80%); pointer-events: none; }
.d-hero-info { position: absolute; z-index: 2; left: 48px; right: 48px; bottom: 40px; }
.d-hero-info h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 900; letter-spacing: -1px; margin: 0 0 18px; line-height: 1; text-shadow: 0 2px 12px #000, 0 0 2px #000; }
.d-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.d-actions .btn-play { flex: none; }
.d-actions .circle { width: 42px; height: 42px; }
.d-body { padding: 0 48px 40px; }
.d-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.d-grid p { line-height: 1.5; margin: 12px 0; }
.d-side { font-size: 14px; color: #ddd; }
.d-side div { margin: 6px 0 12px; line-height: 1.4; }
.d-side span { color: #777; }
.note { font-size: 13px; color: #c9a227; }
.d-section { margin-top: 36px; }
.d-section-head { display: flex; justify-content: space-between; align-items: baseline; }
.d-section h3 { font-size: 24px; margin: 0 0 16px; }
.ep { display: grid; grid-template-columns: 40px 130px 1fr; gap: 16px; align-items: center; padding: 16px; border-bottom: 1px solid #404040; border-radius: 4px; cursor: pointer; }
.ep:first-child { border-top: 1px solid #404040; }
.ep:hover, .ep.current { background: #333; }
.ep-n { font-size: 24px; color: #d2d2d2; text-align: center; }
.ep-thumb { position: relative; aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; background: #000; }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-thumb .play-ov { position: absolute; inset: 0; display: grid; place-items: center; font-size: 32px; opacity: 0; transition: opacity .2s; background: #0006; }
.ep:hover .play-ov { opacity: 1; }
.ep-thumb .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); }
.ep-title { font-weight: 700; font-size: 15px; }
.ep-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.similar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sim { background: var(--panel2); border-radius: 4px; overflow: hidden; cursor: pointer; }
.sim-img { position: relative; aspect-ratio: 16/9; background: #000; }
.sim-img img { width: 100%; height: 100%; object-fit: cover; }
.sim-img b { position: absolute; left: 8px; bottom: 6px; font-size: 14px; text-shadow: 0 1px 4px #000; }
.sim-body { padding: 12px; font-size: 13px; color: #d2d2d2; }
.sim-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sim-body p { margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.danger { background: none; border: 1px solid #ff5a5f88; color: #ff8a8e; border-radius: 4px; padding: 6px 12px; cursor: pointer; margin-top: 12px; }

/* ---------- Search / grid / explore ---------- */
.see-all { font-size: 13px; color: #54b9c5; font-weight: 600; opacity: 0; transition: opacity .2s; }
.row:hover .see-all { opacity: 1; }
.back-link { display: inline-block; margin-bottom: 12px; color: var(--muted); }
.back-link:hover { color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 24px; }
.filters select { background: #000; border: 1px solid #ffffff55; padding: 6px 10px; font-size: 14px; border-radius: 2px; cursor: pointer; }
.filters select:hover { border-color: #fff; }
.filters .reset { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; }
.filters .reset:hover { color: #fff; }
.grid-page { padding: 0 var(--gutter); min-height: 70vh; }
.grid-page h2 { color: var(--muted); font-weight: 400; font-size: 16px; margin: 0 0 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 3vw .4vw; }
.grid .card { width: auto; }
.grid.v { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* ---------- Player ---------- */
.player { position: fixed; inset: 0; z-index: 60; background: #000; }
.player[hidden] { display: none; }
.screen { position: absolute; inset: 0; display: grid; place-items: center; }
.screen iframe, .screen video { border: 0; width: 100%; height: 100%; }
.screen video { background: #000; object-fit: contain; }
.screen #dmPlayer, .screen .dailymotion-player-root, .screen .dailymotion-player-wrapper { width: 100%; height: 100%; }
/* Vertical player: phone-sized 9:16 frame centered, blurred backdrop, episode list docked at its right */
.player { --vh: calc(100vh - 150px); --vw: calc(var(--vh) * 9 / 16); }
.player-bg { position: absolute; inset: 0; overflow: hidden; }
.player-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(50px) brightness(.35); transform: scale(1.2); }
.screen.vertical { inset: 70px auto 80px 50%; width: var(--vw); transform: translateX(-50%); }
.screen.vertical iframe { width: var(--vw); height: var(--vh); border-radius: 14px; background: #000; box-shadow: 0 10px 60px #000c; }
.player.vertical .drawer { left: calc(50% + var(--vw) / 2 + 28px); right: auto; top: 70px; bottom: auto; width: min(360px, calc(50vw - var(--vw) / 2 - 56px)); max-height: var(--vh); background: rgba(24,24,24,.85); backdrop-filter: blur(8px); }
.player.vertical #episodesToggle { display: none; }
.drawer-meta { margin: -6px 16px 8px; color: var(--muted); font-size: 13px; }
.drawer-syn { margin: 0 16px 12px; font-size: 13px; line-height: 1.45; color: #ccc; }
.screen .fallback { text-align: center; }
.player-top, .player-bottom { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 16px; padding: 18px 24px; transition: opacity .4s; z-index: 2; }
.player-top { top: 0; background: linear-gradient(rgba(0,0,0,.7), transparent); }
.player-bottom { bottom: 0; justify-content: flex-end; pointer-events: none; }
.player-bottom > * { pointer-events: auto; }
.player.idle .player-top, .player.idle .player-bottom { opacity: 0; }
.player-title { font-size: 18px; }
.player-title b { font-weight: 800; }
.player-chip { background: rgba(42,42,42,.85); border: 1px solid #ffffff44; border-radius: 4px; padding: 8px 14px; cursor: pointer; font-size: 14px; }
.player-chip:hover { background: #fff; color: #000; }
.player-chip.next { background: #fff; color: #000; font-weight: 700; }
.drawer { position: absolute; right: 24px; bottom: 76px; width: 380px; max-height: 60vh; overflow-y: auto; background: #262626; border-radius: 4px; z-index: 3; padding: 8px 0; box-shadow: 0 4px 20px #000; }
.drawer h4 { margin: 8px 16px 12px; font-size: 20px; }
.drawer .ep { grid-template-columns: 28px 100px 1fr; padding: 10px 16px; border-radius: 0; gap: 12px; }
.drawer .ep-n { font-size: 16px; }

/* ---------- Form / toast ---------- */
.form-box { position: relative; width: min(520px, 94vw); height: max-content; background: var(--panel); border-radius: 8px; padding: 32px; display: grid; gap: 14px; margin: auto; }
.form-box h2 { margin: 0; }
.form-box p { margin: 0; font-size: 13px; }
.form-box label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.form-box input, .form-box select, .form-box textarea { padding: 10px; border-radius: 4px; border: 1px solid #444; background: #333; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: 32px; transform: translateX(-50%); background: #fff; color: #000; font-weight: 700; padding: 10px 18px; border-radius: 4px; box-shadow: 0 4px 16px #0008; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  html, body { overflow-x: clip; } /* nothing may widen the page sideways */
  .nav { gap: 16px; }
  .nav-links { display: none; }
  .search.open input { width: 140px; }
  /* "+ Agregar" shrinks to a "+" so it still fits next to search and the avatar. */
  .nav-add { font-size: 0; padding: 2px 9px; line-height: 1; }
  .nav-add::before { content: "+"; font-size: 22px; font-weight: 600; }
  .row-pages { display: none; } /* page dots go with the arrows; on phones rows just swipe */
  .billboard { min-height: 70vh; }
  .bb-info { width: auto; right: var(--gutter); min-width: 0; bottom: 22%; }
  /* Phones: the info covers most of the image, so darken the lower 60% where posters often carry their own title. */
  .billboard::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(20,20,20,.9) 22%, rgba(20,20,20,.6) 45%, rgba(20,20,20,.15) 70%, transparent 85%); }
  .bb-title { text-shadow: 0 2px 12px #000, 0 0 2px #000; }
  .bb-side { bottom: auto; top: 84px; } /* clear of the buttons, which span the full width here */
  .bb-rating { padding: 4px 16px 4px 10px; font-size: 13px; }
  .bb-mute { width: 34px; height: 34px; font-size: 15px; }
  .rows { margin-top: 0; }
  .card.h { width: 42vw; }
  .card.v { width: 30vw; }
  .card.top { width: 48vw; }
  .arrow { display: none; }
  .d-hero-info { left: 20px; right: 20px; bottom: 20px; }
}
@media (max-width: 600px) {
  /* Phones: the 16:9 image is ~200px tall, so title + buttons go UNDER it (Netflix mobile layout), never over the poster. */
  .d-hero { aspect-ratio: auto; background: var(--panel); }
  .d-hero .d-bg { position: relative; display: block; aspect-ratio: 16/9; height: auto; }
  .d-hero iframe { inset: 0 0 auto 0; height: auto; aspect-ratio: 16/9; transform: none; } /* the 1.2 zoom would spill under the image */
  .d-hero::after { inset: 0 0 auto 0; aspect-ratio: 16/9; height: auto; background: linear-gradient(0deg, var(--panel) 0%, transparent 35%); }
  .d-hero-info { position: relative; left: auto; right: auto; bottom: auto; padding: 10px 20px 4px; }
  .d-hero-info h1 { font-size: 28px; margin-bottom: 14px; text-shadow: none; }
  .d-hero-info { padding-bottom: 14px; }
  .d-body { padding: 0 20px 28px; }
  .d-grid { grid-template-columns: 1fr; gap: 0; }
  .similar { grid-template-columns: repeat(2, 1fr); }
  .ep { grid-template-columns: 28px 100px 1fr; padding: 10px; gap: 10px; }
  .drawer { left: 12px; right: 12px; width: auto; }
  .player { --vh: calc(100vh - 140px); }
  .player-top, .player-bottom { padding: 10px 12px; gap: 8px; }
  .player-chip { padding: 7px 10px; font-size: 13px; white-space: nowrap; }
  .player-title { font-size: 15px; }
  .screen.vertical { inset: 60px auto 80px 50%; }
  .player.vertical .drawer { display: none; }
}

/* ---------- +18 ---------- */
.card .age { position: absolute; top: 6px; right: 6px; z-index: 1; background: rgba(0,0,0,.75); border: 1px solid #e50914; color: #fff; font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 3px; }
.age-pill { border-color: var(--red); color: #ff6b72; }
.age-box { text-align: center; justify-items: center; }
.age-big { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--red); display: grid; place-items: center; font-weight: 900; font-size: 22px; color: var(--red); }
.age-actions { display: flex; gap: 10px; justify-content: center; }
.age-box .small { font-size: 12px; }
.age-box a { text-decoration: underline; }

/* ---------- Profiles ---------- */
.pf-gate { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 24px; overflow-y: auto; }
.pf-logo { position: absolute; top: 20px; left: 4%; }
.pf-gate h1 { font-size: clamp(28px, 3.5vw, 52px); font-weight: 500; margin: 0; text-align: center; }
.pf-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 2vw; }
.pf { background: none; border: 0; cursor: pointer; display: grid; justify-items: center; gap: 12px; position: relative; color: var(--muted); }
.pf:hover { color: #fff; }
.pf-avatar { width: clamp(84px, 10vw, 150px); aspect-ratio: 1; border-radius: 6px; border: 3px solid transparent; position: relative; overflow: hidden;
  background-image: radial-gradient(circle at 32% 38%, #fff 0 5.5%, transparent 6%), radial-gradient(circle at 68% 38%, #fff 0 5.5%, transparent 6%) !important; }
.pf-avatar:not(.pf-add)::after { content: ""; position: absolute; left: 26%; right: 26%; top: 50%; height: 16%; border: solid #fff; border-width: 0 0 max(3px, .35vw) 0; border-radius: 0 0 50% 50%; }
.pf-avatar { background-blend-mode: normal; }
.pf:hover .pf-avatar { border-color: #fff; }
.pf-avatar span { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-weight: 900; font-size: 14px; color: #fff; text-shadow: 0 1px 3px #000; }
.pf-add { display: grid; place-items: center; font-size: 64px; color: #777; border: 3px solid #333 !important; background: none !important; }
.pf-edit-ov { position: absolute; top: 0; width: clamp(84px, 10vw, 150px); aspect-ratio: 1; display: grid; place-items: center; background: #0008; font-size: 36px; color: #fff; border-radius: 6px; }
.pf-name { font-size: clamp(13px, 1.3vw, 20px); }
.pf-manage { background: none; border: 1px solid #808080; color: #808080; padding: 8px 24px; font-size: 16px; letter-spacing: 2px; cursor: pointer; text-transform: uppercase; }
.pf-manage:hover { color: #fff; border-color: #fff; }
.pf-editor { width: min(640px, 100%); display: grid; gap: 24px; }
.pf-editor h1 { text-align: left; }
.pf-editor-row { display: flex; gap: 24px; align-items: flex-start; border-top: 1px solid #333; border-bottom: 1px solid #333; padding: 20px 0; }
.pf-avatar.big { width: 120px; flex: none; }
.pf-fields { display: grid; gap: 14px; flex: 1; }
.pf-fields input[name=name], .pf-pin input, .pf-pin-input { background: #666; border: 0; padding: 10px 12px; font-size: 16px; color: #fff; }
.pf-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-colors input { display: none; }
.pf-colors i { display: block; width: 28px; height: 28px; border-radius: 4px; cursor: pointer; border: 2px solid transparent; }
.pf-colors input:checked + i { border-color: #fff; }
.pf-check, .pf-pin { display: grid; gap: 6px; color: #ccc; font-size: 14px; }
.pf-check { display: flex; gap: 8px; align-items: center; }
.pf-check small, .pf-pin small { color: var(--muted); }
.pf-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pf-pinform { justify-items: center; text-align: center; }
.pf-pinform h1 { text-align: center; font-size: 28px; }
.pf-pin-input { width: 160px; text-align: center; font-size: 32px !important; letter-spacing: 16px; }
.avatar { cursor: pointer; }
.nav-right { position: relative; }
.profile-menu { position: absolute; top: 46px; right: 0; background: rgba(0,0,0,.92); border: 1px solid #333; min-width: 220px; padding: 10px 0; font-size: 14px; z-index: 40; }
.profile-menu .pm-row { display: flex; align-items: center; gap: 10px; padding: 6px 14px; color: #ccc; }
.profile-menu .pm-row.on { color: #fff; font-weight: 700; }
.profile-menu .pm-row i { width: 26px; height: 26px; border-radius: 4px; }
.profile-menu hr { border: 0; border-top: 1px solid #333; margin: 8px 0; }
.profile-menu a { display: block; padding: 6px 14px; }
.profile-menu a:hover { text-decoration: underline; }

/* ---------- Smart / AI search ---------- */
.search.open input { width: 300px; }
.search-understood { margin: -12px 0 18px; color: var(--muted); font-size: 13px; }
.search-add { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: -6px 0 18px; color: var(--muted); font-size: 14px; }
.search-add .btn-info { padding: 7px 14px; font-size: 14px; }
.search-add.empty { margin: 8px 0 22px; padding: 18px; border: 1px dashed #ffffff40; border-radius: 6px; color: #fff; font-size: 16px; }
.ai-box { background: linear-gradient(135deg, #1f1033, #141414 60%); border: 1px solid #7c3aed55; border-radius: 8px; padding: 16px; margin-bottom: 28px; }
.ai-head { font-weight: 700; margin-bottom: 12px; }
.ai-head .muted { font-weight: 400; font-size: 13px; margin-left: 6px; }
.ai-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.ai-item { display: grid; grid-template-columns: 120px 1fr; gap: 12px; background: #ffffff0a; border-radius: 6px; padding: 8px; cursor: pointer; }
.ai-item:hover { background: #ffffff18; }
.ai-item img { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; }
.ai-item p { margin: 4px 0 0; font-size: 13px; color: #ccc; line-height: 1.35; }

/* ---------- Player fallback (no embed) ---------- */
.screen .fallback { position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; border-radius: inherit; }
.screen .fallback-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(.45); transform: scale(1.1); }
.screen .fallback-card { position: relative; max-width: 360px; margin: 16px; text-align: center; background: rgba(20,20,20,.75); border: 1px solid #ffffff22; border-radius: 10px; padding: 24px 20px; backdrop-filter: blur(6px); }
.screen .fallback-card h3 { margin: 0 0 8px; font-size: 20px; }
.screen .fallback-card p { margin: 0 0 18px; color: #ccc; font-size: 14px; line-height: 1.45; }
.screen.vertical .fallback { width: var(--vw); height: var(--vh); border-radius: 14px; }
.profile-menu .pm-toggle { display: flex; gap: 8px; align-items: center; padding: 6px 14px; cursor: pointer; color: #ccc; }

/* ---------- Login ---------- */
.login-gate { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 24px; overflow-y: auto;
  background: radial-gradient(ellipse at top, #3a0a12 0%, var(--bg) 60%); }
.login-logo { position: absolute; top: 22px; left: 4%; }
.login-box { width: min(420px, 100%); background: rgba(0,0,0,.75); border-radius: 8px; padding: 44px 40px; display: grid; gap: 14px; }
.login-box h1 { margin: 0 0 8px; font-size: 30px; }
.login-box input { background: #333; border: 1px solid #555; border-radius: 4px; padding: 14px; font-size: 15px; color: #fff; }
.login-box input:focus { outline: none; border-color: #fff; }
.login-submit { justify-content: center; background: var(--red); color: #fff; padding: 12px; margin-top: 8px; }
.login-submit:hover { background: #c40812; }
.login-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.login-or::before, .login-or::after { content: ""; flex: 1; border-top: 1px solid #444; }
.login-google { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #222; border: 0; border-radius: 4px; padding: 12px; font-weight: 600; cursor: pointer; }
.login-google:hover { background: #eee; }
.login-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.login-links a { color: #fff; }
.login-links a:hover { text-decoration: underline; }
.login-error { margin: 0; background: #e87c03; color: #fff; padding: 10px 14px; border-radius: 4px; font-size: 14px; }
.login-info { margin: 0; background: #1d6b3a; color: #fff; padding: 10px 14px; border-radius: 4px; font-size: 14px; }
.pf-account { color: var(--muted); font-size: 13px; margin: 0; }
.pf-account a { color: #fff; text-decoration: underline; }
.profile-menu .pm-email { padding: 4px 14px; color: var(--muted); font-size: 12px; }

/* ---------- Landing (before login) ---------- */
.landing { position: fixed; inset: 0; z-index: 110; overflow-y: auto; background: #000; }
.ld-hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.ld-bg { position: absolute; inset: 0; overflow: hidden; }
.ld-bg img, .ld-bg iframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.ld-bg img { width: 100%; height: 100%; object-fit: cover; }
.ld-bg iframe { width: max(100vw, 177.78vh); height: max(56.25vw, 100vh); opacity: 0; transition: opacity 1.5s; transform: translate(-50%, -50%) scale(1.2); }
.ld-bg iframe.on { opacity: 1; }
.ld-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  /* bottom band darker: the background reels often carry burned-in subtitles there */
  background: linear-gradient(0deg, #000 2%, rgba(0,0,0,.88) 20%, rgba(0,0,0,.35) 50%, rgba(0,0,0,.75) 100%), radial-gradient(ellipse at center, rgba(0,0,0,.1), rgba(0,0,0,.6)); }
.ld-nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 22px 6%; }
.ld-signin { background: var(--red); color: #fff; border: 0; border-radius: 4px; padding: 8px 18px; font-weight: 700; cursor: pointer; }
.ld-signin:hover { background: #c40812; }
.ld-hero-content { position: relative; z-index: 2; margin: auto; text-align: center; padding: 40px 6% 80px; max-width: 900px; }
.ld-hero-content h1 { font-size: clamp(30px, 4.6vw, 60px); font-weight: 900; line-height: 1.08; letter-spacing: -0.5px; word-spacing: .06em; margin: 0 0 16px; text-shadow: 0 2px 12px #000; }
.ld-sub { font-size: clamp(16px, 1.8vw, 22px); margin: 0 0 28px; }
.ld-stats { display: flex; justify-content: center; gap: clamp(18px, 4vw, 48px); margin-bottom: 30px; flex-wrap: wrap; }
.ld-stats div { display: grid; }
.ld-stats b { font-size: clamp(24px, 3vw, 38px); font-weight: 900; color: #fff; }
.ld-stats span { color: #ccc; font-size: 14px; }
.ld-cta-text { font-size: 18px; margin: 0 0 14px; }
.ld-cta { display: flex; gap: 8px; justify-content: center; max-width: 620px; margin: 0 auto; flex-wrap: wrap; }
.ld-cta input { flex: 1; min-width: 220px; background: rgba(22,22,22,.7); border: 1px solid #ffffff66; border-radius: 4px; padding: 16px; font-size: 16px; color: #fff; }
.ld-cta-btn { background: var(--red); color: #fff; font-size: 20px; padding: 12px 24px; }
.ld-cta-btn:hover { background: #c40812; }
.ld-cta-alt { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; font: inherit; font-size: 17px; font-weight: 600; padding: 11px 20px; cursor: pointer; }
.ld-cta-alt:hover { background: rgba(255,255,255,.24); }
.ld-now { margin-top: 26px; font-size: 13px; color: #bbb; }
.ld-band { border-top: 8px solid #232323; padding: 64px 6%; background: #000; }
.ld-band h2 { font-size: clamp(24px, 3vw, 40px); font-weight: 900; margin: 0 0 28px; text-align: center; }
.ld-posters { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.ld-posters::-webkit-scrollbar { display: none; }
.ld-poster { flex: none; width: 240px; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; position: relative; background: #111; }
.ld-poster img { width: 100%; height: 100%; object-fit: cover; }
.ld-poster span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-weight: 800; font-size: 14px; background: linear-gradient(transparent, #000d); }
.ld-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.ld-feature { background: linear-gradient(149deg, #192247 0%, #210e17 99%); border-radius: 14px; padding: 26px 22px; }
.ld-ico { font-size: 34px; margin-bottom: 10px; }
.ld-feature h3 { margin: 0 0 8px; font-size: 22px; }
.ld-feature p { margin: 0; color: #ccc; line-height: 1.5; }
.ld-faq { max-width: 900px; margin: 0 auto; }
.ld-faq details { background: #2d2d2d; margin-bottom: 8px; }
.ld-faq summary { padding: 22px 24px; font-size: clamp(16px, 1.8vw, 22px); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.ld-faq summary::after { content: "+"; font-size: 30px; line-height: .8; }
.ld-faq details[open] summary::after { content: "×"; }
.ld-faq details p { margin: 0; padding: 0 24px 24px; border-top: 1px solid #000; padding-top: 20px; font-size: 17px; line-height: 1.5; }
.ld-faq .ld-cta-text { text-align: center; margin-top: 40px; }
.ld-footer { border-top: 8px solid #232323; padding: 40px 6% 60px; color: #777; background: #000; }
.ld-footer p { font-size: 13px; }
.ld-legal a, .login-terms a { color: inherit; }
.login-terms { color: #8c8c8c; font-size: 12px; margin: 14px 0 0; line-height: 1.4; }
.login-logo { cursor: pointer; }
@media (max-width: 700px) { .ld-poster { width: 180px; } .ld-cta-btn, .ld-cta-alt { width: 100%; justify-content: center; } }

/* ---------- Language picker ---------- */
.lang-picker { background: rgba(0,0,0,.6); color: #fff; border: 1px solid #ffffff66; border-radius: 4px; padding: 6px 8px; font-size: 13px; cursor: pointer; }
.lang-picker:hover { border-color: #fff; }
.ld-nav-right { display: flex; gap: 10px; align-items: center; }
.login-lang { position: absolute; top: 22px; right: 4%; }
.profile-menu .pm-lang { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 14px; color: #ccc; }
.pf-account .lang-picker { margin-left: 4px; }
.card .fan { position: absolute; bottom: 30px; right: 6px; z-index: 1; background: rgba(124,58,237,.9); color: #fff; font-size: 9px; font-weight: 800; padding: 2px 5px; border-radius: 3px; letter-spacing: .04em; }

/* ---------- Direct-link title card on the landing ---------- */
.ld-linked { position: relative; z-index: 3; margin: -120px auto 0; padding: 0 6% 40px; max-width: 980px; }
.ld-linked-card { display: grid; grid-template-columns: minmax(0, 1.1fr) 1fr; gap: 24px; align-items: center; background: #181818; border: 1px solid #ffffff22; border-radius: 12px; padding: 18px; box-shadow: 0 20px 60px #000c; }
.ld-linked-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.ld-linked-kicker { color: var(--red); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.ld-linked h2 { margin: 6px 0; font-size: clamp(22px, 3vw, 34px); font-weight: 900; }
.ld-linked-meta { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.ld-linked p { line-height: 1.5; }
.ld-linked b { color: #b48cff; }
@media (max-width: 700px) { .ld-linked { margin-top: -60px; } .ld-linked-card { grid-template-columns: 1fr; } }

.server-pick { display: flex; align-items: center; gap: 4px; background: rgba(42,42,42,.85); border: 1px solid #ffffff44; border-radius: 4px; padding: 3px 4px 3px 10px; font-size: 13px; }
.server-pick span { color: #bbb; margin-right: 4px; }
.server-pick button { background: none; border: 0; color: #ddd; padding: 5px 10px; border-radius: 3px; cursor: pointer; font-size: 13px; }
.server-pick button.on { background: #fff; color: #000; font-weight: 700; }
.server-pick[hidden] { display: none; }
/* ---------- Mobile search fixes (must stay last) ---------- */
@media (max-width: 700px) {
  .nav { gap: 10px; }
  .nav-right { gap: 10px; min-width: 0; }
  .search.open { flex: 1; min-width: 0; }
  .search.open input { width: 100%; min-width: 0; font-size: 16px; } /* 16px avoids iOS zoom */
  .nav:has(.search.open) .logo { font-size: 24px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
  .grid.v { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid .card, .grid .card.h, .grid .card.v, .grid .card.top { width: auto; }
  .grid-page h2 { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
  .search-understood { font-size: 12px; overflow-wrap: anywhere; }
  .ai-list { grid-template-columns: 1fr; }
  .ai-item { grid-template-columns: 96px 1fr; }
}
@media (max-width: 700px) { .nav:has(.search.open) .nav-right { flex: 1; } }

/* ---------- Add: search YouTube / Dailymotion ---------- */
.add-box { width: min(640px, 94vw); max-height: 88vh; overflow-y: auto; }
.add-search { display: flex; gap: 8px; }
.add-search input { flex: 1; min-width: 0; padding: 12px; border-radius: 4px; border: 1px solid #444; background: #333; font-size: 16px; }
.add-search .btn-play { padding: 0 18px; }
.add-results { display: grid; gap: 8px; }
.add-results:empty { display: none; }
.add-hit { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: #ffffff0a; border-radius: 6px; padding: 8px; }
.add-hit img { width: 112px; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; background: #222; }
.add-hit-info { display: grid; gap: 4px; min-width: 0; font-size: 14px; }
.add-hit-info b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.add-hit-info .muted { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.add-go { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
.add-manual summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.add-manual-form { display: grid; gap: 14px; margin-top: 14px; }
.add-manual-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.add-manual-form input, .add-manual-form select, .add-manual-form textarea { padding: 10px; border-radius: 4px; border: 1px solid #444; background: #333; }
@media (max-width: 700px) {
  .add-box { padding: 24px 16px; }
  .add-hit { grid-template-columns: 88px minmax(0, 1fr); }
  .add-hit img { width: 88px; }
  .add-go { grid-column: 1 / -1; justify-self: end; }
}
/* Sign-up sheet over the guest catalog: closable, Google first. */
.login-gate.login-wall { background: rgba(0,0,0,.78); backdrop-filter: blur(6px); }
.login-wall .login-close { position: fixed; top: 18px; right: 18px; }
.login-wall .login-lang { right: 72px; } /* leave room for the close button */
.login-wall .login-box > h1, .login-wall .login-box > .login-info, .login-wall .login-box > .login-error { order: -3; }
.login-wall .login-google { order: -2; }
.login-wall .login-or { order: -1; }
.ld-poster[data-browse] { cursor: pointer; }
.ld-cta + .ld-cta-text { margin-top: 14px; font-size: 15px; opacity: .85; }

/* ---------- Premium (app.js → openPremium) ---------- */
.premium-box { width: min(980px, 94vw); padding: 32px; }
.premium-box h2 { font-size: 30px; margin-bottom: 6px; }
.pr-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 14px; }
.pr-plan { background: #1f1f1f; border: 1px solid #333; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.pr-plan h3 { font-size: 19px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pr-price { font-size: 30px; font-weight: 800; } .pr-price small { font-size: 14px; color: #a3a3a3; font-weight: 500; }
.pr-plan ul { list-style: none; padding: 0; margin: 0 0 auto; display: grid; gap: 8px; font-size: 14px; color: #ddd; }
.pr-plan li::before { content: "✓"; color: #46d369; margin-right: 8px; font-weight: 700; }
.pr-super li::before { content: "✨"; }
.pr-main { border-color: #e50914; box-shadow: 0 0 0 1px #e50914 inset; }
.pr-super { background: linear-gradient(160deg, #2a1636, #1f1f1f 60%); border-color: #6b3fa0; }
.pr-focus { outline: 2px solid #fff; outline-offset: 2px; }
.pr-soon { white-space: nowrap; display: inline-block; line-height: 1.5; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: #6b3fa0; color: #fff; border-radius: 99px; padding: 2px 8px; vertical-align: middle; }
.pr-interest { font-size: 13px; color: #bbb; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.pr-interest > span { flex-basis: 100%; }
.pr-interest label { display: inline-flex; gap: 5px; align-items: center; color: #eee; }
.pr-plan textarea { width: 100%; background: #141414; color: #eee; border: 1px solid #444; border-radius: 6px; padding: 8px; font: inherit; font-size: 13px; resize: vertical; }
.pr-plan .btn-play, .pr-plan .btn-info { justify-content: center; width: 100%; }
.pr-msg { font-size: 13px; color: #46d369; margin: 0; }
.pr-foot { font-size: 12px; }
.btn-remix { background: linear-gradient(135deg, #6b3fa0, #e50914); color: #fff; border: 0; border-radius: 4px; padding: 0 16px; height: 42px; font-weight: 700; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.btn-remix { flex: none; white-space: nowrap; }
@media (max-width: 480px) {
  /* phones: Remix gets its own full-width row under Play + the round buttons instead of being cut off */
  .d-actions .btn-remix { flex: 1 1 100%; justify-content: center; height: 40px; }
}
.btn-remix span { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; background: rgba(0,0,0,.35); padding: 2px 6px; border-radius: 99px; }
.pm-premium { color: #f5c518 !important; font-weight: 700; }
.pr-nudge { position: fixed; z-index: 60; right: 20px; bottom: 20px; width: min(360px, calc(100vw - 32px)); background: #1f1f1f; border: 1px solid #444; border-radius: 12px; padding: 16px 40px 16px 16px; box-shadow: 0 10px 40px #000c; display: grid; gap: 8px; font-size: 14px; }
.pr-nudge .x { position: absolute; top: 6px; right: 10px; background: none; border: 0; color: #aaa; font-size: 22px; cursor: pointer; }
.pr-nudge .btn-play { justify-self: start; height: 36px; padding: 0 16px; }
@media (max-width: 760px) {
  .premium-box { padding: 24px 16px; }
  .pr-plans { grid-template-columns: 1fr; }
}

/* iOS app (config.js adds .native-app): keep the nav and overlays clear of the notch / home indicator. */
.native-app .nav { padding-top: env(safe-area-inset-top); height: calc(68px + env(safe-area-inset-top)); }
.native-app .overlay { padding-top: calc(32px + env(safe-area-inset-top)); }
.native-app body { padding-bottom: env(safe-area-inset-bottom); }
.native-app .ld-nav { padding-top: calc(22px + env(safe-area-inset-top)); }
.native-app .login-gate { padding-top: calc(24px + env(safe-area-inset-top)); }
.native-app .login-logo, .native-app .login-lang { top: calc(22px + env(safe-area-inset-top)); }
.native-app .login-wall .login-close { top: calc(18px + env(safe-area-inset-top)); }
@media (max-width: 900px) { .native-app .bb-side { top: calc(84px + env(safe-area-inset-top)); } }
.native-app .player-top { padding-top: calc(10px + env(safe-area-inset-top)); }
.native-app .player-bottom { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.native-app .player-top, .native-app .player-bottom { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); } /* landscape notch */
.native-app .drawer { bottom: calc(76px + env(safe-area-inset-bottom)); }
.native-app .pf-gate { padding-top: calc(24px + env(safe-area-inset-top)); padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.native-app .toast { bottom: calc(32px + env(safe-area-inset-bottom)); }
.native-app .pr-nudge { bottom: calc(20px + env(safe-area-inset-bottom)); }
.pr-restore { font-size: 13px; color: #aaa; text-align: center; cursor: pointer; text-decoration: underline; }
.login-apple { background: #fff; color: #000; font-weight: 600; }
.login-apple::before { content: ""; }
.pm-danger { color: #e87c03 !important; }
.pm-danger-btn { background: #e50914 !important; color: #fff !important; }

/* ---------- Phone layout (Netflix-app style): pills under the logo, card billboard, floating tab bar ---------- */
.nav-pills, .tabbar, .bb-meta, .bb-list { display: none; }
.bb-media[data-info] { cursor: pointer; }
@media (max-width: 700px) {
  :root { --nav-h: 104px; }
  .native-app { --nav-h: calc(104px + env(safe-area-inset-top)); }
  .nav, .native-app .nav { height: auto; flex-wrap: wrap; row-gap: 8px; padding-top: 10px; padding-bottom: 10px;
    background: linear-gradient(180deg, rgba(0,0,0,.85), rgba(0,0,0,.5) 70%, transparent); }
  .native-app .nav { padding-top: calc(8px + env(safe-area-inset-top)); }
  .nav.solid { background: rgba(20,20,20,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .nav .logo { font-size: 26px; }
  .nav-add, #searchToggle, .search:not(.open) { display: none; } /* "+ Agregar" lives in the profile menu; search in the tab bar */
  .nav-pills { display: flex; order: 3; flex-basis: 100%; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .nav-pills::-webkit-scrollbar { display: none; }
  .nav-pills a { flex: none; padding: 7px 16px; border: 1px solid #ffffff4d; border-radius: 999px; background: #ffffff14; font-size: 14px; font-weight: 600; cursor: pointer; }
  .nav-pills a.active { background: #fff; color: #000; border-color: #fff; }
  .nav.solid .nav-pills { display: none; }

  .billboard { margin: calc(var(--nav-h) + 4px) 16px 0; height: auto; min-height: 0; max-height: none; aspect-ratio: 4 / 5;
    border-radius: 14px; border: 1px solid #ffffff26; box-shadow: 0 14px 40px #000b; isolation: isolate; }
  .billboard::after { background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 30%, transparent 58%); }
  .bb-media iframe { width: auto; height: 100%; min-width: 0; min-height: 0; aspect-ratio: 16 / 9; transform: translate(-50%, -50%) scale(1.2); }
  .bb-media.vertical img.fg { left: 50%; right: auto; transform: translateX(-50%); }
  .bb-info { left: 16px; right: 16px; bottom: 18px; width: auto; min-width: 0; text-align: center; }
  .bb-kicker { justify-content: center; font-size: 11px; margin-bottom: 6px; }
  .bb-kicker b { font-size: 18px; }
  .bb-title { font-size: 34px; letter-spacing: -1px; margin: 0 0 8px; }
  .bb-synopsis, .bb-rating, .bb-buttons .btn-info[data-info] { display: none; }
  .bb-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 14px; font-weight: 600; color: #e5e5e5; }
  .bb-meta i { font-style: normal; color: #ffffff80; }
  .bb-buttons > * { flex: 1; justify-content: center; padding: 11px 10px; font-size: 16px; border-radius: 6px; }
  .bb-list { display: inline-flex; background: rgba(70,70,70,.75); }
  .bb-side, .native-app .bb-side { top: 12px; right: 12px; bottom: auto; }
  .rows { padding-top: 18px; padding-bottom: 110px; }
  .row-head .row-sub { display: none; } /* one clean title per row */
  .row-head .see-all { margin-left: auto; font-size: 13px; color: #b3b3b3; white-space: nowrap; }
  .bb-mute { background: #0006; }
  .billboard[hidden] + .rows { padding-top: calc(var(--nav-h) + 12px); }

  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 40; left: 16px; right: 16px;
    bottom: calc(10px + env(safe-area-inset-bottom)); height: 62px; padding: 6px; border-radius: 31px;
    background: rgba(40,40,40,.72); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
    border: 1px solid #ffffff1f; box-shadow: 0 10px 30px #0009; }
  .tabbar a { display: grid; place-items: center; align-content: center; gap: 3px; border-radius: 25px; color: #b3b3b3; font-size: 11px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.active { color: #fff; background: #ffffff1f; }
  .toast, .native-app .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .pr-nudge, .native-app .pr-nudge { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* Phones held upright: a 16:9 title would be a thin strip, so the player turns sideways and fills the screen
   (like Netflix) — the viewer just rotates the phone. Turning the phone for real (landscape) undoes it. */
@media (max-width: 700px) and (orientation: portrait) {
  .player.hz { inset: auto; top: 0; left: 0; width: 100dvh; height: 100vw; transform-origin: top left; transform: translateX(100vw) rotate(90deg); }
  .player.hz .player-top, .player.hz .player-bottom,
  .native-app .player.hz .player-top, .native-app .player.hz .player-bottom {
    padding-top: 10px; padding-bottom: 10px; padding-left: calc(16px + env(safe-area-inset-top)); padding-right: calc(16px + env(safe-area-inset-bottom)); }
  .player.hz .drawer { bottom: 64px; max-height: calc(100vw - 140px); }
  /* Vertical titles: never wider than the screen. */
  .player { --vw: min(calc(100vw - 16px), calc(var(--vh) * 9 / 16)); }
  .native-app .player { --vh: calc(100dvh - 140px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .native-app .screen.vertical { inset: calc(60px + env(safe-area-inset-top)) auto calc(80px + env(safe-area-inset-bottom)) 50%; }
}
/* Search: a title we don't have, found on Dailymotion (app.js renderSearch) */
.web-box { display: grid; gap: 8px; margin: 0 0 22px; padding: 14px; border: 1px solid #ffffff26; border-radius: 6px; }
.web-box .ai-head { font-weight: 700; color: #fff; }
/* Direct-file player started muted (autoplay without a tap): one big cue to turn the sound on. */
.screen .unmute, .screen .slow-chip { position: absolute; left: 50%; bottom: 140px; transform: translateX(-50%); z-index: 3; background: #fff; color: #000; font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 999px; box-shadow: 0 4px 24px #000a; }
.screen.vertical .unmute { bottom: 20%; }
.screen .slow-chip { top: 20px; bottom: auto; text-decoration: none; white-space: nowrap; }

/* Originals poll (app.js showPoll): above the player, below the toast; the Premium sheet it opens must sit above the player too. */
#premiumModal { z-index: 66; }
.poll-card { position: fixed; z-index: 65; right: 20px; bottom: 20px; width: min(400px, calc(100vw - 32px)); background: #1f1f1f; border: 1px solid #444; border-radius: 12px; padding: 18px 40px 16px 18px; box-shadow: 0 10px 40px #000c; display: grid; gap: 12px; font-size: 15px; }
.poll-card .x { position: absolute; top: 6px; right: 10px; background: none; border: 0; color: #aaa; font-size: 22px; cursor: pointer; }
.poll-opts { display: grid; gap: 8px; }
.poll-opt { text-align: left; background: #2a2a2a; color: #fff; border: 1px solid #555; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.poll-opt:hover, .poll-opt.on { border-color: #e50914; background: #3a1d1f; }
.poll-msg { margin: 0; font-size: 13px; }
.poll-card:has(.poll-opt img) { width: min(460px, calc(100vw - 32px)); }
.poll-opt:has(img) { display: flex; align-items: center; gap: 12px; padding: 6px 12px 6px 6px; }
.poll-opt img { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; flex: none; }
.native-app .poll-card { bottom: calc(20px + env(safe-area-inset-bottom)); }
@media (max-width: 700px) { .poll-card { right: 16px; left: 16px; width: auto; bottom: 96px; } }

/* ---------- Mis flixes (flix.js) ---------- */
.flix-open { overflow: hidden; }
.flix-page { position: fixed; inset: var(--flix-top, 68px) 0 0 0; z-index: 25; background: var(--bg, #141414); overflow-y: auto; overflow-x: hidden; overscroll-behavior-x: none; -webkit-overflow-scrolling: touch; }
/* nothing in Mis flixes may push the panel sideways: long links, long unbroken words, media before it has a size */
.flix-body { min-width: 0; overflow-wrap: anywhere; }
.flix-body img, .flix-body video { max-width: 100%; }
.flix-open .nav { background: var(--bg, #141414); }
/* 2026-11-08: on phones the floating tab bar sat right on top of the wizard's sticky button ("Create my flix" / "Next"):
   18 people opened the creator in two days and nobody got past it. Inside FLIX Studio the bar goes away. */
.flix-open .tabbar { display: none !important; }
/* the intro's button stays in view: before, "Try it free" was two screens down inside the modal */
.flix-intro-cta { position: sticky; bottom: 0; z-index: 2; background: linear-gradient(transparent, #181818 28%); padding-top: 18px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); margin-top: 8px; }
.flix-page .flix-body { padding-top: 18px; }
.flix-nav.active { background: #e5091466; border-color: var(--red); }
.flix-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 14px 4%; padding-top: calc(14px + env(safe-area-inset-top)); background: linear-gradient(#141414 70%, #14141400); }
.flix-back { background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; padding: 4px 8px; }
.flix-body { max-width: 1280px; padding: 0 var(--gutter, 4%) calc(110px + env(safe-area-inset-bottom)); }
.flix-head h1 { font-size: clamp(26px, 4vw, 40px); margin: 8px 0 6px; }
.flix-head p { margin: 0 0 16px; max-width: 640px; }
.flix-head .btn-play { margin-bottom: 26px; }
.flix-logline { font-size: 18px; color: #ddd; margin: 0 0 16px; }
.flix-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.flix-card { background: none; border: 0; color: #fff; text-align: left; cursor: pointer; padding: 0; display: flex; flex-direction: column; gap: 6px; font: inherit; }
.flix-card .muted { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.flix-cover { position: relative; border-radius: 6px; overflow: hidden; background: #222; aspect-ratio: 9 / 16; }
.flix-card.h .flix-cover { aspect-ratio: 16 / 9; }
.flix-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flix-cast img, .flix-board img { width: 100%; height: auto; object-fit: cover; display: block; }
.flix-ph { width: 100%; height: 100%; min-height: 80px; display: grid; place-items: center; background: linear-gradient(135deg, #2a2a2a, #1a1a1a); }
.flix-chip { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 4px; background: #000c; }
.flix-chip.preview, .flix-chip.ready { background: var(--red); }
.flix-chip.error { background: #6b1d1d; }
.flix-spin { width: 12px; height: 12px; border: 2px solid #fff4; border-top-color: #fff; border-radius: 50%; display: inline-block; animation: flix-spin 0.9s linear infinite; vertical-align: -2px; }
@keyframes flix-spin { to { transform: rotate(360deg); } }
.flix-empty { background: #1f1f1f; border-radius: 8px; padding: 20px 24px; max-width: 640px; }
.flix-empty ol { padding-left: 20px; line-height: 1.6; }
.flix-link { background: none; border: 0; color: #bbb; cursor: pointer; font: inherit; padding: 8px 0; }
.flix-link:hover { color: #fff; }
.flix-link.danger { color: #e87c03; margin-top: 30px; }
.flix-err { color: #e87c03; }
.flix-progress { background: #1f1f1f; border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; }
.flix-progress ol { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 10px; flex-wrap: wrap; }
.flix-progress li { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: #2c2c2c; color: #888; }
.flix-progress li.done { background: #3a3a3a; color: #ddd; }
.flix-progress li.on { background: var(--red); color: #fff; }
.flix-progress p { margin: 0; }
.flix-video { display: block; background: #000; border-radius: 8px; margin: 6px 0 14px; max-width: 100%; }
.flix-video.v { height: min(72vh, 720px); aspect-ratio: 9 / 16; }
.flix-video.h { width: min(100%, 960px); aspect-ratio: 16 / 9; }
.flix-dl { display: inline-block; margin-bottom: 20px; text-decoration: none; }
.flix-buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(90deg, #3b0a0d, #1f1f1f); border: 1px solid #e5091455; border-radius: 8px; padding: 16px 18px; margin: 4px 0 20px; }
.flix-buy div { display: flex; flex-direction: column; gap: 4px; max-width: 520px; }
.flix-syn { max-width: 760px; line-height: 1.5; }
.flix-body h3 { margin: 26px 0 10px; font-size: 18px; }
.flix-cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.flix-cast > div { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.flix-cast .flix-fr { position: relative; }
.flix-cast .flix-link { align-self: flex-start; margin-top: 4px; }
.flix-recast { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.flix-recast textarea { width: 100%; box-sizing: border-box; background: #222; color: inherit; border: 1px solid #444; border-radius: 6px; padding: 8px; font: inherit; font-size: 14px; resize: vertical; }
.flix-cast img, .flix-cast .flix-ph { aspect-ratio: 16 / 9; border-radius: 6px; }
.flix-board { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.flix-board.h { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.flix-board figure { margin: 0; }
.flix-board img, .flix-board .flix-ph { border-radius: 6px; aspect-ratio: 9 / 16; }
.flix-board.h img, .flix-board.h .flix-ph { aspect-ratio: 16 / 9; }
.flix-board figcaption { font-size: 13px; color: #ccc; margin-top: 6px; line-height: 1.4; }
.flix-board q { display: block; quotes: none; color: #fff; margin-top: 4px; }
.flix-note { font-size: 13px; margin-top: 18px; }
.flix-form { display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
.flix-field { display: flex; flex-direction: column; gap: 6px; }
.flix-field textarea, .flix-field select, .flix-ph-item input { background: #2a2a2a; color: #fff; border: 1px solid #444; border-radius: 6px; padding: 10px 12px; font: inherit; }
.flix-row { display: flex; gap: 14px; flex-wrap: wrap; }
.flix-row .flix-field { flex: 1 1 200px; }
.flix-pick { display: inline-block; cursor: pointer; margin-right: 8px; width: auto; }
.flix-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.flix-photos:empty { display: none; }
.flix-live { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.flix-live-h { margin: 0 0 8px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.flix-live-h i { width: 8px; height: 8px; border-radius: 50%; background: #e50914; animation: flixPulse 1.4s infinite; }
@keyframes flixPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.flix-live ul { list-style: none; margin: 0 0 8px; padding: 0; }
.flix-live li { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.06); opacity: .6; }
.flix-live li.now { opacity: 1; } .flix-live li:first-child { border-top: 0; }
.flix-live li .ag { font-size: 20px; width: 28px; text-align: center; flex: none; }
.flix-live li div { flex: 1; min-width: 0; font-size: 13px; } .flix-live li p { margin: 2px 0 0; color: #bbb; overflow-wrap: anywhere; }
.flix-live li.k-issue p { color: #ff8a8a; } .flix-live li.k-fixed p, .flix-live li.k-fix p { color: #f4a261; }
.flix-live li img { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; flex: none; }
.flix-live-frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 4px; }
.flix-live-frames img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; animation: flixIn .5s; }
@keyframes flixIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.flix-log { margin: 14px 0; } .flix-log summary { cursor: pointer; font-weight: 600; }
.flix-log-wrap { overflow-x: auto; margin: 8px 0; max-width: 100%; }
.flix-log table { border-collapse: separate; border-spacing: 2px; font-size: 11px; }
.flix-log th { color: #999; font-weight: 400; } .flix-log th.ag { text-align: left; white-space: nowrap; position: sticky; left: 0; background: #141414; padding-right: 6px; font-size: 12px; color: #ddd; }
.flix-log td i { display: block; width: 14px; height: 14px; border-radius: 3px; cursor: help; }
@media (max-width: 600px) { .flix-log th.ag span { display: none; } }
@media (min-width: 601px) { .flix-log-who { display: none; } }
.flix-feel { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.flix-feel h3 { margin: 0 0 4px; }
.flix-feel-q { font-style: italic; margin: 8px 0; }
.flix-feel-bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; margin: 10px 0 6px; padding-top: 14px; }
.flix-feel-bars i { flex: 1; min-width: 4px; height: 100%; display: flex; align-items: flex-end; position: relative; }
.flix-feel-bars b { width: 100%; border-radius: 3px 3px 0 0; display: block; }
.flix-feel-bars i.miss::before { content: "▲"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 10px; color: #e50914; }
.flix-feel-key { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: #bbb; margin-bottom: 8px; }
.flix-feel-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.flix-feel-key .miss-k { color: #e50914; }
.flix-feel details { margin-top: 6px; } .flix-feel summary { cursor: pointer; }
.flix-home { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; margin: 8px 0; }
.flix-home:empty { display: none; }
.flix-home span { position: relative; aspect-ratio: 1; }
.flix-home img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.flix-home button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 14px; line-height: 22px; padding: 0; cursor: pointer; }
.flix-ph-item { position: relative; display: flex; flex-direction: column; gap: 4px; }
.flix-ph-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.flix-ph-item input { padding: 6px 8px; font-size: 13px; }
.flix-ph-item button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #000b; color: #fff; cursor: pointer; }
.flix-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #ccc; }
.flix-consent input { margin-top: 3px; }
@media (max-width: 600px) {
  .flix-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .flix-board, .flix-board.h { grid-template-columns: repeat(2, 1fr); }
  .flix-board.h { grid-template-columns: 1fr; }
  .flix-video.v { height: auto; width: 100%; }
  .flix-buy .btn-play { width: 100%; }
}
.flix-opts { display: flex; flex-direction: column; gap: 8px; min-width: 240px; }
.flix-opts button { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.flix-opts small { font-size: 12px; font-weight: 400; opacity: 0.75; }
@media (max-width: 600px) { .flix-opts { width: 100%; } }
/* "Mis flixes" header entry: lock for non-Premium, NUEVO badge + soft red glow */
.flix-nav { position: relative; display: inline-flex !important; align-items: center; gap: 5px; color: #fff !important; font-weight: 700; padding: 4px 10px !important; border-radius: 99px; border: 1px solid #e5091480; background: linear-gradient(90deg, #e5091433, #e5091411); animation: flix-glow 2.6s ease-in-out infinite; white-space: nowrap; }
.flix-nav:hover { background: #e5091455; }
.flix-lock { font-size: 0.85em; }
.flix-unlocked .flix-lock { display: none; }
.flix-new { font-size: 9px; font-weight: 800; letter-spacing: 0.5px; background: var(--red); color: #fff; padding: 2px 5px; border-radius: 3px; line-height: 1.2; }
@keyframes flix-glow { 0%, 100% { box-shadow: 0 0 0 0 #e5091400; } 50% { box-shadow: 0 0 14px 1px #e5091466; } }
@media (prefers-reduced-motion: reduce) { .flix-nav { animation: none; } }
#profileMenu .flix-nav { border-radius: 6px; margin: 4px 8px; }
#navPills .flix-nav { border-color: #e50914aa; background: linear-gradient(90deg, #e5091440, #e5091418); }
.pr-flix { list-style: none; margin: 0 0 4px; padding: 10px 12px; border-radius: 6px; border: 1px solid #e5091466; background: linear-gradient(90deg, #e5091426, #e509140a); line-height: 1.4; }
.pr-flix .flix-new { vertical-align: 1px; margin-left: 4px; }
.pr-flix-on { border-color: var(--red); box-shadow: 0 0 16px #e5091455; }
.flix-kind { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.flix-kind label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.flix-field textarea[name=text] { min-height: 110px; }
.flix-claim { font-size: clamp(18px, 2.2vw, 24px); font-weight: 700; margin: 0 0 6px !important; }
.flix-faces { margin: 4px 0 8px; }
.flix-faces b { color: #fff; margin-left: 6px; }
.flix-faces .flix-link { margin-left: 10px; }
.flix-ph-item.off { cursor: pointer; }
.flix-ph-item.off img { opacity: .38; filter: grayscale(1); }
.flix-ph-item.off span { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-size: 13px; font-weight: 700; }
.flix-ph-item.off:hover img { opacity: .7; }
.flix-ph-item.face img { outline: 2px solid var(--red, #e50914); outline-offset: -2px; }

/* Mis flixes: what-it-is sheet shown before Premium */
.flix-intro { position: fixed; inset: 0; z-index: 90; background: #000c; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.flix-intro[hidden] { display: none; }
.flix-intro-open { overflow: hidden; }
.flix-intro-box { position: relative; width: min(760px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: #181818; border: 1px solid #e5091455; border-radius: 12px; box-shadow: 0 20px 60px #000, 0 0 40px #e5091422; }
.flix-intro-x { position: absolute; top: 10px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #000a; color: #fff; font-size: 22px; cursor: pointer; }
.flix-intro-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px 12px 0 0; }
.flix-intro-body { padding: 26px 28px 24px; }
.flix-intro-body h2 { font-size: clamp(22px, 3.2vw, 30px); line-height: 1.15; margin: 8px 0 10px; }
.flix-intro-lead { color: #ddd; font-size: 16px; line-height: 1.45; margin: 0 0 18px; }
.flix-intro-steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.flix-intro-steps li { background: #222; border: 1px solid #2f2f2f; border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.flix-intro-steps b { font-size: 15px; }
.flix-intro-steps span:last-child { color: #b3b3b3; font-size: 14px; line-height: 1.4; }
.flix-intro-ic { font-size: 22px; }
.flix-intro-eg { color: #b3b3b3; font-size: 14px; font-style: italic; margin: 0 0 18px; }
.flix-intro-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.flix-intro-cta .btn-play { flex: 1 1 260px; justify-content: center; }
@media (max-width: 600px) {
  .flix-intro { padding: 0; align-items: flex-end; }
  .flix-intro-box { border-radius: 14px 14px 0 0; max-height: 92dvh; }
  .flix-intro-body { padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
  .flix-intro-steps { grid-template-columns: 1fr; gap: 8px; }
  .flix-intro-steps li { padding: 10px 12px; }
}
/* Research agent ("Buscar en internet"): fact cards the person ticks in or out */
.flix-research .flix-row > * { flex: 1 1 200px; min-width: 0; }
.flix-research input:not([type]), .flix-research select { width: 100%; box-sizing: border-box; background: #2a2a2a; color: #fff; border: 1px solid #444; border-radius: 6px; padding: 10px 12px; font: inherit; }
.flix-research input:not([type]):focus, .flix-research select:focus { outline: 2px solid var(--red, #e50914); outline-offset: 0; }
.flix-small { font-size: 12.5px; }
.flix-facts { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.flix-fact { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #333; border-radius: 8px; background: #181818; cursor: pointer; line-height: 1.4; }
.flix-fact input { margin-top: 3px; accent-color: var(--red, #e50914); flex: none; }
.flix-fact > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.flix-fact a { color: inherit; text-decoration: underline; overflow-wrap: anywhere; }
.flix-fact.off .flix-fact-t { opacity: .55; }
.flix-fact.sens { border-color: #b8860b88; }
.flix-sens { font-size: 12px; color: #f2b84b; }
/* Storyboard review (before filming) + publishing to "Trailers originales" */
.flix-review, .flix-share { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 18px; margin: 14px 0; border: 1px solid #e5091466; border-radius: 10px; background: linear-gradient(90deg, #e509141f, #e5091408); }
.flix-review > div, .flix-share > div { display: flex; flex-direction: column; gap: 6px; flex: 1 1 320px; min-width: 0; }
.flix-share input[data-flix-creator] { background: #2a2a2a; color: #fff; border: 1px solid #444; border-radius: 6px; padding: 9px 12px; font: inherit; max-width: 320px; }
.flix-fr { position: relative; }
.flix-fixing { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: #000a; font-weight: 700; font-size: 14px; }
.flix-fix { display: flex; gap: 14px; flex-wrap: wrap; padding: 6px 0 0; }
.flix-qcwarn { margin: 6px 0 0; padding: 6px 10px; border-radius: 6px; background: rgba(255,170,0,.12); color: #ffb84d; font-size: 13px; line-height: 1.4; }
.flix-fix .flix-link { padding: 0; font-size: 13px; }
.flix-change { display: flex; gap: 8px; padding-top: 6px; }
.flix-change input { flex: 1; min-width: 0; background: #2a2a2a; color: #fff; border: 1px solid #444; border-radius: 6px; padding: 8px 10px; font: inherit; font-size: 13px; }
.flix-orig-track { display: flex; gap: 12px; overflow-x: auto; padding: 4px 4% 12px; scroll-snap-type: x proximity; }
.flix-orig { flex: none; width: 260px; display: flex; flex-direction: column; gap: 4px; text-align: left; background: none; border: 0; color: inherit; padding: 0; cursor: pointer; scroll-snap-align: start; font: inherit; }
.flix-orig b { font-size: 15px; line-height: 1.25; }
.flix-orig .muted { font-size: 13px; }
.flix-orig-img { position: relative; display: block; border-radius: 6px; overflow: hidden; background: #222; aspect-ratio: 16 / 9; }
.flix-orig-img.v { aspect-ratio: 16 / 9; }
.flix-orig-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.flix-orig:hover .flix-orig-img img, .flix-orig:focus-visible .flix-orig-img img { transform: scale(1.04); }
.flix-orig-img i { position: absolute; left: 10px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; background: #000b; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 14px; }
.flix-orig-row .row-sub { display: block; }
.flix-orig-modal .flix-intro-card { max-width: 860px; width: 100%; }
.flix-orig-modal h2 { margin: 12px 0 4px; }
.flix-orig-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.flix-orig-actions [aria-pressed="true"] { background: #fff; color: #000; }
@media (max-width: 600px) { .flix-orig { width: 72vw; } }
.flix-change[hidden] { display: none; }
.flix-orig-icon { background: #2a2a2a; color: #fff; border: 1px solid #555; border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.flix-orig-icon[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }
.flix-orig-icon:hover { border-color: #fff; }
/* Series episodes (Flix Studio "Capítulo 2" + originals player) */
.flix-ep { margin: 0 0 4px; color: #e50914; font-weight: 700; font-size: 14px; letter-spacing: .3px; }
.flix-ep .flix-link { color: #bbb; font-weight: 500; padding: 0; }
.flix-next textarea { background: #2a2a2a; color: #fff; border: 1px solid #444; border-radius: 6px; padding: 9px 12px; font: inherit; resize: vertical; width: 100%; max-width: 560px; }
.flix-orig-eps { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }
.flix-orig-eps .flix-orig-icon { padding: 6px 14px; font-size: 14px; }
.flix-orig-lock { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #111; }
.flix-orig-lock.v { aspect-ratio: 9 / 16; max-height: 70vh; margin: 0 auto; }
.flix-orig-lock img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(14px) brightness(.45); transform: scale(1.1); }
.flix-orig-lock > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; }
.flix-orig-lock b { font-size: 22px; }
.flix-orig-lock span { max-width: 420px; }
.flix-orig-modal .flix-intro-card { background: #181818; border-radius: 10px; padding: 16px 20px 20px; box-shadow: 0 20px 60px #000c; }
@media (max-width: 600px) { .flix-orig-modal .flix-intro-card { border-radius: 14px 14px 0 0; padding: 12px 14px 18px; } }
.flix-film { font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 6px; }
.flix-film.free { background: #0f3d1f; color: #8ff0ae; }
.flix-film.paid { background: #3d2a0f; color: #ffcf7a; }
/* Voices + voice-over (storyboard review) */
.flix-voices { margin: 6px 0 22px; }
.flix-voice { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid #2a2a2a; }
.flix-voice > img, .flix-voice-mic { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover; object-position: top; background: #2a2a2a; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.flix-voice-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.flix-voice-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.flix-voice select { background: #2a2a2a; color: #fff; border: 1px solid #444; border-radius: 6px; padding: 8px 10px; font: inherit; max-width: 100%; }
.flix-voice-tag { background: #0f3d1f; color: #8ff0ae; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.flix-clone { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: #1d1d1d; border: 1px solid #333; border-radius: 8px; max-width: 620px; }
.flix-clone[hidden] { display: none; }
.flix-clone input[data-flix-vlabel] { background: #2a2a2a; color: #fff; border: 1px solid #444; border-radius: 6px; padding: 8px 10px; font: inherit; }
.flix-narr { color: #ffcf7a; }
.flix-narr-btn { padding: 4px 0 0; font-size: 13px; }
.flix-review .btn-play:disabled, .flix-clone .btn-play:disabled { opacity: .45; cursor: not-allowed; }
.flix-textbox { display: flex; flex-direction: column; gap: 8px; padding: 10px; margin-top: 6px; background: #1d1d1d; border: 1px solid #333; border-radius: 8px; }
.flix-textbox[hidden] { display: none; }
.flix-textbox label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #bbb; }
.flix-textbox textarea, .flix-textbox input { background: #2a2a2a; color: #fff; border: 1px solid #444; border-radius: 6px; padding: 7px 9px; font: inherit; font-size: 13px; font-weight: 400; resize: vertical; }
.flix-eps { position: absolute; right: 8px; top: 8px; background: #000b; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }

/* Google Photos picker (flix.js) */
.flix-picks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.flix-picks .flix-pick { margin-right: 0; }
.gp-btn { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #1f1f1f; border: 0; border-radius: 4px; cursor: pointer;
  padding: 10px 20px 10px 14px; font: inherit; font-size: clamp(14px, 1.2vw, 19px); font-weight: 700; box-shadow: 0 1px 0 #0003; transition: transform .15s, box-shadow .15s; }
.gp-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px #0006; }
.gp-btn svg, .gp-go svg { width: 22px; height: 22px; flex: none; }
.gp-back { position: fixed; inset: 0; z-index: 1000; background: #000b; backdrop-filter: blur(3px); animation: gp-fade .2s ease-out; }
.gp-sheet { position: fixed; z-index: 1001; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto;
  background: #1c1c1c; border: 1px solid #333; border-radius: 16px; padding: 30px 24px 22px; text-align: center; box-shadow: 0 24px 70px #000d; animation: gp-in .25s ease-out; }
.gp-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: #9a9a9a; font-size: 18px; cursor: pointer; padding: 6px; }
.gp-x:hover { color: #fff; }
.gp-logo { width: 64px; height: 64px; margin: 0 auto 14px; background: #fff; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 6px 20px #0008; }
.gp-logo svg { width: 38px; height: 38px; }
.gp-sheet h3 { margin: 0 0 10px; font-size: 21px; }
.gp-sheet p { color: #c9c9c9; margin: 0 0 18px; line-height: 1.5; }
.gp-sheet .gp-go { width: 100%; justify-content: center; padding: 12px 20px; }
.gp-sheet .gp-small { font-size: 12.5px; color: #8a8a8a; margin: 14px 0 0; }
.gp-wait { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 6px 0; }
.gp-wait p { margin: 0; }
.gp-wait .flix-spin { width: 30px; height: 30px; border-width: 3px; }
.gp-link { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; opacity: .8; }
.gp-bar { height: 6px; background: #333; border-radius: 3px; overflow: hidden; margin: -6px 0 16px; }
.gp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #EA4335, #FBBC04, #34A853, #4285F4); transition: width .35s ease; }
.gp-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-height: 210px; overflow: auto; }
.gp-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; animation: gp-pop .3s ease-out; }
@keyframes gp-fade { from { opacity: 0; } }
@keyframes gp-in { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
@keyframes gp-pop { from { opacity: 0; transform: scale(.85); } }

/* Static footer on the home page (index.html): what AIFLIX is, content rules, legal links */
.site-foot { padding: 40px var(--gutter) 56px; color: #8c8c8c; font-size: 12.5px; line-height: 1.55; max-width: 1000px; }
.site-foot p { margin: 0 0 10px; }
.site-foot b { color: #b3b3b3; }
.site-foot a { color: #b3b3b3; }

/* Premium modal: creators can earn per unlocked episode (2026-11-05) */
.pr-earn { margin: 14px 0 4px; padding: 14px 16px; border-radius: 8px; border: 1px solid #e5091466; background: linear-gradient(90deg, #e5091420, #e5091408); line-height: 1.45; }
.pr-earn p { margin: 6px 0; }
.pr-earn .btn-info { margin-top: 6px; }
.flix-earn { margin: 0 0 22px; max-width: 760px; }
.flix-share .flix-small { display: block; margin-top: 4px; }
/* Intro modal: own it or sell it (2026-11-05) */
.flix-intro-own { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 4px; }
.flix-intro-own > div { padding: 12px 14px; border-radius: 8px; border: 1px solid #e5091466; background: linear-gradient(90deg, #e5091422, #e5091408); line-height: 1.4; }
.flix-intro-own b { display: block; margin-bottom: 4px; font-size: 1.05em; }
.flix-intro-own span { color: #ddd; font-size: .92em; }
@media (max-width: 560px) { .flix-intro-own { grid-template-columns: 1fr; } }

/* Control bar for direct video files (app.js videoBar): sits above the player's bottom chips, fades with them when idle. */
.screen .vbar { position: absolute; left: 16px; right: 16px; bottom: 64px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.55)); border-radius: 10px; transition: opacity .4s; }
.player.idle .vbar { opacity: 0; }
.vbar button { background: rgba(255,255,255,.12); border: 0; color: #fff; border-radius: 6px; min-width: 40px; height: 36px; padding: 0 10px; font-size: 15px; font-weight: 700; cursor: pointer; flex: none; }
.vbar button:hover { background: rgba(255,255,255,.28); }
.vbar .vtime { font-size: 13px; font-variant-numeric: tabular-nums; color: #ddd; flex: none; min-width: 38px; text-align: center; }
.vbar input[type=range] { flex: 1; min-width: 60px; height: 28px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; margin: 0; }
.vbar input[type=range]::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(90deg, #e50914 var(--p, 0%), rgba(255,255,255,.3) var(--p, 0%)); }
.vbar input[type=range]::-moz-range-track { height: 5px; border-radius: 3px; background: linear-gradient(90deg, #e50914 var(--p, 0%), rgba(255,255,255,.3) var(--p, 0%)); }
.vbar input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #e50914; margin-top: -6.5px; box-shadow: 0 0 0 3px rgba(0,0,0,.35); }
.vbar input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #e50914; }
@media (max-width: 700px) { .screen .vbar { left: 8px; right: 8px; bottom: 52px; gap: 6px; padding: 6px 8px; } .vbar button { min-width: 34px; height: 34px; padding: 0 6px; font-size: 13px; } .vbar .vtime { font-size: 12px; min-width: 32px; } }
.player.hz .screen .vbar { bottom: 52px; }

/* Flix: "Rehacer desde cero" + "Eliminar" at the top of a flix (flix.js) */
.flix-tools { display: flex; gap: 18px; flex-wrap: wrap; margin: -6px 0 14px; }
.flix-redo { display: grid; gap: 10px; background: #1c1c1c; border: 1px solid #ffffff22; border-radius: 8px; padding: 16px; margin: 0 0 18px; }
.flix-redo label { display: grid; gap: 4px; font-size: 13px; color: #bbb; }
.flix-redo textarea, .flix-redo select { background: #111; color: #fff; border: 1px solid #ffffff2e; border-radius: 6px; padding: 8px 10px; font: inherit; font-size: 14px; }
.flix-redo-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }

.flix-reviewed { margin: 0 0 14px; font-size: 13px; color: #bbb; }
.flix-reviewed summary { cursor: pointer; color: #7fd18b; }
.flix-reviewed ul { margin: 8px 0 0 18px; display: grid; gap: 4px; }

/* Flix: private link */
.flix-private { display: grid; gap: 10px; background: #1c1c1c; border: 1px solid #ffffff22; border-radius: 8px; padding: 16px; margin: 0 0 18px; }
.flix-private > div { display: grid; gap: 8px; }
.flix-private-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.flix-private-row input { flex: 1 1 220px; min-width: 0; background: #111; color: #fff; border: 1px solid #ffffff2e; border-radius: 6px; padding: 9px 10px; font: inherit; font-size: 14px; }
.flix-beat { display: block; font-size: 12px; color: var(--muted, #a3a3a3); margin-bottom: 4px; }
.flix-beat b { color: #7ad3ff; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.flix-callout { color: #ffb38a; }

/* voice trimmer: watch, mark A and B */
.flix-trim { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; padding: 10px; background: #1b1b1b; border-radius: 8px; }
.flix-trim video { width: 100%; max-height: 260px; border-radius: 6px; background: #000; }
.flix-trim audio { width: 100%; }
.flix-trim-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flix-trim-row b { font-variant-numeric: tabular-nums; min-width: 3ch; }

/* create in 4 steps */
.flix-wizard { gap: 14px; padding-bottom: 90px; }
.flix-step { display: flex; flex-direction: column; gap: 14px; }
.flix-step[hidden] { display: none; }
.flix-steps { display: flex; gap: 6px; margin-top: 4px; }
.flix-steps i { flex: 1; height: 4px; border-radius: 2px; background: #333; }
.flix-steps i.on { background: #e50914; }
.flix-steplbl { margin: -6px 0 0; font-size: 12px; }
.flix-q { font-size: 19px; margin: 4px 0 0; }
.flix-big { min-height: 130px; font-size: 16px; border-radius: 12px; }
.flix-ideas { display: flex; flex-wrap: wrap; gap: 8px; }
.flix-idea { background: #262626; border: 1px solid #3a3a3a; color: #fff; border-radius: 999px; padding: 8px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.flix-idea:hover { border-color: #777; }
.flix-wcard { display: flex; flex-direction: column; gap: 8px; background: #1f1f1f; border: 1px solid #2e2e2e; border-radius: 12px; padding: 14px; }
.flix-wcard > b { font-size: 15px; }
.flix-tellcard { flex-direction: row; align-items: center; gap: 12px; }
.flix-tellcard > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.flix-mic { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #e50914; color: #fff; font-size: 21px; cursor: pointer; }
.flix-mic.rec { animation: flixPulse 1s infinite; }
@keyframes flixPulse { 50% { box-shadow: 0 0 0 8px #e5091433; } }
.flix-tag { align-self: flex-start; font-size: 11px; color: #a3a3a3; border: 1px solid #444; border-radius: 999px; padding: 2px 8px; }
.flix-src { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.flix-srcbtn { display: flex; align-items: center; justify-content: center; gap: 6px; background: #1f1f1f; border: 1px solid #2e2e2e; border-radius: 10px; padding: 12px; color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.flix-srcbtn.gp-btn svg { width: 18px; height: 18px; }
.flix-wizard .flix-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.flix-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.flix-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.flix-opt { position: relative; display: flex; flex-direction: column; border: 1.5px solid #2e2e2e; border-radius: 12px; overflow: hidden; background: #1f1f1f; cursor: pointer; font-size: 13px; }
.flix-opt input { position: absolute; opacity: 0; pointer-events: none; }
.flix-opt:has(input:checked) { border-color: #e50914; box-shadow: 0 0 0 1px #e50914; }
.flix-opt > span:last-child { padding: 8px 4px; text-align: center; }
.flix-opt-img { aspect-ratio: 3/4; background-size: cover; background-position: center; }
.flix-st-real .flix-opt-img { background-image: linear-gradient(160deg, #5b4636, #1d1612); }
.flix-st-animated .flix-opt-img { background-image: linear-gradient(160deg, #ff9a5a, #6b3cff); }
.flix-st-anime .flix-opt-img { background-image: linear-gradient(160deg, #ff5f9e, #2b2a6b); }
.flix-fmt { flex-direction: row; align-items: center; gap: 10px; padding: 12px; }
.flix-fmt > span:last-child { padding: 0; text-align: left; }
.flix-fmt-ic { flex: none; border: 2px solid #aaa; border-radius: 3px; }
.flix-fmt-ic.v { width: 16px; height: 28px; } .flix-fmt-ic.h { width: 30px; height: 17px; }
.flix-toggle { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #1f1f1f; border: 1px solid #2e2e2e; border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.flix-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.flix-toggle i { flex: none; width: 40px; height: 22px; border-radius: 11px; background: #444; position: relative; transition: background .2s; }
.flix-toggle i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; }
.flix-toggle input:checked + i { background: #e50914; } .flix-toggle input:checked + i::after { left: 21px; }
.flix-sum { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: #ddd; overflow-wrap: anywhere; }
.flix-sum div::before { content: "✓ "; color: #46d369; }
.flix-sample { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid #2e2e2e; }
.flix-sample input { flex: 1; min-width: 0; }
.flix-wbar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, #141414 30%); }
.flix-wbar .btn-play { flex: 1; justify-content: center; font-size: 16px; padding: 14px; }
.flix-wbar [hidden] { display: none; }

.flix-wizard .flix-step > .flix-link { align-self: flex-start; }
.flix-wizard textarea, .flix-wizard input:not([type]), .flix-wizard select { background: #1f1f1f; color: #fff; border: 1px solid #3a3a3a; border-radius: 10px; padding: 12px; font: inherit; }
.flix-wizard .flix-big { font-size: 16px; }
.flix-wbar .btn-play { background: #e50914; color: #fff; border: 0; }
.flix-wbar .btn-info { padding: 14px 18px; }
.flix-tellcard .flix-link { font-size: 13px; padding: 0; align-self: flex-start; }
.flix-trim[hidden] { display: none; }

/* Flix Studio: vertical demo in the intro, home banner, perk on the sign-up wall (2026-11-06) */
.flix-intro-video.v { aspect-ratio: 9 / 16; max-height: 52vh; width: auto; margin: 0 auto; border-radius: 12px; }
.flix-promo { padding: 8px 4% 18px; }
.flix-promo-in { display: flex; gap: 18px; align-items: center; text-decoration: none; color: inherit; background: linear-gradient(110deg, #2a0a0d, #141414 70%);
  border: 1px solid #ffffff1f; border-radius: 12px; padding: 14px; max-width: 900px; }
.flix-promo-in img { width: 96px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; flex: none; }
.flix-promo-in h2 { margin: 6px 0 4px; font-size: 20px; }
.flix-promo-in p { margin: 0 0 10px; color: #cfcfcf; font-size: 14px; line-height: 1.4; }
.flix-promo-in .btn-play { display: inline-flex; padding: 8px 18px; font-size: 14px; }
.flix-promo-in:hover { border-color: #ffffff40; }
@media (max-width: 600px) { .flix-promo-in img { width: 72px; } .flix-promo-in h2 { font-size: 17px; } .flix-promo-in p { font-size: 13px; } }
.login-flix { color: #f5c26b !important; }
/* Flix failed: where it broke, whose fault, where to fix (2026-11-06) */
.flix-fail { background: #1d1416; border: 1px solid #e5091455; border-radius: 14px; padding: 18px; margin: 14px 0; display: grid; gap: 14px; }
.flix-fail-top { display: flex; gap: 12px; align-items: flex-start; }
.flix-fail-ic { font-size: 28px; line-height: 1; }
.flix-fail h2 { margin: 0 0 4px; font-size: 19px; }
.flix-fail p { margin: 0; color: #d6d0cd; line-height: 1.45; }
.flix-fail-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.flix-fail-steps li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: #8d8784; text-align: center; }
.flix-fail-steps i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #2b2b2b; font-weight: 700; font-size: 13px; }
.flix-fail-steps li.ok { color: #cfe9d6; } .flix-fail-steps li.ok i { background: #1f7a3a; color: #fff; }
.flix-fail-steps li.bad { color: #fff; font-weight: 700; } .flix-fail-steps li.bad i { background: var(--red, #e50914); color: #fff; }
.flix-fail-fix { background: #f5c26b1a; border-left: 3px solid #f5c26b; padding: 10px 12px; border-radius: 6px; color: #f3e3c3 !important; margin: 0 0 12px; }
.flix-fail-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.flix-redo-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; }
.flix-redo-nav button { border: 1px solid #ffffff26; background: #1b1b1b; color: #cfcfcf; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.flix-redo-nav button.on { background: #fff; color: #111; border-color: #fff; font-weight: 700; }
.flix-redo-nav button.fix { box-shadow: 0 0 0 2px #f5c26b; }

/* create form: per-step FAQ + recovered-draft note (owner, 2026-11-06) */
.flix-faq { margin: 18px 0 4px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 10px; }
.flix-faq summary { cursor: pointer; color: #bbb; font-size: 14px; list-style: none; }
.flix-faq summary::-webkit-details-marker { display: none; }
.flix-faq[open] summary { color: #fff; margin-bottom: 6px; }
.flix-faq p { font-size: 13.5px; color: #bbb; margin: 8px 0; line-height: 1.45; }
.flix-faq p b { color: #eee; }
.flix-draftnote { background: rgba(229,9,20,.12); border: 1px solid rgba(229,9,20,.35); border-radius: 8px; padding: 8px 12px; font-size: 13.5px; margin: 0 0 12px; }
/* create form: Basic / Advanced (owner, 2026-11-06). Basic = the idea + style + format on one screen. */
.flix-mode { display: inline-flex; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; margin: 4px 0 6px; }
.flix-mode button { background: none; border: 0; color: #bbb; font: inherit; font-size: 14px; padding: 6px 16px; border-radius: 999px; cursor: pointer; }
.flix-mode button.on { background: #fff; color: #111; font-weight: 600; }
.flix-modehelp { margin: 0 0 12px; }
.flix-wizard[data-mode="basic"] .flix-adv-only,
.flix-wizard[data-mode="basic"] .flix-steps,
.flix-wizard[data-mode="basic"] .flix-steplbl,
.flix-wizard[data-mode="basic"] [data-step-n="4"] [data-flix-prev],
.flix-wizard[data-mode="basic"] [data-step-n="4"] .flix-faq,
.flix-wizard[data-mode="basic"] [data-step-n="4"] .flix-note,
.flix-wizard:not([data-mode="basic"]) .flix-basic-only { display: none !important; }
.flix-wizard[data-mode="basic"] [data-step-n="4"] .flix-head h1 { font-size: 20px; }
.flix-wizard[data-mode="basic"] [data-step-n="4"] .flix-head .muted { display: none; }
/* storyboard: reused shots and on-screen captions (owner, 2026-11-06) */
.flix-reuse { display: inline-block; font-size: 12px; color: #9ad; background: rgba(120,170,220,.12); border-radius: 4px; padding: 1px 6px; margin: 0 0 4px; }
.flix-titlecard { display: block; font-family: "Courier New", Courier, monospace; font-size: 12.5px; color: #fff; background: rgba(0,0,0,.55); border-left: 2px solid #e50914; padding: 2px 6px; margin: 0 0 4px; }
