
/* =========================================
   PJ DHAMAKA — CINEFREAK-INSPIRED THEME
   Black + Dark Orange
   Existing movie JavaScript preserved
========================================= */

:root {
  --pj-bg: #101010;
  --pj-surface: #181818;
  --pj-card: #202020;
  --pj-orange: #ff6a00;
  --pj-orange-light: #ff8a32;
  --pj-text: #f5f5f5;
  --pj-muted: #a5a5a5;
  --pj-border: rgba(255,255,255,.09);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body.pj-dhamaka {
  background: var(--pj-bg);
  color: var(--pj-text);
  font-family: Arial, Helvetica, sans-serif;
}

.pj-dhamaka a {
  transition: color .2s ease, background .2s ease,
              border-color .2s ease, transform .2s ease;
}

.pj-dhamaka a:hover {
  color: var(--pj-orange-light);
}

/* HEADER */

.pj-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 76px;
  padding: 14px 4%;
  background: rgba(15,15,15,.97);
  border-bottom: 1px solid var(--pj-border);
  backdrop-filter: blur(14px);
}

.pj-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  text-decoration: none;
}

.pj-logo > span:last-child > span {
  color: var(--pj-orange);
}

.pj-logo .logo-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 10px;
  color: #fff;
  background: var(--pj-orange);
  font-size: 19px;
}

