/* --- 1. CORE VARIABELEN & BASIS --- */
:root { 
    --bg-color: #121212; 
    --card-bg: #1e1e1e; 
    --accent-color: #ff3333; /* Standaard fallback */
    --text-color: #e0e0e0; 
}

body { 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    font-family: sans-serif; 
    margin: 0; 
}

a { 
    color: var(--text-color); 
    text-decoration: none; 
}

h3, .block {
    text-align: center;
}


/* --- 2. HEADER & LOGO --- */
.site-header {
    text-align: center;
    padding: 30px 15px;
}

.logo {
    text-decoration: none;
    color: #fff; 
    display: block;
}

.logo-text h1 {
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    line-height: 1;
}

.logo-text .subtitle {
    display: block;
    font-size: 0.85rem;
    color: #aaa; 
    margin-top: 2px;
}


/* --- 3. ZOEKBALK (PERFECT GECENTREERD & VULLEND) --- */
.search-bar-container {
    width: 100%;
    max-width: 550px;
    margin: 20px auto 0 auto;
}

.search-bar-container .search-form {
    display: flex;
    gap: 8px;
    width: 100%;
}

.search-bar-container input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    font-size: 16px; /* Voorkomt auto-zoom op mobiel */
    background: #1e1e1e;
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
    box-sizing: border-box;
    outline: none;
}

.search-bar-container input[type="text"]:focus {
    border-color: var(--accent-color);
}

.search-bar-container button[type="submit"] {
    padding: 0 20px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.search-bar-container button[type="submit"]:hover {
    opacity: 0.85;
}


/* --- 4. STAR BAR & CATEGORIE TAGS --- */
.star-bar { 
    background: #111; 
    padding: 15px 0; 
    text-align: center; 
    border-bottom: 2px solid var(--accent-color); 
}

.star-link { 
    display: inline-block; 
    padding: 10px 20px; 
    margin: 5px 10px; 
    font-weight: bold; 
    color: #fff; 
    text-transform: uppercase; 
    border: 1px solid #333; 
    transition: 0.3s; 
}

.star-link:hover { 
    background: var(--accent-color); 
    border-color: var(--accent-color); 
}

.block { 
    padding: 30px; 
    border-top: 1px solid #333; 
    border-bottom: 1px solid #333; 
    background: #1a1a1a; 
    margin: 20px 0; 
}

.search-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    text-align: center;
}

.search-tags a { 
    display: inline-block; 
    padding: 8px 15px; 
    background: #222; 
    border: 1px solid #444; 
    color: #aaa; 
    border-radius: 20px;
    transition: 0.3s;
}

.search-tags a:hover { 
    background: var(--accent-color); 
    color: white; 
    border-color: var(--accent-color);
}


/* --- 5. GRID & ITEMS (THUMBS) --- */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 20px; 
    padding: 20px; 
    max-width: 1600px;
    margin: 0 auto;
}

.item { 
    background: var(--card-bg); 
    border: 2px solid transparent; 
    border-radius: 12px; 
    overflow: hidden; 
    transition: 0.3s; 
    position: relative; 
}

.item:hover {
    border-color: var(--accent-color); 
    transform: scale(1.02);
}

.item img { 
    width: 100%; 
    height: 250px; 
    object-fit: cover; 
    display: block; 
}

/* Titel overlay bij hover */
.title { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background: rgba(0,0,0,0.8); 
    padding: 10px; 
    opacity: 0; 
    transition: 0.3s; 
    text-align: center; 
    font-size: 13px; 
}

.item:hover .title { 
    opacity: 1; 
}


/* --- 6. OVERIG & FOOTER --- */
.back-link {
    display: inline-block;
    margin: 20px 0;
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: bold;
    transition: 0.3s;
}

.back-link:hover {
    color: #fff; 
}

footer { 
    padding: 40px; 
    text-align: center; 
}


/* --- 7. DYNAMISCHE KLEUREN PER THEMA --- */
body.theme-green { --accent-color: #2ecc71 !important; }
body.theme-blue { --accent-color: #3498db !important; }
body.theme-red { --accent-color: #e74c3c !important; }
body.theme-purple { --accent-color: #9b59b6 !important; }
body.theme-pink { --accent-color: #e84393 !important; }
body.theme-orange { --accent-color: #e67e22 !important; }
body.theme-yellow { --accent-color: #f1c40f !important; }

body.theme-green .star-bar,
body.theme-green .star-link:hover,
body.theme-green .search-tags a:hover,
body.theme-green .item:hover {
    border-color: #2ecc71 !important;
}
body.theme-green .star-link:hover,
body.theme-green .search-tags a:hover {
    background-color: #2ecc71 !important;
    color: #ffffff !important;
}

.partner-btn{

    display:inline-block;

    padding:8px 14px;

    background:var(--accent-color);

    color:#fff;

    text-decoration:none;

    border-radius:6px;

    transition:.2s;

}

.partner-btn:hover{

    transform:translateY(-2px);

    filter:brightness(1.08);

}

.watch-container{

    max-width:1100px;

    margin:40px auto;

    padding:20px;

}

.fake-player{

    display:block;

    position:relative;

    width:100%;

    aspect-ratio:16/9;

    border-radius:12px;

    overflow:hidden;

    background-size:cover;

    background-position:center;

    border:2px solid #333;

    transition:.25s;

}

.fake-player:hover{

    border-color:var(--accent-color);

}

.player-overlay{

    position:absolute;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    background:linear-gradient(
        rgba(0,0,0,.15),
        rgba(0,0,0,.45)
    );

}

.play-button{

    width:120px;

    height:120px;

    border-radius:50%;

    background:rgba(255,255,255,.92);

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:58px;

    color:#111;

    transition:.2s;

    box-shadow:0 0 40px rgba(0,0,0,.45);

}

.fake-player:hover .play-button{

    transform:scale(1.08);

    background:var(--accent-color);

    color:#fff;

}

.watch-info{

    margin-top:20px;

}

.watch-info h1{

    font-size:28px;

    margin-bottom:10px;

}

.watch-info p{

    color:#aaa;

    line-height:1.7;

}

.quality-badge{

    position:absolute;

    top:15px;

    right:15px;

    background:#111;

    color:#fff;

    padding:6px 12px;

    border-radius:5px;

    font-weight:bold;

    font-size:13px;

}