/* CHARUSHILA GROUP - Premium Cinematic Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Cinzel:wght@600;700;800;900&display=swap');

:root {
  --color-purple: #4B1D9E;
  --color-purple-dark: #371378;
  --color-purple-light: #6428cf;
  --color-gold: #C69C3E;
  --color-gold-light: #E0B85E;
  --color-gold-pale: #FBF6EB;
  --color-teal: #2A6E6E;
  --color-teal-light: #398e8e;
  --color-teal-pale: #F0F7F7;
  --color-white: #FFFFFF;
  --color-cream: #FAF9F6;
  --color-surface: #F9FAFC;
  --color-dark: #1A1F2C;
  --color-muted: #5F6B7A;
  --color-border: #E8ECEF;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-serif-sub: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Cinzel', serif;
}

body {
  font-family: var(--font-body);
  color: #2D3748;
  background-color: #FFFFFF;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.015em;
}

.font-serif-sub {
  font-family: var(--font-serif-sub);
}

.font-accent {
  font-family: var(--font-accent);
}

/* Header Styles */
.header-sticky {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-sticky.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px -2px rgba(26, 31, 44, 0.08);
}

/* OTT HERO CONSOLE STYLES */
.ott-hero-container {
  background: #090B10;
  border-radius: 1.75rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.4s ease;
  /* Height is set inline — overflow hidden prevents content from expanding it */
}
.ott-hero-container:hover {
  box-shadow: 0 35px 90px -15px rgba(232, 17, 63, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* Ken Burns slow cinematic movement */
@keyframes kenBurns {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.04) translate(-1%, -1%); }
  100% { transform: scale(1) translate(0, 0); }
}

.ott-hero-backdrop {
  position: absolute;
  inset: -10px;
  background-size: cover;
  background-position: center top;
  animation: kenBurns 25s ease-in-out infinite alternate;
  transition: opacity 0.5s ease-in-out, transform 0.8s ease;
  will-change: transform;
}

.ott-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9,11,16,0.96) 0%, rgba(9,11,16,0.88) 45%, rgba(9,11,16,0.2) 75%, rgba(9,11,16,0.4) 100%),
              linear-gradient(180deg, rgba(9,11,16,0.5) 0%, transparent 35%, rgba(9,11,16,0.98) 100%);
  pointer-events: none;
}

/* Buttons */
.btn-ott-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #FF2E56 0%, #D80F38 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.85rem 2.2rem;
  border-radius: 9999px;
  box-shadow: 0 6px 24px rgba(232, 17, 63, 0.45);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.btn-ott-play:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(232, 17, 63, 0.65);
  color: #FFFFFF;
}

.btn-ott-wishlist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.btn-ott-wishlist:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  color: #FFFFFF;
}

/* Cast Avatars */
.cast-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
.cast-avatar-circle:hover {
  transform: scale(1.22) translateY(-2px);
  border-color: #FF2E56;
  z-index: 20;
}

/* Episode Mini Cards */
.episode-card-ott {
  width: 150px;
  border-radius: 0.85rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  flex-shrink: 0;
}
.episode-card-ott:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.episode-card-ott.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: #FF2E56;
  box-shadow: 0 0 20px rgba(255, 46, 86, 0.35);
}

/* Bottom Stream Thumbnails */
.stream-thumb-card {
  width: 145px;
  height: 84px;
  border-radius: 0.85rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.stream-thumb-card img {
  transition: transform 0.5s ease;
}
.stream-thumb-card:hover {
  transform: translateY(-3px) scale(1.04);
}
.stream-thumb-card:hover img {
  transform: scale(1.1);
}
.stream-thumb-card.active {
  border-color: #FF2E56;
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(255, 46, 86, 0.6);
}

@media (max-width: 640px) {
  .btn-ott-play {
    padding: 0.6rem 1.25rem;
    font-size: 0.8rem;
    gap: 0.4rem;
  }
  .btn-ott-wishlist {
    padding: 0.6rem 1.1rem;
    font-size: 0.8rem;
    gap: 0.4rem;
  }
  .stream-thumb-card {
    width: 120px;
    height: 72px;
  }
}

/* Autoplay Timer Bar */
.ott-progress-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}
.ott-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF2E56, #C69C3E);
  width: 0%;
  transition: width 0.1s linear;
}

