/* ═══════════════════════════════════════════════════════════════
   ANIVERSE / FoxPlay - Premium Glassmorphic OTT Frontend Stylesheet
   File: assets/app.css
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #070a0f;
  --card-glass: rgba(19, 25, 36, 0.75);
  --border-glass: rgba(255, 255, 255, 0.12);
  --cyan-primary: #06b6d4;
  --cyan-hover: #0891b2;
  --cyan-glow: rgba(6, 182, 212, 0.5);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-main: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

html, body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Stylish Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-primary);
  box-shadow: 0 0 10px var(--cyan-glow);
}

/* Glassmorphic Navbar */
.navbar-ott {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(7, 10, 15, 0.85) 0%, rgba(7, 10, 15, 0) 100%);
  backdrop-filter: blur(12px);
  transition: all 0.4s ease;
}

.navbar-ott.scrolled {
  background: rgba(7, 10, 15, 0.95);
  height: 70px;
  border-bottom: 1px solid var(--border-glass);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--cyan-primary), #3b82f6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 0 20px var(--cyan-glow);
}

.brand-logo-text {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
}

.brand-logo-text span {
  color: var(--cyan-primary);
}

.nav-menu-center {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-menu-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu-link:hover,
.nav-menu-link.active {
  color: #fff;
}

.nav-menu-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--cyan-primary);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--cyan-primary);
}

/* Genre Dropdown Styling */
.genre-dropdown-menu {
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 18, 28, 0.95);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  padding: 10px 6px;
  min-width: 180px;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px var(--cyan-glow);
  z-index: 1001;
}

.genre-dropdown-menu.active {
  display: flex;
}

.genre-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.genre-item:hover,
.genre-item.active {
  color: #fff;
  background: rgba(6, 182, 212, 0.15);
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-icon-btn:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
  transform: scale(1.05);
}

.user-avatar-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-glass);
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.user-avatar-btn:hover {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 15px var(--cyan-glow);
}

/* Hero Banner Showcase */
.hero-showcase {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding: 0 50px 70px 50px;
  overflow: hidden;
}

.hero-backdrop-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.75);
  transition: opacity 0.8s ease-in-out;
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: 
    linear-gradient(90deg, var(--bg-dark) 0%, rgba(7, 10, 15, 0.85) 45%, rgba(7, 10, 15, 0.2) 100%),
    linear-gradient(0deg, var(--bg-dark) 0%, rgba(7, 10, 15, 0) 60%);
}

.hero-content-wrapper {
  position: relative;
  z-index: 10;
  max-width: 680px;
}

.hero-title {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.hero-badges-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.badge-hero {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.badge-gold {
  color: #fbbf24;
}

.badge-trending {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.btn-cyan-primary {
  background: linear-gradient(135deg, var(--cyan-primary), #0891b2);
  color: #fff;
  padding: 14px 34px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 0 25px var(--cyan-glow);
  transition: all 0.3s ease;
}

.btn-cyan-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.8);
}

.btn-glass-outline {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid var(--border-glass);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-glass-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* Vertical Carousel Diamond Controls */
.carousel-diamond-controls {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.diamond-dot {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transform: rotate(45deg);
  cursor: pointer;
  transition: all 0.3s ease;
}

.diamond-dot.active {
  background: var(--cyan-primary);
  border-color: var(--cyan-primary);
  box-shadow: 0 0 15px var(--cyan-primary);
}

/* Horizontal Slide Arrow Controls */
.carousel-arrow-controls {
  position: absolute;
  right: 50px;
  bottom: 70px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
}

.arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.arrow-btn.active,
.arrow-btn:hover {
  background: var(--cyan-primary);
  border-color: var(--cyan-primary);
  box-shadow: 0 0 20px var(--cyan-glow);
}

/* Section Containers & Sliders */
.main-content-section {
  padding: 0 50px 60px 50px;
  position: relative;
  z-index: 20;
  margin-top: -30px;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: var(--cyan-primary);
}

.poster-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* Glassmorphic Poster Card */
.poster-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card-glass);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  aspect-ratio: 2/3;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.poster-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.poster-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--cyan-primary);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 25px var(--cyan-glow);
}

.poster-card:hover .poster-card-img {
  transform: scale(1.1);
}

.poster-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(7, 10, 15, 0.95) 0%, rgba(7, 10, 15, 0.2) 60%, rgba(7, 10, 15, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.poster-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--cyan-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px var(--cyan-glow);
}

.poster-card:hover .poster-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster-sub {
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.vip-badge-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

/* Modals & Search Overlay */
.search-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(7, 10, 15, 0.95);
  backdrop-filter: blur(15px);
  z-index: 2000;
  display: none;
  flex-direction: column;
  padding: 40px 50px;
}

.search-modal-overlay.active {
  display: flex;
}

.search-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.search-input-box {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.search-input-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid var(--border-glass);
  padding: 18px 24px 18px 60px;
  border-radius: 40px;
  color: #fff;
  font-size: 20px;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-input-box input:focus {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 25px var(--cyan-glow);
}

.search-input-box i {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--text-secondary);
}

/* Footer */
.footer-ott {
  padding: 40px 50px;
  background: rgba(7, 10, 15, 0.98);
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 14px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .navbar-ott {
    padding: 0 24px;
  }
  .nav-menu-center {
    display: none;
  }
  .hero-showcase {
    padding: 0 24px 50px 24px;
    height: 75vh;
  }
  .hero-title {
    font-size: 38px;
  }
  .main-content-section {
    padding: 0 24px 40px 24px;
  }
  .carousel-diamond-controls {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }
  .hero-actions-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-cyan-primary,
  .btn-glass-outline {
    justify-content: center;
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   User Auth, Profile & VIP Subscription Modals CSS
   ═══════════════════════════════════════════════════════════════ */
.user-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 12, 0.85);
  backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.user-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.user-modal-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(6, 182, 212, 0.25);
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 30px;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.user-modal-overlay.active .user-modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.auth-tabs-row {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-tab-btn.active {
  background: var(--cyan-primary);
  color: #0f172a;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.sub-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 12px;
  transition: color 0.3s ease;
}

.sub-tab-btn.active {
  color: #38bdf8;
  border-bottom: 2px solid #38bdf8;
}

.user-input-field {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.user-input-field:focus {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.auth-msg-box {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.auth-msg-success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.auth-msg-error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-google-login {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-google-login:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Switch Toggle Styling */
.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .4s;
  border-radius: 24px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider-round {
  background-color: #ef4444;
}

input:checked + .slider-round:before {
  transform: translateX(20px);
}

