/* ─────────────────────────────────────────────────────────────
   ROOT WRAPPER
   All colours are explicit hex — no reliance on theme variables
───────────────────────────────────────────────────────────── */
.ap-home {
  background: #080808;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  width: 100%;
  overflow-x: hidden;
}
 
/* Hard-reset every child so the WordPress theme can't bleed colours in */
.ap-home *,
.ap-home *::before,
.ap-home *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: inherit;           /* let the explicit rules below win */
  text-decoration: none;
}
 
 
/* ─────────────────────────────────────────────────────────────
   ① HERO
───────────────────────────────────────────────────────────── */
.ap-hero {
  padding: 36px 24px 30px;
  text-align: center;
  border-bottom: 1px solid #202020;
}
 
/* "Now Streaming" pill */
.ap-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #140404;
  border: 1px solid #2e0808;
  color: #FF0015 !important;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 20px;
  margin-bottom: 16px;
  line-height: 1;
}
 
.ap-hero-h {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 6px;
  color: #ffffff !important;
}
 
.ap-hero-h em {
  color: #FF0015 !important;
  font-style: normal;
}
 
.ap-hero-sub {
  font-size: 12px;
  color: #888888 !important;
  margin-bottom: 22px;
  line-height: 1.5;
}
 
/* Video box */
.ap-video-box {
  max-width: 600px;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid #202020;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #000000;
}
 
.ap-yt-thumb {
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
 
.ap-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
 
.ap-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}
 
.ap-play-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
 
.ap-play-ring {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 2px solid #FF0015;
  background: rgba(20, 4, 4, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  padding-left: 4px;
}
 
.ap-yt-thumb:hover .ap-play-ring {
  background: #FF0015;
  transform: scale(1.08);
}
 
.ap-yt-thumb:hover .ap-play-ring svg polygon {
  fill: #ffffff;
}
 
.ap-vid-hint {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 9px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 600;
}
 
.ap-yt-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
 
.ap-yt-player iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
 
 
/* ─────────────────────────────────────────────────────────────
   ② FEATURED BANNER
───────────────────────────────────────────────────────────── */
.ap-banner {
  margin: 18px 24px;
  background: #0f0f0f;
  border: 1px solid #202020;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
 
.ap-btag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #140404;
  color: #FF0015 !important;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  line-height: 1.4;
}
 
.ap-btitle {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 6px;
}
 
.ap-bdesc {
  font-size: 11px;
  color: #777777 !important;
  line-height: 1.6;
}
 
.ap-feat-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
 
.ap-feat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #888888 !important;
  font-weight: 500;
}
 
.ap-feat-chip span {
  color: #888888 !important;
}
 
.ap-bbtns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
 
.ap-btn-watch {
  background: #FF0015 !important;
  border: none !important;
  color: #ffffff !important;
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease;
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: 0.2px;
  line-height: 1;
}
 
.ap-btn-watch:hover {
  background: #cc0010 !important;
}
 
.ap-btn-more {
  background: #161616 !important;
  border: 1px solid #2a2a2a !important;
  color: #bbbbbb !important;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
  font-family: inherit;
  line-height: 1;
}
 
.ap-btn-more:hover {
  border-color: #444444 !important;
  color: #ffffff !important;
}
 
 
/* ─────────────────────────────────────────────────────────────
   ③ LATEST MOVIES SECTION
───────────────────────────────────────────────────────────── */
.ap-sec {
  padding: 24px;
}
 
.ap-sec-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
 
.ap-sec-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: -0.3px;
}
 
.ap-sec-dot {
  color: #FF0015 !important;
  margin-right: 5px;
}
 
.ap-sec-hint {
  font-size: 10px;
  color: #666666 !important;
  margin-top: 3px;
}
 
.ap-viewall {
  color: #FF0015 !important;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid #2e0808;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none !important;
}
 
.ap-viewall:hover {
  background: #130303;
  border-color: #FF0015;
}
 
 
/* ─────────────────────────────────────────────────────────────
   CARDS
───────────────────────────────────────────────────────────── */
.ap-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
 
.ap-card {
  background: #0f0f0f;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #202020;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
 
.ap-card:hover {
  border-color: #FF0015;
  transform: translateY(-3px);
}
 
.ap-card-soon {
  opacity: 0.2;
  pointer-events: none;
}
 
.ap-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
 
.ap-p1      { background: #0e0814; }
.ap-p2      { background: #08101a; }
.ap-p-soon  { background: #0d0d0d; }
 
.ap-pbadge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #FF0015;
  color: #ffffff !important;
  font-size: 8px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
 
.ap-card-info {
  padding: 10px 10px 12px;
}
 
.ap-card-name {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff !important;
  line-height: 1.3;
  margin-bottom: 3px;
}
 
.ap-soon-text {
  color: #333333 !important;
}
 
.ap-card-genre {
  font-size: 10px;
  color: #666666 !important;
  margin-bottom: 6px;
}
 
.ap-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
 
.ap-star-row {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: #888888 !important;
}
 
.ap-dur {
  font-size: 9px;
  color: #555555 !important;
}
 
 
/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
 
/* Tablet ≤ 900px */
@media (max-width: 900px) {
  .ap-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ap-banner {
    padding: 16px;
  }
  .ap-bdesc {
    max-width: 220px;
  }
}
 
/* Phone ≤ 520px */
@media (max-width: 520px) {
  .ap-hero {
    padding: 22px 14px 20px;
  }
  .ap-hero-h {
    font-size: 22px;
  }
  .ap-banner {
    flex-direction: column;
    margin: 12px 14px;
    padding: 16px;
    align-items: flex-start;
  }
  .ap-bbtns {
    width: 100%;
    flex-direction: column;
  }
  .ap-btn-watch,
  .ap-btn-more {
    width: 100%;
    justify-content: center;
  }
  .ap-sec {
    padding: 16px 14px;
  }
  .ap-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .ap-feat-meta {
    gap: 8px;
  }
}