:root {
    --apple-red: #ff3b30;
    --glass-bg: rgba(25, 25, 25, 0.7);
    --bg-dark: #000000;
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', sans-serif; background: var(--bg-dark); color: var(--text-main); overflow-x: hidden; }

/* Navigation & Search (Same as before) */
header { position: fixed; top: 0; width: 100%; z-index: 2000; padding: 15px 5%; display: flex; transition: 0.5s; background: rgba(0,0,0,0.4); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border-bottom: 0.5px solid rgba(255,255,255,0.1); }
.nav-content { display: flex; width: 100%; align-items: center; justify-content: space-between; }
.logo { font-weight: 800; font-size: 24px; color: var(--apple-red); letter-spacing: -1px; cursor: pointer; }
.main-nav span { margin: 0 15px; font-size: 15px; font-weight: 500; color: var(--text-dim); cursor: pointer; transition: 0.3s; }
.main-nav span.active { color: #fff; font-weight: 700; transform: scale(1.1); }
.search-wrapper { display: flex; align-items: center; background: rgba(255,255,255,0.1); border-radius: 20px; padding: 5px 15px; }
#searchInput { background: transparent; border: none; color: #fff; outline: none; width: 150px; font-size: 14px; }
.voice-btn, .search-btn { background: none; border: none; font-size: 18px; cursor: pointer; margin-left: 8px; }

/* Hero Section */
.hero-section { height: 80vh; width: 100%; background-size: cover; background-position: center; display: flex; align-items: flex-end; position: relative; }
.hero-section::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, #000, transparent 70%); }
.hero-inner { padding: 0 5% 60px; z-index: 10; max-width: 700px; }
.hero-inner h1 { font-size: clamp(35px, 6vw, 60px); font-weight: 800; margin-bottom: 15px; }

/* --- Advanced Scroll Row Styling --- */
.row-container { margin: 40px 0 0 5%; position: relative; }
.row-container h2 { font-size: 22px; font-weight: 600; margin-bottom: 15px; }

.row-wrapper { position: relative; display: flex; align-items: center; group: hover; }

.movie-row { 
    display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; 
    padding: 15px 0 30px; width: 100%;
}
.movie-row::-webkit-scrollbar { display: none; }

.movie-card { min-width: 180px; border-radius: 12px; transition: 0.4s cubic-bezier(0.2, 1, 0.2, 1); cursor: pointer; }
.movie-card:hover { transform: scale(1.1); z-index: 100; box-shadow: 0 15px 35px rgba(0,0,0,0.8); }
.movie-card img { width: 100%; border-radius: 12px; display: block; }

/* Scroll Handles (Buttons) */
.scroll-handle {
    position: absolute; top: 0; bottom: 30px; width: 50px;
    background: rgba(0, 0, 0, 0.3); color: white; border: none;
    font-size: 25px; cursor: pointer; z-index: 50;
    opacity: 0; transition: 0.3s; backdrop-filter: blur(5px);
}
.row-wrapper:hover .scroll-handle { opacity: 1; }
.scroll-handle:hover { background: rgba(229, 9, 20, 0.6); }

.left-handle { left: -40px; border-radius: 10px 0 0 10px; }
.right-handle { right: 0; border-radius: 0 10px 10px 0; }

/* Modal & Search Grid */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 3000; backdrop-filter: blur(15px); align-items: center; justify-content: center; }
.modal-content { width: 90%; max-width: 850px; border-radius: 25px; background: rgba(30, 30, 30, 0.8); border: 1px solid rgba(255,255,255,0.1); overflow: hidden; animation: zoomIn 0.4s; }
@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-body { display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; padding: 40px; }
.modal-info h2 { font-size: 30px; font-weight: 800; margin-bottom: 10px; color: var(--apple-red); }

.btn-apple { padding: 12px 25px; border-radius: 10px; border: none; font-weight: 600; cursor: pointer; margin-right: 10px; transition: 0.3s; }
.btn-fill { background: #fff; color: #000; }
.btn-border { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }

.search-overlay { position: fixed; inset: 0; background: #000; z-index: 4000; padding: 100px 5%; overflow-y: auto; }
.search-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }

footer { padding: 60px 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.1); font-size: 14px; color: var(--text-dim); }
