/* Video hover preview + native preview player patch.
   Scope: thumbnail hover previews and the video player only. */

.psc-video-card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.psc-video-card .psc-video-thumb,
.psc-video-card .psc-hover-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.psc-video-card .psc-video-thumb {
  transition: transform .26s ease, filter .26s ease;
}

.psc-video-card .psc-hover-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: none;
  background: transparent;
}

.psc-video-card.is-previewing .psc-hover-video {
  opacity: 1;
}

.psc-video-card.is-previewing .psc-video-thumb {
  opacity: 0;
}

.psc-video-player {
  background: #000 !important;
  position: relative !important;
  overflow: hidden !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
}

.psc-video-player > a[onclick] {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  z-index: 2;
}

.psc-video-player .psc-main-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  background: #000;
}

.psc-video-player #mainForm {
  position: relative;
  z-index: 3;
  min-height: 100%;
}


/* Production video-grid controls. Scope: new 241-item landing grid only. */
#psc-video-grid::after {
  content: "";
  display: table;
  clear: both;
}
.psc-load-more-wrap {
  clear: both;
  text-align: center;
  padding: 24px 0 38px;
}
#psc-load-more-videos {
  display: inline-block;
  border: 0;
  border-radius: 4px;
  background: #d9232e;
  color: #fff;
  font-weight: 700;
  padding: 12px 28px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .03em;
}
#psc-load-more-videos:hover,
#psc-load-more-videos:focus {
  opacity: .9;
}
#psc-video-count-status {
  margin-top: 10px;
  color: #aaa;
  font-size: 13px;
}
.psc-grid-item .recommended-grid-img {
  aspect-ratio: 16 / 9;
  background: #000;
}
.psc-grid-item .recommended-grid-img .ball {
  z-index: 4;
}


