@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #08090c;
  --surface: #111319;
  --surface2: #171a22;
  --text: #f6f7f9;
  --muted: #9ba0ad;
  --accent: #ff7a18;
  --accent2: #ff9d42;
  --line: rgba(255, 255, 255, .08);
  --shadow: 0 20px 60px rgba(0, 0, 0, .35)
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: radial-gradient(circle at 80% -10%, rgba(255, 122, 24, .12), transparent 32%), var(--bg);
  color: var(--text);
  font-family: Cairo, system-ui, sans-serif;
  line-height: 1.7
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")
}

a {
  text-decoration: none;
  color: inherit
}

button,
input {
  font: inherit
}

.container {
  width: min(1240px, calc(100% - 36px));
  margin: auto
}

.header {
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 12, .72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line)
}

.header-inner {
  height: 100%;
  width: min(1320px, calc(100% - 36px));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  direction: rtl
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--accent2), var(--accent));
  color: #17100a;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(255, 122, 24, .2)
}

.brand b {
  display: block;
  font-size: 17px;
  line-height: 1.1
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 2px
}

.desktop-nav {
  display: flex;
  gap: 8px;
  margin-inline: auto
}

.desktop-nav a {
  padding: 8px 15px;
  border-radius: 10px;
  color: #b8bbc4;
  font-size: 14px
}

.desktop-nav a:hover,
.desktop-nav .active {
  background: rgba(255, 122, 24, .1);
  color: #fff
}

.header-actions {
  display: flex;
  gap: 7px
}

.header-actions button,
.close {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer
}

.header-actions button:hover {
  border-color: rgba(255, 122, 24, .5);
  color: var(--accent2)
}

.menu-btn {
  display: none
}

.hero {
  min-height: 590px;
  position: relative;
  overflow: hidden
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 45%, rgba(255, 122, 24, .16), transparent 25%), linear-gradient(90deg, rgba(8, 9, 12, .2), rgba(8, 9, 12, .95) 72%), linear-gradient(180deg, rgba(8, 9, 12, 0), var(--bg));
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg) 0%, transparent 30%);
  pointer-events: none
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 590px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px
}

.hero-copy {
  max-width: 650px
}

.eyebrow,
.kicker {
  color: var(--accent2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px
}

.hero h1 {
    font-size: clamp(10px, 3vw, 40px);
    line-height: 1.1;
    margin: 12px 0;
}

.hero p {
  color: #b9bdc7;
  font-size: 17px;
  max-width: 600px
}

.hero-meta,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0
}

.hero-meta span,
.chips span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .045);
  border-radius: 30px;
  color: #d5d7dd;
  font-size: 12px
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #17100a;
  border: 0;
  box-shadow: 0 14px 34px rgba(255, 122, 24, .18)
}

.btn.ghost {
  background: rgba(255, 255, 255, .045);
  color: #fff
}

.hero-card {
  width: 260px;
  display: flex;
  justify-content: center
}

.poster {
  aspect-ratio: 2/3;
  width: 220px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 30px;
  font-weight: 900;
  box-shadow: var(--shadow);
  background: linear-gradient(145deg, #613017, #17120f 55%, #2e1d13)
}

.poster:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255, 194, 123, .4), transparent 25%), linear-gradient(160deg, transparent 20%, rgba(0, 0, 0, .7));
  mix-blend-mode: screen
}

.poster span {
  position: relative;
  text-shadow: 0 4px 25px #000
}

.poster-a {
  background: linear-gradient(145deg, #b55d2b, #301b18 48%, #101217)
}

.hero-dots {
  position: absolute;
  bottom: 32px;
  right: 50%;
  transform: translateX(50%);
  z-index: 4;
  display: flex;
  gap: 7px
}

.hero-dots i {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: #666
}

.hero-dots i.on {
  width: 24px;
  background: var(--accent)
}

.section {
  padding: 58px 0 8px
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 22px
}

.section-head h2 {
  margin: 3px 0 0;
  font-size: 27px
}

.section-head>a {
  color: var(--accent2);
  font-size: 13px
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px
}

.card {
  min-width: 0
}

.card-img {
  aspect-ratio: 16/10;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, #343945, #13151a);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .18)
}

.card-img:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, .08), transparent 40%), linear-gradient(0deg, rgba(0, 0, 0, .6), transparent 65%)
}

.img-1 {
  background: linear-gradient(135deg, #54261c, #1b202b)
}

.img-2 {
  background: linear-gradient(135deg, #253b43, #16191f)
}

.img-3 {
  background: linear-gradient(135deg, #4d3a26, #17191f)
}

.img-4 {
  background: linear-gradient(135deg, #38244a, #16171d)
}

.img-5 {
  background: linear-gradient(135deg, #26423a, #15181c)
}

.img-6 {
  background: linear-gradient(135deg, #4a2536, #16161c)
}

.badge {
  position: absolute;
  top: 9px;
  right: 9px;
  background: rgba(8, 9, 12, .72);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 10px;
  color: #fff
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.9);
  width: 43px;
  height: 43px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 122, 24, .95);
  color: #1a1008;
  opacity: 0;
  transition: .2s
}

.card:hover .play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1)
}

.card-body h3 {
  font-size: 13px;
  margin: 10px 2px 2px;
  line-height: 1.6
}

.card-body p,
.series-card>span {
  color: var(--muted);
  font-size: 10px;
  margin: 0
}

.rail {
  display: flex;
  gap: 17px;
  overflow: auto;
  padding-bottom: 18px;
  scrollbar-width: none
}

.rail::-webkit-scrollbar {
  display: none
}

.series-card {
  min-width: 155px;
  width: 155px
}

.series-poster {
  aspect-ratio: 2/3;
  border-radius: 14px;
  display: grid;
  place-items: end center;
  padding: 16px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #59321d, #171a21)
}

.series-poster:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent 65%)
}

.series-poster span {
  position: relative;
  z-index: 1;
  font-weight: 900;
  text-align: center
}

.poster-1 {
  background: linear-gradient(145deg, #66311f, #151821)
}

.poster-2 {
  background: linear-gradient(145deg, #243e48, #17171c)
}

.poster-3 {
  background: linear-gradient(145deg, #4a3a24, #171820)
}

.poster-4 {
  background: linear-gradient(145deg, #472c52, #17171e)
}

.poster-5 {
  background: linear-gradient(145deg, #2a4a3b, #15181d)
}

.poster-6 {
  background: linear-gradient(145deg, #552536, #17171e)
}

.series-card h3 {
  font-size: 13px;
  margin: 9px 0 1px
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px
}

.category-grid a {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  transition: .2s
}

.category-grid a:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 24, .35)
}

.category-grid b {
  display: block;
  font-size: 28px;
  margin-bottom: 8px
}

.category-grid span {
  display: block;
  font-weight: 800;
  font-size: 13px
}

.category-grid small {
  color: var(--muted);
  font-size: 10px
}

.footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding: 45px 0 20px;
  background: #090a0e
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 35px
}

.footer p {
  color: var(--muted);
  font-size: 12px;
  max-width: 390px
}

.footer h4 {
  margin: 0 0 10px;
  font-size: 13px
}

.footer a {
  display: block;
  color: #9da1ac;
  font-size: 11px;
  margin: 7px 0
}

.footer a:hover {
  color: var(--accent2)
}

.copyright {
  text-align: center;
  color: #666b76;
  font-size: 10px;
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 16px
}

.footer.compact {
  margin-top: 50px;
  padding-bottom: 15px
}

.footer.compact .copyright {
  border: 0;
  margin: 0
}

.page {
  padding-top: 65px;
  min-height: 70vh
}

.page-title {
  margin-bottom: 28px
}

.page-title h1 {
  font-size: 38px;
  margin: 5px 0
}

.page-title p {
  color: var(--muted);
  font-size: 13px
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px
}

.filter {
  border: 1px solid var(--line);
  background: var(--surface);
  color: #aaaeb8;
  border-radius: 10px;
  padding: 7px 14px;
  cursor: pointer
}

.filter.active,
.filter:hover {
  background: rgba(255, 122, 24, .12);
  border-color: rgba(255, 122, 24, .35);
  color: #fff
}

.load {
  text-align: center;
  margin: 30px
}

.series-hero {
  min-height: 510px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(0deg, var(--bg), transparent 60%)
}

.series-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 35%, rgba(255, 122, 24, .18), transparent 30%), linear-gradient(90deg, transparent, rgba(8, 9, 12, .9)), linear-gradient(0deg, var(--bg), transparent 70%)
}

.series-info {
  position: relative;
  min-height: 510px;
  display: flex;
  align-items: end;
  gap: 32px;
  padding-bottom: 55px
}

.poster.large {
  width: 230px;
  flex: none
}

.series-info>div:last-child {
  max-width: 650px
}

.series-info h1 {
  font-size: 52px;
  margin: 8px 0
}

.lead {
  color: #b4b8c2;
  font-size: 14px
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 35px
}

.article-text {
  color: #aeb2bd;
  font-size: 14px;
  line-height: 2
}

.season-title {
  margin-top: 38px
}

.episode-list {
  display: grid;
  gap: 8px
}

.episode-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025)
}

