:root {
    --red: #ff2a2a;
    --blue: #00ccff;
    --green: #39ff14;
    --bg: #050505;
    --surface: #121212;
    --text: #ffffff;
    --translucent: rgba(0, 0, 0, 0.8);
    --red-gradient: radial-gradient(circle at -33% 36%,
            #ff2a2a7e 0%,
            #0505057e 132%);
    --green-gradient: radial-gradient(circle at -33% 36%,
            #39ff147e 0%,
            #0505057e 132%);
    --blue-gradient: radial-gradient(circle at -33% 36%,
            #00ccff7e 0%,
            #0505057e 132%);
    --ru-catalog-border: var(--translucent);
    --ru-catalog-bg: var(--translucent);
    --ru-catalog-img-width: 180px;
    --ru-catalog-gap: 20px;
}

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

}

h1,
h2,
h3 {
    text-transform: uppercase;
}

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

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

/* Navbar */
nav {
    margin: auto;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--translucent);
    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: rgba(255, 42, 42, 0.5);
    border-radius: 50px;
}

.btn-green:hover {
    background-color: rgba(57, 255, 20, 0.5);
}

.btn-blue:hover {
    background-color: rgba(0, 204, 255, 0.5);
}


/* Layout */
.viewport {
    margin: 40px 5%;
    background: var(--translucent);
    padding: 10px;
    border-radius: 15px;
}

.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);
}

.glitch-title.other {
    border-left-color: var(--blue);
}



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

.card {
    background: var(--translucent);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 290px;

}

.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(--red);
    border-color: var(--red);
}

.btn-buy {
    border-color: gold;
    color: gold;
}

.btn-buy:hover {
    background: gold;
    color: black;
}

/* Console Audio Stylisée */
.audio-console {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #333;
    /* Bordure discrète */
    padding: 0;
    /* On gère le padding à l'intérieur */
    z-index: 1000;
    display: none;
}

.audio-console.active {
    display: block;
}

/* Barre de progression pleine largeur au-dessus */
/* Barre de progression pleine largeur */
.full-width-progress {
    -webkit-appearance: none;
    width: 100%;
    height: 12px;
    /* Ajustez cette hauteur pour qu'elle soit égale à votre bouton rouge */
    background: #333;
    /* Couleur de la zone non lue (grise) */
    outline: none;
    display: block;
    cursor: pointer;
    margin: 0;
    transition: background 0.1s ease;
}

/* La manette (curseur) */
.full-width-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    /* Même largeur que la hauteur pour un carré, ou plus pour un rectangle */
    height: 12px;
    background: var(--red);
    cursor: pointer;
    border: none;
}

/* Pour Firefox */
.full-width-progress::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--red);
    cursor: pointer;
    border: none;
}

/* Container principal */
.player-container {
    max-width: 100%;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-left {
    flex: 0 0 50px;
}

.player-center {
    flex: 1;
    text-align: center;
    color: var(--red);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-right {
    text-align: right;
    font-size: 0.85rem;
}

.main-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--red);
    color: white;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}