.pj-header .navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.pj-header .navbar a {
  padding: 8px 0;
  color: #d4d4d4;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.pj-header .navbar a:hover,
.pj-header .navbar a.active {
  color: var(--pj-orange);
}

.pj-header .navbar a.active {
  border-bottom: 2px solid var(--pj-orange);
}

.pj-header .header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pj-header .search-box {
  display: flex;
  overflow: hidden;
  width: 230px;
  border: 1px solid #363636;
  border-radius: 9px;
  background: #202020;
}

.pj-header .search-box input {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.pj-header .search-box button {
  min-width: 43px;
  border: 0;
  color: #fff;
  background: var(--pj-orange);
  cursor: pointer;
}

.pj-header .login-btn {
  padding: 11px 14px;
  border: 1px solid #383838;
  border-radius: 9px;
  color: #fff;
  background: #222;
  cursor: pointer;
}

/* HERO — COMPACT MOVIE WEBSITE LAYOUT */

.pj-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 28px;
  width: 92%;
  max-width: 1500px;
  min-height: 370px;
  margin: 28px auto 18px;
  padding: 36px;
  overflow: hidden;
  border: 1px solid rgba(255,106,0,.2);
  border-radius: 15px;
  background:
    radial-gradient(ellipse at 85% 80%,
      rgba(255,106,0,.19), transparent 45%),
    linear-gradient(120deg, #202020, #141414 70%);
}

.pj-hero-content {
  position: relative;
  z-index: 2;
}

.pj-eyebrow,
.pj-section-kicker,
.pj-support-label {
  color: var(--pj-orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.pj-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--pj-orange);
  box-shadow: 0 0 12px rgba(255,106,0,.65);
}

.pj-hero h1 {
  margin: 18px 0 14px;
  color: #fff;
  font-size: clamp(32px, 4vw, 57px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.pj-hero h1 span {
  color: var(--pj-orange);
}

.pj-hero-content > p {
  max-width: 530px;
  color: #bcbcbc;
  font-size: 14px;
  line-height: 1.8;
}

.pj-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.pj-hero-actions a,
.pj-telegram-btn,
.pj-adult-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 17px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.pj-hero-actions .browse-btn,
.pj-telegram-btn,
.pj-adult-btn {
  color: #fff;
  background: var(--pj-orange);
}

.pj-hero-actions .browse-btn:hover,
.pj-telegram-btn:hover,
.pj-adult-btn:hover {
  color: #fff;
  background: #e65f00;
  transform: translateY(-2px);
}

.pj-hero-actions .pj-secondary-btn {
  border: 1px solid #484848;
  color: #eee;
  background: #242424;
}

.pj-hero-note {
  margin-top: 22px;
  color: #aaa;
  font-size: 12px;
}

/* FEATURED MOVIES */

.pj-featured {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  min-width: 0;
}

/* Style existing generated movie cards without changing JS. */

.pj-featured > *,
#latestMovies > * {
  min-width: 0;
}

.pj-featured img,
#latestMovies img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}

.pj-featured > * {
  overflow: hidden;
  border: 1px solid #393939;
  border-radius: 10px;
  background: #1b1b1b;
}

.pj-featured > *:hover,
#latestMovies > *:hover {
  border-color: var(--pj-orange);
  transform: translateY(-3px);
}

/* SLIDER INDICATORS */

.pj-slider-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 0 auto 30px;
}

.pj-slider-dots span {
  width: 7px;
  height: 7px;
  border-radius: 20px;
  background: #505050;
}

.pj-slider-dots span.active {
  width: 23px;
  background: var(--pj-orange);
}

/* TELEGRAM SUPPORT */

.pj-support {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 92%;
  max-width: 1500px;
  margin: 25px auto 42px;
  padding: 23px;
  border: 1px solid rgba(255,106,0,.23);
  border-radius: 12px;
  background: linear-gradient(110deg, #211b16, #191919 70%);
}

.pj-support-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  color: #fff;
  background: var(--pj-orange);
  font-size: 25px;
}

.pj-support-copy {
  flex: 1;
  min-width: 0;
}

.pj-support-copy h2 {
  margin: 7px 0;
  color: #fff;
  font-size: 19px;
}

.pj-support-copy p {
  color: #aaa;
  font-size: 13px;
  line-height: 1.7;
}

/* GENERAL SECTIONS */

.pj-section,
.pj-platform-section {
  width: 92%;
  max-width: 1500px;
  margin: 0 auto 42px;
}

.pj-section .section-title,
.pj-platform-section .section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.pj-section .section-title h2,
.pj-platform-section .section-title h2 {
  margin-top: 7px;
  color: #fff;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
}

.pj-section .view-all {
  flex-shrink: 0;
  color: var(--pj-orange);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.pj-small-label {
  color: #999;
  font-size: 12px;
}

/* CATEGORIES */

.pj-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pj-categories .category {
  padding: 12px 17px;
  border: 1px solid #353535;
  border-radius: 7px;
  color: #ddd;
  background: #1b1b1b;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.pj-categories .category:hover,
.pj-categories .category.active {
  border-color: var(--pj-orange);
  color: #fff;
  background: rgba(255,106,0,.13);
}

/* PLATFORM STRIP */

.pj-platform-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.pj-platform {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  min-height: 105px;
  padding: 14px 8px;
  border: 1px solid #333;
  border-radius: 10px;
  color: #eee;
  background: #1b1b1b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
}

.pj-platform:hover {
  border-color: var(--pj-orange);
  background: #26211c;
  transform: translateY(-3px);
}

.pj-platform-mark {
  color: var(--pj-orange);
  font-size: 25px;
  font-weight: 900;
}

.pj-platform-note {
  margin-top: 12px;
  color: #777;
  font-size: 11px;
  line-height: 1.6;
}

/* LATEST MOVIES — COMPACT GRID */

#latestMovies.movie-grid,
.pj-section .movie-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 17px 13px;
}

#latestMovies > *,
.pj-section .movie-grid > * {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #303030;
  border-radius: 8px;
  background: var(--pj-surface);
  transition: border-color .2s ease, transform .2s ease;
}

#latestMovies > *:hover,
.pj-section .movie-grid > *:hover {
  border-color: var(--pj-orange);
}

#latestMovies h3,
#latestMovies h4,
#latestMovies .movie-title,
.pj-featured h3,
.pj-featured h4,
.pj-featured .movie-title {
  color: #f5f5f5;
}

#latestMovies p,
.pj-featured p {
  color: #aaa;
}

/* AGE-RESTRICTED BANNER */

.pj-adult-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 92%;
  max-width: 1500px;
  margin: 0 auto 42px;
  padding: 23px;
  border: 1px solid #383838;
  border-radius: 12px;
  background: #191919;
}

.pj-adult-badge {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 57px;
  height: 57px;
  border: 2px solid var(--pj-orange);
  border-radius: 50%;
  color: var(--pj-orange);
  font-size: 19px;
  font-weight: 900;
}

.pj-adult-copy {
  flex: 1;
}

.pj-adult-copy h2 {
  margin: 5px 0;
  color: #fff;
  font-size: 21px;
}

.pj-adult-copy p {
  color: #999;
  font-size: 12px;
  line-height: 1.6;
}

/* FEATURES */

.pj-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 92%;
  max-width: 1500px;
  margin: 0 auto 45px;
}

.pj-features .feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 19px 15px;
  border: 1px solid #303030;
  border-radius: 9px;
  background: #191919;
}

.pj-features .feature-icon {
  font-size: 23px;
}