.episode-row:hover {
  border-color: rgba(255, 122, 24, .3);
  background: rgba(255, 122, 24, .045)
}

.ep-num {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 122, 24, .1);
  display: grid;
  place-items: center;
  color: var(--accent2);
  font-weight: 800
}

.episode-row b {
  display: block;
  font-size: 12px
}

.episode-row small {
  display: block;
  color: var(--muted);
  font-size: 10px
}

.episode-row i {
  margin-right: auto;
  color: var(--accent2)
}

.info-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px
}

.info-box h3 {
  font-size: 14px;
  margin: 0 0 12px
}

.info-box p {
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px
}

.info-box p:last-child {
  border: 0
}

.info-box p b {
  display: block;
  color: #eee
}

.watch-page {
  padding-top: 35px
}

.breadcrumbs {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 15px
}

.breadcrumbs span {
  padding: 0 8px;
  color: var(--accent)
}

.watch-page>h1 {
  font-size: 27px;
  margin: 0 0 20px
}

.server-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px
}

.server-row>span {
  color: var(--muted);
  font-size: 11px;
  margin-left: 8px
}

.server {
  border: 1px solid var(--line);
  background: var(--surface);
  color: #bbb;
  border-radius: 9px;
  padding: 7px 13px;
  cursor: pointer;
  font-size: 11px
}

.server.active,
.server:hover {
  background: var(--accent);
  color: #16100a;
  border-color: var(--accent)
}

.player {
  background: #030405;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px;
  box-shadow: var(--shadow)
}

.player-screen {
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(255, 122, 24, .08), transparent 35%), #050609;
  border-radius: 11px
}

.player-message {
  text-align: center;
  color: #777;
  display: grid;
  gap: 4px
}

.player-message span {
  font-size: 38px;
  color: var(--accent)
}

.player-message b {
  color: #c4c7cf
}

.player-message small {
  font-size: 10px
}

.watch-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 15px 0 35px
}

.watch-details {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 30px;
  border-top: 1px solid var(--line);
  padding-top: 28px
}

.watch-details h2 {
  font-size: 20px
}

.watch-details p {
  color: var(--muted);
  font-size: 13px;
  line-height: 2
}

.detail-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  height: max-content
}

.detail-box b {
  color: #8f94a0;
  font-size: 10px
}

.detail-box span {
  font-size: 11px
}

.empty {
  text-align: center;
  padding: 100px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .02)
}

.empty>span {
  font-size: 50px;
  color: var(--accent)
}

.empty h2 {
  margin: 8px
}

.empty p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 20px
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(5px);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: .25s
}

.overlay.show {
  opacity: 1;
  visibility: visible
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -340px;
  width: min(340px, 88vw);
  height: 100%;
  z-index: 90;
  background: #0d0f14;
  border-left: 1px solid var(--line);
  padding: 25px;
  transition: .3s;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .4)
}

.mobile-menu.show {
  right: 0
}

.mobile-menu .close,
.search-modal .close {
  float: left
}

.mobile-menu .brand {
  clear: both;
  padding-top: 50px;
  margin-bottom: 35px
}

.mobile-menu nav a {
  display: block;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 700
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7, 8, 11, .93);
  backdrop-filter: blur(20px);
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transition: .2s
}

.search-modal.show {
  opacity: 1;
  visibility: visible
}

.search-box {
  width: min(800px, 100%);
  margin: 20vh auto 0;
  display: flex;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 8px;
  border-radius: 17px
}

.search-box span {
  display: grid;
  place-items: center;
  width: 45px;
  color: var(--accent);
  font-size: 24px
}

.search-box input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 18px
}

.search-box button {
  border: 0;
  background: var(--accent);
  border-radius: 11px;
  padding: 0 22px;
  font-weight: 800
}

@media(max-width:1050px) {
  .demo-grid {
    grid-template-columns: repeat(4, 1fr)
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .desktop-nav {
    display: none
  }

  .menu-btn {
    display: block
  }

  .hero-card {
    display: none
  }

  .hero-content {
    justify-content: flex-start
  }

  .content-layout {
    grid-template-columns: 1fr 250px
  }
}

@media(max-width:720px) {

  .container,
  .header-inner {
    width: min(100% - 24px, 1240px)
  }

  .header {
    height: 68px
  }

  .brand-mark {
    width: 36px;
    height: 36px
  }

  .header-actions button {
    width: 37px;
    height: 37px
  }

  .hero,
  .hero-content {
    min-height: 500px
  }

  .hero h1 {
    font-size: 43px
  }

  .hero p {
    font-size: 14px
  }

  .hero-actions {
    flex-wrap: wrap
  }

  .section {
    padding-top: 42px
  }

  .section-head h2 {
    font-size: 22px
  }

  .demo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px
  }

  .footer-grid>div:first-child {
    grid-column: 1/-1
  }

  .page {
    padding-top: 42px
  }

  .page-title h1 {
    font-size: 31px
  }

  .series-info {
    display: block;
    padding-top: 45px
  }

  .poster.large {
    width: 145px;
    margin-bottom: 20px
  }

  .series-info h1 {
    font-size: 39px
  }

  .content-layout,
  .watch-details {
    grid-template-columns: 1fr
  }

  .side-info {
    display: none
  }

  .watch-page>h1 {
    font-size: 21px
  }

  .watch-nav {
    flex-wrap: wrap
  }

  .watch-nav .btn {
    flex: 1
  }

  .server-row>span {
    width: 100%
  }

  .player {
    padding: 4px
  }

  .hero-card {
    display: none
  }
}

@media(max-width:430px) {
  .desktop-nav {
    display: none
  }

  .header-actions {
    gap: 4px
  }

  .demo-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .card-body h3 {
    font-size: 11px
  }

  .category-grid {
    grid-template-columns: 1fr 1fr
  }

  .category-grid a {
    padding: 15px
  }

  .section-head>a {
    font-size: 11px
  }

  .hero h1 {
    font-size: 38px
  }

  .hero {
    min-height: 470px
  }

  .hero-content {
    min-height: 470px
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr
  }
}

body.light {
  --bg: #f4f5f7;
  --surface: #fff;
  --surface2: #f0f1f4;
  --text: #17181c;
  --muted: #666b75;
  --line: rgba(20, 22, 28, .1)
}

body.light .header {
  background: rgba(244, 245, 247, .78)
}

body.light .header-actions button,
body.light .close {
  color: #222
}

body.light .btn.ghost {
  color: #222
}

body.light .footer {
  background: #e9eaee
}

body.light .search-modal {
  background: rgba(244, 245, 247, .94)
}

body.light .search-box input {
  color: #111
}

body.light .mobile-menu {
  background: #f8f8fa
}

body.light .desktop-nav a:hover,
body.light .desktop-nav .active {
  color: #111
}

/* Temporary media supplied by the site owner */

.poster:before,
.series-poster:after,
.card-img:before {
  background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .72)) !important;
  mix-blend-mode: normal !important
}

.video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 11px;
  background: #050609
}

@media(max-width:720px) {
  .video-frame {
    aspect-ratio: 16/9
  }
}


/* V3 media presentation: real temporary poster + cinematic hero */
.hero-slider {
  min-height: 620px;
  position: relative;
  background: #08090c
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  overflow: hidden
}

.hero-slide.active {
  opacity: 1;
  visibility: visible
}

.hero-slide>img {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.9) contrast(1.04);
  transform: scale(1.02);
  transition: transform 7s ease;
  animation: heroKenBurns 7s ease both
}

.hero-slide.active>img {
  transform: scale(1.1) translate3d(-1.5%, 0, 0)
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 9, 12, .20) 0%, rgba(8, 9, 12, .55) 45%, rgba(8, 9, 12, .96) 88%), linear-gradient(0deg, #08090c 0%, transparent 30%, rgba(8, 9, 12, .25) 100%)
}

.hero-slider .hero-content {
  position: relative;
  z-index: 2
}

.hero-dots {
  position: absolute;
  z-index: 5;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  direction: ltr
}

.hero-dots button {
  width: 30px;
  height: 4px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .28);
  cursor: pointer;
  padding: 0;
  transition: .3s
}

