/* ==========================================================================
   vd-theme.css — التصميم الداكن الجديد
   يُحمَّل بعد style.min.css ويُلغي أنماطه القديمة داخل .vd فقط.
   لتغيير الألوان عدّل المتغيرات في :root.
   ========================================================================== */

:root {
  --bg: #f4f4f4;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #f0f0f0;
  --line: #e2e2e2;
  --text: #222222;
  --muted: #737373;
  --accent: #2f6fed;
  --accent-2: #5b93ff;
  --blue: #06b6d4;
  --yellow: #ffc107;
  --green: #1e8449;
  --red: #2f6fed;
  --radius: 10px;
  --wrap: 1140px;
  --font: 'Cairo', 'Droid Arabic Kufi', 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* ---------- تهيئة عامة ---------- */
html {
  font-size: 16px;
  background: var(--bg) !important;
  background-image: none !important;
  min-width: 0 !important;
  scroll-behavior: smooth;
}

body.vd {
  margin: 0;
  min-width: 0 !important;
  background: var(--bg) !important;
  background-image: none !important;
  color: var(--text);
  font: 400 15px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  text-align: right;
}

.vd *, .vd *:before, .vd *:after {
  box-sizing: border-box;
  transition: none;
}

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

.vd a:hover, .vd a:focus, .vd a:visited, .vd a:active {
  color: inherit;
  text-decoration: none;
}

.vd img {
  max-width: 100%;
  height: auto;
  border: 0;
}

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

.vd h1, .vd h2, .vd h3, .vd h4 {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.vd p {
  margin: 0 0 12px;
}

.vd button {
  font-family: var(--font);
  cursor: pointer;
}

.vd [hidden] {
  display: none !important;
}

.vd a,
.vd a:focus,
.vd a:focus-visible,
.vd a:active,
.vd button,
.vd button:focus,
.vd button:focus-visible,
.vd button:active {
  outline: none !important;
  box-shadow: none !important;
}

.vd input:focus-visible,
.vd textarea:focus-visible,
.vd select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.vd-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- الشريط العلوي ---------- */
.vd-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffffee;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px #00000010;
}

.vd-top-in {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 68px;
}

.vd-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.2px;
  color: var(--text) !important;
  flex-shrink: 0;
  transition: opacity .2s ease;
}

.vd-logo:hover {
  opacity: .82;
}

.vd-logo img {
  display: block;
  border-radius: 8px;
}

.vd-logo span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vd-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  flex-shrink: 0;
  transition: border-color .2s ease, color .2s ease;
}

.vd-menu-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.vd-search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 560px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.vd-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #2f6fed1f;
}

.vd-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  color: var(--text);
  font: 400 14px var(--font);
  padding: 11px 6px 11px 16px;
}

.vd-search input::placeholder {
  color: var(--muted);
}

.vd-search button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 0 16px;
  font-size: 15px;
  align-self: stretch;
  transition: color .2s ease;
}

.vd-search button:hover {
  color: var(--accent);
}

.vd-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
  flex-shrink: 0;
}

.vd-top-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}

.vd-top-link:hover {
  background: var(--panel-2);
  color: var(--accent) !important;
}

.vd-top-user {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--panel-2);
  font-size: 16px;
  color: var(--text);
  transition: background .2s ease, color .2s ease;
}

.vd-top-user:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

.vd-nav {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.vd-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0;
}

.vd-nav li a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease;
}

.vd-nav li a:hover {
  background: var(--accent);
  color: #fff;
}

/* ---------- مسار التنقل ---------- */
.vd-crumbs {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.vd-crumbs .vd-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.vd-crumbs a:hover {
  color: var(--accent) !important;
}

.vd-crumb-sep {
  font-size: 11px;
  opacity: .6;
}

/* ---------- الأزرار العامة ---------- */
.vd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: 700 15px var(--font);
  color: #fff !important;
  background: var(--panel-2);
  white-space: nowrap;
}