.top10-ribbon {
  background: linear-gradient(135deg, #FF2E56 0%, #D80F38 100%);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 0.75rem;
  line-height: 1;
  padding: 8px 12px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: 0 6px 16px rgba(232, 17, 63, 0.5);
  text-align: center;
  letter-spacing: 0.5px;
}


/* Search Overlay Modal */
.search-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.search-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Search modal box slide-in */
.search-overlay.active #searchModalBox {
  animation: searchSlideIn 0.22s ease forwards;
}
@keyframes searchSlideIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Suggestion items */
.suggest-item a {
  text-decoration: none;
}
.suggest-item a.active-suggest,
.suggest-item a:focus {
  background: #EDE9FE;
  outline: none;
}

/* Highlight matched text */
mark.bg-purple-100 {
  background: #EDE9FE;
  color: #4B1D9E;
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 700;
}

/* Scrollbar inside suggestion list */
#searchSuggestionsList::-webkit-scrollbar { width: 4px; }
#searchSuggestionsList::-webkit-scrollbar-track { background: transparent; }
#searchSuggestionsList::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 4px; }

/* Hero text fade transition for smooth slide switching */
#ottHeroTitle, #ottHeroSynopsis, #heroPreviewTitle {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#heroPreviewBg {
  transition: opacity 0.4s ease, background-image 0s;
}

/* Custom Buttons */
.btn-pill-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-purple);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px 0 rgba(75, 29, 158, 0.3);
  text-decoration: none;
}
.btn-pill-primary:hover {
  background-color: var(--color-purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(75, 29, 158, 0.45);
  color: #FFFFFF;
}

.btn-pill-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: #1A1F2C;
  border: 1.5px solid #2D3748;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-pill-outline:hover {
  background-color: #1A1F2C;
  color: #FFFFFF;
  border-color: #1A1F2C;
  transform: translateY(-2px);
}

.btn-pill-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-gold);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px 0 rgba(198, 156, 62, 0.35);
  text-decoration: none;
}
.btn-pill-gold:hover {
  background-color: #B28B31;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(198, 156, 62, 0.45);
  color: #FFFFFF;
}

/* Wing Cards */
.card-wing-ref {
  position: relative;
  border-radius: 1.125rem;
  background: #FFFFFF;
  border: 1px solid #ECEEF3;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}
.card-wing-ref:hover {
  transform: translateY(-4px);
  border-color: rgba(198, 156, 62, 0.4);
  box-shadow: 0 14px 30px rgba(75, 29, 158, 0.09);
}
.card-wing-ref .wing-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
}
.card-wing-ref .wing-img-wrap img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-wing-ref:hover .wing-img-wrap img {
  transform: scale(1.06);
}

/* Featured Film Poster Cards */
.poster-card-ref {
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: #FFFFFF;
  position: relative;
}
.poster-card-ref:hover {
  transform: translateY(-6px);
}
.poster-card-ref .poster-img-box {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  box-shadow: 0 8px 24px rgba(26, 31, 44, 0.12);
}
.poster-card-ref .poster-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.poster-card-ref:hover .poster-img-box img {
  transform: scale(1.05);
}
.poster-card-ref .poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(26, 31, 44, 0.85);
  backdrop-filter: blur(4px);
  color: #F3D179;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
@media (max-width: 640px) {
  .poster-card-ref .poster-badge {
    top: 6px;
    right: 6px;
    font-size: 0.6rem;
    padding: 2px 6px;
  }
}

/* Circle Arrow Buttons */
.nav-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1A1F2C;
  transition: all 0.25s ease;
  cursor: pointer;
}
.nav-arrow-btn:hover {
  background: var(--color-purple);
  border-color: var(--color-purple);
  color: #FFFFFF;
  transform: scale(1.08);
}

/* Lightbox Modal */
.lightbox-modal {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

/* Mega Menu Dropdown */
.wings-dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
}
.group:hover .wings-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F4F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-purple);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

/* Hide scrollbar for mobile carousels */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