.hero-dots button.on {
  width: 52px;
  background: var(--accent)
}

.card-img {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 14px;
  overflow: hidden;
  background: #171920
}

.card-img img,
.series-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease, filter .45s ease
}

.card:hover .card-img img,
.series-card:hover .series-poster img {
  transform: scale(1.06);
  filter: saturate(1.05)
}

.series-poster {
  padding: 0 !important;
  display: block !important
}

.series-poster:after {
  pointer-events: none
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1.02) translate3d(1%, 0, 0)
  }

  50% {
    transform: scale(1.08) translate3d(-1%, -1%, 0)
  }

  100% {
    transform: scale(1.1) translate3d(-1.5%, 0, 0)
  }
}

@media(max-width:720px) {
  .hero-slider {
    min-height: 540px
  }

  .hero-slider .hero-content {
    min-height: 540px
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(8, 9, 12, .42), rgba(8, 9, 12, .92)), linear-gradient(0deg, #08090c 0%, transparent 45%)
  }

  .hero-slide>img {
    object-position: 55% center
  }

  .hero-dots {
    bottom: 22px
  }
}

@media(prefers-reduced-motion:reduce) {
  .hero-slide>img {
    animation: none !important;
    transition: none !important
  }

  .hero-slide {
    transition: none !important
  }
}

.poster.large {
  padding: 0 !important;
  display: block !important
}

.poster.large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

/* ===== V4 polish: favorites + cinematic navigation + rich content ===== */
body.modal-open {
  overflow: hidden
}

.favorite-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 8;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(8, 9, 12, .62);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 21px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: .25s;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .22)
}

.favorite-btn:hover,
.favorite-btn.is-favorite {
  background: rgba(255, 122, 24, .96);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.05)
}

.series-fav {
  top: 12px;
  left: 12px
}





.card-img,
.series-poster {
  position: relative
}

.favorite-action {
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.favorite-action.is-favorite {
  background: rgba(255, 122, 24, .16);
  border-color: var(--accent);
  color: var(--accent2)
}

.site-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, .74);
  backdrop-filter: blur(12px);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: .35s
}

.site-overlay.show {
  opacity: 1;
  visibility: visible
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(520px, 100vw);
  height: 100%;
  z-index: 90;
  background: linear-gradient(145deg, #10131c 0%, #0a0c12 55%, #12100e 100%);
  border-left: 1px solid rgba(255, 255, 255, .08);
  padding: 24px;
  transform: translateX(105%);
  transition: transform .42s cubic-bezier(.2, .8, .2, 1);
  box-shadow: -35px 0 100px rgba(0, 0, 0, .55);
  overflow: auto
}

.mobile-menu.show {
  transform: translateX(0)
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px
}

.menu-kicker {
  font-size: 12px;
  color: #969daa
}

.menu-close,
.search-close {
  border: 1px solid rgba(255, 255, 255, .1);
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
  transition: .25s
}

.menu-close:hover,
.search-close:hover {
  background: var(--accent);
  transform: rotate(4deg)
}

.menu-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(135deg, rgba(255, 122, 24, .14), rgba(255, 255, 255, .035));
  border-radius: 22px;
  margin-bottom: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2)
}

.menu-brand .brand-mark {
  width: 50px;
  height: 50px
}

.menu-brand b {
  display: block;
  font-size: 22px
}

.menu-brand small {
  display: block;
  color: #9298a6;
  font-size: 10px;
  margin-top: 2px
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.menu-tile {
  min-height: 100px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
  transition: .25s;
  position: relative;
  overflow: hidden
}

.menu-tile:before {
  content: "";
  position: absolute;
  inset: auto -20px -35px auto;
  width: 90px;
  height: 90px;
  background: rgba(255, 122, 24, .08);
  filter: blur(20px);
  border-radius: 50%
}

.menu-tile:hover,
.menu-tile.featured {
  border-color: rgba(255, 122, 24, .34);
  background: linear-gradient(145deg, rgba(255, 122, 24, .16), rgba(255, 255, 255, .035));
  transform: translateY(-2px)
}

.menu-icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 122, 24, .12);
  color: var(--accent2);
  font-size: 21px
}

.menu-tile b {
  display: block;
  font-size: 13px
}

.menu-tile small {
  display: block;
  color: #8e95a4;
  font-size: 9px;
  line-height: 1.55;
  margin-top: 3px
}

.menu-tile i {
  margin-right: auto;
  color: #687182;
  font-style: normal;
  font-size: 18px
}

.menu-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #6f7684;
  font-size: 9px;
  padding: 18px 4px 4px
}

.favorite-menu .menu-icon {
  color: #ff8a2b
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 6, 10, .84);
  backdrop-filter: blur(24px);
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  overflow: auto
}

.search-modal.show {
  opacity: 1;
  visibility: visible
}

.search-close {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 4
}

.search-panel {
  position: relative;
  width: min(850px, 100%);
  margin: 16vh auto 0;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(22, 25, 34, .96), rgba(11, 13, 18, .96));
  box-shadow: 0 40px 120px rgba(0, 0, 0, .55);
  overflow: hidden
}

.search-panel:before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -80px;
  top: -100px;
  border-radius: 50%;
  background: rgba(255, 122, 24, .15);
  filter: blur(45px)
}

.search-eyebrow,
.search-panel p {
  position: relative;
  color: #9399a7;
  font-size: 12px
}

.search-panel h2 {
  position: relative;
  font-size: 36px;
  margin: 5px 0
}

.search-panel p {
  margin: 0 0 24px
}

.search-box {
  position: relative;
  width: 100%;
  margin: 0;
  display: flex;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: #0b0d12;
  padding: 8px;
  border-radius: 18px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .03), 0 15px 45px rgba(0, 0, 0, .25)
}

.search-box:focus-within {
  border-color: rgba(255, 122, 24, .55);
  box-shadow: 0 0 0 4px rgba(255, 122, 24, .07)
}

.search-box .search-symbol {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 25px
}

.search-box input {
  min-width: 0
}

.search-box button {
  min-width: 100px;
  height: 48px
}

.search-suggestions {
  position: relative;
  margin-top: 22px
}

.search-suggestions>span {
  display: block;
  color: #737a88;
  font-size: 10px;
  margin-bottom: 10px
}

.search-suggestions div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.search-suggestions button {
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .035);
  color: #c4c8d0;
  border-radius: 99px;
  padding: 8px 13px;
  cursor: pointer
}

.search-suggestions button:hover {
  border-color: rgba(255, 122, 24, .4);
  color: #fff;
  background: rgba(255, 122, 24, .1)
}

.series-main-info {
  max-width: 720px
}

.series-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.story-extra {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 24px 0
}

.story-extra div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025)
}

.story-extra span {
  display: block;
  color: var(--muted);
  font-size: 9px
}

.story-extra b {
  display: block;
  margin-top: 3px;
  font-size: 12px
}

.season-title {
  display: flex;
  align-items: center;
  gap: 12px
}

.season-title span {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400
}

.episode-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 10px
}

.sort-pill {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 99px;
  padding: 6px 11px;
  cursor: pointer
}

.sort-pill.active {
  color: var(--accent2);
  border-color: rgba(255, 122, 24, .35);
  background: rgba(255, 122, 24, .08)
}

.cast-box ul {
  list-style: none;
  padding: 0;
  margin: 0
}

.cast-box li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted)
}

.tags-box .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.tag-cloud a,
.watch-tags a {
  font-size: 9px;
  color: #bfc4ce;
  padding: 6px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line)
}

.tag-cloud a:hover,
.watch-tags a:hover {
  color: #fff;
  border-color: rgba(255, 122, 24, .35)
}

.watch-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px
}

.watch-heading>div {
  min-width: 0
}

.watch-heading h1 {
  font-size: 29px;
  margin: 3px 0 0
}

.watch-series-info {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 24px;
  margin: 35px 0
}

.watch-series-copy,
.watch-episode-box {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .02);
  padding: 22px
}

.watch-series-copy h2 {
  font-size: 21px
}

.watch-series-copy p {
  color: var(--muted);
  font-size: 12px;
  line-height: 2
}

.cast-inline {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin: 18px 0
}

.text-link {
  color: var(--accent2);
  font-size: 11px;
  font-weight: 700
}

.episode-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px
}

.episode-box-head span {
  display: block;
  font-weight: 800
}

.episode-box-head b {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400
}

.episode-box-head a {
  color: var(--accent2);
  font-size: 10px
}

.watch-episode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  max-height: 430px;
  overflow: auto;
  padding-left: 2px
}

.watch-episode-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  border-radius: 11px;
  padding: 8px;
  color: #d9dce3
}