/* V2 requested card details: HD badge, favorite heart, duration, gradient line, and themed modals. */
.psc-thumb-shell { position: relative; overflow: hidden; border-radius: 10px; }
.psc-hd-badge {
  position: absolute; top: 10px; left: 12px; z-index: 6;
  background: #ff9800; color: #111; border-radius: 999px;
  padding: 5px 11px; font-weight: 800; font-size: 12px; letter-spacing: .04em;
  box-shadow: 0 2px 8px rgba(0,0,0,.32);
}
.psc-favorite-heart {
  position: absolute; top: 9px; right: 10px; z-index: 7;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.72);
  color: #fff; font-size: 25px; line-height: 32px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .16s ease, color .16s ease, background .16s ease;
}
.psc-favorite-heart:hover, .psc-favorite-heart:focus { transform: scale(1.05); background: rgba(0,0,0,.86); }
.psc-favorite-heart.is-active { color: #ff2d55; }
.psc-color-line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 8;
  background: linear-gradient(90deg, #ff8a00 0%, #ffb000 42%, #18c400 100%);
}
.psc-grid-item .time {
  z-index: 7; right: 10px; bottom: 10px; background: rgba(0,0,0,.78);
  border-radius: 999px; padding: 3px 9px;
}
.psc-card-info .views-info { color: #ddd !important; }
.psc-play-badge-link { z-index: 6; }

/* V3: no video fade-in animations. Thumbnail image stays visible until preview video has loaded. */

/* Responsive player overlay with visible green CTA. */
.psc-video-player .psc-player-hit {
  position: absolute; inset: 0; z-index: 2; border: 0; background: transparent; cursor: pointer;
}
.psc-video-player .psc-access-overlay {
  position: absolute !important; inset: 0; z-index: 9 !important; width: 100% !important; min-height: 100% !important;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.78) !important; padding: 18px;
}
.psc-video-player .psc-access-overlay[style*="block"] { display: flex !important; }
.psc-overlay-logo { position: absolute; left: 14px; bottom: 12px; max-width: 130px; opacity: .72; z-index: 2; }
.psc-overlay-link { display: block; width: min(720px, 94%); text-decoration: none !important; border: 0 !important; }
.psc-overlay-panel {
  position: relative; width: 100%; min-height: 300px; border: 1px solid rgba(255,255,255,.18);
  background: #d7d7d7 url('../images/registration-drop.png') center/cover no-repeat;
  box-shadow: 0 14px 30px rgba(0,0,0,.42); overflow: visible;
  padding: 26px 28px 86px;
}
.psc-overlay-topline { color: #111; font-size: 25px; font-weight: 900; text-transform: uppercase; text-align: center; line-height: 1.1; }
.psc-overlay-topline strong { color: #f00; }
.psc-overlay-body { display: grid; grid-template-columns: 1fr .9fr; gap: 24px; align-items: center; margin-top: 22px; }
.psc-overlay-gif { min-height: 168px; border: 2px solid #fff; background: url('../images/50.gif') center/cover no-repeat; }
.psc-overlay-age { color: #000; text-align: center; font-weight: 900; text-transform: uppercase; font-size: 31px; line-height: 1.05; }
.psc-overlay-age span { display: block; margin: 8px auto; background: #111; color: #fff; border: 5px solid #444; padding: 16px 0; font-size: 64px; box-shadow: inset 0 0 0 2px #fff; }
.psc-watch-now-button {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: min(560px, 86%); text-align: center; border-radius: 8px;
  background: linear-gradient(#a6ee36, #53b900); color: #fff; text-shadow: 0 2px 3px rgba(0,0,0,.7);
  font-weight: 900; font-size: clamp(18px, 4vw, 30px); text-transform: uppercase;
  padding: 13px 12px; box-shadow: 0 4px 0 #327900, 0 8px 16px rgba(0,0,0,.32);
}
@media (max-width: 640px) {
  .psc-video-player .psc-access-overlay { padding: 8px; }
  .psc-overlay-link { width: 98%; }
  .psc-overlay-panel { min-height: 235px; padding: 14px 12px 65px; }
  .psc-overlay-topline { font-size: 15px; }
  .psc-overlay-body { grid-template-columns: 1fr .8fr; gap: 10px; margin-top: 14px; }
  .psc-overlay-gif { min-height: 104px; }
  .psc-overlay-age { font-size: 16px; }
  .psc-overlay-age span { font-size: 38px; padding: 8px 0; border-width: 3px; }
  .psc-watch-now-button { bottom: 13px; font-size: 17px; padding: 10px 8px; }
  .psc-overlay-logo { max-width: 90px; }
}

/* Theme-tuned sign-in/sign-up Magnific popups. */
.mfp-content #small-dialog,
.mfp-content #small-dialog2,
.mfp-content #small-dialog3,
.mfp-content #small-dialog7,
.mfp-content #small-dialog8 {
  background: rgba(15, 22, 24, .96) !important;
  border: 1px solid rgba(255, 147, 35, .35);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  color: #f5f5f5 !important;
}
.mfp-content h3, .mfp-content h4, .mfp-content h5 { color: #ffb25f !important; }
.mfp-content p, .mfp-content .social-sits, .mfp-content .button-bottom p { color: #f4f4f4 !important; }
.mfp-content a { color: #22d226 !important; }
.mfp-content input[type="text"], .mfp-content input[type="password"], .mfp-content input.email {
  background: #fff !important; color: #222 !important; border: 2px solid rgba(255,147,35,.38) !important; border-radius: 10px !important;
}
.mfp-content .continue-button a, .mfp-content .facebook-button button, .mfp-content input[type="submit"] {
  background: linear-gradient(#22d226, #0a9c0d) !important; color: #fff !important; border: 0 !important; border-radius: 10px !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.45); font-weight: 800;
}

/* Shared styled content pages created for navigation targets. */
.psc-page-hero { padding: 34px 18px 22px; text-align: center; }
.psc-page-hero h1 { color: #fff; font-weight: 900; font-size: clamp(30px, 5vw, 58px); margin: 0; }
.psc-page-hero p { color: #d7d7d7; max-width: 760px; margin: 12px auto 0; font-size: 17px; }
.psc-page-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 20px auto 8px; }
.psc-page-chip { display: inline-block; padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff !important; border: 1px solid rgba(255,255,255,.17); text-decoration: none !important; font-weight: 800; }
.psc-page-chip:hover, .psc-page-chip.is-active { background: linear-gradient(90deg, #ff8a00, #20c816); color: #111 !important; }


/* V3 overlay correction: restore the original image-based conversion overlay and avoid an extra overlay-on-overlay panel. */
.psc-video-player .psc-player-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.psc-video-player #mainForm.psc-legacy-access-overlay {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  z-index: 20 !important;
  overflow: hidden !important;
  background-color: rgba(0, 0, 0, 0.72) !important;
}
.psc-video-player .psc-legacy-overlay-panel {
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}
.psc-video-player .psc-main-video {
  animation: none !important;
}
.psc-video-card .psc-hover-video {
  animation: none !important;
}


/* V4 critical player/conversion fixes. */
body.ux-next.psc-player-page .playerDiv.psc-video-player,
.psc-video-player.playerDiv {
  background: #000 !important;
  background-image: none !important;
  background-size: auto !important;
  position: relative !important;
}
.psc-video-player .psc-main-video {
  background: #000 !important;
  animation: none !important;
  opacity: 1 !important;
}
.psc-video-player #mainForm.psc-legacy-access-overlay {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  z-index: 30 !important;
  overflow: hidden !important;
  background-color: rgba(0, 0, 0, 0.74) !important;
}
.psc-video-player #mainForm.psc-legacy-access-overlay > a.psc-legacy-overlay-link {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  text-decoration: none !important;
}
.psc-video-player .psc-legacy-overlay-panel {
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  max-width: 92% !important;
  overflow: visible !important;
}
.psc-video-player .psc-overlay-preview-gif,
.psc-video-player .psc-legacy-overlay-panel div[style*="50.gif"] {
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}
.psc-video-player .submitButton,
.psc-video-player .psc-conversion-button {
  position: absolute !important;
  left: 50% !important;
  bottom: 24px !important;
  transform: translateX(-50%) !important;
  width: min(560px, 82%) !important;
  min-height: 48px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(#b5f238 0%, #79d70f 45%, #41ad00 100%) !important;
  background-image: linear-gradient(#b5f238 0%, #79d70f 45%, #41ad00 100%) !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  border-radius: 9px !important;
  box-shadow: 0 4px 0 #2f7800, 0 10px 18px rgba(0,0,0,.38) !important;
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: clamp(18px, 4vw, 31px) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: .01em !important;
  text-align: center !important;
  text-transform: uppercase !important;
  text-shadow: 0 2px 3px rgba(0,0,0,.72), 0 0 2px rgba(0,0,0,.8) !important;
  white-space: normal !important;
  cursor: pointer !important;
  z-index: 5 !important;
  overflow: visible !important;
}
.psc-video-player .psc-legacy-overlay-link:hover .psc-conversion-button,
.psc-video-player .psc-legacy-overlay-link:focus .psc-conversion-button {
  filter: brightness(1.08) !important;
  box-shadow: 0 4px 0 #2f7800, 0 12px 24px rgba(80,210,0,.42) !important;
}

/* Keep the mobile top area tight on the homepage only; do not affect player pages. */
@media (max-width: 767px) {
  body.ux-next.psc-home-page .top-grids > .banner:first-child {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
  }
  body.ux-next.psc-home-page .top-grids > br {
    display: none !important;
  }
  body.ux-next.psc-home-page .recommended-info {
    margin-top: 14px !important;
  }
  .psc-video-player .psc-legacy-overlay-panel {
    width: 94vw !important;
    height: min(58vw, 300px) !important;
    margin: clamp(10px, 4vw, 28px) auto !important;
  }
  .psc-video-player .psc-overlay-preview-gif,
  .psc-video-player .psc-legacy-overlay-panel div[style*="50.gif"] {
    left: 8% !important;
    top: 25% !important;
    width: 48% !important;
    height: 40% !important;
  }
  .psc-video-player .submitButton,
  .psc-video-player .psc-conversion-button {
    bottom: 8% !important;
    width: 74% !important;
    min-height: 38px !important;
    padding: 8px 10px !important;
    font-size: clamp(15px, 4vw, 20px) !important;
    border-radius: 7px !important;
  }
}


/* === Targeted Fixes: directory pages, load-more CTA, mobile spacing, and player landscape === */
#psc-load-more-videos[data-psc-exhausted="true"] {
  background: linear-gradient(#29d119, #0d9a05) !important;
}

body.ux-next .ux-directory-drawer {
  position: fixed;
  top: 76px;
  right: 14px;
  width: min(320px, calc(100vw - 28px));
  z-index: 10000;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(30,34,35,.98), rgba(12,13,14,.98));
  box-shadow: 0 24px 70px rgba(0,0,0,.62);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
body.ux-next.ux-directory-menu-open .ux-directory-drawer {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
body.ux-next .ux-directory-drawer a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
}
body.ux-next .ux-directory-drawer a:hover,
body.ux-next .ux-directory-drawer a:focus {
  background: linear-gradient(90deg, rgba(254,130,0,.34), rgba(53,189,0,.16));
}
body.ux-next .ux-directory-scrim {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
body.ux-next.ux-directory-menu-open .ux-directory-scrim {
  opacity: 1;
  pointer-events: auto;
}

/* Desktop directory pages: restore safe breathing room below the fixed orange header.
   Mobile tightening remains scoped inside the mobile media queries below. */
body.ux-next.psc-directory-page .psc-standalone-page {
  padding-top: 112px !important;
}
body.ux-next.psc-directory-page .psc-page-hero {
  padding-top: 34px !important;
  padding-bottom: 22px !important;
}
body.ux-next.psc-directory-page .psc-page-hero h1 {
  margin-top: 0 !important;
}
body.ux-next.psc-directory-page .main-grids,
body.ux-next.psc-directory-page .top-grids {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

@media (max-width: 767px) {
  body.ux-next.psc-home-page .main {
    padding-top: 132px !important;
  }
  body.ux-next.psc-home-page .main-grids,
  body.ux-next.psc-home-page .top-grids {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  body.ux-next.psc-home-page .top-grids > .banner:first-child {
    margin-top: 0 !important;
  }
  body.ux-next.psc-directory-page .psc-standalone-page {
    padding-top: 126px !important;
  }
  body.ux-next.psc-directory-page .psc-page-hero {
    padding-top: 12px !important;
    padding-bottom: 8px !important;
  }
  body.ux-next.psc-directory-page .psc-page-hero p {
    margin-top: 8px !important;
  }
  body.ux-next.psc-directory-page .psc-page-chips {
    margin-top: 12px !important;
    margin-bottom: 4px !important;
  }
  body.ux-next .ux-directory-drawer {
    top: 132px;
    left: 12px;
    right: 12px;
    width: auto;
  }
}

@media (max-width: 420px) {
  body.ux-next.psc-home-page .main {
    padding-top: 136px !important;
  }
  body.ux-next.psc-directory-page .psc-standalone-page {
    padding-top: 132px !important;
  }
  body.ux-next .ux-directory-drawer {
    top: 138px;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  body.ux-next.psc-player-page .navbar.navbar-inverse.navbar-fixed-top,
  body.ux-next.psc-player-page .sidebar {
    display: none !important;
  }
  body.ux-next.psc-player-page .main {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 8px !important;
  }
  body.ux-next.psc-player-page .single-main,
  body.ux-next.psc-player-page .show-top-grids,
  body.ux-next.psc-player-page .show-grid-left,
  body.ux-next.psc-player-page .show-grid-right,
  body.ux-next.psc-player-page .song-grid-right {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body.ux-next.psc-player-page .playerDiv.psc-video-player,
  body.ux-next.psc-player-page .playerDiv {
    width: min(100%, calc(100vw - 16px)) !important;
    height: min(56.25vw, calc(100vh - 18px)) !important;
    max-height: calc(100vh - 18px) !important;
    margin: 0 auto !important;
    border-radius: 10px !important;
    position: relative !important;
    overflow: hidden !important;
  }
  body.ux-next.psc-player-page .playBar,
  body.ux-next.psc-player-page .show-video-grid,
  body.ux-next.psc-player-page .published,
  body.ux-next.psc-player-page .all-comments,
  body.ux-next.psc-player-page .recommended,
  body.ux-next.psc-player-page .footer {
    display: none !important;
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  body.ux-next.psc-directory-page .psc-standalone-page {
    padding-top: 74px !important;
  }
  body.ux-next .ux-directory-drawer {
    top: 78px;
  }
}

/* Categories page: keep the page navigation simple and separate from category filters. */
body.ux-next.psc-directory-page .psc-category-chips {
  margin-top: 18px !important;
}
body.ux-next.psc-directory-page .psc-page-chips + .psc-category-chips {
  margin-top: 14px !important;
}

/* === Site-wide mobile landscape theater mode for PSC player pages ===
   Based on the approved /site/play-promo/ first test behavior.
   Scope: newer player pages only: /site/play-promo/1/ through /site/play-promo/507/.
   No outbound links, JS, media, or player source paths are changed. */
@media screen and (orientation: landscape) and (max-height: 520px) {
  html,
  body.ux-next.psc-player-page {
    overflow: hidden !important;
  }

  body.ux-next.psc-player-page .playerDiv.psc-video-player {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 2147483000 !important;
    overflow: hidden !important;
    background: #000 !important;
    background-position: center center !important;
    background-size: cover !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.ux-next.psc-player-page .playerDiv.psc-video-player .psc-main-video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  body.ux-next.psc-player-page .playerDiv.psc-video-player .psc-player-hit {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10 !important;
  }

  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm.psc-legacy-access-overlay {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: hidden !important;
    background-color: rgba(0, 0, 0, 0.72) !important;
    z-index: 30 !important;
  }

  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm.psc-legacy-access-overlay > img,
  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm.psc-legacy-access-overlay img[src*="video-logo"] {
    left: 8px !important;
    bottom: 8px !important;
    max-width: 18vw !important;
    height: auto !important;
    opacity: 0.7 !important;
  }

  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm.psc-legacy-access-overlay > a.psc-legacy-overlay-link {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    color: transparent !important;
    text-decoration: none !important;
  }

  body.ux-next.psc-player-page .playerDiv.psc-video-player .psc-legacy-overlay-panel {
    position: relative !important;
    width: min(76vw, calc((100dvh - 16px) * 1.6725), 669px) !important;
    max-width: calc(100vw - 16px) !important;
    height: auto !important;
    max-height: calc(100dvh - 16px) !important;
    aspect-ratio: 669 / 400 !important;
    margin: 0 auto !important;
    overflow: visible !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
  }

  body.ux-next.psc-player-page .playerDiv.psc-video-player .psc-overlay-preview-gif,
  body.ux-next.psc-player-page .playerDiv.psc-video-player .psc-legacy-overlay-panel div[style*="50.gif"] {
    left: 9.7% !important;
    top: 23.75% !important;
    width: 45.15% !important;
    height: 47.5% !important;
    background-position: center center !important;
    background-size: cover !important;
  }

  body.ux-next.psc-player-page .playerDiv.psc-video-player .submitButton.psc-conversion-button,
  body.ux-next.psc-player-page .playerDiv.psc-video-player .psc-conversion-button {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 7% !important;
    width: 70% !important;
    max-width: 560px !important;
    min-height: 40px !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1002 !important;
  }
}

/* === PSC player overlay replacement: use legacy sprite overlay structure ===
   Scope: /site/play-promo/1/ through /site/play-promo/507/ only.
   Purpose: make PSC player overlays visually match the working legacy overlays on
   /site/play-promo/ and /site/thot/#/ while preserving each page's existing href. */
body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  z-index: 30 !important;
  overflow: hidden !important;
  background-color: rgba(0, 0, 0, 0.72) !important;
}

body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm > img,
body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm img[src*="video-logo"] {
  position: absolute !important;
  left: 10px !important;
  bottom: 10px !important;
  opacity: 0.7 !important;
  z-index: 2 !important;
}

body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm > a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  color: transparent !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm > a > div {
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  max-width: 92% !important;
  overflow: visible !important;
}

body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm div[style*="50.gif"] {
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm .submitButton:not(.psc-conversion-button) {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 8% !important;
  width: min(464px, 72%) !important;
  max-width: 464px !important;
  height: auto !important;
  aspect-ratio: 464 / 47 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateX(-50%) !important;
  display: block !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background-image: url("../images/submitButton.png") !important;
  background-repeat: no-repeat !important;
  background-position: top center !important;
  background-size: 100% 200% !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px !important;
  text-shadow: none !important;
  cursor: pointer !important;
  z-index: 1001 !important;
  -webkit-tap-highlight-color: transparent !important;
}

body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm a:hover .submitButton:not(.psc-conversion-button),
body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm a:focus .submitButton:not(.psc-conversion-button),
body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm a:active .submitButton:not(.psc-conversion-button) {
  background-position: bottom center !important;
}

@media (max-width: 767px) {
  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm > a > div {
    width: 94vw !important;
    height: min(58vw, 300px) !important;
    margin: clamp(10px, 4vw, 28px) auto !important;
  }

  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm div[style*="50.gif"] {
    left: 8% !important;
    top: 25% !important;
    width: 48% !important;
    height: 40% !important;
  }

  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm .submitButton:not(.psc-conversion-button) {
    width: 72% !important;
    max-width: 464px !important;
    bottom: 8% !important;
  }
}

/* Match the approved legacy landscape theater behavior for PSC pages now that
   they use the same legacy sprite overlay structure. */
@media screen and (orientation: landscape) and (max-height: 520px) {
  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm > a {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    color: transparent !important;
    text-decoration: none !important;
  }

  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm > a > div {
    position: relative !important;
    width: min(76vw, calc((100dvh - 16px) * 1.6725), 669px) !important;
    max-width: calc(100vw - 16px) !important;
    height: auto !important;
    max-height: calc(100dvh - 16px) !important;
    aspect-ratio: 669 / 400 !important;
    margin: 0 auto !important;
    overflow: visible !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
  }

  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm > img,
  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm img[src*="video-logo"] {
    left: 8px !important;
    bottom: 8px !important;
    max-width: 18vw !important;
    height: auto !important;
    opacity: 0.7 !important;
  }

  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm div[style*="50.gif"] {
    left: 9.7% !important;
    top: 23.75% !important;
    width: 45.15% !important;
    height: 47.5% !important;
    background-position: center center !important;
    background-size: cover !important;
  }

  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm .submitButton:not(.psc-conversion-button) {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 7% !important;
    width: 70% !important;
    max-width: 464px !important;
    height: auto !important;
    aspect-ratio: 464 / 47 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateX(-50%) !important;
    display: block !important;
    overflow: hidden !important;
    background-image: url("../images/submitButton.png") !important;
    background-repeat: no-repeat !important;
    background-position: top center !important;
    background-size: 100% 200% !important;
    border: 0 !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
    text-shadow: none !important;
    z-index: 1002 !important;
  }
}

/* === PSC legacy-overlay correction: restore sprite CTA + match legacy landscape theater ===
   Scope: newer player pages only after PSC-to-legacy overlay replacement:
          /site/play-promo/1/ through /site/play-promo/507/
   Purpose:
   - Force the legacy submitButton sprite to render with its built-in white text.
   - Stop earlier PSC gradient/text button styles from overriding the sprite.
   - Make landscape overlay sizing match the working legacy /site/play-promo/ and /site/thot/#/ behavior.
   Does not alter hrefs, video paths, JS, data, thumbnails, or media. */
body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm .submitButton:not(.psc-conversion-button),
body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm > a .submitButton:not(.psc-conversion-button) {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 8% !important;
  width: min(464px, 72%) !important;
  max-width: 464px !important;
  height: auto !important;
  aspect-ratio: 464 / 47 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateX(-50%) !important;
  display: block !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: transparent url("../images/submitButton.png") no-repeat top center / 100% 200% !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px !important;
  text-shadow: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  z-index: 1002 !important;
  -webkit-tap-highlight-color: transparent !important;
}

body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm a:hover .submitButton:not(.psc-conversion-button),
body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm a:focus .submitButton:not(.psc-conversion-button),
body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm a:active .submitButton:not(.psc-conversion-button) {
  background: transparent url("../images/submitButton.png") no-repeat bottom center / 100% 200% !important;
}

@media screen and (orientation: landscape) and (max-height: 520px) {
  body.ux-next.psc-player-page .playerDiv.psc-video-player {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 2147483000 !important;
    overflow: hidden !important;
    background: #000 !important;
    background-position: center center !important;
    background-size: cover !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.ux-next.psc-player-page .playerDiv.psc-video-player .psc-main-video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background-color: rgba(0, 0, 0, 0.72) !important;
    z-index: 30 !important;
  }

  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm > img,
  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm img[src*="video-logo"] {
    position: absolute !important;
    left: 8px !important;
    bottom: 8px !important;
    max-width: 18vw !important;
    height: auto !important;
    opacity: 0.7 !important;
    z-index: 2 !important;
  }

  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm > a {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    color: transparent !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm > a > div,
  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm > div {
    position: relative !important;
    width: min(76vw, calc((100dvh - 16px) * 1.6725), 669px) !important;
    max-width: calc(100vw - 16px) !important;
    height: auto !important;
    max-height: calc(100dvh - 16px) !important;
    aspect-ratio: 669 / 400 !important;
    margin: 0 auto !important;
    overflow: visible !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
  }

  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm > a > div > div[style*="50.gif"],
  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm div[style*="50.gif"] {
    position: absolute !important;
    left: 9.7% !important;
    top: 23.75% !important;
    width: 45.15% !important;
    height: 47.5% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
  }

  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm .submitButton:not(.psc-conversion-button),
  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm > a .submitButton:not(.psc-conversion-button) {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 7% !important;
    width: 70% !important;
    max-width: 464px !important;
    height: auto !important;
    aspect-ratio: 464 / 47 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateX(-50%) !important;
    display: block !important;
    overflow: hidden !important;
    background: transparent url("../images/submitButton.png") no-repeat top center / 100% 200% !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
    text-shadow: none !important;
    z-index: 1002 !important;
  }

  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm a:hover .submitButton:not(.psc-conversion-button),
  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm a:focus .submitButton:not(.psc-conversion-button),
  body.ux-next.psc-player-page .playerDiv.psc-video-player #mainForm a:active .submitButton:not(.psc-conversion-button) {
    background: transparent url("../images/submitButton.png") no-repeat bottom center / 100% 200% !important;
  }
}

/* THOTIANAS MOBILE TOP GAP CLEANUP - homepage + PSC player pages
   Scope: mobile/coarse-pointer devices, including mobile "desktop site" mode.
   Removes top banner/spacer gaps only; no overlay/button/link/player behavior is changed. */
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  body.ux-next.psc-home-page .top-grids > .banner:first-child {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  body.ux-next.psc-home-page .top-grids > br {
    display: none !important;
  }

  body.ux-next.psc-home-page .main-grids,
  body.ux-next.psc-home-page .top-grids {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.ux-next.psc-home-page .ux-home-dashboard {
    margin-top: 10px !important;
  }

  body.ux-next.psc-player-page .top-grids > .banner:first-child {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  body.ux-next.psc-player-page .top-grids > .banner:first-child + .banner {
    margin-top: 0 !important;
  }

  body.ux-next.psc-player-page .main-grids,
  body.ux-next.psc-player-page .top-grids {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* THOTIANAS MOBILE MAIN TOP OFFSET CORRECTION - homepage + PSC player pages
   Scope: mobile and coarse-pointer devices, including mobile "desktop site" mode.
   This directly overrides the remaining .main top padding gap without changing
   overlays, buttons, links, video sources, or media. */
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  body.ux-next.psc-home-page .main,
  body.ux-next.psc-player-page .main {
    padding-top: 16px !important;
  }
}

@media (max-width: 420px), (hover: none) and (pointer: coarse) {
  body.ux-next.psc-home-page .main,
  body.ux-next.psc-player-page .main {
    padding-top: 16px !important;
  }
}

/* THOTIANAS MOBILE LANDSCAPE DIRECTORY SPACING FIX - 2026-06-27
   Scope: directory/home pages on phones/tablets in landscape only.
   Keeps the compact landscape header from covering the page content. */
@media screen and (orientation: landscape) and (max-height: 520px) and (hover: none) and (pointer: coarse) {
  body.ux-next.psc-directory-page .psc-standalone-page {
    padding-top: 96px !important;
  }

  body.ux-next.psc-directory-page .psc-page-hero {
    padding-top: 10px !important;
    padding-bottom: 8px !important;
  }

  body.ux-next.psc-home-page .main {
    padding-top: 102px !important;
  }
}
