/* ============================================================
   KC CINEMAX — HOME PAGE STYLES
   Extracted from index.php to satisfy CSP (no inline styles)
   ============================================================ */

/* ============================================================
   HOME HERO — auto-fit to viewport
   Applies only to .kc-movie-hero-slides (index.php), NOT movie.php
   ============================================================ */

/* The hero fills the viewport but grows if content overflows */
.kc-movie-hero-slides {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding-top: 0;
  padding-bottom: 3rem;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* Inner content: flex column on mobile, row on desktop */
.kc-movie-hero-slides .kc-movie-hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  padding-top: 4rem;
  padding-bottom: 3rem;
}

/* Rotating background layers */
.kc-movie-hero-bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  filter: blur(2px) brightness(0.75) saturate(110%);
  opacity: 0;
  transition: opacity .9s ease;
  display: block;
}
.kc-movie-hero-bg-slide.active {
  opacity: .9;
}

/* Rotating poster layers */
.kc-movie-hero-slides .kc-movie-hero-poster {
  position: relative;
}
.kc-movie-hero-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .8s ease;
}
.kc-movie-hero-poster-img.active {
  opacity: 1;
}

/* Text fade during slide change */
.kc-movie-hero-slides .kc-movie-hero-title,
.kc-movie-hero-slides .kc-movie-hero-meta {
  transition: opacity .35s ease, transform .35s ease;
}
.kc-movie-hero-slides .kc-movie-hero-info.is-switching .kc-movie-hero-title,
.kc-movie-hero-slides .kc-movie-hero-info.is-switching .kc-movie-hero-meta {
  opacity: 0;
  transform: translateY(6px);
}

/* Fallback hero (no movies) */
.kc-movie-hero.kc-hero-fallback {
  min-height: 60vh;
}
.kc-movie-hero.kc-hero-fallback .kc-movie-hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 2px;
}

/* Hero dots */
.kc-hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 3;
}
.kc-hero-dot {
  width: 26px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.25);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background .2s ease, width .2s ease;
}
.kc-hero-dot:hover { background: rgba(255,255,255,.45); }
.kc-hero-dot.active {
  background: #ffb340;
  width: 40px;
}

/* ============================================================
   PREMIUM EXPERIENCE — GOLD CINEMA THEME
   ============================================================ */