.pj-features h3 {
  margin-bottom: 7px;
  color: #fff;
  font-size: 14px;
}

.pj-features p {
  color: #999;
  font-size: 12px;
  line-height: 1.6;
}

/* FOOTER */

.pj-footer {
  padding: 30px 4% 20px;
  border-top: 1px solid #303030;
  background: #0b0b0b;
}

.pj-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 23px;
}

.pj-footer-top > p {
  color: #999;
  font-size: 13px;
}

.pj-footer-telegram {
  color: var(--pj-orange);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.pj-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid #292929;
}

.pj-footer-links a {
  color: #aaa;
  font-size: 12px;
  text-decoration: none;
}

.pj-footer-links a:hover {
  color: var(--pj-orange);
}

.pj-footer .copyright-disclaimer {
  padding-top: 16px;
  border-top: 1px solid #292929;
  color: #777;
  font-size: 11px;
  line-height: 1.8;
}

/* RESPONSIVE TABLET */

@media (max-width: 1100px) {
  .pj-header {
    flex-wrap: wrap;
    gap: 13px 20px;
  }

  .pj-header .navbar {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 19px;
  }

  .pj-hero {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .pj-featured {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  #latestMovies.movie-grid,
  .pj-section .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pj-platform-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pj-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* RESPONSIVE PHONE */

@media (max-width: 600px) {
  .pj-header {
    position: relative;
    padding: 13px 4%;
  }

  .pj-logo {
    font-size: 20px;
  }

  .pj-header .header-right {
    width: 100%;
  }

  .pj-header .search-box {
    flex: 1;
    width: auto;
  }

  .pj-header .navbar {
    gap: 10px 16px;
  }

  .pj-header .navbar a {
    font-size: 12px;
  }

  .pj-hero {
    width: 94%;
    min-height: 0;
    margin-top: 16px;
    padding: 23px 17px;
    gap: 24px;
  }

  .pj-hero h1 {
    font-size: clamp(31px, 9vw, 43px);
    letter-spacing: -1px;
  }

  .pj-hero-content > p {
    font-size: 13px;
  }

  .pj-featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .pj-support {
    align-items: flex-start;
    flex-wrap: wrap;
    width: 94%;
    padding: 17px;
  }

  .pj-support-copy {
    flex-basis: calc(100% - 72px);
  }

  .pj-support-copy h2 {
    font-size: 16px;
  }

  .pj-support-copy p {
    font-size: 12px;
  }

  .pj-telegram-btn {
    margin-left: 0;
  }

  .pj-section,
  .pj-platform-section {
    width: 94%;
    margin-bottom: 32px;
  }

  .pj-section .section-title h2,
  .pj-platform-section .section-title h2 {
    font-size: 22px;
  }

  .pj-categories .category {
    padding: 10px 12px;
    font-size: 12px;
  }

  #latestMovies.movie-grid,
  .pj-section .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 9px;
  }

  .pj-platform-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pj-adult-banner {
    align-items: flex-start;
    flex-wrap: wrap;
    width: 94%;
    padding: 17px;
  }

  .pj-adult-copy {
    flex-basis: calc(100% - 80px);
  }

  .pj-adult-copy h2 {
    font-size: 18px;
  }

  .pj-features {
    grid-template-columns: 1fr;
    width: 94%;
  }

  .pj-footer-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .pj-footer-links {
    gap: 13px;
  }
}

/* =========================================
   PJ DHAMAKA — HOMEPAGE SLIDER OVERRIDES
   Append at the END of pjdhamaka.css
========================================= */

/* Quick links */
.pj-quick-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 92%;
  max-width: 1500px;
  margin: 20px auto 26px;
}

.pj-quick-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 106, 0, .28);
  border-radius: 8px;
  color: #eee;
  background: #1a1a1a;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.pj-quick-links a:hover {
  border-color: var(--pj-orange);
  color: #fff;
  background: rgba(255, 106, 0, .12);
  transform: translateY(-2px);
}

/* Single featured movie */
.pj-featured {
  display: block;
  position: relative;
  min-width: 0;
}

.pj-featured .featured-card {
  display: none;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 106, 0, .25);
  border-radius: 13px;
  background: #181818;
  animation: pjFeaturedEnter .45s ease both;
}

.pj-featured .featured-card.active {
  display: block;
}

.pj-featured .featured-link {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  min-height: 300px;
  color: #fff;
  text-decoration: none;
}

.pj-featured .featured-image {
  position: relative;
  min-width: 0;
  min-height: 300px;
  overflow: hidden;
  background: #101010;
}