.watch-episode-mini span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 122, 24, .09);
  color: var(--accent2);
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800
}

.watch-episode-mini b {
  font-size: 9px
}

.watch-episode-mini i {
  margin-right: auto;
  color: #626a78;
  font-style: normal;
  font-size: 10px
}

.watch-episode-mini:hover,
.watch-episode-mini.current {
  border-color: rgba(255, 122, 24, .35);
  background: rgba(255, 122, 24, .08)
}

.watch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px
}

.footer-social {
  display: flex;
  gap: 7px;
  margin-top: 14px
}

.footer-social a {
  font-size: 9px;
  padding: 6px 9px !important;
  border: 1px solid var(--line);
  border-radius: 99px !important;
  background: rgba(255, 255, 255, .03)
}

.favorites-grid {
  min-height: 0
}

.favorite-card .favorite-btn {
  left: 10px
}

.favorites-grid:empty {
  display: none
}

body.light .mobile-menu {
  background: linear-gradient(145deg, #f9fafc, #eef0f4)
}

body.light .menu-tile {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(20, 22, 28, .08)
}

body.light .menu-brand {
  background: linear-gradient(135deg, rgba(255, 122, 24, .1), rgba(255, 255, 255, .7))
}

body.light .search-modal {
  background: rgba(245, 246, 249, .86)
}

body.light .search-panel {
  background: rgba(255, 255, 255, .95);
  border-color: rgba(20, 22, 28, .08)
}

body.light .search-box {
  background: #f3f4f7;
  border-color: rgba(20, 22, 28, .08)
}

body.light .search-box input {
  color: #111
}

body.light .search-suggestions button {
  color: #555
}

@media(max-width:720px) {
  .menu-grid {
    grid-template-columns: 1fr
  }

  .mobile-menu {
    padding: 18px
  }

  .menu-tile {
    min-height: 78px
  }

  .menu-bottom {
    flex-direction: column
  }

  .search-panel {
    margin: 12vh auto 0;
    padding: 25px 18px;
    border-radius: 24px
  }

  .search-panel h2 {
    font-size: 28px
  }

  .search-close {
    top: 16px;
    left: 16px
  }

  .watch-heading {
    align-items: stretch;
    flex-direction: column
  }

  .watch-heading .favorite-action {
    width: max-content
  }

  .watch-series-info {
    grid-template-columns: 1fr
  }

  .story-extra {
    grid-template-columns: 1fr 1fr
  }

  .watch-episode-grid {
    grid-template-columns: 1fr
  }

  .series-actions .btn {
    width: 100%;
    justify-content: center
  }

  .series-info {
    padding-bottom: 38px
  }
}

.season-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .02)
}

.season-switch>span {
  font-size: 10px;
  color: var(--muted);
  margin-left: 4px
}

.season-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: #aeb3bd;
  border-radius: 9px;
  padding: 7px 12px;
  font-size: 10px;
  cursor: pointer
}

.season-btn:hover,
.season-btn.active {
  background: rgba(255, 122, 24, .1);
  border-color: rgba(255, 122, 24, .4);
  color: var(--accent2)
}


/* V5 — polished favorites + seasons */
.header-fav {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .09);
  background: linear-gradient(145deg, rgba(255, 122, 24, .13), rgba(255, 255, 255, .035));
  color: #fff;
  transition: .22s;
  box-shadow: inset 0 1px rgba(255, 255, 255, .05)
}

.header-fav span {
  font-size: 22px;
  line-height: 1;
  transition: .22s
}

.header-fav:hover {
  border-color: rgba(255, 122, 24, .5);
  transform: translateY(-1px);
  color: var(--accent2);
  box-shadow: 0 8px 24px rgba(255, 122, 24, .12)
}

.header-fav b {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff9d42, #ff6810);
  color: #160d06;
  border: 2px solid var(--bg);
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(255, 122, 24, .3)
}

.header-fav b.zero {
  opacity: .72;
  transform: scale(.9)
}

.favorite-action {
  min-height: 48px;
  padding: 9px 16px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
  border: 1px solid rgba(255, 255, 255, .1);
  color: #f3f4f6;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
  transition: .22s
}

.favorite-action:before {
  content: '♡';
  font-size: 21px;
  line-height: 1;
  color: var(--accent2);
  transition: .22s
}

.favorite-action.is-favorite:before {
  content: '♥';
  color: #fff
}

.favorite-action:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 24, .55);
  background: linear-gradient(145deg, rgba(255, 122, 24, .17), rgba(255, 255, 255, .04));
  box-shadow: 0 12px 30px rgba(255, 122, 24, .12)
}

.favorite-action.is-favorite {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border-color: transparent;
  color: #1a0e06;
  box-shadow: 0 12px 30px rgba(255, 122, 24, .2)
}

.favorite-action.is-favorite:before {
  color: #1a0e06
}

.series-actions .favorite-action {
  order: 2
}

.series-actions .primary {
  order: 1
}

.season-area {
  margin-top: 42px
}

.season-area-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 16px
}

.season-area-head h2 {
  margin: 3px 0 0;
  font-size: 24px
}

.season-note {
  font-size: 10px;
  color: var(--muted)
}

.season-tabs,
.watch-season-tabs {
  display: flex;
  gap: 9px;
  overflow: auto;
  padding: 4px 2px 13px;
  scrollbar-width: none
}

.season-tabs::-webkit-scrollbar,
.watch-season-tabs::-webkit-scrollbar {
  display: none
}

.season-tab,
.watch-season-tab {
  flex: 0 0 auto;
  min-width: 110px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
  color: #aeb3bd;
  padding: 11px 14px;
  text-align: right;
  cursor: pointer;
  transition: .22s
}

.season-tab b,
.watch-season-tab b {
  display: block;
  font-size: 11px
}

.season-tab small,
.watch-season-tab small {
  display: block;
  color: #777f8e;
  font-size: 9px;
  margin-top: 2px
}

.season-tab:hover,
.season-tab.active,
.watch-season-tab:hover,
.watch-season-tab.active {
  border-color: rgba(255, 122, 24, .55);
  background: linear-gradient(145deg, rgba(255, 122, 24, .17), rgba(255, 122, 24, .05));
  color: #fff;
  box-shadow: 0 8px 25px rgba(255, 122, 24, .08)
}

.season-tab.active small,
.watch-season-tab.active small {
  color: var(--accent2)
}

.season-panel {
  display: none
}

.season-panel.active {
  display: block;
  animation: seasonIn .28s ease
}

.watch-season-panel {
  display: none
}

.watch-season-panel.active {
  display: block;
  animation: seasonIn .28s ease
}

@keyframes seasonIn {
  from {
    opacity: 0;
    transform: translateY(6px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.watch-season-tabs {
  margin: -2px 0 12px
}

.watch-season-tab {
  min-width: 94px;
  padding: 9px 12px
}

.watch-episode-grid {
  max-height: 455px
}

.watch-episode-mini.current {
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 122, 24, .12)
}

@media(max-width:720px) {
  .header-fav {
    width: 40px;
    height: 40px
  }

  .header-fav span {
    font-size: 21px
  }

  .season-area-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px
  }

  .season-tab {
    min-width: 100px
  }

  .series-actions .favorite-action {
    order: 2
  }

  .series-actions .primary {
    order: 1
  }
}

body.light .header-fav {
  color: #24262c;
  background: rgba(255, 255, 255, .75);
  border-color: rgba(20, 22, 28, .1)
}

body.light .header-fav b {
  border-color: #f1f2f5
}


/* ===== V6: strict responsive layout + mobile viewport ===== */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  touch-action: pan-x pan-y;
}

body {
  min-width: 0;
  overscroll-behavior-x: none;
}

img,
video,
iframe {
  max-width: 100%;
}

button,
a,
input,
select,
textarea {
  max-width: 100%;
}

/* Desktop/tablet breakpoints */
@media (max-width: 1180px) {
  .container {
    width: min(100% - 28px, 1100px)
  }

  .header-inner {
    width: min(100% - 28px, 1120px);
    gap: 14px
  }

  .desktop-nav a {
    padding-inline: 10px
  }

  .demo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr))
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .content-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 22px
  }

  .watch-series-info {
    grid-template-columns: minmax(0, 1fr) 340px
  }

  .series-info>div:last-child {
    max-width: 700px
  }
}

