
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Modal Style */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-content {
    background-color: #1f1f1f;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 80%;
    max-width: 500px;
}

.modal-content h2 {
    color: #1DB954;
    margin-bottom: 10px;
}

.modal-content p {
    margin-bottom: 20px;
}

.modal-content button {
    background-color: #1DB954;
    border: none;
    padding: 10px 20px;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-content button:hover {
    background-color: #17a74a;
}

.hidden {
    display: none;
}

header {
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1f1f1f;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 5;
}

#dymitros-logo {
    height: 50px;
}

#search-bar {
    padding: 10px;
    border-radius: 20px;
    border: none;
    width: 300px;
    background-color: #2a2a2a;
    color: #e0e0e0;
}

main {
    display: flex;
    flex-direction: row;
    height: calc(100vh - 60px);
}

#left-panel {
    width: 70%;
    padding: 20px;
    overflow-y: auto;
}

#right-panel {
    width: 30%;
    padding: 20px;
    background-color: #181818;
    overflow-y: auto;
}

/* Style général section */
section {
    margin-bottom: 30px;
}

h2 {
    color: #1DB954;
    font-size: 1.5rem;
    text-transform: lowercase;
    margin-bottom: 10px;
}

/* Prochainement - scroll horizontal */
.movie-row {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.movie-row::-webkit-scrollbar {
    height: 8px;
}
.movie-row::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 4px;
}

/* Affiche de film */
.poster {
    background-color: #1f1f1f;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    min-width: 140px;
    max-width: 140px;
}

.poster img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Films classiques */
.movie-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.movie {
    background-color: #1f1f1f;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    width: 140px;
}

.movie img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.movie button {
    background-color: #1DB954;
    border: none;
    padding: 5px 10px;
    margin-top: 5px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

#player {
    margin-bottom: 20px;
    width: 100%;
}