.pj-featured .featured-image img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center 25%;
  transition: transform .5s ease;
}

.pj-featured .featured-card:hover .featured-image img {
  transform: scale(1.035);
}

.pj-featured .featured-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, #181818 100%),
              linear-gradient(0deg, rgba(0,0,0,.25), transparent 55%);
  pointer-events: none;
}

.pj-featured .featured-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 13px;
  padding: clamp(20px, 3vw, 38px);
}

.pj-featured .featured-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 5px;
  color: #fff;
  background: var(--pj-orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.pj-featured .featured-content h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(23px, 3vw, 39px);
  font-weight: 900;
  line-height: 1.15;
}

.pj-featured .featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 15px;
  color: #c0c0c0;
  font-size: 12px;
}

.pj-featured .featured-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,106,0,.88);
  transform: translate(-50%, -50%);
}

@keyframes pjFeaturedEnter {
  from { opacity: .35; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Slider dots become clickable-looking indicators */
.pj-slider-dots {
  align-items: center;
  min-height: 18px;
  margin-top: 13px;
}

.pj-slider-dots span {
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.pj-slider-dots span.active {
  width: 25px;
  background: var(--pj-orange);
}

/* OTT platform continuous strip.
   HTML should wrap .pj-platform-track in .pj-platform-viewport. */
.pj-platform-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(
    90deg, transparent, #000 4%, #000 96%, transparent
  );
  mask-image: linear-gradient(
    90deg, transparent, #000 4%, #000 96%, transparent
  );
}

.pj-platform-track {
  display: flex;
  width: max-content;
  gap: 13px;
  animation: pjPlatformMarquee 48s linear infinite;
  will-change: transform;
}

.pj-platform-track:hover {
  animation-play-state: paused;
}

.pj-platform-track .pj-platform {
  flex: 0 0 150px;
  min-height: 100px;
}

@keyframes pjPlatformMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Latest movie cards */
#latestMovies.movie-grid {
  align-items: start;
}

#latestMovies .movie-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #111;
}

#latestMovies .movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#latestMovies .movie-info {
  padding: 10px;
}

#latestMovies .movie-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  line-height: 1.45;
}

#latestMovies .movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  color: #aaa;
  font-size: 10px;
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pj-featured .featured-card {
    animation: none;
  }

  .pj-platform-track {
    animation: none;
  }

  .pj-dhamaka *,
  .pj-dhamaka *::before,
  .pj-dhamaka *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Tablet and mobile */
@media (max-width: 760px) {
  .pj-quick-links {
    width: 94%;
    gap: 8px;
  }

  .pj-quick-links a {
    padding: 10px 11px;
    font-size: 11px;
  }

  .pj-featured .featured-link {
    grid-template-columns: 1fr;
  }

  .pj-featured .featured-image,
  .pj-featured .featured-image img {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .pj-featured .featured-image-overlay {
    background: linear-gradient(0deg, #181818 0%, transparent 55%);
  }

  .pj-featured .featured-content {
    gap: 10px;
    padding: 17px;
  }

  .pj-featured .featured-content h3 {
    font-size: 24px;
  }

  .pj-platform-track .pj-platform {
    flex-basis: 125px;
  }

  #latestMovies.movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  #latestMovies.movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pj-slider-dots .pj-featured-dot {
  appearance: none;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #505050;
  cursor: pointer;
}

.pj-slider-dots .pj-featured-dot.active {
  width: 25px;
  background: var(--pj-orange);
}

.pj-featured .pj-featured-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 7px;
  color: #fff;
  background: var(--pj-orange);
  font-size: 12px;
  font-weight: 800;
}

/* PJ Dhamaka: Fix overly dark featured movie sides */
.pj-featured .featured-card {
  position: relative;
  overflow: hidden;
  background: #181818;
}

.pj-featured .featured-image {
  position: relative;
  overflow: hidden;
}

.pj-featured .featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: brightness(1);
}

/* Reduce the dark overlay */
.pj-featured .featured-image-overlay {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.12) 45%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

/* Keep the featured text readable */
.pj-featured .featured-content {
  background: linear-gradient(
    90deg,
    rgba(16, 16, 16, 0.05),
    rgba(16, 16, 16, 0.35)
  );
}

/* PJ Dhamaka — Show the FULL featured movie poster */
.pj-featured .featured-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #181818;
  border-radius: 16px;
}

.pj-featured .featured-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  min-height: 420px;
  text-decoration: none;
}

