:root {
  --accent: #ff0f23;
  --bg: #000;
  --text: #fff;
  --text-muted: rgba(255,255,255,0.6);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Outfit', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.5; }

.bg-glow { position: fixed; width: 60vw; height: 60vw; border-radius: 50%; filter: blur(120px); z-index: -1; opacity: 0.15; pointer-events: none; }
.glow-1 { top: -20%; left: -10%; background: var(--accent); }
.glow-2 { bottom: -20%; right: -10%; background: #4a00ff; }

/* NAVBAR */
#navbar { position: fixed; top: 0; width: 100%; padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; z-index: 1000; transition: 0.4s; }
#navbar.scrolled { background: rgba(0,0,0,0.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 15px 40px; border-bottom: 1px solid var(--glass-border); }

.logo { font-size: 20px; font-weight: 900; letter-spacing: 2px; color: #fff; cursor:pointer; display: flex; align-items: center; gap: 6px; }
.logo-s { color: var(--accent); font-size: 28px; font-weight: 900; text-shadow: 0 0 10px rgba(255,15,35,0.5); }
.logo-text span { font-weight: 300; opacity: 0.3; margin-left: 2px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; opacity: 0.6; transition: 0.3s; }
.nav-links a.active, .nav-links a:hover { opacity: 1; color: var(--accent); }

/* 3D COVERFLOW HERO */
.coverflow-hero { position: relative; height: 92vh; min-height: 650px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; overflow: hidden; background: #000; margin-bottom: 20px; padding-bottom: 60px;}

.hero-brand { position: absolute; top: 15%; text-align: center; z-index: 10; width: 100%; pointer-events: none; animation: brandFadeIn 1.5s ease; display: flex; flex-direction: column; align-items: center; padding: 0 20px; }
.visitor-badge { background: rgba(255, 15, 35, 0.15); border: 1px solid var(--accent); color: var(--accent); padding: 4px 12px; border-radius: 100px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; box-shadow: 0 0 20px rgba(255, 15, 35, 0.2); }
.visitor-badge::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.5; } 100% { transform: scale(1); opacity: 1; } }

.brand-siom { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: -10px; }
.hero-s { font-size: clamp(60px, 15vw, 120px); font-weight: 900; color: var(--accent); text-shadow: 0 0 30px rgba(255,15,35,0.6); font-family: 'Outfit', sans-serif; line-height: 1; }
.oval-iom { font-family: 'Outfit', sans-serif; font-size: clamp(60px, 15vw, 110px); font-weight: 900; letter-spacing: -2px; color: #fff; line-height: 1; text-transform: uppercase; }
.brand-journey { font-size: clamp(12px, 3vw, 24px); font-weight: 300; letter-spacing: 12px; color: rgba(255,255,255,0.3); text-transform: uppercase; margin-top: 2px; }

@keyframes brandFadeIn { from { opacity: 0; transform: scale(0.95) translateY(-30px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.cf-bg-blur { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(60px) brightness(0.25); transform: scale(1.1); transition: 1.5s cubic-bezier(0.2, 0.8, 0.2, 1); z-index: 0; opacity: 0.7; pointer-events: none; }
.coverflow-container { position: relative; width: 100%; height: 420px; display: flex; justify-content: center; align-items: center; perspective: 2000px; margin-top: -80px; z-index: 1; }

.cf-item { 
  position: absolute; width: 220px; height: 330px; border-radius: 15px; 
  overflow: hidden; transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); 
  cursor: pointer; background: #111; border: 1px solid rgba(255,255,255,0.1);
  -webkit-box-reflect: below 5px linear-gradient(transparent 70%, rgba(255,255,255,0.15));
  backface-visibility: hidden;
  transform-style: preserve-3d;
}
.cf-item img { width: 100%; height: 100%; object-fit: cover; }

.cf-item.active { transform: translate3d(0, 0, 200px); z-index: 10; opacity: 1; border-color: rgba(255,255,255,0.4); box-shadow: 0 30px 60px rgba(0,0,0,0.8); }
.cf-item.prev-1 { transform: translate3d(-240px, 0, 0) rotateY(55deg) scale(0.8); z-index: 5; opacity: 0.6; filter: brightness(0.5); }
.cf-item.next-1 { transform: translate3d(240px, 0, 0) rotateY(-55deg) scale(0.8); z-index: 5; opacity: 0.6; filter: brightness(0.5); }
.cf-item.prev-2 { transform: translate3d(-420px, 0, -100px) rotateY(65deg) scale(0.6); z-index: 2; opacity: 0.2; filter: brightness(0.3); }
.cf-item.next-2 { transform: translate3d(420px, 0, -100px) rotateY(-65deg) scale(0.6); z-index: 2; opacity: 0.2; filter: brightness(0.3); }
.cf-item.hidden { transform: translate3d(0, 0, -300px) scale(0); opacity: 0; pointer-events: none; }

.play-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.2); display: flex; justify-content: center; align-items: center; opacity: 0; transition: 0.4s; }
.cf-item.active:hover .play-overlay { opacity: 1; }
.play-glass-btn { width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,0.2); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); display: flex; justify-content: center; align-items: center; border: 1px solid rgba(255,255,255,0.4); transform: scale(0.8); transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cf-item.active:hover .play-glass-btn { transform: scale(1); }

.coverflow-title-container { text-align: center; margin-top: 20px; z-index: 10; animation: brandFadeIn 1s ease 0.5s both; }
#cf-title { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin-bottom: 5px; text-shadow: 0 5px 15px rgba(0,0,0,0.5); }
#cf-meta { font-size: 14px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; }

/* MOVIE GRID */
.content-section { padding: 40px 20px; position: relative; z-index: 5; }
.section-title { font-size: 24px; font-weight: 800; margin-bottom: 25px; padding-left: 20px; border-left: 4px solid var(--accent); max-width: 1200px; margin-left: auto; margin-right: auto; }

.movie-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 15px; 
  padding: 0 20px; 
  max-width: 1200px; 
  margin: 0 auto 100px; 
}
.card-wrapper { width: 100%; aspect-ratio: 2/3; }

.card { 
  position: relative; 
  width: 100%; 
  height: 100%; 
  border-radius: 12px; 
  overflow: hidden; 
  cursor: pointer; 
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); 
  box-shadow: 0 10px 25px rgba(0,0,0,0.6); 
  background: #111; 
}
.card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 15px 35px rgba(255,15,35,0.2); }
.poster-art { width: 100%; height: 100%; object-fit: cover; transition: 0.6s ease; }
.card:hover .poster-art { transform: scale(1.1); }