.vd-btn i {
  font-size: 19px;
}

.vd-btn-watch {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff !important;
}

.vd-btn-watch:hover {
  filter: brightness(1.08);
}

.vd-btn-dl {
  background: var(--blue);
  color: #fff !important;
}

.vd-btn-dl:hover {
  filter: brightness(1.1);
}

.vd-btn-trailer {
  background: #ffffff;
  color: var(--text) !important;
}

.vd-btn-trailer:hover {
  filter: brightness(.96);
}

.vd-btn-plain {
  background: transparent;
  color: #fff !important;
}

.vd-btn-plain:hover {
  background: #ffffff1a;
}

/* أزرار الشريط الجانبي بصفحة الفيلم: شكل كبسولة بأيقونة دائرية على الجنب */
.vd-hero-actions .vd-btn {
  justify-content: flex-start;
  gap: 14px;
  padding: 6px 6px 6px 22px;
  min-height: 52px;
  font-size: 15.5px;
}

.vd-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent);
  font-size: 15px;
}

.vd-btn-trailer .vd-btn-icon {
  background: var(--text);
  color: #fff;
}

.vd-btn-dl .vd-btn-icon {
  color: var(--blue);
}

.vd-btn-icon-ghost {
  background: #ffffff26;
  color: #fff;
}

.vd-btn-ghost {
  min-height: 40px;
  padding: 0 20px;
  font-size: 14px;
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff55;
}

.vd-btn-ghost:hover {
  background: #ffffff1f;
}

/* ---------- عناوين الأقسام ---------- */
.vd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.vd-h {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.vd-h:after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -1px;
  width: 64px;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 6 L3 2 L6 6 L9 2 L12 6' fill='none' stroke='%23f6981a' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x left bottom;
}

.vd-head-more, .vd-count {
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 10px;
}

.vd-head-more:hover {
  color: var(--accent) !important;
}

.vd-section {
  margin-top: 34px;
}

/* ---------- الرئيسية: البحث والبلاطات ---------- */
.vd-home {
  padding-bottom: 20px;
}

.vd-hero-search {
  max-width: 760px;
  margin: 34px auto 6px;
}

.vd-search-big {
  max-width: none;
  flex-direction: row-reverse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.vd-search-big input {
  padding: 15px 18px;
  font-size: 15px;
}

.vd-search-big button {
  align-self: stretch;
  padding: 0 26px;
  background: var(--accent);
  color: #1b1200;
  font: 800 15px var(--font);
}

.vd-search-big button:hover {
  color: #1b1200 !important;
  filter: brightness(1.08);
}

.vd-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.vd-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 8px;
  background: var(--panel);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
}

.vd-tile i {
  font-size: 26px;
  color: var(--text);
}

.vd-tile:hover {
  background: var(--panel-2);
  color: var(--accent) !important;
}

.vd-tile:hover i {
  color: var(--accent);
}

/* ---------- الشبكة والكروت ---------- */
.vd-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.vd-grid-home .vd-banner {
  grid-column: 1 / -1;
}

.vd-slider {
  position: relative;
}

.vd-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.vd-strip::-webkit-scrollbar {
  display: none;
}

.vd-slider-arrow {
  display: none !important;
}

.vd-strip .vd-card {
  flex: 0 0 168px;
  scroll-snap-align: start;
}

.vd-card {
  min-width: 0;
}

.vd-card-link {
  display: block;
}

.vd-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px #00000014;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

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

.vd-card:hover .vd-poster {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px #00000030;
}

.vd-card:hover .vd-poster img {
  transform: scale(1.06);
}

.vd-badge {
  position: absolute;
  top: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  background: #000000b8;
  color: #fff;
}

.vd-badge-q {
  inset-inline-start: 8px;
}

.vd-badge-r {
  inset-inline-end: 8px;
}

.vd-badge-r i {
  color: var(--yellow);
}