.pj-featured .featured-image {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: #181818;
}

.pj-featured .featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  filter: none;
}

/* Remove the dark overlay over the poster */
.pj-featured .featured-image-overlay {
  background: transparent !important;
}

.pj-featured .featured-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 28px;
  background: #181818;
  min-width: 0;
}

.pj-featured .featured-content h3 {
  color: #fff;
  overflow-wrap: anywhere;
}

.pj-featured .featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 650px) {
  .pj-featured .featured-link {
    grid-template-columns: 1fr;
  }

  .pj-featured .featured-image {
    height: 380px;
  }

  .pj-featured .featured-content {
    padding: 20px;
  }
}

/* ===== PJ DHAMAKA: FULL PREMIUM ANIMATED BORDER ===== */

.pj-featured .featured-card {
  position: relative;
  isolation: isolate;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 18px;
  padding: 3px;
  background: linear-gradient(
    135deg,
    #ff6a00,
    #342016,
    #ff9b45,
    #342016,
    #ff6a00
  );
  background-size: 300% 300%;
  animation: pjBorderFlow 4s ease infinite;
  box-shadow:
    0 0 10px rgba(255, 106, 0, 0.35),
    0 0 25px rgba(255, 106, 0, 0.15);
}

/* Keep the original card dimensions and poster layout */
.pj-featured .featured-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  min-height: 420px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 15px;
  background: #181818;
}

.pj-featured .featured-image {
  height: 420px;
  min-width: 0;
  overflow: hidden;
  background: #181818;
}

.pj-featured .featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  filter: none;
}

.pj-featured .featured-image-overlay {
  background: transparent !important;
}

.pj-featured .featured-content {
  min-width: 0;
  background: #181818;
}

@keyframes pjBorderFlow {
  0% {
    background-position: 0% 50%;
    box-shadow: 0 0 10px rgba(255, 106, 0, 0.25);
  }
  50% {
    background-position: 100% 50%;
    box-shadow:
      0 0 18px rgba(255, 106, 0, 0.55),
      0 0 32px rgba(255, 106, 0, 0.2);
  }
  100% {
    background-position: 0% 50%;
    box-shadow: 0 0 10px rgba(255, 106, 0, 0.25);
  }
}

@media (max-width: 650px) {
  .pj-featured .featured-link {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .pj-featured .featured-image {
    height: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pj-featured .featured-card {
    animation: none;
  }
}

/* ===== SMOOTH CINEMATIC MOVIE SLIDER ===== */

.pj-featured {
  overflow: hidden;
  border-radius: 20px;
}

.pj-featured .featured-card {
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    filter 0.7s ease;
  transform-origin: center;
  backface-visibility: hidden;
}

.pj-featured .featured-card:not(.active) {
  display: none;
}

.pj-featured .featured-card.active {
  display: block;
  animation: pjMovieSlideIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pj-featured .featured-image img {
  transition: transform 1.2s ease;
}

.pj-featured .featured-card.active .featured-image img {
  animation: pjPosterZoom 5s ease-in-out both;
}

.pj-featured .featured-content {
  animation: pjTextFadeIn 0.85s ease both;
}

@keyframes pjMovieSlideIn {
  from {
    opacity: 0;
    transform: translateX(24px) scale(0.985);
    filter: brightness(0.75);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: brightness(1);
  }
}

@keyframes pjPosterZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.045);
  }
}

@keyframes pjTextFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pj-featured .featured-card,
  .pj-featured .featured-image img,
  .pj-featured .featured-content {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== RESTORE VISIBLE PREMIUM ROTATING BORDER ===== */

.pj-featured .featured-card {
  position: relative;
  isolation: isolate;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 18px;
  padding: 3px;
  background: linear-gradient(
    135deg,
    #ff6a00,
    #342016,
    #ff9b45,
    #342016,
    #ff6a00
  );
  background-size: 300% 300%;
  animation: pjBorderFlow 3s linear infinite;
  box-shadow:
    0 0 12px rgba(255, 106, 0, 0.45),
    0 0 28px rgba(255, 106, 0, 0.2);
}

/* Keep the card and poster above the border */
.pj-featured .featured-link {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  border-radius: 15px;
  background: #181818;
}

/* Make the orange border brighter while moving */
@keyframes pjBorderFlow {
  0% {
    background-position: 0% 50%;
    box-shadow: 0 0 10px rgba(255, 106, 0, 0.35);
  }
  50% {
    background-position: 100% 50%;
    box-shadow:
      0 0 20px rgba(255, 106, 0, 0.7),
      0 0 36px rgba(255, 106, 0, 0.3);
  }
  100% {
    background-position: 0% 50%;
    box-shadow: 0 0 10px rgba(255, 106, 0, 0.35);
  }
}

/* PJ Dhamaka: reliable OTT logo fallback */
.pj-platform-track .pj-platform {
  box-sizing: border-box;
  min-height: 118px;
  flex: 0 0 128px;
  width: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 14px 10px;
  overflow: hidden;
}

.pj-platform-track .pj-platform img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 46px;
}