@media (max-width: 920px) {
  .header {
    height: 68px
  }

  .header-inner {
    width: calc(100% - 24px)
  }

  .desktop-nav {
    display: none
  }

  .menu-btn {
    display: grid !important;
    place-items: center
  }

  .hero,
  .hero-content,
  .hero-slider,
  .hero-slider .hero-content {
    min-height: 520px
  }

  .hero-copy {
    max-width: 100%;
    padding-bottom: 20px
  }

  .hero h1 {
    font-size: clamp(34px, 8vw, 58px)
  }

  .hero p {
    font-size: 14px;
    max-width: 620px
  }

  .hero-card {
    display: none
  }

  .demo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px
  }

  .content-layout,
  .watch-series-info {
    grid-template-columns: 1fr
  }

  .series-info {
    min-height: 470px;
    padding-bottom: 36px
  }

  .series-info h1 {
    font-size: 42px
  }

  .poster.large {
    width: 190px
  }

  .watch-heading h1 {
    font-size: 25px
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 24px)
  }

  .header-inner {
    width: calc(100% - 20px);
    gap: 7px
  }

  .brand {
    gap: 7px;
    min-width: 0
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 19px;
    flex: 0 0 36px
  }

  .brand b {
    font-size: 15px;
    white-space: nowrap
  }

  .brand small {
    font-size: 8px
  }

  .header-actions {
    gap: 5px;
    flex: 0 0 auto
  }

  .header-actions button,
  .header-fav {
    width: 37px !important;
    height: 37px !important;
    border-radius: 11px
  }

  .header-actions button {
    font-size: 17px
  }

  .header-fav span {
    font-size: 19px !important
  }

  .header-fav b {
    top: -6px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    font-size: 8px
  }

  .hero,
  .hero-content,
  .hero-slider,
  .hero-slider .hero-content {
    min-height: 500px
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 60px
  }

  .hero-copy {
    padding-bottom: 0
  }

  .hero h1 {
    font-size: clamp(31px, 10vw, 46px);
    margin: 8px 0
  }

  .hero p {
    font-size: 12px;
    line-height: 1.9
  }

  .hero-meta {
    margin: 12px 0
  }

  .hero-actions {
    flex-wrap: wrap;
    margin-top: 15px
  }

  .hero-actions .btn {
    flex: 1 1 145px;
    min-width: 0
  }

  .section {
    padding: 40px 0 5px
  }

  .section-head {
    gap: 12px;
    align-items: center
  }

  .section-head h2 {
    font-size: 22px
  }

  .section-head>a {
    white-space: nowrap;
    font-size: 11px
  }

  .demo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px
  }

  .card-img {
    aspect-ratio: 2/3
  }

  .card-body h3 {
    font-size: 11px;
    line-height: 1.55;
    overflow-wrap: anywhere
  }

  .card-body p {
    font-size: 9px
  }

  .favorite-btn {
    width: 34px;
    height: 34px;
    top: 7px;
    left: 7px;
    font-size: 18px
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 9px
  }

  .category-grid a {
    padding: 15px
  }

  .rail {
    gap: 10px
  }

  .series-card {
    min-width: 135px;
    width: 135px
  }

  .footer {
    margin-top: 55px;
    padding-top: 32px
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px
  }

  .footer p {
    max-width: none
  }

  .page {
    padding-top: 40px
  }

  .page-title h1 {
    font-size: 29px
  }

  .series-hero {
    min-height: auto
  }

  .series-info {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 55px 0 35px
  }

  .poster.large {
    width: min(190px, 52vw);
    align-self: center
  }

  .series-info>div:last-child {
    max-width: none;
    width: 100%
  }

  .series-info h1 {
    font-size: 34px;
    overflow-wrap: anywhere
  }

  .series-actions {
    width: 100%
  }

  .series-actions .btn,
  .series-actions .favorite-action {
    width: 100%;
    justify-content: center
  }

  .story-extra {
    grid-template-columns: 1fr 1fr
  }

  .episode-row {
    min-width: 0
  }

  .episode-row b {
    font-size: 11px;
    overflow-wrap: anywhere
  }

  .episode-row small {
    font-size: 9px
  }

  .season-tabs,
  .watch-season-tabs {
    max-width: 100%;
    overflow-x: auto
  }

  .season-tab,
  .watch-season-tab {
    min-width: 92px
  }

  .watch-heading {
    gap: 12px
  }

  .watch-heading h1 {
    font-size: 21px;
    line-height: 1.6;
    overflow-wrap: anywhere
  }

  .watch-series-copy,
  .watch-episode-box {
    padding: 16px
  }

  .watch-episode-grid {
    max-height: 390px;
    grid-template-columns: 1fr
  }

  .search-modal {
    padding: 14px
  }

  .search-panel {
    width: 100%;
    margin: 18vh auto 0;
    padding: 22px 14px;
    border-radius: 20px
  }

  .search-panel h2 {
    font-size: 25px;
    line-height: 1.4
  }

  .search-box {
    padding: 6px;
    gap: 5px
  }

  .search-box .search-symbol {
    width: 38px;
    height: 44px
  }

  .search-box button {
    min-width: 74px;
    height: 44px;
    font-size: 11px
  }

  .search-box input {
    font-size: 12px
  }

  .mobile-menu {
    width: 100%;
    max-width: 100vw;
    padding: 15px;
  }

  .menu-brand {
    padding: 14px;
    border-radius: 18px
  }

  .menu-brand b {
    font-size: 18px
  }

  .menu-grid {
    grid-template-columns: 1fr
  }
}

@media (max-width: 380px) {
  .container {
    width: calc(100% - 18px)
  }

  .header-inner {
    width: calc(100% - 14px)
  }

  .brand b {
    font-size: 13px
  }

  .brand small {
    display: none
  }

  .header-actions {
    gap: 3px
  }

  .header-actions button,
  .header-fav {
    width: 34px !important;
    height: 34px !important
  }

  .demo-grid {
    gap: 8px
  }

  .card-body h3 {
    font-size: 10px
  }

  .hero,
  .hero-content,
  .hero-slider,
  .hero-slider .hero-content {
    min-height: 470px
  }

  .hero h1 {
    font-size: 30px
  }

  .story-extra {
    grid-template-columns: 1fr
  }
}

/* Prevent accidental page scaling on touch devices. */
@media (pointer:coarse) {

  html,
  body {
    touch-action: pan-x pan-y;
  }
}

/* Episode layout switch: list view or compact numbered buttons. */
.episode-view-switch {
  display: flex;
  gap: 5px;
  margin-inline-start: auto;
  direction: rtl
}

.view-pill {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  color: #9ea5b1;
  border-radius: 9px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 9px;
  white-space: nowrap;
  transition: .2s
}

.view-pill:hover {
  border-color: rgba(255, 122, 24, .4);
  color: #fff
}

.view-pill.active {
  background: rgba(255, 122, 24, .12);
  border-color: rgba(255, 122, 24, .45);
  color: var(--accent2);
  box-shadow: 0 5px 16px rgba(255, 122, 24, .08)
}

.watch-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -2px 0 10px;
  padding: 7px 0;
  color: var(--muted);
  font-size: 9px;
  border-bottom: 1px solid var(--line)
}

.episode-list.episode-buttons-view {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  max-height: 455px;
  overflow: auto;
  padding: 2px
}

.episode-list.episode-buttons-view .episode-row {
  min-height: 46px;
  justify-content: center;
  padding: 7px 6px;
  border-radius: 11px;
  position: relative;
  text-align: center;
  gap: 0
}

.episode-list.episode-buttons-view .episode-row .ep-num {
  display: none
}

.episode-list.episode-buttons-view .episode-row span:not(.ep-num) {
  display: block
}

.episode-list.episode-buttons-view .episode-row b {
  font-size: 10px;
  white-space: nowrap
}

.episode-list.episode-buttons-view .episode-row small {
  display: none
}

.episode-list.episode-buttons-view .episode-row i {
  display: none
}

.episode-list.episode-buttons-view .episode-row::before {
  content: 'الحلقة';
  display: block;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.1
}

.episode-list.episode-buttons-view .episode-row.current,
.episode-list.episode-buttons-view .episode-row:hover {
  background: linear-gradient(145deg, rgba(255, 122, 24, .18), rgba(255, 122, 24, .07));
  border-color: rgba(255, 122, 24, .45)
}

.watch-episode-grid.episode-buttons-view {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px
}

.watch-episode-grid.episode-buttons-view .watch-episode-mini {
  justify-content: center;
  min-height: 43px;
  padding: 6px 5px;
  text-align: center;
  position: relative;
  gap: 0
}

.watch-episode-grid.episode-buttons-view .watch-episode-mini span {
  display: none
}

.watch-episode-grid.episode-buttons-view .watch-episode-mini b {
  font-size: 9px;
  white-space: nowrap
}

.watch-episode-grid.episode-buttons-view .watch-episode-mini b::before {
  content: 'الحلقة ';
  font-weight: 500;
  color: var(--muted)
}

