/*
Theme Name: CinemaPlus
Theme URI: https://cinemaplus.com
Author: CinemaPlus
Description: قالب أفلام ومسلسلات احترافي بتصميم Netflix
Version: 1.0
License: GPL
Text Domain: cinemaplus
*/

/* ═══════════════════════════════════════
   VARIABLES
   ═══════════════════════════════════════ */
:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --bg: #0a0a0a;
  --bg-light: #141414;
  --card: #1a1a1a;
  --border: rgba(255,255,255,0.08);
  --text: #ffffff;
  --muted: #9ca3af;
  --radius: 12px;
}

/* ═══════════════════════════════════════
   RESET
   ═══════════════════════════════════════ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Tajawal','Segoe UI',system-ui,sans-serif;
  background: #0a0a0a;
  background-color: #0a0a0a;
  color: #ffffff;
  direction: rtl;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul,ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* Force dark background override for WP globals */
.wp-site-blocks { background: transparent !important; }
:where(body) { background: #0a0a0a !important; }

/* Container */
.wrap-container, .container { max-width:1280px; margin:0 auto; padding:0 16px; width:100%; }
@media(min-width:640px) { .wrap-container, .container { padding:0 24px; } }

/* ═══════════════════════════════════════
   HEADER - Glassmorphism navbar (ALWAYS FIXED)
   ═══════════════════════════════════════ */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99990 !important;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  width: 100% !important;
}
.site-header.scrolled {
  background: rgba(10,10,10,0.98) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}


.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.site-logo svg { width:32px; height:32px; color: var(--red); }
.logo-accent { color: var(--red); }

/* Nav Links */
.main-nav { display:flex; align-items:center; gap:4px; }
.main-nav > a,
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted) !important;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all .2s;
  cursor: pointer;
}
.main-nav > a:hover,
.nav-dropdown-toggle:hover { color:#fff !important; background:rgba(255,255,255,0.06); }
.main-nav > a.active,
.nav-dropdown-toggle.active { color: var(--red) !important; }
.main-nav svg { width:16px; height:16px; }

/* ===== DROPDOWN MENU ===== */
.nav-dropdown { position:relative; }
.dd-arrow { transition:transform .2s; margin-right:-2px; opacity:0.5; }
.nav-dropdown:hover .dd-arrow { transform:rotate(180deg); opacity:1; }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 580px;
  background: rgba(18,18,18,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  padding: 0;
  margin-top: 8px;
  z-index: 99999;
  animation: ddIn .25s ease;
}
@keyframes ddIn { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
.nav-dropdown:hover .nav-dropdown-menu { display:block; }

.dd-menu-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 20px;
}
.dd-section {
  padding: 0 12px;
  border-left: 1px solid rgba(255,255,255,0.06);
}
.dd-section:last-child { border-left:none; }
.dd-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px !important;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dd-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dd-links a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.7) !important;
  transition: all .15s;
}
.dd-links a:hover {
  background: rgba(220,38,38,0.12);
  color: #dc2626 !important;
  padding-right: 14px;
}
.dd-footer {
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.dd-footer a {
  font-size: 13px;
  font-weight: 600;
  color: var(--red) !important;
  transition: opacity .2s;
}
.dd-footer a:hover { opacity: 0.8; }

/* Mobile dropdown */
@media(max-width:767px) {
  .nav-dropdown-menu {
    position: static;
    width: 100%;
    border-radius: 12px;
    margin-top: 4px;
    margin-bottom: 8px;
    box-shadow: none;
    border: 1px solid rgba(255,255,255,0.08);
  }
  .dd-menu-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .dd-section { border-left: none; padding: 0; }
  .nav-dropdown:hover .nav-dropdown-menu { display:none; }
  .nav-dropdown.open .nav-dropdown-menu { display:block; }
}

/* Search Form */
.nav-search { position:relative; }
.nav-search input {
  width: 220px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px 8px 40px;
  font-size: 13px;
  color: #fff;
  font-family: inherit;
  transition: all .2s;
}
.nav-search input::placeholder { color:#6b7280; }
.nav-search input:focus { outline:none; border-color:var(--red); background:rgba(255,255,255,0.12); }
.nav-search button {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
}

/* New badge in nav */
.nav-new-badge {
  position: relative;
}
.new-dot {
  width: 7px;
  height: 7px;
  background: #dc2626;
  border-radius: 50%;
  display: inline-block;
  margin-right: -4px;
  animation: dotPulse 2s infinite;
}
@keyframes dotPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.5; transform:scale(1.4); }
}

/* Mobile Search Button */
.mobile-search-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}

/* Mobile Search Bar */
.mobile-search-bar {
  display: none;
  padding: 12px 16px;
  background: rgba(10,10,10,0.98);
  border-top: 1px solid var(--border);
}
.mobile-search-bar.open { display: flex; }

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}

/* ═══════════════════════════════════════
   HERO SLIDER - Full width cinematic
   ═══════════════════════════════════════ */