.kc-premium-section{
  position:relative;
  padding:5rem 0 4.5rem;
  background:
    radial-gradient(100% 55% at 50% 0%, rgba(249,168,38,.05) 0%, transparent 60%),
    linear-gradient(180deg, #0a0a0d 0%, #08080b 100%);
  overflow:hidden;
  isolation:isolate;
}
.kc-premium-section::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(249,168,38,.45) 50%, transparent);
  pointer-events:none;
}
.kc-premium-glow{
  position:absolute;
  top:-180px; left:50%;
  width:min(900px,120vw); height:360px;
  transform:translateX(-50%);
  background:radial-gradient(closest-side, rgba(249,168,38,.13), transparent 70%);
  filter:blur(45px);
  pointer-events:none;
  z-index:0;
}
.kc-premium-head{
  text-align:center;
  max-width:660px;
  margin:0 auto 3.5rem;
  position:relative;
  z-index:1;
}
.kc-premium-badge{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.4rem 1rem;
  border-radius:999px;
  background:rgba(249,168,38,.08);
  border:1px solid rgba(249,168,38,.35);
  color:#ffc84a;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:2px;
  text-transform:uppercase;
  margin-bottom:1.4rem;
  box-shadow:0 0 24px -8px rgba(249,168,38,.5);
}
.kc-premium-badge i{ font-size:.7rem; color:#F9A826; }

.kc-premium-title{
  font-size:clamp(2rem,4.8vw,3rem);
  font-weight:900;
  color:#ffffff;
  margin:0 0 .85rem;
  letter-spacing:-.02em;
  line-height:1.1;
  text-shadow:0 4px 40px rgba(0,0,0,.6);
}
.kc-premium-accent{
  background:linear-gradient(90deg, #F9A826 0%, #ffc84a 50%, #F9A826 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:0 0 30px rgba(249,168,38,.35);
}
.kc-premium-sub{
  color:#9a9aa5;
  font-size:1.02rem;
  line-height:1.6;
  margin:0;
}
.kc-premium-grid{
  position:relative;
  z-index:1;
}
.kc-premium-card{
  position:relative;
  background:linear-gradient(180deg, #141418 0%, #101014 100%);
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  padding:2.25rem 1.5rem 2rem;
  text-align:center;
  height:100%;
  overflow:hidden;
  transition:transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.kc-premium-card::before{
  content:"";
  position:absolute;
  top:0; left:20%; right:20%;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(249,168,38,.6), transparent);
  opacity:.45;
  transition:opacity .25s ease, left .25s ease, right .25s ease;
  pointer-events:none;
}
.kc-premium-card:hover{
  transform:translateY(-6px);
  border-color:rgba(249,168,38,.35);
  background:linear-gradient(180deg, #181820 0%, #12121a 100%);
  box-shadow:
    0 24px 60px -20px rgba(0,0,0,.85),
    0 0 40px -12px rgba(249,168,38,.35);
}
.kc-premium-card:hover::before{
  opacity:1;
  left:0; right:0;
}
.kc-premium-icon{
  width:72px;
  height:72px;
  margin:0 auto 1.35rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:linear-gradient(135deg, #F9A826 0%, #d98217 100%);
  color:#1a1200;
  font-size:1.7rem;
  box-shadow:
    0 10px 28px -10px rgba(249,168,38,.65),
    0 0 0 1px rgba(255,255,255,.08) inset;
  transition:transform .25s ease, box-shadow .25s ease;
}
.kc-premium-card:hover .kc-premium-icon{
  transform:scale(1.06);
  box-shadow:
    0 16px 36px -10px rgba(249,168,38,.75),
    0 0 0 1px rgba(255,255,255,.12) inset;
}
.kc-premium-card-title{
  font-size:1.08rem;
  font-weight:800;
  color:#ffffff;
  margin:0 0 .6rem;
  letter-spacing:-.01em;
}
.kc-premium-card-text{
  font-size:.9rem;
  color:#9a9aa5;
  line-height:1.6;
  margin:0;
}

/* ============================================================
   SECTION HEAD (Now Showing / Coming Soon)
   ============================================================ */
.kc-section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.kc-section-link {
  font-size: .85rem;
  color: #ffb340;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.kc-section-link:hover { color: #ffc266; }
.kc-section-link i { margin-left: .25rem; transition: transform .15s ease; display: inline-block; }
.kc-section-link:hover i { transform: translateX(3px); }

/* Showtime chips on movie cards */
.kc-showtimes {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .55rem;
}
.kc-showtime-chip {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .22rem .55rem;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: .3rem;
  background: rgba(255, 179, 64, .12);
  color: #ffb340;
  border: 1px solid rgba(255, 179, 64, .35);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.kc-showtime-chip:hover {
  background: rgba(255, 179, 64, .25);
  color: #ffc266;
  border-color: rgba(255, 179, 64, .6);
}
.kc-showtime-chip .day {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  opacity: .8;
}

/* ============================================================
   MOBILE — auto-fit hero content
   ============================================================ */
@media (max-width: 767.98px) {

  .kc-movie-hero-slides {
    min-height: 100dvh;
    padding-bottom: 3.5rem;
  }

  .kc-movie-hero-slides .kc-movie-hero-inner {
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding-top: 5rem;
    padding-bottom: 3.5rem;
    text-align: center;
  }

  /* Poster: smaller on mobile */
  .kc-movie-hero-slides .kc-movie-hero-poster {
    width: 130px;
    max-width: 130px;
    margin: 0 auto;
    aspect-ratio: 2 / 3;
    flex: 0 0 auto;
  }

  /* Title: tighter */
  .kc-movie-hero-slides .kc-movie-hero-title {
    font-size: clamp(1.4rem, 5.5vw, 1.9rem);
    line-height: 1.15;
    text-align: center;
    margin: 0 0 .5rem;
  }

  /* Meta: centered, wraps cleanly */
  .kc-movie-hero-slides .kc-movie-hero-meta {
    justify-content: center;
    text-align: center;
    font-size: .82rem;
    line-height: 1.45;
    margin-bottom: .9rem;
    gap: .2rem .45rem;
  }
  .kc-movie-hero-slides .kc-movie-hero-meta .dot {
    display: none;
  }

  /* Buttons: side by side */
  .kc-movie-hero-slides .kc-movie-hero-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: .5rem;
    width: 100%;
  }
  .kc-movie-hero-slides .kc-movie-hero-actions .btn {
    padding: .6rem .9rem;
    font-size: .88rem;
    flex: 1 1 0;
    max-width: 170px;
    white-space: nowrap;
  }

  .kc-hero-dots { bottom: 1rem; }
  .kc-hero-dot { width: 20px; }
  .kc-hero-dot.active { width: 30px; }
}

/* Very short viewports (landscape phones) */
@media (max-width: 767.98px) and (max-height: 640px) {
  .kc-movie-hero-slides .kc-movie-hero-inner {
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
    gap: .6rem;
  }
  .kc-movie-hero-slides .kc-movie-hero-poster {
    width: 100px;
    max-width: 100px;
  }
  .kc-movie-hero-slides .kc-movie-hero-title {
    font-size: 1.25rem;
  }
  .kc-movie-hero-slides .kc-movie-hero-meta {
    font-size: .78rem;
  }
  .kc-movie-hero-slides .kc-movie-hero-actions .btn {
    padding: .5rem .8rem;
    font-size: .8rem;
  }
}

/* Extra-narrow phones */
@media (max-width: 400px) {
  .kc-movie-hero-slides .kc-movie-hero-poster {
    width: 110px;
    max-width: 110px;
  }
  .kc-movie-hero-slides .kc-movie-hero-title {
    font-size: 1.3rem;
  }
  .kc-movie-hero-slides .kc-movie-hero-actions .btn {
    padding: .5rem .7rem;
    font-size: .8rem;
  }
}

/* Ultra-short viewports — allow scroll rather than squash */
@media (max-width: 767.98px) and (max-height: 560px) {
  .kc-movie-hero-slides {
    min-height: 100dvh;
    height: auto;
    overflow-y: auto;
  }
}

/* ============================================================
   RESPONSIVE — other sections
   ============================================================ */
@media (max-width:991.98px){
  .kc-premium-section{ padding:4rem 0 3.5rem; }
  .kc-premium-head{ margin-bottom:2.5rem; }
}
@media (max-width:767.98px) {
  .kc-showtime-chip { font-size: .68rem; padding: .18rem .45rem; }
}
@media (max-width:575.98px){
  .kc-premium-section{ padding:3rem 0 2.5rem; }
  .kc-premium-card{ padding:1.75rem 1.25rem 1.5rem; }
  .kc-premium-icon{ width:60px; height:60px; font-size:1.4rem; }
}

/* ============================================================
   SPLIT HERO — NEW (index.php)
   Text left, rotating poster slideshow right
   ============================================================ */
.kc-hero-split {
  position: relative;
  padding: 5rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.kc-hero-split-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 20% 30%, rgba(138, 92, 246, .12), transparent 60%),
    radial-gradient(700px 500px at 80% 70%, rgba(245, 166, 35, .10), transparent 60%),
    linear-gradient(180deg, #0f1020 0%, #0a0a0d 100%);
  z-index: 0;
}

.kc-hero-split-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

/* LEFT */
.kc-hero-split-left {
  max-width: 560px;
}

.kc-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: rgba(138, 92, 246, .12);
  border: 1px solid rgba(138, 92, 246, .35);
  color: #c4b5fd;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 1.5rem;
}
.kc-hero-pill i {
  color: #a78bfa;
  font-size: .95rem;
}

.kc-hero-split-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 1.25rem;
}
.kc-hero-split-title-accent {
  background: linear-gradient(90deg, #a78bfa 0%, #ec4899 45%, #f97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

.kc-hero-split-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #a0a0b0;
  max-width: 480px;
  margin: 0 0 2rem;
}

/* CTA buttons */
.kc-hero-split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: 2.5rem;
}

.kc-btn-hero-primary,
.kc-btn-hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.6rem;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  cursor: pointer;
}

.kc-btn-hero-primary {
  color: #fff;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 55%, #f97316 100%);
  box-shadow: 0 10px 30px -10px rgba(236, 72, 153, .55);
}
.kc-btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -10px rgba(236, 72, 153, .75);
  color: #fff;
}

.kc-btn-hero-outline {
  color: #e7e7ee;
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .12);
}
.kc-btn-hero-outline:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
  transform: translateY(-2px);
}
.kc-btn-hero-outline i { color: #f9a826; }

/* Stats */
.kc-hero-split-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
  max-width: 420px;
}
.kc-hero-stat {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.kc-hero-stat-num {
  font-size: 1.85rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -.02em;
}
.kc-hero-stat-label {
  font-size: .82rem;
  color: #8a8a95;
  font-weight: 500;
  letter-spacing: .02em;
}

/* RIGHT — poster slideshow */
.kc-hero-split-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
  perspective: 1200px;
}

