/* style.css - Premium Dark Theme */
:root {
    --primary: #E50914; /* De bekende rode kleur */
    --bg-main: #141414; /* Diepzwart */
    --bg-secondary: #1f1f1f; /* Iets lichter voor kaarten */
    --text-light: #ffffff;
    --text-muted: #b3b3b3;
    --shadow-subtle: 0 4px 15px rgba(0,0,0,0.5);
}

body {
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
a:hover { color: var(--text-light); }

/* --- Navigatie --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 4%; background: rgba(20, 20, 20, 0.95);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid #222;
    backdrop-filter: blur(10px);
}
.logo { font-size: 1.8rem; font-weight: 900; color: var(--primary); letter-spacing: 1px; }
.nav-links a { margin-left: 20px; font-size: 0.9rem; color: var(--text-muted); font-weight: 500;}
.nav-links a:hover { color: var(--text-light); }
.btn-primary {
    background-color: var(--primary); color: white !important;
    padding: 8px 16px; border-radius: 4px; font-weight: bold; transition: 0.3s;
}
.btn-primary:hover { background-color: #ff0f1f; }

/* --- Hero Sectie (Homepage) --- */
.hero {
    height: 85vh;
    background: linear-gradient(to top, var(--bg-main), transparent 60%), linear-gradient(to right, var(--bg-main) 20%, transparent), url('https://images.unsplash.com/photo-1626814026160-2237a95fc5a0?q=80&w=1920') center/cover;
    display: flex; align-items: center; padding: 0 4%;
}
.hero-content { max-width: 600px; }
.hero h1 { font-size: 4rem; margin-bottom: 10px; line-height: 1.1; }
.hero p { font-size: 1.3rem; margin-bottom: 30px; }

/* --- Formulieren (Login) --- */
.login-wrapper {
    height: 100vh; display: flex; justify-content: center; align-items: center;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1574375927938-d5a98e8efe30?q=80&w=1920') center/cover;
}
.login-box {
    background: rgba(0,0,0,0.85); padding: 60px 40px; border-radius: 8px; width: 100%; max-width: 450px;
    box-shadow: var(--shadow-subtle); backdrop-filter: blur(5px);
}
.form-input {
    width: 100%; padding: 16px; margin-bottom: 20px; border-radius: 4px; border: 1px solid #333;
    background: #333; color: white; font-size: 1rem; box-sizing: border-box;
}
.form-input:focus { outline: none; border-color: #555; background: #444; }
.form-btn { width: 100%; padding: 16px; border: none; border-radius: 4px; background: var(--primary); color: white; font-size: 1.1rem; font-weight: bold; cursor: pointer; }
.form-btn:hover { background: #ff0f1f; }

/* --- Player Dashboard --- */
.dashboard-container { padding: 30px 4%; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.search-bar {
    padding: 10px 15px; border-radius: 20px; border: 1px solid #444; background: rgba(255,255,255,0.1);
    color: white; width: 300px; transition: 0.3s;
}
.search-bar:focus { border-color: var(--text-muted); background: rgba(255,255,255,0.15); outline: none;}

.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.movie-card {
    position: relative; border-radius: 6px; overflow: hidden; cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s; background: var(--bg-secondary);
}
.movie-card:hover { transform: scale(1.05); z-index: 2; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.movie-card img { width: 100%; height: 270px; object-fit: cover; }
.movie-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px 10px 10px; opacity: 0; transition: 0.3s;
}
.movie-card:hover .movie-overlay { opacity: 1; }
.movie-title { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Video Player Page --- */
.video-container { height: calc(100vh - 70px); background: black; display: flex; justify-content: center; align-items: center; }
.video-js { width: 100%; height: 100%; }
.vjs-big-play-button { top: 50%!important; left: 50%!important; transform: translate(-50%, -50%); line-height: 1.5em!important; height: 1.5em!important; width: 1.5em!important; border-radius: 50%!important; background-color: rgba(0,0,0,0.6)!important; border: 2px solid white!important;}
/* Zorg dat de controls altijd zichtbaar zijn als je pauzeert voor een luxe gevoel */
.vjs-paused .vjs-control-bar { display: flex; visibility: visible; opacity: 1; }

/* Responsive tweaks */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .movie-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    .movie-card img { height: 200px; }
    .search-bar { width: 100%; }
}