.hero {
  position: relative;
  height: 75vh;
  min-height: 500px;
  max-height: 750px;
  margin-top: 64px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity:1; z-index:1; }
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  animation: heroZoom 25s ease alternate infinite;
}
@keyframes heroZoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1.03) translateY(-1%); }
}
.hero-slide { transition: opacity 1.2s ease; }
.hero-bg::after {
  content:'';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(10,10,10,0.7) 40%, rgba(10,10,10,0.2) 100%),
    linear-gradient(to left, transparent 30%, rgba(10,10,10,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
}
.hero-info { max-width:620px; }
.hero-badges { display:flex; align-items:center; gap:10px; margin-bottom:16px; flex-wrap:wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-red { background:var(--red); color:#fff; }
.badge-gold { color:#fbbf24; font-size:14px; }
.badge-gold svg { fill:currentColor; }
.hero-year { color:rgba(255,255,255,0.7); font-size:14px; font-weight:500; }
.hero-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-title a { color:#fff; }
.hero-title a:hover { color:var(--red); }
.hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-genres { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:24px; }
.hero-genres span {
  font-size: 13px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  padding: 6px 16px;
  border-radius: 999px;
  color: rgba(255,255,255,0.9);
}
.hero-btns { display:flex; gap:12px; flex-wrap:wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all .25s;
  font-family: inherit;
}
.btn-white { background:#fff; color:#000; }
.btn-white:hover { background:#e5e5e5; transform:scale(1.03); }
.btn-glass {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
}
.btn-glass:hover { background:rgba(255,255,255,0.2); }
.btn-red { background:var(--red); color:#fff; }
.btn-red:hover { background:var(--red-dark); transform:scale(1.03); }

/* Hero dots */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all .3s;
}
.hero-dot.active { background:var(--red); width:28px; box-shadow: 0 0 10px rgba(220,38,38,0.5); }
.hero-dot:hover { background:rgba(255,255,255,0.7); }

/* ═══════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════ */
.cp-section { padding:40px 0 8px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.section-title {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content:'';
  width: 4px;
  height: 22px;
  background: var(--red);
  border-radius: 2px;
}
.view-all {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.view-all:hover { color:var(--red); }

/* ═══════════════════════════════════════
   MOVIES GRID - Equal height cards (FINAL)
   ═══════════════════════════════════════ */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
@media(min-width:480px) {
  .movies-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media(min-width:768px) {
  .movies-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}
@media(min-width:1024px) {
  .movies-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
}

/* ═══════════════════════════════════════
   MOVIE CARD - Fixed equal size (FINAL)
   ═══════════════════════════════════════ */
.movie-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.card-poster {
  position: relative;
  width: 100%;
  padding-top: 150%;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  flex-shrink: 0;
}
.card-poster img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.movie-card:hover .card-poster img {
  transform: scale(1.06);
}
.card-poster .no-poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a, #111);
  color: #555;
  font-size: 24px;
}
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .3s;
  z-index: 2;
}
.movie-card:hover .card-overlay { opacity: 1; }
.card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 40px;
  height: 40px;
  background: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all .3s;
  z-index: 4;
}
.card-play svg { fill: #fff; width: 16px; height: 16px; margin-right: -2px; }
.movie-card:hover .card-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0,0,0,0.85);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 2px;
  z-index: 4;
  line-height: 1;
}
.card-badge svg { width: 10px; height: 10px; fill: currentColor; }
.card-quality {
  position: absolute;
  top: 26px;
  left: 6px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  font-size: 7px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  z-index: 4;
  text-transform: uppercase;
  line-height: 1;
}
.card-status {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 8px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  z-index: 4;
  line-height: 1;
}
.status-ongoing { background: #16a34a; color: #fff; }
.status-completed { background: #2563eb; color: #fff; }
.status-upcoming { background: #ca8a04; color: #fff; }
.card-type {
  position: absolute;
  top: 46px;
  left: 6px;
  font-size: 7px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  z-index: 4;
  text-transform: uppercase;
}
.card-type-movie { background: rgba(220,38,38,0.9); color: #fff; }
.card-type-series { background: rgba(37,99,235,0.9); color: #fff; }
.card-new {
  position: absolute;
  top: 6px;
  right: 6px;
  background: linear-gradient(135deg, #dc2626, #f97316);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 4;
}
.card-new.has-status { top: 26px; }
.card-ep-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  left: 6px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 6px;
  z-index: 4;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  line-height: 1.2;
}
.card-info {
  padding: 8px 2px 2px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}
.card-title {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  color: #fff;
}
.movie-card:hover .card-title { color: #dc2626; }
.card-year {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════
   SINGLE MOVIE/SERIES DETAIL
   ═══════════════════════════════════════ */

/* ═══════════════════════════════════════
   SINGLE MOVIE/SERIES DETAIL
   ═══════════════════════════════════════ */
.detail-backdrop {
  position: relative;
  height: 55vh;
  min-height: 350px;
  max-height: 550px;
  margin-top: 64px;
}
.detail-backdrop img {
  width:100%; height:100%;
  object-fit: cover;
}
.detail-backdrop::after {
  content:'';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(10,10,10,0.5) 50%, rgba(10,10,10,0.2) 100%),
    linear-gradient(to left, transparent 40%, rgba(10,10,10,0.8) 100%);
}
.detail-body {
  max-width: 1280px;
  margin: -180px auto 0;
  padding: 0 24px 60px;
  position: relative;
  z-index: 10;
}
.detail-layout { display:flex; flex-direction:column; gap:32px; }
@media(min-width:768px) { .detail-layout { flex-direction:row; gap:40px; } }

/* Poster */
.detail-poster { flex-shrink:0; margin:0 auto; }
@media(min-width:768px) { .detail-poster { margin:0; } }
.detail-poster img {
  width: 240px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  border: 1px solid var(--border);
}
@media(min-width:768px) { .detail-poster img { width:280px; } }

/* Content */
.detail-content { flex:1; padding-top:8px; }
.detail-badges { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.detail-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}
.detail-eng { color:var(--muted); font-size:16px; margin-bottom:20px; }
.detail-meta { display:flex; flex-wrap:wrap; gap:20px; margin-bottom:20px; align-items:center; }
.meta-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fbbf24;
  font-weight: 800;
  font-size: 20px;
}
.meta-rating svg { fill:currentColor; width:22px; height:22px; }
.meta-rating small { color:var(--muted); font-size:13px; font-weight:400; }
.meta-imdb {
  background: rgba(251,191,36,0.15);
  color: #fbbf24;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
}
.meta-item { color:#d1d5db; font-size:14px; display:flex; align-items:center; gap:6px; }
.meta-item svg { width:16px; height:16px; opacity:0.7; }
.detail-genres { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.detail-genres span {
  background: rgba(255,255,255,0.08);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  transition: background .2s;
  cursor: default;
}
.detail-genres span:hover { background:rgba(255,255,255,0.14); }
.detail-desc {
  color: rgba(255,255,255,0.75);
  line-height: 1.9;
  margin-bottom: 28px;
  max-width: 680px;
  font-size: 15px;
}
.detail-actions { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:32px; }
.action-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all .2s;
}
.action-circle:hover { background:rgba(255,255,255,0.15); }
.action-circle svg { width:20px; height:20px; }

/* Crew */
.detail-crew {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media(min-width:640px) { .detail-crew { grid-template-columns:1fr 1fr; } }
.crew-item { display:flex; align-items:flex-start; gap:12px; }
.crew-item svg { width:20px; height:20px; color:var(--red); margin-top:2px; flex-shrink:0; }
.crew-label { font-size:13px; color:var(--muted); display:block; }
.crew-value { font-weight:500; font-size:14px; }

/* Info Sidebar */
.detail-sidebar {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 40px;
}
.detail-sidebar h3 { font-size:16px; font-weight:700; margin-bottom:16px; }
.sidebar-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.sidebar-row:last-child { border-bottom:none; }
.sidebar-label { color:var(--muted); }
.sidebar-value { font-weight:500; }

/* ═══════════════════════════════════════
   SEASONS & EPISODES
   ═══════════════════════════════════════ */
.seasons-area { margin-top:48px; }
.seasons-head { font-size:22px; font-weight:700; margin-bottom:24px; }
.season-block {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}
.season-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background .2s;
}
.season-header:hover { background:rgba(255,255,255,0.04); }
.season-thumb {
  width:56px; height:80px;
  border-radius:10px;
  overflow:hidden;
  background:var(--card);
  flex-shrink:0;
}
.season-thumb img { width:100%; height:100%; object-fit:cover; }
.season-meta h3 { font-size:16px; font-weight:600; }
.season-meta p { font-size:13px; color:var(--muted); margin-top:2px; }
.episode-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  transition: background .2s;
}
.episode-item:hover { background:rgba(255,255,255,0.03); }
.ep-play {
  width:40px; height:40px;
  border-radius:50%;
  background:rgba(220,38,38,0.15);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.ep-play svg { width:16px; height:16px; color:var(--red); fill:var(--red); }
.ep-info { flex:1; min-width:0; }
.ep-info h4 { font-size:14px; font-weight:500; }
.ep-info p { font-size:12px; color:var(--muted); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ep-dur { font-size:13px; color:var(--muted); flex-shrink:0; }

/* ═══════════════════════════════════════
   ARCHIVE HEADER
   ═══════════════════════════════════════ */
.archive-header {
  padding-top: 96px;
  padding-bottom: 32px;
}
.archive-title { font-size:32px; font-weight:800; margin-bottom:4px; }
.archive-desc { color:var(--muted); font-size:15px; }

/* ═══════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════ */
.pagination {
  display:flex; justify-content:center; gap:8px; padding:48px 0 16px;
}
.pagination a,.pagination span {
  min-width:40px; height:40px;
  display:inline-flex; align-items:center; justify-content:center;
  padding:0 12px;
  border-radius:10px;
  font-size:14px;
  font-weight:500;
  background:rgba(255,255,255,0.06);
  color:var(--muted);
  transition: all .2s;
}
.pagination a:hover { background:rgba(255,255,255,0.12); color:#fff; }
.pagination .current { background:var(--red); color:#fff; }

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.site-footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media(min-width:640px) { .footer-grid { grid-template-columns:repeat(2,1fr); } }
@media(min-width:1024px) { .footer-grid { grid-template-columns:1.8fr 1fr 1fr 1fr; gap:40px; } }
.footer-brand .site-logo { margin-bottom:16px; }
.footer-brand p { color:var(--muted); font-size:14px; line-height:1.8; }
.footer-social { display:flex; gap:12px; margin-top:20px; }
.footer-social a {
  width:36px; height:36px;
  border-radius:10px;
  background:rgba(255,255,255,0.06);
  display:flex; align-items:center; justify-content:center;
  color:var(--muted);
  transition: all .2s;
}
.footer-social a:hover { background:var(--red); color:#fff; }
.footer-social svg { width:18px; height:18px; }
.footer-col h3 { font-size:15px; font-weight:600; margin-bottom:16px; color:#fff; }
.footer-links li { margin-bottom:10px; }
.footer-links a { color:var(--muted); font-size:14px; }
.footer-links a:hover { color:#fff; }
.footer-bottom {
  border-top:1px solid var(--border);
  margin-top:40px;
  padding:20px 0;
  text-align:center;
}
.footer-bottom p { color:#4b5563; font-size:13px; }

/* ═══════════════════════════════════════
   404
   ═══════════════════════════════════════ */
.error-404 { text-align:center; padding:120px 16px; }
.error-404 h1 { font-size:96px; font-weight:900; color:var(--red); line-height:1; }
.error-404 h2 { font-size:24px; margin:16px 0; }
.error-404 p { color:var(--muted); margin-bottom:32px; }

/* ═══════════════════════════════════════
   NO POSTER PLACEHOLDER
   ═══════════════════════════════════════ */
.no-poster {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, #1a1a1a, #111);
  color: #333;
  font-size: 14px;
}

/* ═══════════════════════════════════════
   RESPONSIVE - Mobile Premium Drawer (FIXED)
   ═══════════════════════════════════════ */
@media(max-width:767px) {
  .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    height: 56px !important;
  }
  .header-inner { height:56px !important; padding:0 12px !important; }
  .main-nav {
    display: none !important;
    position: fixed !important;
    top: 56px !important;
    right: 0 !important;
    left: auto !important;
    width: 85% !important;
    max-width: 320px !important;
    height: calc(100vh - 56px) !important;
    background: #0f0f0f !important;
    border-left: 1px solid rgba(255,255,255,0.08) !important;
    border-top: none !important;
    flex-direction: column !important;
    padding: 8px 10px 24px !important;
    gap: 0 !important;
    overflow-y: auto !important;
    box-shadow: -10px 0 40px rgba(0,0,0,0.8) !important;
    z-index: 9998 !important;
  }
  .main-nav.open {
    display: flex !important;
    animation: slideInRight .3s ease !important;
  }
  @keyframes slideInRight {
    from { transform: translateX(100%); opacity:0; }
    to { transform: translateX(0); opacity:1; }
  }
  @keyframes slideDown { from{opacity:0} to{opacity:1} }
  .main-nav > a,
  .main-nav .nav-dropdown-toggle {
    padding: 13px 10px !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 8px !important;
    width: 100% !important;
    justify-content: space-between !important;
    font-size: 14px !important;
  }
  .main-nav > a:last-child { border-bottom: none !important; }
  .main-nav .nav-dropdown { width: 100% !important; }
  .main-nav .nav-dropdown-menu {
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    background: rgba(255,255,255,0.04) !important;
    margin: 6px 0 !important;
    border-radius: 10px !important;
    padding: 6px !important;
  }
  .main-nav .nav-dropdown-menu .dd-menu-inner {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 6px !important;
  }
  .main-nav .dd-section { border-left: none !important; padding:0 6px !important; }
  .main-nav .dd-links a { padding: 8px 10px !important; font-size:13px !important; }
  .main-nav a[style*="background:linear-gradient"] {
    width: 100% !important;
    justify-content: center !important;
    margin-top: 10px !important;
    padding: 12px !important;
  }
  .menu-toggle { display:flex !important; }
  .mobile-search-btn { display:flex !important; }
  .nav-search { display:none !important; }
  .hero { height:55vh !important; min-height:380px !important; margin-top:56px !important; }
  .hero-content { padding-bottom:32px !important; }
  .hero-btns { flex-direction:column !important; gap:8px !important; }
  .hero-title { font-size:22px !important; }
  body.admin-bar .site-header { top:46px !important; }
}

/* ═══════════════════════════════════════
   FILTER TABS / CATEGORIES
   ═══════════════════════════════════════ */
.filter-tabs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.filter-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.filter-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
  padding-top: 8px;
  min-width: 50px;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all .2s;
}
.filter-chip:hover {
  background: rgba(220,38,38,0.15);
  color: #dc2626;
  border-color: rgba(220,38,38,0.3);
}
.chip-country {
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.15);
}
.chip-country:hover {
  background: rgba(37,99,235,0.2);
  color: #60a5fa;
  border-color: rgba(37,99,235,0.4);
}
.chip-network {
  background: rgba(139,92,246,0.08);
  border-color: rgba(139,92,246,0.15);
}
.chip-network:hover {
  background: rgba(139,92,246,0.2);
  color: #a78bfa;
  border-color: rgba(139,92,246,0.4);
}
@media(max-width:767px) {
  .filter-group { flex-direction: column; gap: 8px; }
  .filter-label { padding-top: 0; }
}

/* ═══════════════════════════════════════
   VIDEO PLAYER - Fullscreen Overlay
   ═══════════════════════════════════════ */
.cp-player {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  animation: fadeIn .3s ease;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.cp-player-wrap {
  width: 95%;
  max-width: 1100px;
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,0.8);
}
.cp-player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cp-player-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-player-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}
.cp-player-close:hover { background: #dc2626; }
.cp-player-screen {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}
.cp-player-screen iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.cp-player-tabs {
  display: flex;
  gap: 0;
  background: #1a1a1a;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.cp-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  border-bottom: 2px solid transparent;
}
.cp-tab:hover { color: #fff; background: rgba(255,255,255,0.05); }
.cp-tab.active { color: #dc2626; border-bottom-color: #dc2626; background: rgba(220,38,38,0.08); }

/* Detail info grid (movie page) */
.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px;
}
.info-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.info-label {
  display: block;
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.info-value {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #e5e7eb;
  line-height: 1.5;
}

@media(max-width:767px) {
  .cp-player-wrap { width: 100%; border-radius: 0; height: 100%; display: flex; flex-direction: column; }
  .cp-player-screen { flex: 1; padding-top: 0; }
  .cp-player-screen iframe { position: relative; width: 100%; height: 100%; }
  .detail-info-grid { grid-template-columns: 1fr; }
  .detail-actions { flex-direction: column; }
  .detail-actions .btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════
   BACK TO TOP BUTTON
   ═══════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(220,38,38,0.4);
  transition: all .3s;
  animation: fadeIn .3s ease;
}
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(220,38,38,0.5); }
.back-to-top.show { display: flex; }
.back-to-top svg { width: 22px; height: 22px; }

/* ═══════════════════════════════════════
   SOCIAL FAB (Floating Action Button)
   ═══════════════════════════════════════ */
.cp-fab-wrap {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Toggle Button */
.cp-fab-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #991b1b);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(220,38,38,0.5);
  transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  flex-shrink: 0;
}
.cp-fab-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 30px rgba(220,38,38,0.6);
}
.cp-fab-toggle svg {
  width: 24px;
  height: 24px;
  position: absolute;
  transition: all .3s ease;
}
.cp-fab-icon-share { opacity: 1; transform: rotate(0deg) scale(1); }
.cp-fab-icon-close { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.cp-fab-wrap.open .cp-fab-icon-share { opacity: 0; transform: rotate(90deg) scale(0.5); }
.cp-fab-wrap.open .cp-fab-icon-close { opacity: 1; transform: rotate(0deg) scale(1); }

/* Pulse ring animation to attract attention */
.cp-fab-toggle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(220,38,38,0.4);
  animation: fabPulse 2.5s ease-out infinite;
}
@keyframes fabPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}
.cp-fab-wrap.open .cp-fab-toggle::before { display: none; }

/* Menu items */
.cp-fab-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cp-fab-item {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(20px) scale(0.5);
  pointer-events: none;
  transition: all .35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: 0s;
}
.cp-fab-item svg { width: 20px; height: 20px; }
.cp-fab-wrap.open .cp-fab-item {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition-delay: calc(var(--d) * 0.05s);
}
.cp-fab-item:hover {
  transform: translateY(0) scale(1.15) !important;
  background: var(--red);
  border-color: var(--red);
}
.cp-fab-whatsapp:hover { background: #25D366; border-color: #25D366; }

@media(max-width:767px) {
  .cp-fab-wrap { bottom: 20px; left: 16px; gap: 10px; }
  .cp-fab-toggle { width: 50px; height: 50px; }
  .cp-fab-toggle svg { width: 22px; height: 22px; }
  .cp-fab-item { width: 42px; height: 42px; }
  .cp-fab-item svg { width: 18px; height: 18px; }
  .back-to-top { bottom: 20px; right: 16px; }
}

/* ═══════════════════════════════════════
   LOADING SKELETON
   ═══════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #222 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ═══════════════════════════════════════
   CARD HOVER EFFECTS (Netflix style)
   ═══════════════════════════════════════ */
.movie-card {
  transition: transform .3s, z-index 0s;
}
.movie-card:hover {
  transform: scale(1.05);
  z-index: 10;
}
@media(min-width:768px) {
  .movies-grid .movie-card:hover {
    transform: scale(1.08);
  }
}

/* ═══════════════════════════════════════
   SMOOTH PAGE TRANSITIONS
   ═══════════════════════════════════════ */
.hero, .cp-section, .detail-body, .movie-hero, .movie-info-section {
  animation: fadeUp .6s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════
   CINEMA PLAYER & MOVIE HERO (shared by movies & series)
   ═══════════════════════════════════════ */
/* ===== FULLSCREEN CINEMA PLAYER ===== */
.cinema-overlay {
    display:none; position:fixed; inset:0; z-index:99999;
    background:rgba(0,0,0,0.97); align-items:center; justify-content:center;
    flex-direction:column; animation: cinemaIn .4s ease;
}
@keyframes cinemaIn { from{opacity:0;transform:scale(0.95)} to{opacity:1;transform:scale(1)} }
.cinema-overlay.open { display:flex; }
.cinema-top {
    width:100%; max-width:1200px; padding:16px 20px;
    display:flex; justify-content:space-between; align-items:center;
}
.cinema-title { color:#fff; font-size:18px; font-weight:700; display:flex; align-items:center; gap:10px; }
.cinema-title .cinema-badge { background:#dc2626; font-size:11px; padding:4px 12px; border-radius:6px; font-weight:700; }
.cinema-close {
    width:44px; height:44px; border-radius:12px; background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.1); color:#fff; font-size:20px;
    cursor:pointer; display:flex; align-items:center; justify-content:center;
    transition:all .2s;
}
.cinema-close:hover { background:#dc2626; border-color:#dc2626; transform:scale(1.1); }
.cinema-screen {
    width:95%; max-width:1200px; border-radius:16px; overflow:hidden;
    box-shadow: 0 0 100px rgba(220,38,38,0.15), 0 25px 80px rgba(0,0,0,0.8);
    border:1px solid rgba(255,255,255,0.08);
    position:relative; padding-top:min(56.25%, 70vh); background:#000;
}
.cinema-screen iframe {
    position:absolute; top:0; left:0; width:100%; height:100%; border:none;
}
.cinema-tabs {
    display:flex; gap:8px; padding:16px 0; max-width:1200px; width:95%;
}
.cinema-tab {
    padding:10px 24px; border-radius:10px; border:1px solid rgba(255,255,255,0.1);
    background:rgba(255,255,255,0.05); color:#9ca3af; font-size:14px; font-weight:600;
    cursor:pointer; transition:all .2s; font-family:inherit;
}
.cinema-tab:hover { background:rgba(255,255,255,0.1); color:#fff; }
.cinema-tab.active { background:rgba(220,38,38,0.15); color:#dc2626; border-color:rgba(220,38,38,0.3); }
.cinema-keys { color:#4b5563; font-size:12px; text-align:center; padding:8px; }
.cinema-keys kbd { background:rgba(255,255,255,0.1); padding:2px 8px; border-radius:4px; font-size:11px; }

@media(max-width:767px) {
    .cinema-screen { width:100%; border-radius:0; padding-top:56.25%; }
    .cinema-top { padding:12px 16px; }
    .cinema-title { font-size:14px; }
    .cinema-tabs { padding:12px 16px; width:100%; }
}

/* ===== MOVIE HERO (Cinematic) ===== */
.movie-hero {
    position:relative; min-height:85vh;
    display:flex; align-items:flex-end; overflow:hidden;
}
.movie-hero-bg {
    position:absolute; inset:0; background-size:cover; background-position:center top;
}
.movie-hero-bg::after {
    content:''; position:absolute; inset:0;
    background:
        linear-gradient(to top, #0a0a0a 0%, rgba(10,10,10,0.85) 30%, rgba(10,10,10,0.4) 60%, rgba(10,10,10,0.3) 100%),
        linear-gradient(to left, transparent 20%, rgba(10,10,10,0.7) 100%);
}
.movie-hero-inner {
    position:relative; z-index:2; width:100%; max-width:1280px;
    margin:0 auto; padding:0 24px 60px;
    display:flex; gap:40px; align-items:flex-end;
}
.movie-poster-wrap {
    flex-shrink:0; position:relative;
}
.movie-poster-wrap img {
    width:280px; border-radius:16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 40px rgba(220,38,38,0.1);
    border:1px solid rgba(255,255,255,0.1);
    transition: transform .4s;
}
.movie-poster-wrap:hover img { transform:translateY(-4px); }
.movie-poster-play {
    position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
    width:64px; height:64px; border-radius:50%; background:rgba(220,38,38,0.9);
    display:flex; align-items:center; justify-content:center;
    opacity:0; transition:all .3s; cursor:pointer;
    box-shadow: 0 0 30px rgba(220,38,38,0.5);
}
.movie-poster-wrap:hover .movie-poster-play { opacity:1; transform:translate(-50%,-50%) scale(1.05); }
.movie-poster-play svg { fill:#fff; width:28px; height:28px; margin-left:-3px; }

.movie-details { flex:1; padding-bottom:8px; }
.movie-tags { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; align-items:center; }
.movie-tag {
    font-size:12px; font-weight:700; padding:5px 14px; border-radius:8px;
    display:inline-flex; align-items:center; gap:4px;
}
.tag-type { background:#dc2626; color:#fff; }
.tag-year { background:rgba(255,255,255,0.1); color:#fff; }
.tag-dur { background:rgba(255,255,255,0.1); color:#d1d5db; }
.movie-name {
    font-size:clamp(32px,5vw,56px); font-weight:900; line-height:1.1;
    margin-bottom:6px; text-shadow:0 2px 30px rgba(0,0,0,0.5);
}
.movie-name-en { color:rgba(255,255,255,0.5); font-size:18px; margin-bottom:20px; font-weight:400; }

/* Rating bar */
.movie-rating-bar {
    display:flex; align-items:center; gap:16px; margin-bottom:20px;
    padding:14px 20px; background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.08); border-radius:14px;
    width:fit-content;
}
.rating-star { color:#fbbf24; display:flex; align-items:center; gap:6px; }
.rating-star svg { fill:currentColor; width:24px; height:24px; filter:drop-shadow(0 0 8px rgba(251,191,36,0.4)); }
.rating-num { font-size:28px; font-weight:900; color:#fbbf24; }
.rating-of { font-size:14px; color:#6b7280; }
.rating-divider { width:1px; height:28px; background:rgba(255,255,255,0.1); }
.rating-label { font-size:13px; color:#9ca3af; }

/* Genres */
.movie-genres { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.movie-genres span {
    font-size:13px; padding:7px 18px; border-radius:999px;
    background:rgba(255,255,255,0.08); color:rgba(255,255,255,0.85);
    border:1px solid rgba(255,255,255,0.06); transition:all .2s;
}
.movie-genres span:hover { background:rgba(255,255,255,0.15); }

/* Description */
.movie-desc {
    color:rgba(255,255,255,0.7); font-size:15px; line-height:1.9;
    margin-bottom:28px; max-width:620px;
}

/* CTA buttons */
.movie-cta { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.cta-play {
    display:inline-flex; align-items:center; gap:10px;
    padding:14px 32px; border-radius:14px; font-weight:700; font-size:16px;
    border:none; cursor:pointer; transition:all .25s; font-family:inherit;
    background:#fff; color:#000;
    box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}
.cta-play:hover { transform:translateY(-2px); box-shadow:0 8px 30px rgba(255,255,255,0.25); }
.cta-play svg { fill:currentColor; width:22px; height:22px; }
.cta-trailer {
    display:inline-flex; align-items:center; gap:10px;
    padding:14px 28px; border-radius:14px; font-weight:600; font-size:15px;
    border:1px solid rgba(255,255,255,0.2); cursor:pointer;
    transition:all .25s; font-family:inherit;
    background:rgba(255,255,255,0.08); color:#fff;
    backdrop-filter:blur(8px);
}
.cta-trailer:hover { background:rgba(255,255,255,0.15); border-color:rgba(255,255,255,0.3); }
.cta-circle {
    width:50px; height:50px; border-radius:50%;
    background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12);
    display:flex; align-items:center; justify-content:center;
    color:#fff; cursor:pointer; transition:all .2s;
}
.cta-circle:hover { background:rgba(255,255,255,0.12); transform:scale(1.08); }
.cta-circle svg { width:22px; height:22px; }

/* ===== INFO SECTION BELOW ===== */
.movie-info-section {
    max-width:1280px; margin:0 auto; padding:48px 24px 60px;
    display:grid; grid-template-columns:1fr 340px; gap:48px;
}
.info-main h2 {
    font-size:20px; font-weight:700; margin-bottom:16px;
    padding-bottom:12px; border-bottom:1px solid rgba(255,255,255,0.08);
}
.info-main .story-text { color:rgba(255,255,255,0.7); font-size:15px; line-height:2; }
.info-sidebar {}
.sidebar-card {
    background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08);
    border-radius:16px; padding:24px; margin-bottom:16px;
}
.sidebar-card h3 { font-size:15px; font-weight:700; margin-bottom:16px; color:#fff; }
.sidebar-row {
    display:flex; gap:12px; padding:12px 0;
    border-bottom:1px solid rgba(255,255,255,0.05);
    align-items:flex-start;
}
.sidebar-row:last-child { border-bottom:none; }
.sidebar-icon {
    width:36px; height:36px; border-radius:10px;
    background:rgba(220,38,38,0.1); color:#dc2626;
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0; font-size:16px;
}
.sidebar-label { font-size:12px; color:#6b7280; display:block; margin-bottom:2px; }
.sidebar-val { font-size:14px; font-weight:500; color:#e5e7eb; line-height:1.5; }

/* ===== MOBILE ===== */
@media(max-width:767px) {
    .movie-hero { min-height:auto; padding-top:32px; }
    .movie-hero-inner {
        flex-direction:column; align-items:center;
        text-align:center; padding:32px 16px 40px; gap:24px;
    }
    .movie-poster-wrap img { width:200px; }
    .movie-name { font-size:28px; }
    .movie-rating-bar { width:100%; justify-content:center; }
    .movie-genres { justify-content:center; }
    .movie-desc { text-align:center; margin:0 auto 28px; }
    .movie-cta { justify-content:center; width:100%; }
    .cta-play, .cta-trailer { width:100%; justify-content:center; }
    .movie-info-section { grid-template-columns:1fr; gap:32px; padding:32px 16px; }
    .movie-tags { justify-content:center; }
}

@keyframes toastIn { from{opacity:0;transform:translateX(-50%) translateY(20px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }

/* ═══════════════════════════════════════
   INLINE PLAYER + HERO WRAPPER
   ═══════════════════════════════════════ */
#playerHeroWrap {
  margin-top: 64px;
}
#playerHeroWrap .movie-hero,
#seriesHero {
  margin-top: 0 !important;
}

/* Player Box */
.cp-player-box {
  display: none;
  background: #000;
  width: 100%;
}
.cp-player-inner {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ═══════════════════════════════════════
   SIDEBAR PLAYER LAYOUT (servers/seasons beside player)
   ═══════════════════════════════════════ */
.cp-layout-movie,
.cp-layout-series {
  display: flex;
  align-items: flex-start;
  gap: 1px;
  background: #050505;
}
.cp-screen-col {
  flex: 1;
  min-width: 0;
  background: #000;
}
.cp-side-col {
  flex: 0 0 280px;
  width: 280px;
  background: #0d0d0d;
  max-height: 640px;
  overflow-y: auto;
  padding: 14px;
}
.cp-side-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px !important;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Server list - vertical, in sidebar */
.cp-server-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cp-server-list .cp-server-pill,
.cp-servers-col .cp-server-pill {
  width: 100%;
  justify-content: flex-start;
}

/* Seasons accordion - in left sidebar */
.cp-seasons-accordion { display: flex; flex-direction: column; gap: 8px; }
.cp-season-acc {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
}
.cp-season-acc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background .15s;
}
.cp-season-acc-head:hover { background: rgba(255,255,255,0.04); }
.cp-season-acc-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg,#1a1a2e,#0f3460);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cp-season-acc-title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-season-acc-arrow { color: #9ca3af; flex-shrink: 0; transition: transform .2s; }
.cp-season-acc-arrow.open { transform: rotate(180deg); }
.cp-season-acc-body {
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Responsive: stack columns ONLY on real mobile phones (not laptops/tablets) */
@media(max-width:680px) {
  .cp-layout-movie,
  .cp-layout-series {
    flex-direction: column;
  }
  .cp-side-col {
    width: 100%;
    flex: 1 1 auto;
    max-height: 320px;
  }
  /* Order: screen first, then servers, then seasons */
  .cp-layout-series .cp-screen-col { order: 1; }
  .cp-layout-series .cp-servers-col { order: 2; }
  .cp-layout-series .cp-seasons-col { order: 3; }
  .cp-layout-movie .cp-screen-col { order: 1; }
  .cp-layout-movie .cp-servers-col { order: 2; }
}

/* Tablets/small laptops: keep side-by-side but narrower sidebar */
@media(min-width:681px) and (max-width:1023px) {
  .cp-side-col {
    flex: 0 0 220px;
    width: 220px;
  }
}
.cp-player-title-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.cp-badge-blue {
  background: #2563eb;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 5px;
  flex-shrink: 0;
}
.cp-player-screen {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}
.cp-player-screen iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Server Row - centered, wraps nicely */
.cp-server-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  background: #111;
}
.cp-server-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #9ca3af;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  white-space: nowrap;
}
.cp-server-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.cp-server-btn.active {
  background: rgba(220,38,38,0.15);
  color: #fff;
  border-color: rgba(220,38,38,0.4);
}
.cp-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* ═══════════════════════════════════════
   SERVERS PANEL (Grid pill list - like topcinemaa style)
   ═══════════════════════════════════════ */
.cp-servers-panel {
  background: #111;
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cp-servers-title {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cp-server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.cp-server-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #d1d5db;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  text-align: right;
}
.cp-server-pill:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.cp-server-pill.active {
  background: linear-gradient(135deg, rgba(220,38,38,0.2), rgba(220,38,38,0.08));
  border-color: rgba(220,38,38,0.5);
  color: #fff;
  box-shadow: 0 4px 16px rgba(220,38,38,0.25);
}
.cp-server-pill-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  color: #fff;
}
.cp-server-pill-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-server-pill-trailer .cp-server-pill-icon { background: #dc2626 !important; }

@media(max-width:767px) {
  .cp-servers-panel { padding: 12px; }
  .cp-servers-title { font-size: 13px; margin-bottom: 10px !important; }
  .cp-server-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }
  .cp-server-pill { padding: 8px 10px; font-size: 12px; }
  .cp-server-pill-icon { width: 26px; height: 26px; font-size: 12px; }
}

/* Prev/Next Nav */
.cp-ep-nav {
  display: none;
  padding: 10px 16px;
  background: #111;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.cp-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.cp-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  transition: background .2s;
  max-width: 42%;
  overflow: hidden;
}
.cp-nav-btn:hover { background: rgba(255,255,255,0.12); }
.cp-nav-next {
  background: rgba(220,38,38,0.15);
  border-color: rgba(220,38,38,0.3);
}
.cp-nav-next:hover { background: rgba(220,38,38,0.25); }
.cp-nav-arrow { font-size: 16px; flex-shrink: 0; }
.cp-nav-text {
  display: flex;
  flex-direction: column;
  text-align: right;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cp-nav-text small { font-size: 9px; color: #9ca3af; }
.cp-nav-current {
  text-align: center;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 30%;
}
.cp-red-txt { color: #dc2626; }

/* Episode List Panel */
.cp-ep-list-panel {
  display: none;
  max-height: 260px;
  overflow-y: auto;
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cp-eplist-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background .15s;
}
.cp-eplist-row.clickable { cursor: pointer; }
.cp-eplist-row.clickable:hover { background: rgba(255,255,255,0.05); }
.cp-eplist-row.active {
  background: rgba(220,38,38,0.1);
  border-right: 3px solid #dc2626;
}
.cp-eplist-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  color: #555;
}
.cp-eplist-row.clickable .cp-eplist-num { background: rgba(220,38,38,0.15); color: #dc2626; }
.cp-eplist-row.active .cp-eplist-num { background: #dc2626; color: #fff; }
.cp-eplist-info { flex: 1; min-width: 0; }
.cp-eplist-title {
  font-size: 13px;
  color: #d1d5db;
  margin: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-eplist-row.active .cp-eplist-title { color: #fff; font-weight: 700; }
.cp-eplist-sub { font-size: 11px; color: #6b7280; margin: 2px 0 0 !important; }
.cp-eplist-sub.muted { color: #444; }

/* ═══════════════════════════════════════
   PREMIUM MOBILE EXPERIENCE - NETFLIX STYLE
   ═══════════════════════════════════════ */
@media(max-width:767px) {
  /* Header - slightly smaller for mobile immersion */
  .header-inner { height: 54px; padding: 0 12px; }
  .site-header { height: 54px; }
  #playerHeroWrap { margin-top: 54px !important; }
  body.admin-bar #playerHeroWrap { margin-top: 100px !important; }

  /* Hero - cinematic but compact */
  .hero { height: auto; min-height: 50vh; max-height: 65vh; }
  .hero-bg { background-position: center center; }
  .hero-content { padding: 0 14px 28px; align-items: flex-end; }
  .hero-info { max-width: 100%; }
  .hero-title { font-size: 22px !important; line-height: 1.25; margin-bottom: 6px; }
  .hero-desc { font-size: 12px !important; line-height: 1.6; opacity: 0.85; margin-bottom: 12px; -webkit-line-clamp: 2; }
  .hero-badges { gap: 6px; margin-bottom: 10px; }
  .hero-badges .badge { font-size: 10px; padding: 3px 8px; }
  .hero-genres { gap: 6px; margin-bottom: 14px; }
  .hero-genres span { font-size: 10px; padding: 4px 10px; }
  .hero-btns { gap: 8px; }
  .hero-btns .btn { flex: 1; padding: 10px 12px; font-size: 12px; justify-content: center; border-radius: 10px; }
  .hero-dots { bottom: 8px; gap: 5px; }
  .hero-dot { width: 6px; height: 6px; }
  .hero-dot.active { width: 18px; }

  /* Movie hero */
  .movie-hero { min-height: auto; padding: 0; background: #000; }
  .movie-hero-bg { opacity: 0.45; }
  .movie-hero-inner { flex-direction: column; align-items: center; text-align: center; padding: 18px 12px 22px; gap: 14px; }
  .movie-poster-wrap img { width: 130px; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,0.7); }
  .movie-poster-play { width: 48px; height: 48px; }
  .movie-poster-play svg { width: 22px; height: 22px; }
  .movie-name { font-size: 20px !important; line-height: 1.2; }
  .movie-name-en { font-size: 12px !important; margin-bottom: 10px !important; }
  .movie-rating-bar { width: 100%; justify-content: center; padding: 8px 12px; border-radius: 10px; gap: 10px; }
  .rating-num { font-size: 18px !important; }
  .rating-star svg { width: 18px !important; height: 18px !important; }
  .movie-genres { justify-content: center; gap: 5px; margin-bottom: 12px; }
  .movie-genres span { font-size: 10px; padding: 3px 8px; border-radius: 999px; }
  .movie-desc { text-align: center; font-size: 12px; line-height: 1.7; margin: 0 auto 14px; -webkit-line-clamp: 2; max-width: 90%; }
  .movie-cta { width: 100%; justify-content: center; gap: 8px; flex-wrap: wrap; }
  .cta-play { flex: 1 1 60%; min-width: 140px; padding: 11px 14px; font-size: 13px; justify-content: center; border-radius: 10px; }
  .cta-trailer { flex: 1 1 35%; min-width: 100px; padding: 11px 10px; font-size: 12px; justify-content: center; border-radius: 10px; }
  .movie-cta .cta-circle { width: 40px; height: 40px; }
  .movie-cta .cta-circle svg { width: 18px; height: 18px; }
  .movie-tags { justify-content: center; gap: 5px; }
  .movie-tag { font-size: 10px; padding: 3px 8px; }

  /* ===== CINEMATIC MOBILE PLAYER ===== */
  #seriesPlayer, #moviePlayer {
    margin-top: 0 !important;
    background: #000;
    width: 100%;
  }
  .cp-player-box {
    background: #000;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .cp-player-inner {
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0;
  }
  .cp-player-title-bar {
    padding: 10px 12px !important;
    font-size: 12px !important;
    background: #101010 !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: 8px;
  }
  .cp-badge-blue { font-size: 8px !important; padding: 2px 6px !important; }
  #playerEpTitle { font-size: 12px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* Player screen - true 16:9 edge to edge */
  .cp-player-screen {
    position: relative;
    width: 100% !important;
    padding-top: 56.25% !important;
    background: #000 !important;
    border-radius: 0 !important;
    overflow: hidden;
  }
  .cp-player-screen iframe {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    border: none !important;
  }

  /* Layout stacks vertically but with premium spacing */
  .cp-layout-movie, .cp-layout-series {
    flex-direction: column !important;
    gap: 0 !important;
    background: #000 !important;
  }
  .cp-screen-col { order: 1 !important; width: 100% !important; background: #000 !important; }
  .cp-servers-col {
    order: 2 !important; width: 100% !important; max-height: none !important;
    background: #0a0a0a !important; padding: 14px 12px 12px !important;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .cp-seasons-col {
    order: 3 !important; width: 100% !important; max-height: none !important;
    background: #0a0a0a !important; padding: 0 !important;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  /* Server title centered with icon */
  .cp-side-title {
    font-size: 13px !important; margin-bottom: 10px !important;
    padding-bottom: 8px !important; text-align: center; justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    letter-spacing: 0.3px;
  }

  /* Servers - 2 columns, big touch targets */
  .cp-server-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .cp-server-pill {
    padding: 0 !important;
    height: 44px;
    border-radius: 10px !important;
    font-size: 12px !important;
    justify-content: flex-start !important;
    padding-left: 8px !important;
    padding-right: 10px !important;
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
  }
  .cp-server-pill:active { transform: scale(0.97); }
  .cp-server-pill-icon {
    width: 28px !important; height: 28px !important;
    font-size: 12px !important; border-radius: 8px !important;
    flex-shrink: 0;
  }
  .cp-server-pill-name { font-size: 12px !important; font-weight: 600 !important; }

  /* Old server row (movie) */
  .cp-server-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 12px !important;
    background: #0a0a0a !important;
  }
  .cp-server-row .cp-server-pill,
  .cp-server-row .cp-server-btn { width: 100% !important; justify-content: flex-start !important; }

  /* Episode nav - Netflix style */
  .cp-ep-nav { padding: 10px 12px !important; background: #0a0a0a !important; }
  .cp-nav-row { gap: 8px !important; }
  .cp-nav-btn {
    flex: 1 !important; max-width: none !important;
    padding: 0 !important; height: 48px !important;
    font-size: 11px !important; justify-content: center !important;
    border-radius: 10px !important; flex-direction: column !important; gap: 2px !important;
  }
  .cp-nav-btn small { display: block !important; font-size: 9px !important; }
  .cp-nav-arrow { display: none !important; }
  .cp-nav-text { text-align: center !important; align-items: center !important; }
  .cp-nav-current { display: none !important; }

  /* Seasons accordion - premium touch */
  .cp-seasons-accordion { gap: 0 !important; }
  .cp-season-acc { border-radius: 0 !important; border-left: none !important; border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.06); background: #0a0a0a !important; }
  .cp-season-acc:last-child { border-bottom: none; }
  .cp-season-acc-head { padding: 14px 12px !important; }
  .cp-season-acc-num { width: 28px !important; height: 28px !important; font-size: 12px !important; }
  .cp-season-acc-title { font-size: 13px !important; }
  .cp-eplist-row { padding: 12px !important; min-height: 56px !important; gap: 10px !important; }
  .cp-eplist-row.active { background: rgba(220,38,38,0.12) !important; border-right: 3px solid #dc2626 !important; }
  .cp-eplist-num { width: 32px !important; height: 32px !important; font-size: 12px !important; }
  .cp-eplist-title { font-size: 13px !important; }
  .cp-eplist-sub { font-size: 10px !important; }

  /* Outside episodes section */
  #episodes-outside { padding: 20px 12px 0 !important; }
  .season-block { border-radius: 12px !important; margin-bottom: 12px !important; }
  .season-header { padding: 12px !important; }
  .season-thumb { width: 48px !important; height: 48px !important; font-size: 16px !important; border-radius: 10px !important; }
  .season-meta h3 { font-size: 14px !important; }
  .season-meta p { font-size: 11px !important; }
  .episode-item { padding: 12px !important; min-height: 52px !important; }
  .ep-info h4 { font-size: 13px !important; }
  .ep-info p { font-size: 10px !important; }

  /* Info section */
  .movie-info-section { grid-template-columns: 1fr !important; gap: 16px !important; padding: 20px 12px !important; }
  .info-main h2 { font-size: 16px !important; margin-bottom: 10px !important; padding-bottom: 8px !important; }
  .story-text { font-size: 13px !important; line-height: 1.8 !important; }
  .sidebar-card { margin-bottom: 12px !important; padding: 14px !important; border-radius: 12px !important; }
  .sidebar-row { padding: 10px 0 !important; }
  .sidebar-icon { width: 32px !important; height: 32px !important; font-size: 14px !important; }
  .sidebar-label { font-size: 10px !important; }
  .sidebar-val { font-size: 12px !important; }

  /* Related */
  .movies-grid { gap: 8px !important; grid-template-columns: repeat(3, 1fr) !important; }
  .card-poster { border-radius: 8px !important; }
  .card-info { padding: 6px 2px 0 !important; }
  .card-title { font-size: 11px !important; line-height: 1.3; }
  .card-year { font-size: 10px !important; }
  .card-badge { font-size: 9px !important; padding: 2px 5px !important; top: 5px !important; left: 5px !important; }
  .card-status { font-size: 7px !important; padding: 2px 5px !important; top: 5px !important; right: 5px !important; }
  .card-quality { font-size: 6px !important; padding: 2px 4px !important; top: 26px !important; left: 5px !important; }

  /* Section headers */
  .section-head { margin-bottom: 12px !important; padding: 0 0 !important; }
  .section-title { font-size: 16px !important; }
  .view-all { font-size: 11px !important; }

  /* Footer compact */
  .site-footer { padding: 32px 0 0 !important; margin-top: 32px !important; }
  .footer-grid { gap: 24px !important; }
  .footer-brand p { font-size: 12px !important; }
  .footer-col h3 { font-size: 14px !important; margin-bottom: 10px !important; }
  .footer-links a { font-size: 12px !important; }

  /* FAB & Back to top */
  .cp-fab-wrap { bottom: 14px !important; left: 10px !important; }
  .cp-fab-toggle { width: 48px !important; height: 48px !important; }
  .cp-fab-item { width: 40px !important; height: 40px !important; }
  .back-to-top { bottom: 14px !important; right: 10px !important; width: 40px !important; height: 40px !important; }
}

@media(max-width:380px) {
  .movies-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .cp-server-list { grid-template-columns: 1fr !important; }
  .cp-server-row { grid-template-columns: 1fr !important; }
  .movie-hero-inner { padding: 12px 10px 20px !important; }
  .movie-poster-wrap img { width: 120px !important; }
}

/* ═══════════════════════════════════════
   FIXES - Equal cards + Request page
   ═══════════════════════════════════════ */
.movies-grid { 
  grid-auto-rows: 1fr; 
  align-items: stretch;
}
.movie-card { 
  display:flex; 
  flex-direction:column; 
  height:100%; 
  width:100%;
}
.card-poster { 
  flex-shrink:0; 
  width:100%;
  position:relative;
}
.card-info { 
  flex:1; 
  display:flex; 
  flex-direction:column; 
  justify-content:flex-start; 
  min-height:48px;
  padding:8px 2px 0;
}
.card-title { 
  min-height:18px;
  font-size:13px;
  line-height:1.3;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.no-poster {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg,#1a1a1a,#111); color:#555; font-size:11px; text-align:center; padding:8px;
}
.card-poster .no-poster {
  position:absolute; inset:0;
}

/* Fallback for older browsers */
@supports not (aspect-ratio: 2/3) {
  .card-poster::before { content:''; display:block; padding-top:150%; }
  .card-poster img, .card-poster .no-poster { position:absolute; top:0; left:0; width:100%; height:100%; }
}

/* ═══════════════════════════════════════
   WORDPRESS OVERRIDES
   ═══════════════════════════════════════ */
.wp-block-image img { border-radius:var(--radius); }
.entry-content { color:rgba(255,255,255,0.8); line-height:1.8; }
.screen-reader-text { clip:rect(1px,1px,1px,1px); position:absolute; }
.aligncenter { display:block; margin:0 auto; }

/* =========================================================
   NEX10 — FINAL MOBILE LAYOUT
   Mobile-only. Desktop (768px+) is intentionally untouched.
   ========================================================= */
@media screen and (max-width: 767px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }
  body { position: relative !important; }
  *, *::before, *::after { box-sizing: border-box !important; }
  img { max-width: 100% !important; }

  /* ---------- Header ---------- */
  .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 56px !important;
    z-index: 99999 !important;
    overflow: visible !important;
  }
  .header-inner {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    height: 56px !important;
    min-width: 0 !important;
    padding: 0 8px !important;
    display: block !important;
  }
  .site-logo {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    align-items: center !important;
    width: max-content !important;
    max-width: calc(100% - 110px) !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 17px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    z-index: 100002 !important;
  }
  .site-logo svg { width: 22px !important; height: 22px !important; flex: 0 0 22px !important; }
  .mobile-search-btn,
  .menu-toggle {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 9px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100003 !important;
  }
  .mobile-search-btn { left: 5px !important; right: auto !important; }
  .menu-toggle { right: 5px !important; left: auto !important; }
  .nav-search { display: none !important; }
  .main-nav {
    display: none !important;
    position: fixed !important;
    top: 56px !important;
    right: 0 !important;
    left: auto !important;
    width: min(86vw, 320px) !important;
    max-width: min(86vw, 320px) !important;
    height: calc(100dvh - 56px) !important;
    max-height: calc(100dvh - 56px) !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 8px 10px 24px !important;
    gap: 0 !important;
    box-sizing: border-box !important;
    z-index: 100001 !important;
  }
  .main-nav.open { display: flex !important; }
  .main-nav > a,
  .main-nav .nav-dropdown,
  .main-nav .nav-dropdown-toggle { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }

  /* ---------- Global mobile containers ---------- */
  .wrap-container, .container,
  main, .site-main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .wrap-container, .container { padding-left: 10px !important; padding-right: 10px !important; }

  /* ---------- Homepage hero: always full viewport width ---------- */
  .hero {
    position: relative !important;
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    height: 430px !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 56px 0 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    isolation: isolate !important;
  }
  .hero-slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: hidden !important;
  }
  .hero-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    display: block !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    transform: none !important;
  }
  .hero-bg::after {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
  .hero-content {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 14px 30px !important;
    display: flex !important;
    align-items: flex-end !important;
    z-index: 5 !important;
  }
  .hero-content > .wrap-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .hero-info {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  .hero-title { max-width: 100% !important; font-size: 22px !important; line-height: 1.25 !important; }
  .hero-desc { max-width: 100% !important; font-size: 11px !important; line-height: 1.55 !important; -webkit-line-clamp: 2 !important; }
  .hero-badges, .hero-genres { max-width: 100% !important; gap: 5px !important; }
  .hero-btns { width: 100% !important; max-width: 100% !important; display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 8px !important; }
  .hero-btns .btn { flex: 1 1 0 !important; min-width: 0 !important; max-width: none !important; padding: 10px 8px !important; justify-content: center !important; font-size: 11px !important; }
  .hero-dots { bottom: 8px !important; z-index: 20 !important; }

  /* ---------- Filters ---------- */
  .cp-section { width: 100% !important; max-width: 100% !important; min-width: 0 !important; padding: 24px 10px 8px !important; overflow: hidden !important; }
  .section-head { width: 100% !important; min-width: 0 !important; gap: 8px !important; }
  .section-title { min-width: 0 !important; max-width: 75% !important; font-size: 15px !important; }
  .view-all { flex-shrink: 0 !important; font-size: 10px !important; }
  .filter-tabs { width: 100% !important; max-width: 100% !important; min-width: 0 !important; display: flex !important; flex-direction: column !important; gap: 10px !important; overflow: hidden !important; }
  .filter-group { width: 100% !important; max-width: 100% !important; min-width: 0 !important; display: flex !important; flex-direction: column !important; gap: 5px !important; }
  .filter-label { display: block !important; min-width: 0 !important; font-size: 11px !important; }
  .filter-chips { width: 100% !important; max-width: 100% !important; min-width: 0 !important; display: flex !important; flex-wrap: wrap !important; gap: 6px !important; overflow: hidden !important; }
  .filter-chip { flex: 0 0 auto !important; max-width: 100% !important; white-space: nowrap !important; font-size: 10px !important; padding: 6px 9px !important; }

  /* ---------- Movie/series grids: hard two equal columns ---------- */
  .movies-grid,
  body .movies-grid,
  main .movies-grid,
  .cp-section .movies-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    grid-auto-rows: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 10px !important;
    align-items: start !important;
    justify-items: stretch !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: visible !important;
  }
  .movies-grid > .movie-card,
  body .movies-grid > .movie-card,
  .cp-section .movies-grid > .movie-card {
    display: flex !important;
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
    align-self: start !important;
    overflow: hidden !important;
  }
  .movie-card .card-poster,
  body .movie-card .card-poster {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    aspect-ratio: 2 / 3 !important;
    padding-top: 0 !important;
    flex: 0 0 auto !important;
    overflow: hidden !important;
    border-radius: 8px !important;
  }
  .movie-card .card-poster img,
  body .movie-card .card-poster img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
  .movie-card .card-poster .no-poster { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; }
  .movie-card .card-info { width: 100% !important; max-width: 100% !important; min-width: 0 !important; min-height: 0 !important; padding: 6px 1px 0 !important; overflow: hidden !important; }
  .movie-card .card-title { width: 100% !important; max-width: 100% !important; min-width: 0 !important; min-height: 0 !important; font-size: 11px !important; line-height: 1.35 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
  .movie-card .card-year { font-size: 9px !important; line-height: 1.2 !important; }
  .movie-card .card-badge { top: 5px !important; left: 5px !important; font-size: 8px !important; padding: 2px 5px !important; }
  .movie-card .card-status { top: 5px !important; right: 5px !important; font-size: 7px !important; padding: 2px 5px !important; }
  .movie-card .card-quality { top: 27px !important; left: 5px !important; font-size: 7px !important; padding: 2px 4px !important; }

  /* ---------- Detail pages ---------- */
  #playerHeroWrap, #seriesHero, #movieHero { width: 100% !important; max-width: 100% !important; min-width: 0 !important; overflow: hidden !important; }
  .movie-hero { width: 100% !important; max-width: 100% !important; min-width: 0 !important; overflow: hidden !important; }
  .movie-hero-bg { width: 100% !important; max-width: none !important; min-width: 0 !important; }
  .movie-hero-inner { width: 100% !important; max-width: 100% !important; min-width: 0 !important; box-sizing: border-box !important; padding-left: 12px !important; padding-right: 12px !important; }
  .movie-poster-wrap { max-width: 42vw !important; min-width: 0 !important; }
  .movie-poster-wrap img { width: min(130px, 42vw) !important; max-width: 100% !important; height: auto !important; }
  .movie-info-section { width: 100% !important; max-width: 100% !important; min-width: 0 !important; grid-template-columns: 1fr !important; overflow: hidden !important; }

  /* ---------- Footer ---------- */
  .site-footer { width: 100% !important; max-width: 100% !important; min-width: 0 !important; overflow: hidden !important; }
  .footer-grid { width: 100% !important; max-width: 100% !important; min-width: 0 !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 18px !important; }
  .footer-col, .footer-brand { min-width: 0 !important; max-width: 100% !important; }
}
@media screen and (max-width: 380px) {
  .movies-grid, body .movies-grid, .cp-section .movies-grid { gap: 8px !important; }
  .cp-section, .wrap-container, .container { padding-left: 8px !important; padding-right: 8px !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
}

/* Movitoon additions: language + continue watching */
.continue-section{overflow:hidden}
@media(max-width:767px){
  .language-toggle{position:absolute!important;top:50%;left:48px;transform:translateY(-50%);z-index:30;padding:5px 7px!important;min-width:32px!important}
  .continue-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .continue-card{min-width:0;width:100%}
}