.pj-platform-track .pj-platform .pj-logo-fallback {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6a00, #9f3900);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.pj-platform-track .pj-platform > span:last-child {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.pj-platform-track .pj-platform:hover {
  border-color: #ff6a00;
  box-shadow: 0 8px 24px rgba(255, 106, 0, 0.18);
}

@media (max-width: 600px) {
  .pj-platform-track .pj-platform {
    flex-basis: 108px;
    width: 108px;
    min-height: 105px;
  }
}

.pj-platform-track .pj-platform img,
.pj-platform-track .pj-platform .pj-logo-fallback {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  object-fit: contain;
}

.pj-platform-track .pj-platform .pj-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6a00, #9f3900);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

/* PJ Dhamaka OTT platform logo fix */
#pjPlatformTrack .pj-platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

#pjPlatformTrack .pj-platform img {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
}

#pjPlatformTrack .pj-platform .pj-platform-fallback,
#pjPlatformTrack .pj-platform .pj-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #292929;
  color: #ff5722;
  font-size: 20px;
  font-weight: 800;
}

/* PJ Dhamaka - Extra Large OTT Logos */
#pjPlatformTrack .pj-platform {
  min-width: 165px !important;
  min-height: 165px !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-sizing: border-box;
}

#pjPlatformTrack .pj-platform img {
  width: 110px !important;
  height: 110px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  flex-shrink: 0;
}

#pjPlatformTrack .pj-platform span:not(.pj-platform-fallback):not(.pj-logo-fallback) {
  font-size: 16px !important;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}

/* PJ DHAMAKA - SLOW OTT SLIDER */
.pj-platform-viewport {
  display: block;
  width: 100%;
  overflow: hidden;
  position: relative;
}

#pjPlatformTrack.pj-platform-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  width: max-content !important;
  gap: 16px;
  animation: pjOttContinuousSlide 90s linear infinite !important;
  will-change: transform;
}

#pjPlatformTrack .pj-platform {
  flex: 0 0 165px !important;
}

#pjPlatformTrack:hover {
  animation-play-state: paused !important;
}

@keyframes pjOttContinuousSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  #pjPlatformTrack.pj-platform-track {
    animation: none !important;
  }
}.pj-platform-controls {
  position: relative;
  z-index: 20;
  display: flex;
  gap: 10px;
}

.pj-platform-controls button {
  position: relative;
  z-index: 21;
  pointer-events: auto !important;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

.pj-platform-viewport {
  position: relative;
  z-index: 1;
}
/* FIX: Let JavaScript control the OTT slider */
#pjPlatformTrack.pj-platform-track {
  animation: none !important;
  transition: none !important;
  will-change: transform;
}

#pjPlatformTrack:hover {
  animation-play-state: running !important;
}

.pj-platform-controls {
  position: relative;
  z-index: 9999;
}

.pj-platform-controls button {
  pointer-events: auto !important;
  cursor: pointer;
}
/* OTT cards smaller — keep logos unchanged */
#pjPlatformTrack .pj-platform {
  flex: 0 0 125px !important;
  width: 125px !important;
  min-width: 125px !important;
  padding: 10px !important;
  box-sizing: border-box;
}

#pjPlatformTrack .pj-platform img {
  width: 100% !important;
  height: 55px !important;
  object-fit: contain !important;
}

/* ==========================================
   PJ DHAMAKA — PREMIUM OTT PLATFORM SECTION
   Existing HTML & slider JS compatible
========================================== */

/* 1. Platform section spacing */
.pj-platform-section {
  position: relative;
  margin: 30px 0;
  padding: 26px 0 18px;
  overflow: hidden;
}

