/* ==========================================================================
   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:focus-visible,
.vd button:focus-visible {
  outline: none;
}

.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: #00222f !important;
}

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

.vd-btn-plain {
  background: #ffffff14;
}

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

.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: thin;
  scrollbar-color: var(--line) transparent;
}

.vd-slider-arrow {
  position: absolute;
  top: calc(50% - 22px);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffffe8;
  backdrop-filter: blur(4px);
  color: var(--text);
  font-size: 16px;
  opacity: 0;
  box-shadow: 0 8px 20px #00000026;
  transition: opacity .2s ease, transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.vd-slider:hover .vd-slider-arrow {
  opacity: 1;
}

.vd-slider-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 10px 24px #2f6fed40;
}

.vd-slider-prev {
  inset-inline-start: -6px;
}

.vd-slider-next {
  inset-inline-end: -6px;
}

@media (max-width: 720px) {
  .vd-slider-arrow {
    display: none;
  }
}

.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;
  border-color: var(--accent);
}

.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;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  padding-inline-start: 3px;
  box-shadow: 0 8px 18px #00000059;
  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-title {
  margin: 9px 2px 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vd-card:hover .vd-card-title {
  color: var(--accent);
}

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

/* ---------- بانر القسم ---------- */
.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 {
  color: #ffffff;
  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-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: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.vd-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.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-rate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
}

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

.vd-facts li {
  margin-bottom: 6px;
  font-size: 15px;
  color: #dcdce0;
}

.vd-facts li span {
  color: var(--muted);
}

.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-hero-actions {
  flex: 0 0 210px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vd-hero-actions .vd-btn {
  width: 100%;
  justify-content: flex-start;
  padding: 0 18px;
}

.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 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  padding-inline-start: 5px;
  border-radius: 50%;
  background: #00000066;
  border: 2px solid #ffffffb3;
  color: #fff;
  font-size: 30px;
  backdrop-filter: blur(2px);
  box-shadow: 0 0 0 0 #ffffff40;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
  animation: vd-play-pulse 2.2s ease-out infinite;
}

.vd-player-start:hover i {
  transform: scale(1.08);
  background: var(--accent);
  border-color: var(--accent);
  animation-play-state: paused;
  box-shadow: 0 0 0 0 #ffffff00;
}

@keyframes vd-play-pulse {
  0%   { box-shadow: 0 0 0 0 #ffffff4d; }
  70%  { box-shadow: 0 0 0 18px #ffffff00; }
  100% { box-shadow: 0 0 0 0 #ffffff00; }
}

.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-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;
  }
}
