/* ===== CINEMATIC HOMEPAGE ===== */
:root { --cinema-blue: #38bdf8; }

/* Discover Search & Netflix Rows */
.watch-container { max-width: 1300px; margin: 0 auto; padding: 0 20px 100px; position: relative; z-index: 50; }
.search-input-wrapper { display: flex; align-items: center; background: rgba(15, 23, 42, 0.8); border: 2px solid rgba(56, 189, 248, 0.3); border-radius: 100px; padding: 5px 25px; transition: 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.search-input-wrapper:focus-within { border-color: var(--cinema-blue); box-shadow: 0 0 25px rgba(56, 189, 248, 0.4); }
.search-icon { color: var(--cinema-blue); font-size: 1.2rem; margin-right: 15px; }
.master-search { flex-grow: 1; background: transparent; border: none; color: #fff; font-size: 1.1rem; font-weight: 600; outline: none; padding: 10px 0; }
.search-results { position: absolute; top: 100%; left: 0; right: 0; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 20px; margin-top: 10px; max-height: 400px; overflow-y: auto; z-index: 100; display: none; box-shadow: 0 20px 50px rgba(0,0,0,0.8); }
.search-item { display: flex; align-items: center; padding: 12px 20px; gap: 15px; cursor: pointer; transition: 0.2s; border-bottom: 1px solid rgba(255,255,255,0.05); }
.search-item:hover { background: rgba(56, 189, 248, 0.15); }
.search-poster { width: 45px; height: 68px; border-radius: 8px; object-fit: cover; background: #000; }
.search-info { display: flex; flex-direction: column; text-align: left; }
.search-title { font-weight: 700; font-size: 1rem; color: #fff; }
.search-meta { font-size: 0.8rem; color: #94a3b8; margin-top: 4px; display: flex; gap: 10px; align-items: center; }
.search-type { background: rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 100px; font-size: 0.7rem; font-weight: 800; }
.netflix-section { margin-bottom: 40px; }
.netflix-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 15px; padding-left: 10px; border-left: 4px solid var(--cinema-blue); color: #fff; text-align: left; }
.netflix-row { display: flex; gap: 15px; overflow-x: auto; padding: 15px 0 30px; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; }
.netflix-row::-webkit-scrollbar { display: none; }
.netflix-card { min-width: 150px; max-width: 150px; border-radius: 12px; cursor: pointer; transition: 0.4s; position: relative; }
.netflix-card:hover { transform: scale(1.1); z-index: 10; }
.netflix-poster { width: 100%; height: 225px; border-radius: 12px; object-fit: cover; box-shadow: 0 10px 20px rgba(0,0,0,0.5); transition: 0.4s; border: 2px solid transparent; }
.netflix-card:hover .netflix-poster { border-color: var(--cinema-blue); box-shadow: 0 15px 30px rgba(56, 189, 248, 0.4); }
.netflix-row-wrapper { position: relative; }
.scroll-btn { position: absolute; top: 15px; height: 225px; width: 50px; background: rgba(15, 23, 42, 0.6); color: #fff; border: none; font-size: 2.5rem; cursor: pointer; z-index: 20; display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.netflix-row-wrapper:hover .scroll-btn { opacity: 1; }
.scroll-btn.left { left: 0; border-radius: 0 8px 8px 0; background: linear-gradient(to right, rgba(15,23,42,0.9), rgba(15,23,42,0.4)); }
.scroll-btn.right { right: 0; border-radius: 8px 0 0 8px; background: linear-gradient(to left, rgba(15,23,42,0.9), rgba(15,23,42,0.4)); }
.guide-grid { margin-top: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.guide-item { background: rgba(15, 23, 42, 0.4); border: 1px solid rgba(255,255,255,0.05); padding: 40px; border-radius: 30px; transition: 0.4s; }

/* Hero Carousel */
.hero-carousel { position: relative; width: 100%; height: 85vh; min-height: 500px; overflow: hidden; margin-top: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide-bg { width: 100%; height: 100%; object-fit: cover; }
.hero-slide-overlay { position: absolute; inset: 0; background: linear-gradient(to top, #0a0e17 0%, rgba(10,14,23,0.7) 40%, rgba(10,14,23,0.3) 100%); }
.hero-slide-content { position: absolute; bottom: 12%; left: 5%; z-index: 3; max-width: 600px; }
.hero-slide-content h1 { font-size: 3.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 12px; text-shadow: 0 4px 30px rgba(0,0,0,0.7); }
.hero-slide-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 0.9rem; color: #cbd5e1; flex-wrap: wrap; }
.hero-slide-meta .rating { color: #facc15; font-weight: 800; }
.hero-slide-meta .badge { background: rgba(255,255,255,0.12); padding: 3px 10px; border-radius: 6px; font-size: 0.78rem; font-weight: 700; }
.hero-slide-desc { color: #94a3b8; font-size: 0.95rem; line-height: 1.6; margin-bottom: 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-btn-group { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-watch-now { display: inline-flex; align-items: center; gap: 10px; background: #facc15; color: #0a0e17; padding: 14px 36px; border-radius: 50px; font-weight: 900; font-size: 1.05rem; text-decoration: none; border: none; cursor: pointer; transition: 0.3s; box-shadow: 0 8px 30px rgba(250,204,21,0.35); }
.btn-watch-now:hover { transform: scale(1.05); box-shadow: 0 12px 40px rgba(250,204,21,0.5); }
.btn-more-info { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.12); color: #fff; padding: 14px 30px; border-radius: 50px; font-weight: 700; font-size: 0.95rem; text-decoration: none; border: 1px solid rgba(255,255,255,0.15); backdrop-filter: blur(10px); cursor: pointer; transition: 0.3s; }
.btn-more-info:hover { background: rgba(255,255,255,0.2); }

/* Carousel Nav */
.hero-nav { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); z-index: 5; display: flex; flex-direction: column; gap: 8px; }
.hero-nav-dot { width: 6px; height: 30px; border-radius: 3px; background: rgba(255,255,255,0.25); border: none; cursor: pointer; transition: 0.3s; padding: 0; }
.hero-nav-dot.active { background: #facc15; height: 40px; box-shadow: 0 0 12px rgba(250,204,21,0.5); }
.hero-arrows { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; padding: 0 15px; z-index: 5; transform: translateY(-50%); pointer-events: none; }
.hero-arrow { pointer-events: all; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); color: #fff; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; transition: 0.3s; backdrop-filter: blur(8px); }
.hero-arrow:hover { background: rgba(250,204,21,0.2); border-color: #facc15; }

/* Section Titles */
.section-row { max-width: 1400px; margin: 0 auto; padding: 0 30px; margin-bottom: 50px; }
.section-row-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 20px; }
.section-row-title { font-size: 3rem; font-weight: 900; color: transparent; -webkit-text-stroke: 1.5px #facc15; letter-spacing: -2px; line-height: 1; }
.section-row-subtitle { font-size: 0.85rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 2px; margin-top: 4px; }
.section-row-type { padding: 8px 20px; border: 1.5px solid rgba(250,204,21,0.4); border-radius: 50px; color: #facc15; font-size: 0.8rem; font-weight: 700; background: rgba(250,204,21,0.06); cursor: default; white-space: nowrap; }

/* Movie Cards Row */
.movie-row-scroller { display: flex; gap: 16px; overflow-x: auto; padding: 10px 0 20px; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; }
.movie-row-scroller::-webkit-scrollbar { display: none; }
.movie-card { min-width: 180px; max-width: 180px; border-radius: 14px; cursor: pointer; transition: 0.4s; position: relative; overflow: hidden; }
.movie-card:hover { transform: scale(1.08); z-index: 10; }
.movie-card img { width: 100%; height: 270px; object-fit: cover; border-radius: 14px; border: 2px solid transparent; transition: 0.4s; box-shadow: 0 8px 25px rgba(0,0,0,0.5); }
.movie-card:hover img { border-color: #facc15; box-shadow: 0 12px 35px rgba(250,204,21,0.3); }
.movie-card-title { font-size: 0.82rem; font-weight: 700; color: #e2e8f0; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }

/* Top 10 Section */
.top10-row { display: flex; gap: 20px; overflow-x: auto; padding: 10px 0 20px; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; }
.top10-row::-webkit-scrollbar { display: none; }
.top10-card { min-width: 160px; position: relative; cursor: pointer; transition: 0.4s; display: flex; align-items: flex-end; }
.top10-card:hover { transform: scale(1.06); z-index: 10; }
.top10-number { font-size: 8rem; font-weight: 900; color: transparent; -webkit-text-stroke: 3px #facc15; line-height: 0.8; position: relative; left: 10px; z-index: 1; user-select: none; }
.top10-poster { width: 130px; height: 195px; object-fit: cover; border-radius: 12px; border: 2px solid rgba(250,204,21,0.3); box-shadow: 0 8px 25px rgba(0,0,0,0.6); position: relative; z-index: 2; margin-left: -15px; transition: 0.3s; }
.top10-card:hover .top10-poster { border-color: #facc15; box-shadow: 0 12px 35px rgba(250,204,21,0.4); }

/* Responsive */
@media (max-width: 768px) {
    .hero-carousel { height: 70vh; min-height: 400px; }
    .hero-slide-content { bottom: 10%; left: 20px; right: 20px; max-width: none; }
    .hero-slide-content h1 { font-size: 2rem; }
    .hero-slide-desc { font-size: 0.85rem; -webkit-line-clamp: 2; }
    .btn-watch-now { padding: 12px 28px; font-size: 0.9rem; }
    .btn-more-info { padding: 12px 22px; font-size: 0.85rem; }
    .hero-nav { right: 12px; }
    .hero-arrow { width: 36px; height: 36px; font-size: 1rem; }
    .section-row { padding: 0 16px; margin-bottom: 35px; }
    .section-row-title { font-size: 2rem; -webkit-text-stroke: 1px #facc15; }
    .section-row-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .movie-card { min-width: 140px; max-width: 140px; }
    .movie-card img { height: 210px; }
    .top10-number { font-size: 5.5rem; -webkit-text-stroke: 2px #facc15; }
    .top10-poster { width: 100px; height: 150px; }
    .top10-card { min-width: 120px; }
    .netflix-card { min-width: 130px; max-width: 130px; }
    .netflix-poster { height: 195px; }
    .scroll-btn { display: none; }
}

@media (max-width: 480px) {
    .hero-carousel { height: 60vh; min-height: 350px; }
    .hero-slide-content h1 { font-size: 1.6rem; }
    .hero-btn-group { gap: 10px; }
    .btn-watch-now { padding: 10px 22px; font-size: 0.85rem; }
    .section-row-title { font-size: 1.6rem; }
    .movie-card { min-width: 120px; max-width: 120px; }
    .movie-card img { height: 180px; }
}