.card-content { 
  position: absolute; bottom: 0; left: 0; width: 100%; 
  padding: 12px; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
  z-index: 2;
}
.card-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font-size: 10px; color: var(--accent); font-weight: 600; opacity: 0.8; }

.card-glass-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8); width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,0.15); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; justify-content: center; align-items: center; opacity: 0; transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); border: 1px solid rgba(255,255,255,0.4); z-index: 5; pointer-events: none; }
.card:hover .card-glass-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* MOBILE RESPONSIVE FIXES */
@media (max-width: 1100px) {
  .movie-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (max-width: 600px) {
  .movie-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 10px; }
  .section-title { font-size: 18px; padding-left: 5px; margin-bottom: 15px; }
  .content-section { padding: 0 5px 80px; }
  .logo-text { font-size: 16px; }
  .logo-s { font-size: 24px; }
  .cf-item { width: 180px; height: 270px; }
  .coverflow-container { height: 280px; margin-top: -80px; }
  .hero-brand { top: 12%; }
  .card-title { font-size: 10px; }
  .card-meta { display: none; }
  .card-content { padding: 8px 4px; }
  .ios-tab-bar { display: flex; }
  #navbar { padding: 15px 20px; }
}

/* PLAYER MODAL */
#player-modal { position: fixed; inset: 0; background: #000; z-index: 10000; display: none; align-items: center; justify-content: center; }
#player-modal.active { display: flex; }
.player-container { position: relative; width: 100%; height: 100%; background: #000; display: flex; align-items: center; justify-content: center; }
#video-player, #yt-player { width: 100%; height: 100%; object-fit: contain; background: #000; border: none; }

.close-btn { position: absolute; top: 30px; right: 30px; width: 44px; height: 44px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px; cursor: pointer; z-index: 10001; transition: 0.3s; color: #fff; }
.close-btn:hover { background: var(--accent); transform: rotate(90deg); }

/* CUSTOM CONTROLS */
.custom-controls { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(transparent, rgba(0,0,0,0.8)); padding: 20px 40px 40px; display: flex; flex-direction: column; gap: 15px; opacity: 0; transition: 0.3s; z-index: 10002; }
.player-container:hover .custom-controls { opacity: 1; }
.progress-container { width: 100%; height: 6px; background: rgba(255,255,255,0.2); border-radius: 3px; cursor: pointer; position: relative; }
.progress-bar { height: 100%; background: var(--accent); border-radius: 3px; width: 0; position: relative; }
.progress-bar::after { content: ''; position: absolute; right: -6px; top: -4px; width: 14px; height: 14px; background: #fff; border-radius: 50%; box-shadow: 0 0 10px var(--accent); }
.controls-main { display: flex; align-items: center; gap: 20px; }
.ctrl-btn { background: none; border: none; cursor: pointer; color: #fff; display: flex; align-items: center; transition: 0.2s; }
.ctrl-btn:hover { transform: scale(1.1); color: var(--accent); }
.time-display { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* SERIES MODAL */
#series-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 9000; display: none; overflow-y: auto; padding: 40px 20px; }
#series-modal.active { display: block; }
.series-modal-content { max-width: 900px; margin: 0 auto; }
.series-header { display: flex; gap: 40px; margin-bottom: 50px; flex-wrap: wrap; }
.series-poster { width: 280px; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); border: 1px solid var(--glass-border); }
.series-info { flex: 1; min-width: 300px; }
.series-info h2 { font-size: 40px; font-weight: 800; margin-bottom: 15px; }
.series-info p { font-size: 16px; color: var(--text-muted); line-height: 1.6; }

.episodes-list { display: flex; flex-direction: column; gap: 15px; }
.episode-row { display: flex; align-items: center; gap: 20px; padding: 15px; background: var(--glass); border-radius: 15px; border: 1px solid var(--glass-border); cursor: pointer; transition: 0.3s; }
.episode-row:hover { background: rgba(255,255,255,0.12); transform: translateX(10px); }
.ep-number { font-size: 24px; font-weight: 800; opacity: 0.2; width: 40px; }
.ep-thumb { width: 120px; height: 68px; border-radius: 8px; overflow: hidden; }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-details { flex: 1; }
.ep-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.ep-desc { font-size: 13px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* TAB BAR */
.ios-tab-bar { position: fixed; bottom: 0; width: 100%; height: 80px; background: rgba(0,0,0,0.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--glass-border); display: none; justify-content: space-around; align-items: center; padding-bottom: 20px; z-index: 1000; }
.tab-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-muted); cursor: pointer; transition: 0.3s; }
.tab-item svg { width: 24px; height: 24px; }
.tab-item span { font-size: 10px; font-weight: 600; }
.tab-item.active { color: var(--accent); }

/* SEARCH */
#search-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.95); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); z-index: 10001; display: none; padding: 100px 20px; }
#search-modal.active { display: block; }
.search-container { max-width: 1200px; margin: 0 auto; }
#search-input { width: 100%; background: none; border: none; border-bottom: 2px solid var(--accent); font-size: 40px; font-weight: 700; color: #fff; padding: 20px 0; outline: none; margin-bottom: 40px; }
#search-input::placeholder { color: rgba(255,255,255,0.2); }

/* COMING SOON */
.coming-soon-overlay { position: absolute; inset: 0; background: #000; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px; z-index: 10003; }
.soon-content { max-width: 500px; }
.soon-badge { display: inline-block; padding: 6px 15px; background: var(--accent); border-radius: 4px; font-weight: 800; font-size: 12px; margin-bottom: 20px; }
.soon-content h1 { font-size: 32px; margin-bottom: 15px; }
.soon-content p { color: var(--text-muted); line-height: 1.6; margin-bottom: 30px; }
.soon-loader { width: 40px; height: 40px; border: 3px solid rgba(255,255,255,0.1); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

footer { padding: 60px 40px 120px; text-align: center; border-top: 1px solid var(--glass-border); opacity: 0.4; }
footer p { font-size: 14px; letter-spacing: 2px; }