.vd-badge-t {
  top: auto;
  bottom: 8px;
  inset-inline-start: 8px;
  background: var(--accent);
  color: #fff;
}

.vd-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, #000000a6 0%, #00000026 55%, transparent 100%);
  opacity: 0;
}

.vd-play i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: transparent;
  color: rgba(255, 255, 255, .75);
  font-size: 18px;
  padding-inline-start: 2px;
  text-shadow: 0 2px 8px #00000090;
  transform: scale(.85);
  transition: transform .2s ease;
}

.vd-card:hover .vd-play i {
  transform: scale(1);
}

.vd-card:hover .vd-play, .vd-ep-card:hover .vd-play {
  opacity: 1;
  transition: opacity .2s ease;
}

.vd-card-sub {
  display: block;
  margin: 2px 2px 0;
  font-size: 12px;
  color: var(--muted);
}

.vd-card-meta {
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  bottom: 0;
  padding: 8px;
  background: linear-gradient(0deg, #000000e6 0%, #000000b3 55%, transparent 100%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.vd-card:hover .vd-card-meta {
  opacity: 1;
  transform: translateY(0);
}

.vd-card-title {
  position: absolute;
  z-index: 2;
  inset-inline: 8px;
  top: 72%;
  margin: 0 !important;
  text-align: center;
  font-size: 11.5px !important;
  font-weight: 400 !important;
  line-height: 1.4;
  color: #fff !important;
  text-shadow: 0 1px 3px #000000e6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.vd-card:hover .vd-card-title {
  opacity: 1;
  transform: translateY(0);
}

.vd-card-pills {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
}

.vd-pill-sm {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .5);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
}

.vd-pill-year {
  background: transparent;
}

/* ---------- بانر القسم ---------- */
.vd-banner {
  position: relative;
  min-height: 300px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}

.vd-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
}

.vd-banner:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(270deg, #000000d9 0%, #000000a6 45%, #00000033 100%);
}

.vd-banner-in {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 26px 30px;
  min-height: 300px;
}

.vd-banner-poster {
  flex: 0 0 150px;
}

.vd-banner-poster img {
  display: block;
  width: 150px;
  border-radius: 8px;
  box-shadow: 0 10px 30px #000a;
}

.vd-banner-text {
  flex: 1;
  min-width: 0;
}

.vd-banner-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.vd-banner-badges .vd-badge {
  position: static;
}

.vd-banner-text h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.vd-banner-text h3 a,
.vd-banner-text h3 a:visited,
.vd-banner-text h3 a:hover,
.vd-banner-text h3 a:focus {
  color: #ffffff !important;
  text-shadow: 0 2px 10px #000000cc, 0 0 2px #000000cc;
}

.vd-banner-text p {
  max-width: 640px;
  color: #e8e8ec;
  text-shadow: 0 1px 6px #000000b3;
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 16px;
}

.vd-banner-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vd-more-wrap {
  text-align: center;
  margin-top: 22px;
}

.vd-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 44px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
}

.vd-more:hover {
  background: var(--panel-2);
  color: var(--text) !important;
}

/* ---------- الأرشيف ---------- */
.vd-archive {
  padding-top: 28px;
  padding-bottom: 30px;
}

.vd-archive-head .vd-h {
  font-size: 22px;
}

.vd-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px;
  background: var(--panel);
  border-radius: var(--radius);
}

.vd-filter label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.vd-filter select {
  min-width: 140px;
  padding: 9px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: 400 14px var(--font);
}

.vd-filter .vd-btn {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.vd-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 30px;
}

.vd-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
}

.vd-pagination a.page-numbers:hover {
  background: var(--panel-2);
  color: var(--accent) !important;
}

.vd-pagination .current {
  background: var(--accent);
  color: #1b1200;
  font-weight: 800;
}

.vd-empty, .vd-notice {
  padding: 34px 20px;
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
  text-align: center;
}