.kc-hero-poster-stage {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 2 / 3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, .85),
    0 0 0 1px rgba(255, 255, 255, .06),
    0 0 60px -20px rgba(245, 166, 35, .25);
}

.kc-hero-poster-link {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity .7s ease, transform .7s ease;
  text-decoration: none;
  z-index: 1;
}
.kc-hero-poster-link.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.kc-hero-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.kc-hero-poster-link:hover .kc-hero-poster-img {
  transform: scale(1.04);
}

/* Badges */
.kc-hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem 1rem;
  background: rgba(20, 20, 26, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .8);
  z-index: 5;
  pointer-events: none;
}
.kc-hero-badge-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f9a826, #ec4899);
  color: #fff;
  font-size: .95rem;
  flex-shrink: 0;
}
.kc-hero-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.kc-hero-badge-text strong {
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
}
.kc-hero-badge-text span {
  font-size: .72rem;
  color: #9a9aa5;
}
.kc-hero-badge-top { top: 0; right: -1rem; }
.kc-hero-badge-bottom { bottom: 0; left: -1rem; }

/* Dots for split hero (override positioning for the right column) */
.kc-hero-split-right .kc-hero-dots {
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 5;
}
.kc-hero-split-right .kc-hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .22);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.kc-hero-split-right .kc-hero-dot:hover { background: rgba(255, 255, 255, .45); }
.kc-hero-split-right .kc-hero-dot.active {
  background: #f9a826;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(245, 166, 35, .7);
}