/* 2. Premium heading layout */
.pj-platform-section .section-title.pj-platform-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.pj-platform-heading .pj-section-kicker {
  display: inline-block;
  margin-bottom: 7px;
  color: #ff5964;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.pj-platform-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(21px, 2.2vw, 29px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.pj-platform-heading h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 9px;
  border-radius: 10px;
  background: linear-gradient(90deg, #ff2638, #ff7580);
  box-shadow: 0 0 12px rgba(255, 38, 56, 0.28);
}

.pj-platform-heading p {
  margin: 8px 0 0;
  color: #9999a8;
  font-size: 13px;
  line-height: 1.5;
}

/* 3. Compact cards — width stays 125px */
#pjPlatformTrack .pj-platform {
  flex: 0 0 125px !important;
  width: 125px !important;
  min-width: 125px !important;

  height: 76px !important;
  min-height: 76px !important;
  padding: 6px 9px !important;
  box-sizing: border-box !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;

  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 12px !important;

  background:
    linear-gradient(
      145deg,
      rgba(35, 35, 45, 0.96),
      rgba(17, 17, 23, 0.98)
    ) !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 5px 15px rgba(0, 0, 0, 0.15);

  text-decoration: none !important;

  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease !important;
}

/* 4. Logo stays clear and proportional */
#pjPlatformTrack .pj-platform img {
  display: block !important;
  width: 100% !important;
  height: 36px !important;
  max-height: 36px !important;
  min-height: 0 !important;
  flex: 0 0 36px !important;

  object-fit: contain !important;
  object-position: center !important;
  margin: 0 !important;
}

/* 5. Platform name */
#pjPlatformTrack .pj-platform > span:not(.pj-logo-fallback) {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #dedee7;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#pjPlatformTrack .pj-platform:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(255, 65, 80, 0.55) !important;
  background:
    linear-gradient(
      145deg,
      rgba(49, 30, 38, 0.98),
      rgba(20, 18, 25, 0.99)
    ) !important;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.25),
    0 0 14px rgba(255, 38, 56, 0.08);
}

#pjPlatformTrack .pj-platform:focus-visible {
  outline: 2px solid #ff5964;
  outline-offset: 3px;
}

/* 6. Keep JavaScript in control of slider movement */
#pjPlatformTrack.pj-platform-track {
  animation: none !important;
  will-change: transform;
}

#pjPlatformViewport {
  overflow: hidden;
  position: relative;
}

/* 7. Premium Prev / Next buttons */
.pj-platform-controls {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 9px;
  position: relative;
  z-index: 10;
}

.pj-platform-controls button {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  color: #f7f7fb !important;
  font-family: Arial, sans-serif;
  font-size: 29px !important;
  font-weight: 400 !important;
  line-height: 1 !important;

  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 12px !important;

  background: linear-gradient(
    145deg,
    #292932,
    #17171e
  ) !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 5px 14px rgba(0, 0, 0, 0.22);

  cursor: pointer !important;
  pointer-events: auto !important;

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease !important;
}

.pj-platform-controls button:hover {
  color: #fff !important;
  border-color: rgba(255, 65, 80, 0.7) !important;
  background: linear-gradient(
    135deg,
    #f12738,
    #b80d20
  ) !important;
  box-shadow: 0 5px 17px rgba(229, 9, 20, 0.24);
  transform: translateY(-2px);
}

.pj-platform-controls button:active {
  transform: scale(0.94);
}

.pj-platform-controls button:focus-visible {
  outline: 2px solid #ff5964;
  outline-offset: 3px;
}

/* 8. Supporting note */
.pj-platform-note {
  margin: 14px 0 0;
  color: #777786;
  font-size: 11px;
  line-height: 1.6;
}

/* 9. Mobile responsive */
@media (max-width: 600px) {
  .pj-platform-section {
    margin: 22px 0;
    padding: 18px 0 14px;
  }

  .pj-platform-section .section-title.pj-platform-heading {
    gap: 10px;
    margin-bottom: 14px;
  }

  .pj-platform-heading .pj-section-kicker {
    font-size: 9px;
    letter-spacing: 1.4px;
  }

  .pj-platform-heading h2 {
    font-size: 20px;
  }

  .pj-platform-heading p {
    max-width: 220px;
    font-size: 11px;
  }

  #pjPlatformTrack .pj-platform {
    height: 68px !important;
    min-height: 68px !important;
    padding: 5px 7px !important;
    gap: 3px !important;
  }

  #pjPlatformTrack .pj-platform img {
    height: 32px !important;
    max-height: 32px !important;
    flex-basis: 32px !important;
  }

  #pjPlatformTrack .pj-platform > span:not(.pj-logo-fallback) {
    font-size: 9px;
  }

  .pj-platform-controls {
    gap: 6px;
  }

  .pj-platform-controls button {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    border-radius: 10px !important;
    font-size: 24px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #pjPlatformTrack .pj-platform {
    transition: none !important;
  }

  .pj-platform-controls button {
    transition: none !important;
  }
}