.vd-empty i {
  display: block;
  margin-bottom: 10px;
  font-size: 38px;
  opacity: .5;
}

.vd-notice {
  padding: 18px 20px;
  text-align: right;
}

.vd-notice i {
  color: var(--accent);
  margin-inline-end: 8px;
}

.vd-news li a {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.vd-news li a:hover {
  color: var(--accent) !important;
  background: var(--panel);
}

.vd-news li i {
  color: var(--muted);
  margin-inline-end: 8px;
}

/* ---------- صفحة العمل: الهيرو ---------- */
.vd-hero {
  position: relative;
  overflow: hidden;
  background: var(--panel);
}

.vd-hero-bg {
  position: absolute;
  inset: -30px;
  background-size: cover;
  background-position: center 25%;
  filter: blur(14px) brightness(.55);
}

.vd-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #16161833 0%, var(--bg) 100%);
}

.vd-hero-in {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding-top: 34px;
  padding-bottom: 40px;
}

/* ---------- صفحة الممثل ---------- */
.vd-actor-banner {
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.vd-actor-hero {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  padding: 36px 0;
}

.vd-actor-photo {
  position: relative;
  flex: 0 0 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--panel);
  border: 4px solid var(--panel);
  box-shadow: 0 0 0 3px var(--accent), 0 14px 30px #0000001f;
  font-size: 64px;
  color: var(--muted);
}

.vd-actor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vd-actor-info {
  flex: 1;
  min-width: 0;
  padding-top: 6px;
}

.vd-actor-info .entry-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
}

.vd-actor-info .vd-meta-row {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 16px;
}

.vd-chip-wiki {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef1f6;
  color: var(--text) !important;
}

.vd-actor-bio {
  color: var(--text);
  line-height: 1.9;
  font-size: 14.5px;
  margin-bottom: 16px;
  max-width: 760px;
}

.vd-actor-info .vd-facts li {
  color: var(--text);
}

@media (max-width: 720px) {
  .vd-actor-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 26px 0;
  }

  .vd-actor-info .vd-meta-row,
  .vd-actor-info .vd-facts {
    justify-content: center;
    text-align: center;
  }
}

.vd-hero-poster {
  flex: 0 0 250px;
}

.vd-hero-poster img {
  display: block;
  width: 250px;
  border-radius: 10px;
  box-shadow: 0 16px 40px #000c;
}

.vd-hero-info {
  flex: 1;
  min-width: 0;
}

.vd-hero-info .entry-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #fff;
  overflow-wrap: break-word;
}

.vd-hero-tagline {
  color: #e8e8ecd9;
  font-size: 14.5px;
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 18px;
  text-shadow: 0 1px 6px #000000b3;
}

.vd-meta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ffffff26;
}

.vd-meta-row .vd-chip,
.vd-meta-row .vd-rate {
  width: fit-content;
}

.vd-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vd-meta-label {
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.vd-actor-info .vd-meta-label {
  color: #fff;
}

.vd-chip {
  display: inline-block;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 24px;
  background: var(--blue);
  color: #00222f !important;
}

.vd-chip-imdb {
  background: var(--yellow);
  color: #201800 !important;
  border-radius: 5px;
  padding: 0 8px;
}

.vd-chip-cert {
  background: var(--green);
  color: #fff !important;
}

.vd-cast {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 16px;
}

.vd-cast-item {
  display: block;
  text-align: center;
  transition: transform .2s ease;
}

.vd-cast-item:hover {
  transform: translateY(-3px);
}

.vd-cast-item:hover .vd-cast-name {
  color: var(--accent);
}

.vd-cast-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 8px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 28px;
  color: var(--muted);
}

.vd-cast-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vd-cast-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.vd-cast-role {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.vd-rate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
}

.vd-rate i {
  color: var(--yellow);
}

.vd-facts li {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 14.5px;
  color: #f1f1f3;
}

.vd-facts li span {
  color: #fff;
  flex-shrink: 0;
}