.watch-episode-grid.episode-buttons-view .watch-episode-mini i {
  display: none
}

@media(max-width:900px) {
  .episode-list.episode-buttons-view {
    grid-template-columns: repeat(5, minmax(0, 1fr))
  }

  .watch-episode-grid.episode-buttons-view {
    grid-template-columns: repeat(4, minmax(0, 1fr))
  }
}

@media(max-width:560px) {
  .episode-toolbar {
    flex-wrap: wrap
  }

  .episode-toolbar>span {
    width: 100%
  }

  .episode-view-switch {
    margin-inline-start: 0
  }

  .episode-list.episode-buttons-view {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px
  }

  .watch-episode-grid.episode-buttons-view {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px
  }

  .watch-view-toolbar {
    align-items: flex-start;
    flex-direction: column
  }

  .watch-view-toolbar .episode-view-switch {
    margin-inline-start: 0
  }
}

@media(max-width:380px) {
  .episode-list.episode-buttons-view {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .watch-episode-grid.episode-buttons-view {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}


/* V8 — Watch episode selector styled like a premium numbered episode board */
.watch-episode-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-height: 520px;
  overflow: auto;
  padding: 3px;
}

.watch-episode-grid .watch-episode-mini {
  min-height: 104px;
  padding: 14px 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  background: linear-gradient(145deg, #111214, #0b0c0f);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}

.watch-episode-grid .watch-episode-mini:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 24, .55);
  background: linear-gradient(145deg, #17191d, #0d0f12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

.watch-episode-grid .watch-episode-mini span {
  display: block;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  color: #e9edf7;
  order: 1;
}

.watch-episode-grid .watch-episode-mini b {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #aeb5c2;
  line-height: 1.3;
  order: 2;
}

.watch-episode-grid .watch-episode-mini b {
  font-size: 0;
}

.watch-episode-grid .watch-episode-mini b::after {
  content: 'حلقة';
  font-size: 15px;
}

.watch-episode-grid .watch-episode-mini i {
  display: none;
}

.watch-episode-grid .watch-episode-mini.current {
  border-color: #e1aa2d;
  background: linear-gradient(145deg, #172030, #10151e);
  box-shadow: 0 0 0 1px rgba(225, 170, 45, .45), 0 8px 25px rgba(225, 170, 45, .08);
}

.watch-episode-grid .watch-episode-mini.current span {
  color: #fff;
}

.watch-episode-grid .watch-episode-mini.current b::after {
  color: #d7dce6;
}

.watch-episode-grid.episode-buttons-view {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.watch-episode-grid.episode-buttons-view .watch-episode-mini {
  min-height: 104px;
  padding: 14px 8px;
}

.watch-episode-grid.episode-buttons-view .watch-episode-mini span {
  display: block;
  font-size: 28px;
}

.watch-episode-grid.episode-buttons-view .watch-episode-mini b {
  display: block;
  font-size: 0;
}

.watch-episode-grid.episode-buttons-view .watch-episode-mini b::before {
  display: none;
}

.watch-episode-grid.episode-buttons-view .watch-episode-mini b::after {
  content: 'حلقة';
  font-size: 15px;
  color: #aeb5c2;
}

/* Series listing: portrait cards with full, non-truncated titles */
.series-catalog {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.series-catalog .series-catalog-card {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.series-catalog .series-catalog-poster {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 16px;
  overflow: hidden;
  background: #111318;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.series-catalog .series-catalog-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.series-catalog .series-catalog-card:hover .series-catalog-poster img {
  transform: scale(1.045);
}

.series-catalog .series-catalog-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .48), transparent 48%);
  pointer-events: none;
}

.series-catalog .series-catalog-fav {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(10, 11, 14, .72);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.series-catalog .series-catalog-fav.is-favorite {
  color: var(--accent);
  border-color: rgba(255, 122, 24, .55);
}

.series-catalog .series-catalog-card h3 {
  font-size: 14px;
  line-height: 1.75;
  margin: 10px 3px 3px;
  color: var(--text);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  display: block;
}

.series-catalog .series-catalog-meta {
  margin: 0 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

@media(max-width:1100px) {
  .series-catalog {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .watch-episode-grid,
  .watch-episode-grid.episode-buttons-view {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media(max-width:700px) {
  .series-catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
  }

  .series-catalog .series-catalog-card h3 {
    font-size: 11px;
    line-height: 1.65;
  }

  .watch-episode-grid,
  .watch-episode-grid.episode-buttons-view {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .watch-episode-grid .watch-episode-mini,
  .watch-episode-grid.episode-buttons-view .watch-episode-mini {
    min-height: 82px;
    padding: 10px 5px;
  }

  .watch-episode-grid .watch-episode-mini span {
    font-size: 23px;
  }

  .watch-episode-grid .watch-episode-mini b::after {
    font-size: 12px;
  }
}

@media(max-width:430px) {
  .series-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .watch-episode-grid,
  .watch-episode-grid.episode-buttons-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .watch-episode-grid .watch-episode-mini,
  .watch-episode-grid.episode-buttons-view .watch-episode-mini {
    min-height: 78px;
  }

  .watch-episode-grid .watch-episode-mini span {
    font-size: 22px;
  }
}


/* V9 — Premium series cards: poster + complete title only */
.series-catalog {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.series-catalog .series-catalog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
  box-shadow: 0 12px 35px rgba(0, 0, 0, .18);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.series-catalog .series-catalog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 122, 24, .42);
  background: linear-gradient(145deg, rgba(255, 122, 24, .09), rgba(255, 255, 255, .025));
  box-shadow: 0 18px 45px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 122, 24, .08);
}

.series-catalog .series-catalog-poster {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 14px;
  overflow: hidden;
  background: #101216;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}

.series-catalog .series-catalog-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), filter .3s ease;
}

.series-catalog .series-catalog-card:hover .series-catalog-poster img {
  transform: scale(1.055);
  filter: saturate(1.05) brightness(1.04);
}

.series-catalog .series-catalog-poster::after {
  content: none;
}

.series-catalog .series-card-title {
  margin: 12px 4px 3px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.65;
  text-align: right;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: normal;
  min-height: 3.3em;
}

.series-catalog .series-catalog-meta {
  display: none !important;
}

@media(max-width:1200px) {
  .series-catalog {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

@media(max-width:800px) {
  .series-catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
  }

  .series-catalog .series-catalog-card {
    padding: 7px;
    border-radius: 16px;
  }

  .series-catalog .series-card-title {
    font-size: 12px;
    line-height: 1.65;
    margin: 9px 2px 2px;
  }
}

@media(max-width:520px) {
  .series-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .series-catalog .series-card-title {
    font-size: 12px;
    min-height: 3.3em;
  }
}

@media(max-width:360px) {
  .series-catalog {
    gap: 8px;
  }

  .series-catalog .series-catalog-card {
    padding: 6px;
    border-radius: 14px;
  }

  .series-catalog .series-card-title {
    font-size: 11px;
  }
}


/* SERIES LIST — dedicated card design */
.series-catalog {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.series-grid-card {
  display: block;
  min-width: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 18px;
  padding: 9px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .22);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  background-clip: padding-box;
}

.series-grid-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 122, 24, .48);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .34), 0 0 0 1px rgba(255, 122, 24, .10);
}

.series-grid-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 13px;
  overflow: hidden;
  background: #111318;
}

.series-grid-poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}

.series-grid-card:hover .series-grid-poster img {
  transform: scale(1.055);
  filter: saturate(1.06) brightness(1.04);
}

.series-grid-title {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.75;
  text-align: center;
  padding: 11px 4px 5px;
  min-height: 58px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

@media(max-width:1100px) {
  .series-catalog {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
  }
}

@media(max-width:760px) {
  .series-catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .series-grid-card {
    padding: 7px;
    border-radius: 15px;
  }

  .series-grid-title {
    font-size: 12px;
    line-height: 1.7;
    min-height: 54px;
    padding-top: 9px;
  }
}

@media(max-width:480px) {
  .series-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .series-grid-card {
    padding: 6px;
    border-radius: 14px;
  }

  .series-grid-title {
    font-size: 11.5px;
    min-height: 52px;
    line-height: 1.65;
    padding-inline: 3px;
  }
}

/* FINAL POLISH — series.html cards, compact watch episode buttons, orange footer */
.series-catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.series-catalog-card {
  display: block;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .24);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.series-catalog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 122, 24, .48);
  box-shadow: 0 20px 42px rgba(0, 0, 0, .34), 0 0 0 1px rgba(255, 122, 24, .08);
}

.series-catalog-poster {
  position: relative;
  aspect-ratio: 2/3;
  width: 100%;
  overflow: hidden;
  border-radius: 13px;
  background: #111318;
}

.series-catalog-poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}

