:root {
    --red: #ff2a2a;
    --blue: #00ccff;
    --green: #39ff14;
    --bg: #050505;
    --surface: #121212;
    --text: #ffffff;
}

body {
    color: var(--text);
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    overflow-x: hidden;
    background-image: url(images/space.png);
    background-size: auto;
}

p, .ep-synopsis, li{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

img {
    object-fit: contain;
    margin: auto;
    width: 100%;
}

/* Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; background: rgba(0,0,0,0.5);
    border-bottom: 2px solid var(--blue); position: sticky; top: 0; z-index: 100;
}

.logo { 
    margin: auto;
    max-width: 800px;
    width: 100%;
}

nav button {
    background: none; border: 1px solid transparent; color: white;
    padding: 8px 15px; cursor: pointer; text-transform: uppercase; transition: 0.3s;
}

nav button:hover { background-color: var(--red); }

.btn-green:hover {background-color: var(--green); color: var(--surface);}
.btn-blue:hover {background-color: var(--blue);color: var(--surface);}


/* Layout */
.viewport { 
    margin: 40px 5%; 
    min-height: 100vh;
    background: rgba(0,0,0,0.5);
    padding: 10px; 
}
.content-view { display: none; }
.content-view.active { display: block; animation: fadeIn 0.5s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.glitch-title {text-transform: uppercase; margin-bottom: 30px; border-left: 5px solid var(--red); padding-left: 15px; }
.glitch-title.mental { border-left-color: var(--green); color: var(--green); }


/* Grille des Cartes */
.main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.card {
    background: var(--surface);
    border: 1px solid #222;
    border-radius: 4px;
    overflow: hidden;
    transition: 0.3s;
    display: flex; flex-direction: column;
}

.card:hover { border-color: var(--blue); box-shadow: 0 0 20px rgba(0,204,255,0.2); }

.card-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }

.card-body { padding: 20px; flex-grow: 1; }

.description { font-size: 0.9rem; color: #aaa; margin: 10px 0 20px 0; min-height: 50px; }

/* Listes d'épisodes */
.episode-box { border-top: 1px solid #333; padding-top: 15px; }

.ep-item { margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #222; }
.ep-title { display: block; font-weight: bold; margin-bottom: 5px; }
.ep-synopsis { display: block; font-size: 0.8rem; color: #888; margin-bottom: 10px; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
    background: #222; color: white; border: 1px solid #444;
    padding: 5px 10px; font-size: 0.75rem; text-decoration: none; cursor: pointer; transition: 0.2s;
}

.btn:hover { background: var(--blue); border-color: var(--blue); }
.btn-buy { border-color: gold; color: gold; }
.btn-buy:hover { background: gold; color: black; }

/* Console Audio */
.audio-console {
    position: fixed; bottom: 0; width: 100%;
    background: #000; border-top: 2px solid var(--red);
    padding: 15px 5%; box-sizing: border-box;
    display: none; flex-wrap: wrap; 
    align-items: center; 
    justify-content: space-between;
    z-index: 2;
}
.audio-console.active {
    display: flex;
}

audio { filter: invert(100%); 
    flex-grow: 1; 
    max-width: 800px; 
    height: 35px; }