.vd-facts a {
  color: var(--accent) !important;
}

.vd-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
}

.vd-pill {
  display: inline-block;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #111 !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
}

.vd-pill:hover {
  background: var(--accent);
}

.vd-date {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- مودال التريلر ---------- */
.vd-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.vd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: #000000d9;
}

.vd-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
}

.vd-modal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.vd-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vd-modal-close {
  position: absolute;
  top: -42px;
  inset-inline-end: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff1f;
  color: #fff;
  border: 0;
  font-size: 16px;
}

.vd-modal-close:hover {
  background: var(--accent);
}

.vd-hero-actions {
  flex: 0 0 210px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vd-hero-actions .vd-btn {
  width: 100%;
  justify-content: flex-start;
  gap: 14px;
  padding: 6px 6px 6px 22px;
  min-height: 52px;
  font-size: 15.5px;
}

.vd-votes {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.vd-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  line-height: 1.1;
}

.vd-vote b {
  font-size: 11px;
  font-weight: 700;
}

.vd-vote-up {
  background: var(--green);
}

.vd-vote-down {
  background: var(--red);
}

.vd-vote:disabled, .vd-votes.is-voted .vd-vote {
  opacity: .75;
  cursor: default;
}

/* ---------- محتوى الصفحة ---------- */
.vd-body {
  padding-bottom: 30px;
}

.vd-block {
  margin-top: 34px;
}

.vd-block > .vd-h {
  display: block;
  margin-bottom: 18px;
}

.vd-block > .vd-h:after {
  bottom: 0;
}

.vd-content {
  font-size: 15px;
  line-height: 2;
  color: var(--text);
}

.vd-content a {
  color: var(--accent) !important;
}

.vd-content img {
  border-radius: 8px;
}

.vd-table, .vd-content table {
  width: 100%;
  margin: 14px 0;
  border-collapse: collapse;
}

.vd-table td, .vd-table th, .vd-content td, .vd-content th {
  padding: 10px 12px;
  border: 1px solid var(--line);
}

.vd-page {
  padding-top: 28px;
  padding-bottom: 30px;
}

.vd-article {
  margin-bottom: 30px;
}

.vd-article .vd-h {
  font-size: 22px;
  margin-bottom: 14px;
}

.vd-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- المشغّل ---------- */
.vd-player {
  background: var(--panel);
  border-radius: 14px;
  overflow: hidden;
}

.vd-player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000 center / cover no-repeat;
}

.vd-player-stage:before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000000a0;
}

.vd-player-stage.is-playing:before {
  display: none;
}

.vd-player-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.vd-player-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.vd-player-start span {
  text-shadow: 0 2px 8px #000000cc;
  opacity: .9;
}

.vd-player-start i {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 28px;
  transition: transform .2s ease, background .2s ease;
  z-index: 1;
}

.vd-player-start i:before {
  position: relative;
  inset-inline-start: 2px;
}

.vd-player-start i:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #000;
  z-index: -1;
  animation: vd-play-pulse 1.5s ease-out infinite;
}

.vd-player-start:hover i {
  transform: scale(1.06);
  filter: brightness(1.1);
}

@keyframes vd-play-pulse {
  0%   { transform: scale(1);   opacity: .55; }
  100% { transform: scale(1.5); opacity: 0; }
}

.vd-servers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  background: var(--panel-2);
}

.vd-server {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.vd-server:hover {
  border-color: var(--accent);
}

.vd-server.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1b1200;
}

/* ---------- التبويبات وروابط التحميل ---------- */
.vd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
}

.vd-tab {
  padding: 12px 22px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.vd-tab:hover {
  color: var(--text);
}

.vd-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--panel);
}

.vd-dl-panel {
  display: none;
  padding: 16px;
  background: var(--panel);
  border-radius: 0 0 var(--radius) var(--radius);
}

.vd-dl-panel.is-active {
  display: block;
}