.series-catalog-card:hover .series-catalog-poster img {
  transform: scale(1.045);
  filter: brightness(1.05) saturate(1.05);
}

.series-card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.88);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 122, 24, .96);
  color: #17100a;
  font-size: 16px;
  opacity: 0;
  transition: .2s ease;
  box-shadow: 0 10px 30px rgba(255, 122, 24, .25);
}

.series-catalog-card:hover .series-card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.series-catalog-card h2 {
  margin: 11px 4px 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.75;
  text-align: center;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  min-height: 3.5em;
}

/* Smaller, cleaner episode buttons on watch page */
.watch-episode-grid,
.watch-episode-grid.episode-buttons-view {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.watch-episode-grid .watch-episode-mini,
.watch-episode-grid.episode-buttons-view .watch-episode-mini {
  min-height: 72px;
  height: 72px;
  padding: 7px 5px;
  border-radius: 10px;
}

.watch-episode-grid .watch-episode-mini span {
  font-size: 22px;
}

.watch-episode-grid .watch-episode-mini b::after,
.watch-episode-grid.episode-buttons-view .watch-episode-mini b::after {
  font-size: 12px;
}

/* Orange pill buttons in the footer */
.footer-grid>div:not(:first-child) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.footer-grid>div:not(:first-child) h4 {
  margin-bottom: 9px;
  color: #fff;
}

.footer-grid>div:not(:first-child)>a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 4px 0;
  padding: 6px 11px !important;
  border: 1px solid rgba(255, 122, 24, .35);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(255, 122, 24, .20), rgba(255, 122, 24, .08));
  color: #ffb06d;
  font-size: 10px;
  font-weight: 700;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.footer-grid>div:not(:first-child)>a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 24, .75);
  background: linear-gradient(135deg, rgba(255, 122, 24, .36), rgba(255, 122, 24, .14));
  color: #fff;
}

.footer-social a {
  border-color: rgba(255, 122, 24, .35) !important;
  background: linear-gradient(135deg, rgba(255, 122, 24, .20), rgba(255, 122, 24, .08)) !important;
  color: #ffb06d !important;
}

.footer-social a:hover {
  color: #fff !important;
  border-color: rgba(255, 122, 24, .75) !important;
}

@media(max-width:1100px) {
  .series-catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .watch-episode-grid,
  .watch-episode-grid.episode-buttons-view {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media(max-width:760px) {
  .series-catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .series-catalog-card {
    padding: 7px;
    border-radius: 15px;
  }

  .series-catalog-card h2 {
    font-size: 12px;
    line-height: 1.7;
  }

  .watch-episode-grid,
  .watch-episode-grid.episode-buttons-view {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .watch-episode-grid .watch-episode-mini,
  .watch-episode-grid.episode-buttons-view .watch-episode-mini {
    height: 64px;
    min-height: 64px;
    padding: 6px 4px;
  }

  .watch-episode-grid .watch-episode-mini span {
    font-size: 20px;
  }
}

@media(max-width:480px) {
  .series-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .series-catalog-card {
    padding: 6px;
    border-radius: 14px;
  }

  .series-catalog-card h2 {
    font-size: 11.5px;
    line-height: 1.7;
    min-height: 3.4em;
  }

  .watch-episode-grid,
  .watch-episode-grid.episode-buttons-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .watch-episode-grid .watch-episode-mini,
  .watch-episode-grid.episode-buttons-view .watch-episode-mini {
    height: 62px;
    min-height: 62px;
  }
}

/* SERIES PAGE — episode cards with poster + full title */
.series-page-episodes .series-episode-grid,
.season-panel .series-episode-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.series-episode-card {
  display: block;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 16px;
  padding: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.series-episode-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 122, 24, .5);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .3), 0 0 0 1px rgba(255, 122, 24, .08);
}

.series-episode-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 11px;
  overflow: hidden;
  background: #111318;
}

.series-episode-poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}

.series-episode-card:hover .series-episode-poster img {
  transform: scale(1.045);
  filter: brightness(1.05) saturate(1.04);
}

.series-episode-badge {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(15, 16, 20, .82);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.series-episode-play {
  position: absolute;
  inset: auto 50% 50%;
  transform: translate(50%, 50%) scale(.86);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 122, 24, .96);
  color: #17100a;
  font-size: 15px;
  opacity: 0;
  transition: .2s ease;
  box-shadow: 0 10px 28px rgba(255, 122, 24, .25);
}

.series-episode-card:hover .series-episode-play {
  opacity: 1;
  transform: translate(50%, 50%) scale(1);
}

.series-episode-card h3 {
  margin: 10px 3px 2px;
  font-size: 13px;
  line-height: 1.75;
  font-weight: 800;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  min-height: 3.5em;
}

.series-episode-card p {
  margin: 0 3px 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

@media(max-width:1100px) {

  .series-page-episodes .series-episode-grid,
  .season-panel .series-episode-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
  }
}

@media(max-width:760px) {

  .series-page-episodes .series-episode-grid,
  .season-panel .series-episode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
  }

  .series-episode-card {
    padding: 6px;
    border-radius: 13px;
  }

  .series-episode-card h3 {
    font-size: 11.5px;
    line-height: 1.7;
    margin-top: 8px;
  }

  .series-episode-badge {
    font-size: 10px;
    padding: 4px 6px;
    top: 7px;
    right: 7px;
  }

  .series-episode-play {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }
}

@media(max-width:480px) {

  .series-page-episodes .series-episode-grid,
  .season-panel .series-episode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .series-episode-card h3 {
    font-size: 11px;
    line-height: 1.65;
    min-height: 3.3em;
  }
}

/* V13 — Watch episodes layout: 8 desktop/iPad, 5 phones; seasons contained and elegant */
.watch-series-info {
  display: block;
}

.watch-episode-box {
  margin-top: 24px;
  width: 100%;
  box-sizing: border-box;
}

.watch-season-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  padding: 5px 2px 14px;
}

.watch-season-tab {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-align: center;
  padding: 12px 10px;
  border-radius: 14px;
}

.watch-season-tab b {
  font-size: 12px;
}

.watch-season-tab small {
  font-size: 10px;
}

.watch-episode-grid,
.watch-episode-grid.episode-buttons-view {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding: 4px;
}

.watch-episode-grid .watch-episode-mini,
.watch-episode-grid.episode-buttons-view .watch-episode-mini {
  min-width: 0;
  width: 100%;
  height: 72px;
  min-height: 72px;
  padding: 7px 4px;
  box-sizing: border-box;
  border-radius: 11px;
}

.watch-episode-grid .watch-episode-mini span {
  font-size: 22px;
}

.watch-episode-grid .watch-episode-mini b::after,
.watch-episode-grid.episode-buttons-view .watch-episode-mini b::after {
  font-size: 12px;
}

@media (max-width:1100px) {
  .watch-season-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .watch-episode-grid,
  .watch-episode-grid.episode-buttons-view {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
  }

  .watch-episode-grid .watch-episode-mini,
  .watch-episode-grid.episode-buttons-view .watch-episode-mini {
    height: 68px;
    min-height: 68px;
  }
}

@media (max-width:700px) {
  .watch-season-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .watch-episode-grid,
  .watch-episode-grid.episode-buttons-view {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
  }

  .watch-episode-grid .watch-episode-mini,
  .watch-episode-grid.episode-buttons-view .watch-episode-mini {
    height: 66px;
    min-height: 66px;
    padding: 6px 3px;
  }

  .watch-episode-grid .watch-episode-mini span {
    font-size: 20px;
  }
}

