/* صفحة تفاصيل الفيديو — تخطيط احترافي */
.video-detail-page-root {
  padding-top: 8px;
}

.video-detail-mobile-head .inner-page-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  max-height: 2.7em;
  overflow: hidden;
}

.video-page {
  max-width: 1200px;
  margin-inline: auto;
}

.video-page__row {
  align-items: flex-start;
}

.video-page__main {
  margin-bottom: 28px;
}

.video-page__player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0c14;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.video-page__player-shell--twitter {
  aspect-ratio: auto;
  min-height: 420px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.video-page__player-shell--twitter .twitter-tweet {
  margin: 0 !important;
}

.video-page__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* يوتيوب: احتياط عند حظر التضمين — غلاف + رابط المشاهدة على الموقع */
.video-page__yt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-page__yt-iframe-area {
  position: absolute;
  inset: 0;
}

.video-page__yt-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.35;
  background-size: cover;
  background-position: center;
  box-sizing: border-box;
  outline-offset: 4px;
}

.video-page__yt-poster.is-active {
  display: flex;
}

.video-page__yt-poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 14, 0.58);
}

.video-page__yt-poster-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 320px;
}

.video-page__yt-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.92);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.video-page__yt-poster:hover .video-page__yt-play,
.video-page__yt-poster:focus-visible .video-page__yt-play {
  transform: scale(1.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.video-page__yt-play svg {
  margin-inline-start: 4px;
}

.mobile-single-title.video-page__mobile-title {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  text-align: start;
}

.video-page__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.video-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #bfc3d4;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-chip--type {
  color: #0a0d12;
  background: linear-gradient(135deg, #39dbbf, #5a83ff);
  border: none;
}

.video-chip--league a {
  color: inherit;
  text-decoration: none;
}

.video-chip--league a:hover {
  text-decoration: underline;
}

.video-chip__lbl {
  font-weight: 600;
  opacity: 0.75;
}

/* بطاقة المباراة */
.video-match-card {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(57, 219, 191, 0.08), rgba(19, 21, 33, 0.92));
  border: 1px solid rgba(57, 219, 191, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.video-match-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #39dbbf;
}

.video-match-card__cta {
  font-size: 12px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  color: #0a0d12;
  background: #39dbbf;
  text-decoration: none;
  white-space: nowrap;
}

.video-match-card__cta:hover {
  filter: brightness(1.05);
  color: #0a0d12;
}

.video-match-card__meta {
  font-size: 13px;
  color: #9aa0b5;
  margin-bottom: 18px;
}

.video-match-card__meta .dot {
  margin: 0 6px;
  opacity: 0.5;
}

.video-match-card__board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.video-match-card__side {
  min-width: 0;
}

.video-match-card__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  text-decoration: none;
  color: #e8eaf4;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.35;
}

.video-match-card__team img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.video-match-card__score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-match-card__score .sep {
  opacity: 0.45;
  font-weight: 700;
  font-size: 28px;
}

/* لوحة «عن هذا المقطع»: يطغى على style.css القديم — خلفية مسطّحة بدون تدرج */
.video-details-wrap .video-seo-panel {
  margin-top: 20px;
  background: #191d2d !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  border-radius: 12px !important;
}

.video-details-wrap .video-seo-panel::before {
  display: none !important;
}

html.light:not(.dark) .video-details-wrap .video-seo-panel {
  background: #ffffff !important;
  border: 1px solid #e3e5f0 !important;
}

html.light:not(.dark) .video-details-wrap .video-seo-panel__title {
  color: #0e1019 !important;
}

html:not(.light) .video-details-wrap .video-seo-panel__title,
html.dark .video-details-wrap .video-seo-panel__title {
  color: #f2f4fb;
  text-shadow: none;
}

html:not(.light) .video-details-wrap .video-seo-panel__head,
html.dark .video-details-wrap .video-seo-panel__head {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

html:not(.light) .video-details-wrap .video-seo-panel__body .video-seo-article,
html.dark .video-details-wrap .video-seo-panel__body .video-seo-article {
  color: #c5cbd9 !important;
}

html:not(.light) .video-details-wrap .video-seo-article p,
html.dark .video-details-wrap .video-seo-article p {
  color: #c5cbd9 !important;
}

html:not(.light) .video-details-wrap .video-seo-article .video-seo-lead,
html.dark .video-details-wrap .video-seo-article .video-seo-lead {
  color: #e2e6f0 !important;
}

html:not(.light) .video-details-wrap .video-seo-article .video-seo-body,
html.dark .video-details-wrap .video-seo-article .video-seo-body {
  color: #c5cbd9 !important;
}

html:not(.light) .video-details-wrap .video-seo-article strong,
html.dark .video-details-wrap .video-seo-article strong {
  color: #ffffff !important;
}

html.light:not(.dark) .video-details-wrap .video-seo-panel__body .video-seo-article,
html.light:not(.dark) .video-details-wrap .video-seo-article p,
html.light:not(.dark) .video-details-wrap .video-seo-article .video-seo-lead,
html.light:not(.dark) .video-details-wrap .video-seo-article .video-seo-body {
  color: #3a4158 !important;
}

html.light:not(.dark) .video-details-wrap .video-seo-article strong {
  color: #0e1019 !important;
}

html.light:not(.dark) .video-details-wrap .video-seo-panel__head {
  border-bottom-color: #e3e5f0;
}

/* الشريط الجانبي: فيديوهات ذات صلة */
.video-page__aside {
  position: sticky;
  top: 88px;
}

.video-related {
  padding: 18px 18px 10px;
  border-radius: 18px;
  background: #131521;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.video-related__title {
  font-size: 15px;
  font-weight: 900;
  margin: 0 0 14px;
  color: #f2f4fb;
}

.video-related__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-related__item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  margin: -8px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.video-related__item:hover {
  background: rgba(57, 219, 191, 0.08);
}

.video-related__thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0a0c14;
}

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

.video-related__thumb svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  opacity: 0.85;
  pointer-events: none;
}