.vd-dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.vd-dl-row:last-child {
  border-bottom: 0;
}

.vd-dl-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 600;
}

.vd-dl-name i {
  color: var(--muted);
}

.vd-dl-q {
  padding: 0 8px;
  border-radius: 5px;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 11px;
  line-height: 20px;
}

.vd-btn-dl .vd-dl-size {
  margin-inline-start: 6px;
  padding-inline-start: 10px;
  border-inline-start: 1px solid #00222f55;
  font-size: 13px;
}

/* ---------- الحلقات والمواسم ---------- */
.vd-ep-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vd-ep-btn {
  display: inline-block;
  min-width: 86px;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.vd-ep-btn:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.vd-ep-btn.is-current {
  background: var(--accent);
  border-color: var(--accent);
  color: #1b1200 !important;
}

.vd-ep-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
  background: var(--panel);
  border-radius: var(--radius);
}

.vd-ep-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg-2);
}

.vd-ep-card:hover {
  background: var(--panel-2);
}

.vd-ep-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  order: 2;
}

.vd-ep-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vd-ep-info h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.vd-ep-info p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.vd-latest-episodes-inline {
  margin-top: 16px;
}

.vd-ep-grid-home {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: transparent;
  padding: 0;
  gap: 16px;
}

.vd-ep-grid-home .vd-ep-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 8px;
}

.vd-ep-grid-home .vd-ep-info h3 {
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vd-ep-date {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
}

@media (max-width: 991px) {
  .vd-ep-grid-home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .vd-ep-grid-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.vd-ep-date {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.vd-seasons .vd-dl-panel {
  padding: 18px;
}

/* ---------- الوسوم ---------- */
.vd-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
}

.vd-tags-label {
  color: var(--muted);
  font-weight: 700;
}

.vd-tags a {
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: #cfcfd4;
  font-size: 12px;
}

.vd-tags a:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

/* ---------- التعليقات (تنسيق عناصر Bootstrap القديمة) ---------- */
#comments .on-comment {
  display: flex;
  gap: 14px;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--panel);
}

#comments .comment-author {
  flex: 0 0 64px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

#comments .comment-author img {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 6px;
  border-radius: 50%;
}

#comments .commententry {
  flex: 1;
  min-width: 0;
}

#comments .commententry-footer {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

#comments .clearfix {
  display: none;
}

#comments .form-group {
  margin-bottom: 12px;
}

#comments .input-group {
  display: flex;
  align-items: stretch;
}

#comments .input-group-addon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  background: var(--panel-2);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
}

#comments .form-control {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px 0 0 8px;
  color: var(--text);
  font: 400 14px var(--font);
}

#comments .form-control:focus {
  outline: 0;
  border-color: var(--accent);
}

#comments .btn {
  min-height: 44px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #1b1200;
  font: 800 14px var(--font);
}

#comments .alert {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
}

/* ---------- الفوتر ---------- */
.vd-footer {
  margin-top: 50px;
  padding: 34px 0 26px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.vd-footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  margin-bottom: 26px;
  text-align: right;
}

.vd-footer-title {
  margin-bottom: 10px;
  font-size: 14px;
  color: #fff;
}

.vd-footer-links li a {
  display: block;
  padding: 3px 0;
  font-size: 13px;
  color: var(--muted);
}

.vd-footer-links li a:hover {
  color: var(--accent) !important;
}

.vd-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.vd-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.vd-social a:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.vd-footer-bottom-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 18px;
}

.vd-footer-bottom-links a {
  font-size: 13px;
  color: var(--muted);
}

.vd-footer-bottom-links a:hover {
  color: var(--accent) !important;
}

.vd-copy {
  margin: 18px 0 0;
  font-size: 12px;
  color: #6f6f78;
}

.vd-copy span {
  display: block;
  margin-top: 4px;
}