@media (max-width:430px) {
  .watch-season-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .watch-season-tab {
    padding: 10px 6px;
    border-radius: 12px;
  }

  .watch-season-tab b {
    font-size: 11px;
  }

  .watch-season-tab small {
    font-size: 9px;
  }

  .watch-episode-grid,
  .watch-episode-grid.episode-buttons-view {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .watch-episode-grid .watch-episode-mini,
  .watch-episode-grid.episode-buttons-view .watch-episode-mini {
    height: 62px;
    min-height: 62px;
    border-radius: 9px;
  }

  .watch-episode-grid .watch-episode-mini span {
    font-size: 18px;
  }

  .watch-episode-grid .watch-episode-mini b::after,
  .watch-episode-grid.episode-buttons-view .watch-episode-mini b::after {
    font-size: 10px;
  }
}


/* V14 — Light theme, footer grid and clean watch layout */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body.light {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface2: #f0f2f5;
  --text: #17191f;
  --muted: #606775;
  --line: rgba(17, 24, 39, .12);
  --shadow: 0 18px 45px rgba(31, 41, 55, .10);
  background: radial-gradient(circle at 80% -10%, rgba(255, 122, 24, .10), transparent 32%), var(--bg);
  color: var(--text);
}

body.light .header {
  background: rgba(255, 255, 255, .86);
  border-bottom-color: rgba(17, 24, 39, .10)
}

body.light .desktop-nav a {
  color: #555b68
}

body.light .desktop-nav a:hover,
body.light .desktop-nav .active {
  color: #17191f;
  background: rgba(255, 122, 24, .10)
}

body.light .header-actions button,
body.light .header-fav {
  background: #fff;
  color: #2c313b;
  border-color: rgba(17, 24, 39, .12)
}

body.light .hero p,
body.light .lead,
body.light .article-text {
  color: #505866
}

body.light .hero-meta span,
body.light .chips span {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(17, 24, 39, .11);
  color: #414754
}

body.light .card-img,
body.light .series-poster,
body.light .category-grid a {
  box-shadow: 0 10px 28px rgba(31, 41, 55, .08)
}

body.light .category-grid a {
  background: #fff;
  border-color: rgba(17, 24, 39, .10)
}

body.light .footer {
  background: #fff;
  border-top-color: rgba(17, 24, 39, .10)
}

body.light .footer p {
  color: #68707d
}

body.light .footer-brand .brand small {
  color: #69717e
}

body.light .watch-episode-grid .watch-episode-mini {
  background: linear-gradient(145deg, #fff, #f2f4f7);
  border-color: rgba(17, 24, 39, .11);
  box-shadow: 0 7px 18px rgba(31, 41, 55, .06)
}

body.light .watch-episode-grid .watch-episode-mini span {
  color: #20242d
}

body.light .watch-episode-grid .watch-episode-mini b::after {
  color: #606775
}

body.light .watch-episode-grid .watch-episode-mini:hover {
  background: linear-gradient(145deg, #fff7f0, #fff);
  border-color: rgba(255, 122, 24, .48)
}

body.light .watch-episode-grid .watch-episode-mini.current {
  background: linear-gradient(145deg, #fff1e5, #fff);
  border-color: rgba(255, 122, 24, .65);
  box-shadow: 0 0 0 1px rgba(255, 122, 24, .18), 0 8px 20px rgba(255, 122, 24, .08)
}

body.light .watch-season-tab {
  background: #fff;
  color: #303541;
  border-color: rgba(17, 24, 39, .11);
  box-shadow: 0 7px 18px rgba(31, 41, 55, .05)
}

body.light .watch-season-tab small {
  color: #69717e
}

body.light .watch-season-tab.active {
  color: #17191f;
  background: linear-gradient(135deg, #fff1e5, #fff);
  border-color: rgba(255, 122, 24, .55)
}

body.light .watch-series-copy,
body.light .watch-episode-box {
  background: #fff;
  border-color: rgba(17, 24, 39, .10)
}

body.light .watch-nav .btn.ghost {
  background: #fff;
  color: #303541;
  border-color: rgba(17, 24, 39, .12)
}

body.light .mobile-menu {
  background: rgba(250, 250, 252, .98);
  color: #17191f
}

body.light .menu-tile {
  background: #fff;
  border-color: rgba(17, 24, 39, .10);
  color: #17191f
}

body.light .menu-tile small {
  color: #69717e
}

body.light .search-modal {
  background: rgba(239, 241, 245, .82)
}

body.light .search-panel {
  background: rgba(255, 255, 255, .97);
  border-color: rgba(17, 24, 39, .10);
  box-shadow: 0 30px 80px rgba(31, 41, 55, .18)
}

body.light .search-panel p {
  color: #69717e
}

body.light .search-box {
  background: #f5f6f8;
  border-color: rgba(17, 24, 39, .10)
}

body.light .search-box input {
  color: #17191f
}

body.light .search-suggestions button {
  background: #fff;
  color: #424956;
  border-color: rgba(17, 24, 39, .10)
}

/* Footer: five buttons desktop, three tablet, two phone */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(0, 4fr);
  gap: 34px;
  align-items: start
}

.footer-about {
  min-width: 0
}

.footer-links-wrap h4 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 14px
}

.footer-buttons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px
}

.footer-buttons a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 0 !important;
  padding: 7px 8px !important;
  border: 1px solid rgba(255, 122, 24, .38);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 122, 24, .22), rgba(255, 122, 24, .07));
  color: #ff9b55 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease
}

.footer-buttons a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 24, .72);
  background: linear-gradient(135deg, rgba(255, 122, 24, .92), rgba(255, 122, 24, .68));
  color: #17100a !important;
  box-shadow: 0 8px 20px rgba(255, 122, 24, .16)
}

body.light .footer-buttons a {
  background: linear-gradient(135deg, #fff0e4, #fff7f1);
  color: #d85e0b !important;
  border-color: rgba(255, 122, 24, .35)
}

body.light .footer-buttons a:hover {
  background: linear-gradient(135deg, #ff8b36, #ff7210);
  color: #fff !important
}

/* Keep the watch content clean: no horizontal slider/overflow under the player. */
.watch-page,
.watch-page * {
  max-width: 100%;
}

.player {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  line-height: 0
}

.video-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0
}

.watch-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  overflow: hidden
}

.watch-nav .btn {
  max-width: 100%
}

.watch-series-info,
.watch-episode-box,
.watch-episode-grid,
.watch-season-tabs {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box
}

.watch-episode-grid {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin
}

@media (max-width:1100px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px
  }

  .footer-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width:700px) {
  .footer-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px
  }

  .footer-buttons a {
    min-height: 36px;
    font-size: 10px !important
  }

  .watch-nav {
    gap: 7px
  }

  .watch-nav .btn {
    flex: 1 1 30%;
    min-width: 0;
    padding-inline: 8px;
    font-size: 10px
  }
}

/* Category navigation and pagination */
.category-page-title {
  margin-bottom: 22px
}

.category-episodes-grid {
  align-items: start
}

.category-episode-card {
  min-width: 0
}

.category-load {
  display: flex;
  justify-content: center
}

.category-load .btn {
  min-width: 180px
}

.filter-row .filter {
  display: inline-flex;
  align-items: center;
  justify-content: center
}

.filter-row .filter.active {
  background: rgba(255, 122, 24, .14);
  border-color: rgba(255, 122, 24, .5);
  color: #fff
}

.light .filter-row .filter.active {
  color: #16110c
}

.light .filter-row .filter {
  color: #343944;
  background: #fff;
  border-color: #dfe3e8
}

.light .filter-row .filter:hover {
  color: #16110c;
  background: #fff7ef;
  border-color: #ffb77e
}

/* Homepage category series rails */
.home-series-section .rail {
  padding: 2px 2px 18px;
  gap: 18px;
}

.home-series-section .series-card {
  min-width: 170px;
  width: 170px;
}

.home-series-section .series-poster {
  aspect-ratio: 2/3;
}

.home-series-section .series-card h3 {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .home-series-section .series-card {
    min-width: 145px;
    width: 145px
  }

  .home-series-section .rail {
    gap: 12px
  }
}

/* Data-driven media */
.series-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(8, 9, 12, .25), rgba(8, 9, 12, .92) 72%), linear-gradient(0deg, var(--bg), transparent 70%)
}

.series-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .55;
  filter: saturate(.9);
  display: block
}

.series-backdrop:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 9, 12, .15), rgba(8, 9, 12, .92) 78%), linear-gradient(0deg, var(--bg), transparent 65%)
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px
}

.search-result-card[hidden] {
  display: none
}

.results-search {
  display: flex;
  gap: 8px;
  margin: 0 0 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 15px
}

.results-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  padding: 8px 12px
}

.results-search button {
  border: 0;
  background: var(--accent);
  border-radius: 10px;
  padding: 8px 18px;
  font-weight: 800;
  cursor: pointer
}

.not-found {
  min-height: 65vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 70px 20px
}

.not-found-box {
  max-width: 650px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 24px;
  padding: 55px 28px;
  box-shadow: var(--shadow)
}

.not-found-code {
  font-size: 88px;
  line-height: 1;
  color: var(--accent);
  font-weight: 900;
  margin: 0
}

.not-found h1 {
  font-size: 30px;
  margin: 10px 0
}

.not-found p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px
}

@media(max-width:1050px) {
  .search-results-grid {
    grid-template-columns: repeat(4, 1fr)
  }
}

@media(max-width:760px) {
  .search-results-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .results-search button {
    padding-inline: 13px
  }

  .not-found-code {
    font-size: 68px
  }
}