/* 3isk — front styles (RTL) */
:root {
  --red: #b72424;
  --red-dark: color-mix(in srgb, var(--red) 78%, #000);
  --ink: #1b1b1f;
  --muted: #6b6b75;
  --bg: #f2f2f4;
  --card: #ffffff;
  --line: #e3e3e8;
  --gray: #5f5f66;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(20, 20, 30, .08);
  --font: 'Tajawal', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --logo: 'Lalezar', 'Tajawal', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 var(--font); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 30px 0; }
.empty.small { padding: 14px 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--red); color: #fff; font: 700 15px/1 var(--font); padding: 12px 18px; border-radius: 10px;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; border-color: var(--red); color: var(--red); }

/* Header */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--red); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.hdr-row { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.logo { font: 400 34px/1 var(--logo); color: #fff; white-space: nowrap; padding-top: 6px; }
.logo img { height: 44px; width: auto; }
.logo-sm { font-size: 26px; color: var(--red); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 8px 12px; border-radius: 8px; font-weight: 700; font-size: 15px; opacity: .92; }
.nav a:hover, .nav a.on { background: rgba(255,255,255,.16); opacity: 1; }
.hdr-tools { display: flex; gap: 6px; margin-inline-start: auto; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; font-size: 18px; }
.icon-btn:hover { background: rgba(255,255,255,.24); }
.icon-btn svg { width: 22px; height: 22px; }
.menu-btn { display: none; }
.search-bar { background: var(--red-dark); padding: 12px 0; }
.search-row { display: flex; gap: 8px; }
.search-row input, .search-inline input {
  flex: 1; height: 46px; border: 0; border-radius: 10px; padding: 0 16px; font: 500 16px var(--font); outline: none;
}
.search-row .btn { background: #fff; color: var(--red); }
.search-inline { display: flex; gap: 8px; margin-bottom: 20px; }
.search-inline input { border: 1px solid var(--line); }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel { position: absolute; top: 0; bottom: 0; right: 0; width: min(320px, 86vw); background: #fff; padding: 16px; overflow-y: auto; transform: translateX(100%); transition: transform .25s; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer-head .icon-btn { background: var(--bg); color: var(--ink); }
.drawer-nav { display: grid; gap: 4px; }
.drawer-nav a { padding: 12px 14px; border-radius: 10px; font-weight: 700; }
.drawer-nav a:hover, .drawer-nav a.on { background: color-mix(in srgb, var(--red) 10%, #fff); color: var(--red); }
.drawer-label { font-weight: 800; margin: 18px 4px 8px; color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-center { justify-content: center; }
.chip { background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.chip small { color: var(--red); margin-inline-start: 4px; }
.chip:hover { border-color: var(--red); color: var(--red); }

/* Section title (pill on a red line) */
.block { margin-top: 34px; }
.sec-title { position: relative; display: flex; justify-content: center; align-items: center; margin-bottom: 22px; }
.sec-title::before { content: ''; position: absolute; inset-inline: 0; height: 6px; border-radius: 6px; background: var(--red); top: 50%; transform: translateY(-50%); z-index: 0; }
.sec-title h2 {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: #fff;
  font-size: 19px; font-weight: 800; padding: 6px 18px 6px 6px; border-radius: 999px; box-shadow: 0 0 0 6px var(--bg);
}
.sec-title .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red-dark); }
.sec-title .ico svg { width: 18px; height: 18px; }
.sec-more { position: absolute; left: 0; z-index: 1; background: #fff; color: var(--red); font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 999px; box-shadow: 0 0 0 6px var(--bg); }
html, body { overflow-x: clip; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 190px; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.row-scroll .card { scroll-snap-align: start; }
.card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--red); box-shadow: var(--shadow); }
.card-link { display: block; position: relative; }
.card-img { aspect-ratio: 2 / 3; background: linear-gradient(160deg, var(--red), var(--red-dark)); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-link::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.88)); pointer-events: none; }
.card-title { position: absolute; z-index: 2; inset-inline: 8px; bottom: 10px; color: #fff; font-size: 15px; font-weight: 800; text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,.6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge-num { position: absolute; z-index: 2; top: 10px; right: 10px; display: grid; justify-items: center; background: var(--red); color: #fff; border-radius: 8px; padding: 4px 10px 2px; line-height: 1.1; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.badge-num small { font-size: 11px; opacity: .9; }
.badge-num b { font-size: 21px; }
.badge-movie b { font-size: 14px; padding: 4px 0; }
.badge-lang { position: absolute; z-index: 2; top: 10px; left: 10px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; }
.badge-lang.dubbed { background: #1f7a4d; }
.badge-lang.original { background: #1d4ed8; }

/* Slider */
.slider { position: relative; background: #111; }
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; scroll-snap-align: start; min-height: 420px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.slide::before { content: ''; position: absolute; inset: -20px; background: var(--img) center/cover no-repeat; filter: blur(3px) brightness(.45); transform: scale(1.05); }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.2)); }
.slide-in { position: relative; z-index: 1; display: flex; gap: 28px; align-items: center; padding: 36px 0; }
.slide-poster { width: 210px; aspect-ratio: 2/3; object-fit: cover; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5); flex: none; }
.slide-txt h2 { font-size: clamp(24px, 3.4vw, 40px); font-weight: 800; margin: 8px 0 4px; }
.slide-desc { max-width: 620px; opacity: .9; margin: 8px 0 18px; }
.orig { opacity: .75; font-weight: 500; margin: 0; text-align: right; }
.pill { display: inline-block; background: var(--red); padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; }
.dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.dots button.on { background: #fff; width: 26px; border-radius: 6px; }

/* Page head */
.page-head { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; padding: 30px 0; text-align: center; }
.page-head h1 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; }
.page-head .muted { color: rgba(255,255,255,.8); margin: 4px 0 0; }
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.tabs { display: inline-flex; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.tabs a { padding: 8px 14px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--muted); }
.tabs a.on { background: var(--red); color: #fff; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 28px 0 0; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 700; }
.pager .cur { background: var(--red); color: #fff; border-color: var(--red); }
.pager a:hover { border-color: var(--red); color: var(--red); }

/* Hero (show / episode) */
.hero { position: relative; color: #fff; overflow: hidden; background: #1a1012; }
.hero::before { content: ''; position: absolute; inset: -20px; background: var(--img) center/cover no-repeat; filter: blur(4px) brightness(.35); transform: scale(1.06); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,8,10,.92) 10%, rgba(20,8,10,.55)); }
.hero-in { position: relative; z-index: 1; display: flex; gap: 28px; padding: 34px 0; align-items: flex-start; }
.hero-poster { width: 240px; aspect-ratio: 2/3; object-fit: cover; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.55); flex: none; }
.hero-txt { flex: 1; min-width: 0; }
.hero h1 { font-size: clamp(22px, 2.8vw, 32px); font-weight: 800; margin: 6px 0 4px; }
.crumbs { font-size: 14px; opacity: .8; }
.crumbs a:hover { text-decoration: underline; }
.meta { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; }
.meta span { opacity: .7; font-weight: 500; }
.story { opacity: .92; max-width: 860px; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.tags a:hover { background: var(--red); border-color: var(--red); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Player */
.servers { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.server { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--gray); color: #fff; font-weight: 800; padding: 10px 16px; border-radius: 10px; cursor: pointer; }
.server svg { width: 18px; height: 18px; }
.server.on, .server:hover { background: var(--red); }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); max-width: 1000px; margin-inline: auto; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-cover { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: #000 var(--img) center/cover no-repeat; display: grid; place-items: center; }
.player-cover::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.play-btn { position: relative; width: 86px; height: 86px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255,255,255,.18); transition: transform .15s; }
.play-btn svg { width: 40px; height: 40px; margin-right: -4px; }
.player-cover:hover .play-btn { transform: scale(1.08); }
.player-empty { display: grid; place-items: center; color: #ddd; font-weight: 700; aspect-ratio: 21 / 9; }
.trailer-box { margin-top: 16px; }
.ep-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; max-width: 1000px; margin: 16px auto 0; }
.downloads { max-width: 1000px; margin: 18px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.dl-title { margin: 0 0 10px; font-weight: 800; }
.dl-list { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-dl { background: #1f7a4d; }
.btn-dl:hover { background: #17603c; }

/* Seasons / episodes */
.seasons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 18px; }
.season { display: inline-flex; align-items: stretch; border: 0; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer; font-weight: 800; font-size: 17px; background: var(--gray); color: #fff; position: relative; }
.season span { padding: 8px 14px; }
.season b { padding: 8px 14px; background: rgba(0,0,0,.18); }
.season.on b { background: var(--red); }
.season.on::after { content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); border: 8px solid transparent; border-top-color: var(--gray); border-bottom: 0; }
.season.on { overflow: visible; }
.eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.ep { display: grid; border-radius: 10px; overflow: hidden; text-align: center; background: #6b6b72; color: #fff; transition: transform .1s; }
.ep span { background: #505056; font-size: 13px; font-weight: 700; padding: 6px 0; }
.ep b { font-size: 24px; padding: 8px 0 10px; }
.ep:hover { transform: translateY(-2px); background: #7a7a82; }
.ep.on { background: var(--red); }
.ep.on span { background: var(--red-dark); }

/* Comments */
.comments { background: #fff; border-radius: 14px; border: 1px solid var(--line); padding: 20px; max-width: 1000px; margin-inline: auto; }
.cf-title { text-align: center; font-weight: 800; font-size: 18px; margin: 0 0 12px; }
.comment-form { display: grid; gap: 10px; margin-bottom: 20px; }
.comment-form input, .comment-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: 500 15px var(--font); background: var(--bg); outline: none; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--red); background: #fff; }
.comment-form .btn { justify-self: start; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; }
.comment-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.comment-list li { display: flex; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.c-head { margin: 0; }
.c-head time { color: var(--muted); font-size: 13px; margin-inline-start: 8px; }
.c-body { margin: 2px 0 0; white-space: pre-line; word-break: break-word; }
.notice { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 700; }
.notice.ok { background: #e8f6ee; color: #17603c; }
.notice.err { background: #fdecec; color: #9b1c1c; }

/* Prose pages */
.prose { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; max-width: 900px; margin-inline: auto; }
.prose p { margin: 0 0 1em; }
.prose a { color: var(--red); text-decoration: underline; }
.prose a.btn { color: #fff; text-decoration: none; }

/* Ads */
.ad { margin-block: 16px; text-align: center; overflow: hidden; }

/* Footer */
.ftr { margin-top: 50px; background: #1d1416; color: #d9d2d4; padding: 36px 0 16px; }
.ftr .logo { color: #fff; }
.ftr-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.ftr-tag { opacity: .8; margin: 10px 0; }
.ftr-title { font-weight: 800; color: #fff; margin: 0 0 10px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ftr ul a:hover { color: #fff; text-decoration: underline; }
.socials { display: flex; gap: 8px; }
.soc { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.08); font-weight: 800; font-size: 12px; }
.soc:hover { background: var(--red); color: #fff; }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 26px; padding-top: 14px; font-size: 14px; opacity: .8; }
.tmdb-note { direction: ltr; font-size: 12px; }
.to-top { position: fixed; left: 16px; bottom: 16px; z-index: 30; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--red); color: #fff; font-size: 20px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: var(--shadow); }
.to-top.show { opacity: 1; pointer-events: auto; }

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .hero-poster { width: 170px; }
  .slide-poster { width: 160px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 24px); }
  .logo { font-size: 28px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .row-scroll { grid-auto-columns: 150px; gap: 10px; }
  .card-title { font-size: 13px; }
  .badge-num b { font-size: 17px; }
  .hero-in { flex-direction: column; align-items: center; text-align: center; padding: 24px 0; }
  .hero-poster { width: 150px; }
  .meta, .tags { justify-content: center; }
  .orig { text-align: center; }
  .slide { min-height: 360px; }
  .slide-in { flex-direction: column; text-align: center; gap: 14px; padding: 24px 0 44px; }
  .slide-poster { width: 120px; }
  .slide-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .sec-title h2 { font-size: 16px; }
  .sec-more { display: none; }
  .ftr-grid { grid-template-columns: 1fr; }
  .eps { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
  .ep b { font-size: 20px; }
  .comments, .prose { padding: 16px; }
  .filters { justify-content: center; }
}
.yt-note { max-width: 1000px; margin: 10px auto 0; text-align: center; font-size: 14px; color: var(--muted); }
.yt-note a { color: var(--red); font-weight: 700; text-decoration: underline; }

.player-external { display: grid; place-items: center; text-decoration: none; background: #000 var(--img) center/cover no-repeat; }
.player-external::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.player-external .ext-in { position: relative; display: grid; gap: 12px; justify-items: center; color: #fff; text-align: center; padding: 16px; }
.player-external .ext-in b { font-size: 18px; }
.player-external .ext-in small { opacity: .85; }
.ext-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