/* ---------- الاستجابة ---------- */
@media (max-width: 1100px) {
  .vd-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

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

  .vd-hero-in {
    flex-wrap: wrap;
  }

  .vd-hero-actions {
    flex: 1 1 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .vd-hero-actions .vd-btn {
    width: auto;
    flex: 1 1 140px;
    justify-content: center;
  }

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

@media (max-width: 720px) {
  .vd-top-in {
    flex-wrap: wrap;
    gap: 10px 14px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .vd-search {
    order: 5;
    flex: 1 1 100%;
    max-width: none;
  }

  .vd-top-link span {
    display: none;
  }

  .vd-logo span {
    display: none;
  }

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

  .vd-hero-poster {
    flex: 0 0 130px;
  }

  .vd-hero-poster img {
    width: 130px;
  }

  .vd-hero-info .entry-title {
    font-size: 20px;
  }

  .vd-facts li {
    font-size: 13.5px;
  }

  .vd-banner-in {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .vd-banner-poster {
    display: none;
  }

  .vd-banner-text h3 {
    font-size: 21px;
  }

  .vd-dl-row {
    flex-direction: column;
    align-items: stretch;
  }

  .vd-dl-row .vd-btn {
    width: 100%;
  }
}

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

  .vd-tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .vd-strip .vd-card {
    flex-basis: 132px;
  }

  .vd-ep-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .vd-hero-in {
    gap: 18px;
  }

  .vd-search-big button {
    padding: 0 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- صفحة التحميل الوسيطة ---------- */
.vd-dl-page {
  text-align: center;
  padding: 60px 16px;
  max-width: 560px;
}

.vd-dl-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.vd-dl-subtitle {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 28px;
}

.vd-dl-cta {
  min-width: 220px;
  font-size: 17px;
}

.vd-dl-filename {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  word-break: break-all;
}

.vd-dl-report {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 50px;
  color: var(--red) !important;
  font-size: 13.5px;
  font-weight: 700;
}

.vd-dl-report:hover {
  text-decoration: underline !important;
}

.vd-genre-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.vd-genre-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text) !important;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.vd-genre-pill:hover,
.vd-genre-pill:focus,
.vd-genre-pill:visited:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
}

/* ---------- بانر المميز الكبير ---------- */
.vd-hero-slider {
  position: relative;
  height: 440px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}

.vd-hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.vd-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity .6s ease;
}

.vd-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.vd-hero-slide-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.vd-hero-slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, #000000e6 0%, #000000a6 35%, #00000033 65%, transparent 100%);
}

.vd-hero-slide-content {
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  top: 0;
  width: min(640px, 90%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: right;
  padding: 32px;
}

.vd-hero-slide-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.vd-hero-slide-pills span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.vd-hero-slide-rating {
  color: #ffce54 !important;
}

.vd-hero-slide-title {
  margin: 0 0 14px !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.35;
}

.vd-hero-slide-desc {
  margin: 0 0 22px;
  color: #e4e4e8;
  font-size: 14.5px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vd-hero-slide-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vd-btn-info {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff !important;
}

.vd-btn-info:hover {
  background: rgba(255, 255, 255, .24);
}

.vd-hero-dots {
  position: absolute;
  z-index: 3;
  bottom: 16px;
  inset-inline-end: 32px;
  display: flex;
  gap: 8px;
}

.vd-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .2s ease, width .2s ease;
}

.vd-hero-dot.is-active {
  background: var(--accent);
  width: 22px;
}

@media (max-width: 720px) {
  .vd-hero-slider {
    height: 480px;
  }

  .vd-hero-slide-content {
    width: 100%;
    inset-inline: 0;
    padding: 20px;
    align-items: flex-start;
  }

  .vd-hero-slide-shade {
    background: linear-gradient(0deg, #000000e6 0%, #000000a6 45%, transparent 100%);
  }

  .vd-hero-slide-title {
    font-size: 22px !important;
  }

  .vd-hero-dots {
    inset-inline-end: 20px;
  }
}