/* Responsive — split hero */
@media (max-width: 991.98px) {
  .kc-hero-split {
    padding: 4rem 0 4rem;
    min-height: auto;
  }
  .kc-hero-split-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .kc-hero-split-left { max-width: 100%; margin: 0 auto; }
  .kc-hero-split-sub { margin-left: auto; margin-right: auto; }
  .kc-hero-split-actions { justify-content: center; }
  .kc-hero-split-stats { justify-content: center; margin: 0 auto; }
  .kc-hero-split-right { min-height: 460px; }
  .kc-hero-poster-stage { max-width: 320px; }
  .kc-hero-badge-top { right: 0; }
  .kc-hero-badge-bottom { left: 0; }
}

@media (max-width: 575.98px) {
  .kc-hero-split { padding: 3rem 0 3.5rem; }
  .kc-hero-split-title { font-size: 2.1rem; }
  .kc-hero-split-sub { font-size: .95rem; }
  .kc-hero-split-actions { flex-direction: column; }
  .kc-btn-hero-primary,
  .kc-btn-hero-outline { width: 100%; }
  .kc-hero-split-stats { gap: 1.75rem; }
  .kc-hero-stat-num { font-size: 1.5rem; }
  .kc-hero-split-right { min-height: 380px; }
  .kc-hero-poster-stage { max-width: 260px; }
  .kc-hero-badge { padding: .55rem .75rem; }
  .kc-hero-badge-icon { width: 28px; height: 28px; font-size: .8rem; }
  .kc-hero-badge-text strong { font-size: .78rem; }
  .kc-hero-badge-text span { font-size: .66rem; }
}