@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary-color: #E50914;
    --primary-hover: #ff1f2d;
    --primary-glow: rgba(229, 9, 20, 0.4);
    --bg-dark: #000000;
    --glass-bg: rgba(0, 0, 0, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-bg: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, transparent 100%);
    --text-white: #ffffff;
    --text-muted: #b3b3b3;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- OVERALL RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--bg-dark); color: var(--text-white); font-family: 'Outfit', sans-serif; overflow-x: hidden; line-height: 1.4; }

/* --- THE FAMOUS COLLAGE BACKGROUND (Morning Glow) --- */
.landing-container { position: relative; width: 100%; min-height: 100vh; overflow: hidden; background-color: #000; display: flex; flex-direction: column; }
.collage-wrapper { position: fixed; top: -20%; left: -10%; width: 120%; height: 140%; display: grid; grid-template-columns: repeat(7, 1fr); gap: 20px; transform: perspective(1500px) rotateX(25deg) rotateY(-10deg) rotateZ(5deg) skewX(-10deg); z-index: 1; opacity: 0.55; pointer-events: none; }
.collage-column { display: flex; flex-direction: column; gap: 20px; }
@keyframes scrollUp { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
@keyframes scrollDown { 0% { transform: translateY(-50%); } 100% { transform: translateY(0); } }
.collage-column.up { animation: scrollUp 45s linear infinite; }
.collage-column.down { animation: scrollDown 50s linear infinite; }
.collage-item { width: 100%; aspect-ratio: 2/3; background: #111; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.8); border: 1px solid rgba(255,255,255,0.05); transition: transform 0.3s ease; }
.collage-item img { width: 100%; height: 100%; object-fit: cover; }
.collage-item.clickable { cursor: pointer; pointer-events: auto !important; }
.collage-item.clickable:hover { transform: scale(1.05) translateY(-5px); border-color: var(--primary-color); }
.landing-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.9) 80%, #000 100%); z-index: 2; pointer-events: none; }

/* --- PREMIUM NAVIGATION --- */
.main-nav { position: fixed; top: 0; left: 0; width: 100%; padding: 30px 60px; display: flex; justify-content: space-between; align-items: center; z-index: 1000; background: var(--nav-bg); }
.logo { display: flex; align-items: center; gap: 15px; text-decoration: none; color: inherit; font-size: 1.8rem; font-weight: 800; letter-spacing: -1px; }
.nav-logo { height: 40px; }
.nav-auth { display: flex; align-items: center; gap: 30px; }
.nav-link { color: var(--text-white); text-decoration: none; font-weight: 600; font-size: 1rem; transition: var(--transition-smooth); }
.nav-btn, .btn-primary { background: var(--primary-color); color: #fff; padding: 12px 30px; border-radius: 4px; text-decoration: none; font-weight: 800; font-size: 0.95rem; border: none; cursor: pointer; transition: var(--transition-smooth); box-shadow: 0 5px 15px var(--primary-glow); }
.nav-btn:hover, .btn-primary:hover { background: var(--primary-hover); transform: translateY(-3px); box-shadow: 0 8px 30px var(--primary-glow); }

/* --- LANDING CONTENT --- */
.cta-content { position: relative; z-index: 10; text-align: center; max-width: 850px; padding: 40px 20px; margin: auto; }
.cta-content h1 { font-size: 4.5rem; font-weight: 800; margin-bottom: 30px; line-height: 1.1; letter-spacing: -2px; }
.gradient-text { background: linear-gradient(90deg, #fff 0%, var(--primary-color) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.download-btn { display: inline-block; background: var(--primary-color); color: #fff; padding: 22px 65px; border-radius: 6px; text-decoration: none; font-weight: 800; font-size: 1.3rem; margin-top: 40px; transition: var(--transition-smooth); box-shadow: 0 15px 40px rgba(229, 9, 20, 0.4); pointer-events: auto !important; }
.download-btn:hover { background: var(--primary-hover); transform: scale(1.06); }
.footer-text { margin-top: 30px; font-size: 1.1rem; color: var(--text-muted); opacity: 0.8; line-height: 1.6; }

/* --- AUTH CARDS (Login/Signup) --- */
.auth-page .landing-container { justify-content: center; align-items: center; }
.auth-card { background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); padding: 65px; width: 100%; max-width: 480px; border-radius: 12px; border: 1px solid var(--glass-border); position: relative; z-index: 100; box-shadow: 0 40px 100px rgba(0,0,0,0.9); }
.auth-card h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 35px; }
.auth-form .form-group { margin-bottom: 25px; position: relative; }
.auth-form input { width: 100%; background: #222; border: 1px solid #444; border-radius: 4px; padding: 18px 20px; color: #fff; font-size: 1rem; transition: border-color 0.3s; }
.auth-form input:focus { outline: none; border-color: var(--primary-color); }
.auth-submit-btn { width: 100%; padding: 20px; background: var(--primary-color); color: #fff; border: none; border-radius: 4px; font-size: 1.15rem; font-weight: 800; margin-top: 35px; cursor: pointer; transition: var(--transition-smooth); }

/* --- DASHBOARD & PROFILE --- */
.dashboard-page, .profile-view-page { padding-top: 120px; display: flex; flex-direction: column; align-items: center; }
.dashboard-main { position: relative; z-index: 10; width: 95%; max-width: 1500px; display: grid; grid-template-columns: 1fr 400px; gap: 40px; padding-bottom: 80px; }
.glass-panel { background: var(--glass-bg); backdrop-filter: blur(45px); -webkit-backdrop-filter: blur(45px); border: 1px solid var(--glass-border); border-radius: 20px; padding: 40px; box-shadow: 0 25px 80px rgba(0,0,0,0.8); }
.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 25px; margin-top: 30px; }

/* --- STREAM & ACTIVITIES --- */
.stream-item { background: rgba(255,255,255,0.04); border-radius: 15px; display: flex; gap: 20px; padding: 20px; border: 1px solid var(--glass-border); margin-bottom: 25px; transition: var(--transition-smooth); }
.stream-item:hover { background: rgba(255,255,255,0.08); transform: translateX(8px); }
.stream-poster { width: 85px; aspect-ratio: 2/3; border-radius: 8px; object-fit: cover; box-shadow: 0 5px 20px rgba(0,0,0,0.5); }
.delete-act-btn { position: absolute; right: 20px; top: 20px; background: rgba(229, 9, 20, 0.2); color: var(--primary-color); border: none; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem; font-weight: 800; transition: var(--transition-smooth); }
.delete-act-btn:hover { background: var(--primary-color); color: #fff; transform: scale(1.15); }

/* --- PROFILE HEADER --- */
.profile-main { width: 90%; max-width: 950px; padding: 75px; text-align: center; margin-bottom: 60px; }
.profile-img-header { width: 155px; height: 155px; border-radius: 50%; object-fit: cover; border: 5px solid var(--primary-color); margin-bottom: 25px; box-shadow: 0 15px 45px var(--primary-glow); }

/* --- INPUTS GLAM --- */
.input-glam { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border); border-radius: 10px; padding: 18px 25px; color: #fff; font-size: 1.05rem; outline: none; transition: var(--transition-smooth); }
.input-glam:focus { border-color: var(--primary-color); background: rgba(255,255,255,0.1); }

@media (max-width: 1100px) { .dashboard-main { grid-template-columns: 1fr; } .cta-content h1 { font-size: 3rem; } .main-nav { padding: 20px 30px; } }
@media (max-width: 768px) { .auth-card { padding: 40px; } .profile-main { padding: 40px; } }