.video-related__text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: #d5d8e6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-related__item:hover .video-related__text {
  color: #39dbbf;
}

.video-page__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.video-page__fallback a {
  font-weight: 800;
  color: #39dbbf;
}

html.light:not(.dark) .video-related__title {
  color: #0a0d12;
}

html.light:not(.dark) .video-related {
  background: #fff;
  border-color: rgba(15, 20, 40, 0.08);
  box-shadow: 0 10px 30px rgba(15, 20, 40, 0.06);
}

html.light:not(.dark) .video-chip {
  background: #f0f2f8;
  border-color: rgba(15, 20, 40, 0.08);
  color: #3a4158;
}

html.light:not(.dark) .video-match-card {
  background: linear-gradient(145deg, rgba(57, 219, 191, 0.12), #ffffff);
  border-color: rgba(57, 219, 191, 0.22);
}

html.light:not(.dark) .video-match-card__team {
  color: #1a2133;
}

html.light:not(.dark) .video-match-card__score {
  color: #0a0d12;
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.08);
}

html.light:not(.dark) .video-related__text {
  color: #1a2133;
}

@media (max-width: 991px) {
  .video-page__aside {
    position: static;
    margin-top: 8px;
  }

  .video-match-card__board {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .video-match-card__score {
    order: -1;
    justify-self: center;
  }

  .video-match-card__side:first-of-type .video-match-card__team {
    flex-direction: row;
    justify-content: center;
    text-align: start;
  }

  .video-match-card__side:last-of-type .video-match-card__team {
    flex-direction: row-reverse;
    justify-content: center;
    text-align: start;
  }
}

@media (max-width: 575px) {
  .video-match-card__score {
    font-size: 26px;
  }

  .video-related__item {
    grid-template-columns: 96px 1fr;
  }
}
