:root {
    --bg-color: #0f172a;        
    --card-bg: #1e293b;         
    --card-bg-hover: #243046;     
    --accent-color: #38bdf8;      
    --accent-secondary: #8b5cf6;   
    --text-primary: #f8fafc;       
    --text-secondary: #94a3b8;  
    --text-lien: #ff83bd;             
    --border-color: rgba(255, 255, 255, 0.08); 
    --success-color: #22c55e;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}


*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.backdrop-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center 20%;
    filter: blur(60px) brightness(0.70);
    opacity: 0.55;
    z-index: -1;
    pointer-events: none;
}

.site-container {
    max-width: 1200px; 
    margin: 40px auto; 
    padding: 0 24px;   
}

.detail-wrapper {
    position: relative;
    display: flex;
    gap: 44px;
    background: var(--card-bg);
    padding: 44px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin-bottom: 48px;
}

.poster-img {
    width: 280px;
    min-width: 280px;
    height: 420px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; 
}

.info-section h1 {
    font-size: clamp(2.2rem, 4vw, 3rem); 
    font-weight: 800;
    margin: 0 0 16px 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.info-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: default; 
}

.info-badge-rating {
    background: rgba(251, 191, 36, 0.08);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.15);
}

.genres-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.genre-badge {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.25);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: default;
}

.bouton-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-primary);
    padding: 10px 22px;
    border-radius: 100px; 
    font-size: 0.9rem;
    font-weight: 700;
    border: 2px solid var(--border-color);
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.bouton-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.bouton-retour {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 10;
    background: #121b2e;
    border-color: rgba(255, 255, 255, 0.15);
}
.bouton-retour:hover {
    background: #fff;
    color: var(--bg-color);
    border-color: #fff;
}

.lien-createur {
    color: var(--text-lien);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    align-self: flex-start;
    transition: color var(--transition-fast);
}

.lien-createur:hover {
    color: var(--accent-color);
}

.synopsis-text {
    color: #e2e8f0;
    font-size: 1.05rem;
    line-height: 1.65;
}

h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 48px 0 24px 0;
    border-left: 4px solid var(--accent-secondary);
    padding-left: 14px;
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.small-card {
    background: var(--card-bg);
    padding: 24px 16px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition-smooth);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.small-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.3);
    background: var(--card-bg-hover);
}

.circle-img {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 14px;
    border: 2px solid var(--accent-secondary);
    padding: 3px;
}

.actor-name { font-weight: 600; font-size: 0.9rem; }
.actor-role { font-size: 0.8rem; color: var(--text-secondary); font-style: italic; }

.seasons-container { display: flex; flex-direction: column; gap: 14px; }
.season-item { border-radius: 14px; overflow: hidden; background: var(--card-bg); border: 1px solid var(--border-color); }
.season-header {
    width: 100%; background: transparent; border: none; color: #fff; padding: 20px 25px;
    display: flex; justify-content: space-between; align-items: center; cursor: pointer;
    font-size: 1.15rem; font-weight: 700; font-family: inherit;
}
.season-header:hover { background: rgba(255, 255, 255, 0.02); }
.ep-count { font-size: 0.95rem; color: var(--text-secondary); }

.season-content { display: none; padding: 4px 20px 20px 20px; background: rgba(15, 23, 42, 0.4); border-top: 1px solid rgba(255, 255, 255, 0.03); }
.season-content.active { display: block; animation: slideDown 0.35s ease-out; }

.episode-row {
    display: flex; align-items: center; background: rgba(255, 255, 255, 0.02);
    margin-top: 10px; border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit;
    transition: all var(--transition-fast); border: 1px solid transparent;
}
.episode-row:hover { background: #243046; border-color: rgba(56, 189, 248, 0.2); transform: translateX(4px); }
.ep-img { width: 140px; height: 80px; object-fit: cover; }
.ep-info { padding: 0 20px; display: flex; justify-content: space-between; align-items: center; flex: 1; min-width: 0; gap: 20px; }
.ep-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
