/* Scope every rule to the existing legacy archive page. */
body.page-id-399 #post-399.external-div {
  background: #c4c2c2 !important;
  background-image: url('https://partow.tv/w/wp-content/uploads/2026/10/file_00000000954881f4a79fbc64770169ce.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: scroll !important;
  height: auto !important;
  min-height: 0 !important;
  padding: clamp(36px, 6vw, 90px) 6% !important;
  box-sizing: border-box;
  position: relative !important;
  border-bottom: 2px solid #bf102b;
  overflow: hidden;
}
body.page-id-399 #post-399.external-div::before,
body.page-id-399 #post-399.external-div::after,
body.page-id-399 #post-399 > .box-image-page { display: none !important; }
body.page-id-399 #post-399 > .box-text {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  width: 48% !important;
  height: auto !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: center;
  margin-right: 0 !important;
  margin-left: auto !important;
}
body.page-id-399 #post-399 > .box-text h2 {
  display: block !important;
  color: #232428 !important;
  text-shadow: 0 1px 8px rgba(255,255,255,.45);
  font-size: clamp(22px, 2.5vw, 30px) !important;
  line-height: 1.7 !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* The banner supplies the title; retain the archive's search and contents. */
body.page-id-399 .partow-legacy-index .pla-heading { display: none !important; }
@media (max-width: 767px) {
  body.page-id-399 #post-399.external-div { padding: 30px 12px !important;
    background-position: center !important; }
}

@media (max-width: 480px) {
 body.page-id-399 #post-399 > .box-text h2 {font-size: 19px !important;}
}

/* Category banners share the approved archive artwork. */
/* Scope every rule to the existing legacy archive page. */
body:is(.category,.date) .box-image-page {
  background: #c4c2c2 !important;
  background-image: url('https://partow.tv/w/wp-content/uploads/2026/10/file_00000000954881f4a79fbc64770169ce.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: scroll !important;
  height: auto !important;
  min-height: 0 !important;
  padding: clamp(36px, 6vw, 90px) 6% !important;
  box-sizing: border-box;
  position: relative !important;
  border-bottom: 2px solid #bf102b;
  overflow: hidden;
}
body:is(.category,.date) .box-image-page::before,
body:is(.category,.date) .box-image-page::after,
body:is(.category,.date) .box-image-page > .single-page-img { display: none !important; }
body:is(.category,.date) .box-image-page > .box-text {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  width: 48% !important;
  height: auto !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: center;
  margin-right: 0 !important;
  margin-left: auto !important;
}
body:is(.category,.date) .box-image-page > .box-text h2 {
  display: block !important;
  color: #232428 !important;
  text-shadow: 0 1px 8px rgba(255,255,255,.45);
  font-size: clamp(22px, 2.5vw, 30px) !important;
  line-height: 1.7 !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* The banner supplies the title; retain the archive's search and contents. */

@media (max-width: 767px) {
  body:is(.category,.date) .box-image-page { padding: 30px 12px !important;
    background-position: center !important; }
}

@media (max-width: 480px) {
 body:is(.category,.date) .box-image-page > .box-text h2 {font-size: 19px !important;}
}

body:is(.category,.date) .box-image-page .page-header {margin:0!important;padding:0!important;border:0!important;}

/* Single-post hero only: retain the actual player and its poster below. */
/* Scope every rule to the existing legacy archive page. */
body.single-post .external-div {
  background: #c4c2c2 !important;
  background-image: url('https://partow.tv/w/wp-content/uploads/2026/10/file_00000000954881f4a79fbc64770169ce.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: scroll !important;
  height: auto !important;
  min-height: 0 !important;
  padding: clamp(36px, 6vw, 90px) 6% !important;
  box-sizing: border-box;
  position: relative !important;
  border-bottom: 2px solid #bf102b;
  overflow: hidden;
}
body.single-post .external-div::before,
body.single-post .external-div::after,
body.single-post .external-div > .box-image-page { display: none !important; }
body.single-post .external-div > .box-text {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  width: 48% !important;
  height: auto !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: center;
  margin-right: 0 !important;
  margin-left: auto !important;
}
body.single-post .external-div > .box-text h2 {
  display: block !important;
  color: #232428 !important;
  text-shadow: 0 1px 8px rgba(255,255,255,.45);
  font-size: clamp(22px, 2.5vw, 30px) !important;
  line-height: 1.7 !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* The banner supplies the title; retain the archive's search and contents. */
body.page-id-399 .partow-legacy-index .pla-heading { display: none !important; }
@media (max-width: 767px) {
  body.single-post .external-div { padding: 30px 12px !important;
    background-position: center !important; }
}

@media (max-width: 480px) {
 body.single-post .external-div > .box-text h2 {font-size: 19px !important;}
}


/* Single Design already supplies title, category and date inside the player card. */
body.single-post #tp_content article > .box-info,
body.single-post #tp_content article > .box-info + hr {
  display: none !important;
}

/* Avoid duplicate theme sections when the custom video page is present. */
body.single-post:has(.ptvsd-shell) #tp_content .related-post-block,
body.single-post:has(.ptvsd-shell) #tp_content .my-5:has(> .related-post-block),
body.single-post:has(.ptvsd-shell) #tp_content .post-navigation,
body.single-post:has(.ptvsd-shell) #tp_content .post_category {
  display: none !important;
}

/* Keep banner titles in their own layer below the sticky site navigation. */
body:is(.category,.date) .box-image-page,
body.single-post .external-div,
body.page-id-399 #post-399.external-div {
  isolation: isolate;
  z-index: 0 !important;
  overflow: hidden !important;
}
body:is(.category,.date) .box-image-page > .box-text,
body.single-post .external-div > .box-text,
body.page-id-399 #post-399.external-div > .box-text {
  z-index: 1 !important;
}
body:is(.category,.date,.single-post,.page-id-399) header[role="banner"] {
  position: relative;
  isolation: isolate;
  z-index: 1000 !important;
}

/* The theme fixes the inner headerbox. Give its outer header a positioned
   stacking context so video controls and cards cannot paint over navigation. */
body:is(.category,.date,.single-post,.page-id-399) header[role="banner"] .headerbox {
  z-index: 1000 !important;
}

/* Align the native workers archive button with the other homepage rows. */
body.home #movie-time .container > .row:first-child > div:has(.book-tkt-btn) {
  text-align: left !important;
}
body.home #movie-time .book-tkt-btn {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* The video title already appears above; omit the redundant description panel. */
body.single-post .ptvsd-shell .ptvsd-description {
  display: none !important;
}
