/* Partow home video design 0.8 – sections, thumbnails, subtitles, metadata. */
body.home .ptv-hd-card {
  box-sizing:border-box!important;
  display:flex;
  flex-direction:column;
  direction:rtl;
  min-width:0;
  height:auto!important;
  max-height:none!important;
  overflow:visible;
  background:#1d1d1d!important;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  padding:0 0 13px!important;
  box-shadow:0 7px 26px rgba(0,0,0,.26);
  text-align:right;
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
body.home .ptv-hd-card:hover {
  border-color:rgba(226,13,35,.58);
  box-shadow:0 11px 32px rgba(0,0,0,.42);
}
body.home .ptv-hd-card img {
  display:block;
  width:100%;
  max-width:100%;
  object-fit:cover;
}
body.home .ptv-hd-card .ptv-hd-original-title {display:none!important;}
body.home .ptv-hd-card .ptv-hd-caption {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  align-content:flex-start;
  gap:5px 12px;
  padding:11px 13px 0;
  width:100%;
  box-sizing:border-box;
  min-width:0;
  direction:rtl;
  text-align:right;
  position:relative;
  z-index:1;
}
body.home .ptv-hd-card .ptv-hd-caption-title {
  color:#fafafa!important;
  font-size:clamp(13px,1.03vw,16px);
  font-weight:700;
  line-height:1.8;
  text-decoration:none!important;
  flex:0 1 auto;
  min-width:0;
  overflow-wrap:anywhere;
  white-space:normal!important;
  text-align:right;
}
body.home .ptv-hd-card .ptv-hd-caption-title:hover{color:#f13a4a!important;}
body.home .ptv-hd-card .ptv-hd-info {
  display:inline-flex;
  flex-wrap:wrap;
  gap:4px 10px;
  align-items:center;
  justify-content:flex-start;
  direction:rtl;
  color:#bbb;
  font-size:11px;
  line-height:1.8;
  flex:0 1 auto;
  max-width:100%;
}
body.home .ptv-hd-card .ptv-hd-info-item {display:inline-flex;align-items:center;gap:4px;white-space:nowrap;}
body.home .ptv-hd-card .ptv-hd-info-item + .ptv-hd-info-item:before {content:'|';color:rgba(255,255,255,.30);margin-inline-end:5px;}
body.home .ptv-hd-card .ptv-hd-info-item svg {width:14px;height:14px;flex:none;}
body.home .ptv-hd-card .ptv-hd-info-item a,
body.home .ptv-hd-card .ptv-hd-info-item span {font-size:inherit!important;color:inherit;text-decoration:none;}
body.home .ptv-hd-card .ptv-hd-info-item a:hover {color:#f13a4a;}
/* Original play overlay and its scripts remain in place. */
body.home .ptv-hd-card .ptv-play,
body.home .ptv-hd-card .play-button {z-index:2;}
/* Clear, consistent three-card grids only after a DOM-safe group check. */
body.home .ptv-hd-grid {
  display:grid!important;
  direction:rtl;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:start;
  gap:clamp(14px,2vw,25px)!important;
}
body.home .ptv-hd-grid > * {margin:0!important;min-width:0;max-width:100%!important;width:100%!important;}
body.home .ptv-hd-grid > .ptv-hd-extra-card {display:none!important;}
body.home .ptv-hd-section-title {
  color:#f8f8f8;
  font-weight:700;
  margin-bottom:15px;
  padding-bottom:11px;
  border-bottom:1px solid rgba(255,255,255,.16);
  position:relative;
}
body.home .ptv-hd-section-title:after {
  content:'';
  display:block;
  position:absolute;
  bottom:-2px;
  right:0;
  width:56px;
  height:3px;
  background:#e50924;
  border-radius:3px;
}
@media(max-width:900px){
  body.home .ptv-hd-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:600px){
  body.home .ptv-hd-grid {grid-template-columns:minmax(0,1fr)!important;}
  body.home .ptv-hd-card .ptv-hd-caption-title{font-size:15px;}
  body.home .ptv-hd-card .ptv-hd-caption{padding:11px 12px 0;}
}
@media(prefers-reduced-motion:reduce){body.home .ptv-hd-card{transition:none;}}

/* v0.6: compact only verified topic wrappers; deliberately exclude Latest Release and hero. */
body.home .ptv-hd-topic-section {
  min-height:0!important;
  height:auto!important;
  padding-bottom:0!important;
  margin-bottom:clamp(24px,3.2vw,42px)!important;
}
body.home .ptv-hd-topic-section .ptv-hd-topic-heading {
  margin-top:0!important;
  margin-bottom:clamp(12px,1.6vw,19px)!important;
}
body.home .ptv-hd-topic-section .ptv-hd-grid {
  min-height:0!important;
  height:auto!important;
  margin-top:0!important;
  margin-bottom:0!important;
  padding-bottom:0!important;
}
body.home .ptv-hd-topic-section .ptv-hd-card {
  min-height:0!important;
  height:auto!important;
  margin-bottom:0!important;
}
body.home .ptv-hd-card .ptv-hd-caption {gap:4px 10px;}
body.home .ptv-hd-card .ptv-hd-caption-title {overflow-wrap:break-word;word-break:normal;}
body.home .ptv-hd-card .ptv-hd-info {align-self:baseline;}
@media (max-width:700px) {
  body.home .ptv-hd-topic-section {margin-bottom:24px!important;}
  body.home .ptv-hd-card .ptv-hd-caption {gap:6px 8px;}
}

/* v0.7: Safe visual refinements scoped to verified TOPIC sections.
   Never address #latest-release, sliders, or the featured hero. */
body.home .ptv-hd-topic-section:not(#latest-release) {
  box-sizing:border-box;
  scroll-margin-top:24px;
}
body.home .ptv-hd-topic-section.ptv-hd-topic-single {
  margin-bottom:clamp(18px,2.3vw,28px)!important;
}
body.home .ptv-hd-topic-section .ptv-hd-grid > * {
  align-self:start;
  margin-block:0!important;
}
body.home .ptv-hd-topic-section .ptv-hd-card {
  justify-content:flex-start;
  align-self:start;
}
body.home .ptv-hd-topic-section .ptv-hd-card .ptv-hd-caption {
  align-items:baseline;
  padding-bottom:0;
}
/* Existing (real) play controls remain clickable and on top. This does not
   generate a fake play icon or add a new click handler. */
body.home .ptv-hd-card :is(.ptv-play,.ptv-play-button,.ptv-wall-play,.play-button,.video-play-button,.video-play-icon) {
  z-index:5;
}
@media(max-width:700px) {
  body.home .ptv-hd-topic-section.ptv-hd-topic-single{margin-bottom:20px!important;}
  body.home .ptv-hd-card .ptv-hd-caption-title{line-height:1.7;}
}

/* v0.8: uniform, roomy editorial cards in confirmed topic rows only.
   The approved Latest Release carousel and featured video receive no rules. */
body.home .ptv-hd-topic-section .ptv-hd-topic-grid {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  direction:rtl;
  align-items:start;
  gap:clamp(12px,1.45vw,20px)!important;
  margin-block:0!important;
  min-height:0!important;
}
body.home .ptv-hd-topic-section .ptv-hd-topic-grid > * {
  margin:0!important;
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
  align-self:start;
}
body.home .ptv-hd-topic-section .ptv-hd-card {
  min-height:0!important;
  border-radius:10px;
  /* Do not clip expanded video players or overlays. */
  overflow:visible;
}
body.home .ptv-hd-topic-section .ptv-hd-card img {
  aspect-ratio:16/9;
  border-radius:9px 9px 0 0;
  object-fit:cover;
  width:100%;
  height:auto;
}
body.home .ptv-hd-topic-section .ptv-hd-caption {
  padding:12px 14px 13px;
  gap:5px 12px;
}
body.home .ptv-hd-topic-section .ptv-hd-caption-title {
  font-size:clamp(14px,1.05vw,17px);
  line-height:1.65;
  font-weight:650;
}
body.home .ptv-hd-topic-section .ptv-hd-info {
  font-size:11.5px;
  color:#bfc1c5;
  gap:5px 10px;
}
body.home .ptv-hd-topic-section.ptv-hd-topic-single {margin-bottom:clamp(16px,1.7vw,24px)!important;}
body.home .ptv-hd-topic-section .ptv-hd-card:focus-within {
  border-color:rgba(228,32,49,.7);
  box-shadow:0 0 0 2px rgba(228,32,49,.2);
}
@media(max-width:800px){
 body.home .ptv-hd-topic-section .ptv-hd-topic-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:550px){
 body.home .ptv-hd-topic-section .ptv-hd-topic-grid {grid-template-columns:1fr!important;}
 body.home .ptv-hd-topic-section .ptv-hd-caption {padding:11px 12px 13px;}
 body.home .ptv-hd-topic-section .ptv-hd-caption-title {font-size:15px;}
}


/* v0.9 - mobile/tablet polish. Intentionally scoped to JS-verified
   topic cards; NO changes to hero, Video Wall or #latest-release carousel. */
@media (max-width: 900px) {
  body.home .ptv-hd-topic-section .ptv-hd-topic-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 15px !important;
  }
  body.home .ptv-hd-topic-section .ptv-hd-card .ptv-hd-caption {
    padding: 12px 13px !important;
  }
  body.home .ptv-hd-topic-section .ptv-hd-card .ptv-hd-caption-title {
    font-size: 15px !important;
    line-height: 1.75 !important;
  }
  body.home .ptv-hd-topic-section .ptv-hd-card .ptv-hd-info {
    font-size: 12px !important;
    line-height: 1.7 !important;
    gap: 5px 8px !important;
  }
  body.home .ptv-hd-topic-section .ptv-hd-topic-heading {
    margin-bottom: 13px !important;
  }
}
@media (max-width: 600px) {
  body.home .ptv-hd-topic-section .ptv-hd-topic-grid,
  body.home .ptv-hd-topic-section .ptv-hd-grid {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 16px !important;
  }
  body.home .ptv-hd-topic-section .ptv-hd-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 11px !important;
    margin: 0 !important;
  }
  body.home .ptv-hd-topic-section .ptv-hd-card .ptv-hd-caption {
    padding: 12px 13px 14px !important;
    gap: 6px 9px !important;
  }
  body.home .ptv-hd-topic-section .ptv-hd-card .ptv-hd-caption-title {
    font-size: 15px !important;
    line-height: 1.8 !important;
  }
  body.home .ptv-hd-topic-section .ptv-hd-card .ptv-hd-info {
    font-size: 12px !important;
    line-height: 1.85 !important;
    max-width: 100% !important;
  }
  body.home .ptv-hd-topic-section .ptv-hd-topic-heading {
    line-height: 1.6 !important;
  }
  body.home .ptv-hd-topic-section {
    margin-bottom: 23px !important;
    scroll-margin-top: 16px !important;
  }
  /* Keep original interactive play controls accessible to touch. */
  body.home .ptv-hd-topic-section .ptv-hd-card :is(.ptv-play,.ptv-play-button,.ptv-wall-play,.play-button,.video-play-button,.video-play-icon) {
    touch-action: manipulation;
  }
}

/* Version 0.9.1: demo views are clearly labelled, not real visits. */
body.home .ptv-hd-demo-label {font-size:9px;opacity:.7;line-height:1;margin-inline-start:2px;}

/* 0.9.2: stronger icon/eye in existing homepage topic cards only. */
body.home .ptv-hd-card .ptv-hd-info {
  color:#e0e0e4;
  font-size:12px;
}
body.home .ptv-hd-card .ptv-hd-info-item svg {
  width:17px; height:17px; stroke-width:2.15;
}
body.home .ptv-hd-card .ptv-hd-eye {
  font-size:15px; font-weight:650; gap:6px;
}
body.home .ptv-hd-card .ptv-hd-eye svg {
  width:21px; height:21px; stroke-width:2.25;
}
/* When Video Wall already owns the homepage card, add only the metadata chip. */
body.home .ptv-hd-native-views {
  display:inline-flex; align-items:center; vertical-align:middle;
  direction:rtl; gap:6px; margin-inline:5px;
  font-size:15px; font-weight:650; line-height:1.5;
  color:#636a75; white-space:nowrap;
}
body.home .ptv-hd-native-views svg {
  width:21px; height:21px; flex:none; stroke-width:2.2;
  color:#626b75;
}
body.home .ptv-hd-demo-label {
  display:inline; color:inherit; font-size:10px;
  font-weight:500; opacity:.85; margin-inline-start:3px;
}
body.home .ptv-hd-native-row svg {stroke-width:2.1;opacity:1;}

/* Compact visible information mark replacing the long demo label. */
.ptv-ad-demo-label, .ptv-hd-demo-label {font-size: 13px !important; opacity: .8; font-weight: 600; cursor: help; line-height: 1;}

/* 0.9.4 — Staging preview: eye + count only; clearer metadata. */
body.home .ptv-hd-native-views,
body.home .ptv-hd-card .ptv-hd-eye {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #414750 !important;
    opacity: 1 !important;
}
body.home .ptv-hd-native-views svg,
body.home .ptv-hd-card .ptv-hd-eye svg {
    color: #414750 !important;
    stroke-width: 2.45 !important;
    opacity: 1 !important;
}
body.home .ptv-hd-native-row svg,
body.home .ptv-hd-native-row .ptv-hd-info-item {
    color: #525962 !important;
    opacity: 1 !important;
}