/* Premium Orange Platform Navigation Buttons */
.pj-platform-controls button {
  background: linear-gradient(135deg, #ff9d00, #ff6a00) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 157, 0, 0.45) !important;
  box-shadow: 0 4px 14px rgba(255, 125, 0, 0.22);
  transition: all 0.25s ease;
}

.pj-platform-controls button:hover {
  background: linear-gradient(135deg, #ffb52e, #ff7900) !important;
  box-shadow: 0 6px 20px rgba(255, 125, 0, 0.38);
  transform: translateY(-2px);
}

.pj-platform-controls button:active {
  transform: scale(0.95);
}

/* PJ DHAMAKA — QUICK LINKS ABOVE FEATURED SLIDER */
.pj-quick-links {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pj-quick-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px;
  color: #fff;
  text-decoration: none;
  background: #15151d;
  border: 1px solid #30303c;
  border-radius: 14px;
  transition: transform .2s ease, border-color .2s ease;
}

.pj-quick-card:hover {
  transform: translateY(-3px);
  border-color: #ff6b35;
}

.pj-quick-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #252530;
  border-radius: 12px;
  font-size: 23px;
}

.pj-quick-text {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

.pj-quick-text strong {
  font-size: 15px;
  line-height: 1.35;
}

.pj-quick-text small {
  color: #b8b8c5;
  font-size: 12px;
  line-height: 1.4;
}

.pj-quick-arrow {
  flex-shrink: 0;
  color: #ff824d;
  font-size: 18px;
}

.pj-quick-adult {
  border-left: 3px solid #ef5350;
}

.pj-quick-telegram {
  border-left: 3px solid #39a9ff;
}

.pj-quick-download {
  border-left: 3px solid #53d68a;
}

@media (max-width: 650px) {
  .pj-quick-links {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 16px auto;
  }

  .pj-quick-card {
    padding: 13px;
  }
}
/* ===== Compact Premium Quick Links ===== */

.pj-quick-links {
  width: min(1000px, calc(100% - 30px));
  margin: 12px auto 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pj-quick-card {
  min-width: 0;
  padding: 10px 12px;
  gap: 9px;
  border-radius: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pj-quick-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 18px;
}

.pj-quick-text {
  gap: 3px;
}

.pj-quick-text strong {
  font-size: 13px;
  line-height: 1.3;
}

.pj-quick-text small {
  font-size: 10px;
  line-height: 1.3;
}

.pj-quick-arrow {
  font-size: 14px;
}

/* ===== 18+ Red Premium Effect ===== */

.pj-quick-adult {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #270609, #590b12 55%, #200408);
  border: 1px solid rgba(255, 55, 70, 0.85);
  box-shadow:
    0 0 8px rgba(255, 25, 45, 0.20),
    inset 0 0 12px rgba(255, 25, 45, 0.08);
}

.pj-quick-adult .pj-quick-icon {
  background: rgba(255, 35, 55, 0.16);
  border: 1px solid rgba(255, 75, 85, 0.35);
}

.pj-quick-adult .pj-quick-text strong {
  color: #ff626d;
}

.pj-quick-adult .pj-quick-text small {
  color: #ffc0c4;
}

.pj-quick-adult .pj-quick-arrow {
  color: #ff5967;
}

.pj-quick-adult:hover {
  transform: translateY(-2px);
  border-color: #ff384b;
  box-shadow:
    0 0 10px rgba(255, 35, 55, 0.45),
    0 0 22px rgba(255, 20, 40, 0.18);
}

/* ===== Mobile Responsive ===== */

@media (max-width: 650px) {
  .pj-quick-links {
    width: calc(100% - 24px);
    gap: 7px;
    margin: 10px auto 14px;
  }

  .pj-quick-card {
    padding: 9px 7px;
    gap: 6px;
  }

  .pj-quick-icon {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }

  .pj-quick-text strong {
    font-size: 11px;
  }

  .pj-quick-text small {
    font-size: 9px;
  }

  .pj-quick-arrow {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .pj-quick-card {
    flex-wrap: wrap;
    align-content: center;
  }

  .pj-quick-text {
    flex-basis: calc(100% - 38px);
  }
}