/* NextGen Movies (owner, 2026-10-16): a dark cinema look, like the big free movie sites. */
:root { --bg: #0b0718; --panel: #160e2c; --line: #2a1f4a; --text: #f4f0ff; --soft: #b9aed6; --pink: #ff3d9a; --violet: #a64dff; --cyan: #19e3ff; --grad: linear-gradient(90deg, #19e3ff, #a64dff, #ff3d9a); }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px 24px; background: rgba(11, 7, 24, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.logo { font-weight: 900; font-size: 22px; white-space: nowrap; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tabs button, .chip { background: #ffffff14; border: 0; border-radius: 999px; padding: 7px 15px; color: #e6defa; white-space: nowrap; font-size: 15px; }
.tabs button.on, .chip.on { background: var(--violet); color: #fff; }
.search-box { margin-left: auto; display: flex; align-items: center; gap: 8px; background: #ffffff14; border-radius: 999px; padding: 6px 8px 6px 16px; min-width: 240px; flex: 0 1 380px; }
.search-box input { background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 16px; flex: 1; min-width: 0; }
.search-box button { background: none; border: 0; font-size: 18px; padding: 2px 6px; }
.srch-link { margin-left: auto; background: #ffffff14; border-radius: 999px; padding: 7px 16px; }
.live { background: #E53935 !important; color: #fff !important; }

/* Hero */
.hero { margin: 18px 24px 6px; min-height: 340px; border-radius: 20px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 34px 38px; background: #1c1238 center / cover no-repeat; }
.hero:before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,7,24,.96) 15%, rgba(11,7,24,.55) 55%, rgba(11,7,24,.1)), linear-gradient(0deg, rgba(11,7,24,.9), transparent 50%); }
.hero > * { position: relative; }
.hero .kick { color: #ffd23d; font-weight: 800; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }
.hero h1 { font-size: clamp(30px, 4.5vw, 52px); margin: 6px 0 8px; line-height: 1.05; max-width: 760px; }
.hero p { color: #e6defa; max-width: 600px; margin: 0 0 18px; font-size: 17px; line-height: 1.45; }
.btn { display: inline-block; border: 0; border-radius: 999px; padding: 10px 22px; font-weight: 800; font-size: 16px; margin: 0 8px 8px 0; }
.btn.play { background: #fff; color: #160a2e; }
.btn.ghost { background: #ffffff26; color: #fff; }
.btn.wa { background: #25d366; color: #fff; }

/* Rows */
.row { padding: 18px 0 0; }
.row h2 { font-size: 19px; margin: 0 24px 10px; display: flex; align-items: baseline; gap: 12px; }
.row h2 small { color: var(--soft); font-weight: 500; font-size: 14px; }
.row h2 a.all { margin-left: auto; color: var(--soft); font-size: 14px; font-weight: 600; }
.strip { display: flex; gap: 12px; overflow-x: auto; padding: 0 24px 8px; scroll-snap-type: x proximity; scroll-padding-inline: 24px; scrollbar-width: thin; }
.card { flex: none; width: 230px; scroll-snap-align: start; }
.card .pic { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #1c1238 center / cover no-repeat; box-shadow: 0 4px 14px #0007; transition: transform .15s; }
.card:hover .pic, .card:focus-visible .pic { transform: scale(1.04); }
.card .pic .lang { position: absolute; top: 8px; left: 8px; background: #000a; border-radius: 6px; padding: 2px 7px; font-size: 11px; font-weight: 800; }
.card .pic .len { position: absolute; bottom: 8px; right: 8px; background: #000b; border-radius: 6px; padding: 2px 7px; font-size: 12px; }
.card .pic .prog { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--pink); }
.card .t { font-weight: 700; font-size: 15px; margin-top: 7px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .s { color: var(--soft); font-size: 13px; margin-top: 2px; }
.tiles .tile { flex: none; width: 170px; height: 86px; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(135deg, #2a1f4a, #4b1f6e); scroll-snap-align: start; }
.tiles .tile:nth-child(3n+2) { background: linear-gradient(135deg, #123a52, #2a1f4a); }
.tiles .tile:nth-child(3n) { background: linear-gradient(135deg, #5a1c3d, #2a1f4a); }
.tiles .tile b { font-size: 17px; }
.tiles .tile span { color: var(--soft); font-size: 13px; }
select.chip { appearance: none; -webkit-appearance: none; cursor: pointer; }
select.chip option { background: var(--panel); color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; padding: 0 24px; }
.grid .card { width: auto; }

/* Search and filters */
.find { display: grid; grid-template-columns: 270px 1fr; gap: 24px; padding: 20px 24px; }
.filters { background: var(--panel); border-radius: 16px; padding: 16px 18px; align-self: start; position: sticky; top: 80px; }
.filters h3 { font-size: 12px; letter-spacing: 1px; color: #9d93bb; margin: 14px 0 8px; text-transform: uppercase; }
.filters h3:first-child { margin-top: 0; }
.filters .chip { margin: 0 6px 8px 0; font-size: 14px; padding: 6px 13px; }
.filters .clear { background: none; border: 0; color: var(--soft); text-decoration: underline; padding: 0; margin-top: 8px; }
.found { color: #9d93bb; font-size: 13px; font-weight: 800; letter-spacing: 1px; margin: 0 0 12px; text-transform: uppercase; }
.find .grid { padding: 0; }
.empty { color: var(--soft); padding: 30px 0; }
.toggle-filters { display: none; }

/* Film and drama pages */
.hero-detail { display: flex; gap: 30px; padding: 30px 24px; max-width: 1200px; margin: 0 auto; }
.hero-detail .poster { flex: none; width: min(420px, 40vw); aspect-ratio: 16 / 9; border-radius: 16px; background: #1c1238 center / cover no-repeat; box-shadow: 0 10px 30px #0008; }
.hero-detail h1 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 8px; }
.facts { color: var(--soft); margin: 0 0 14px; }
.pill { display: inline-block; background: #13965a; color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 13px; margin-left: 6px; }
.story { line-height: 1.55; max-width: 680px; color: #e6defa; }
.eps { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.eps ol { list-style: none; padding: 0; margin: 0; columns: 2 420px; column-gap: 24px; }
.eps li a { display: flex; gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: 10px; break-inside: avoid; }
.eps li a:hover { background: #ffffff10; }
.eps .no { color: var(--violet); font-weight: 800; min-width: 2.2em; }
.eps small { color: var(--soft); margin-left: auto; white-space: nowrap; }
.more { max-width: 1200px; margin: 0 auto; }
.more .strip, .more h2 { padding-left: 24px; }

/* Our own product strip (top of the page) and footer */
.promo { margin: 14px 24px 0; border: 1px dashed #ffd23d88; border-radius: 12px; padding: 9px 16px; color: #ffd23d; font-weight: 700; font-size: 15px; display: block; }
.foot { color: #8a80a6; font-size: 13px; padding: 36px 24px 20px; max-width: 1200px; margin: 0 auto; }
.foot a { text-decoration: underline; }

@media (max-width: 760px) {
  .top { padding: 10px 14px; gap: 10px; }
  .search-box { order: 3; flex: 1 1 100%; margin-left: 0; }
  .tabs { order: 4; flex: 1 1 100%; }
  .hero { margin: 12px 14px 4px; min-height: 280px; padding: 22px; }
  .row h2 { margin: 0 14px 8px; }
  .strip { padding: 0 14px 8px; scroll-padding-inline: 14px; }
  .card { width: 170px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 14px; }
  .find { grid-template-columns: 1fr; padding: 14px; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .toggle-filters { display: inline-block; margin-bottom: 12px; }
  .hero-detail { flex-direction: column; padding: 16px 14px; }
  .hero-detail .poster { width: 100%; }
  .promo { margin: 10px 14px 0; }
}
