
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #121212;
    color: #302828;
    animation: fadeIn 1.5s ease-in-out;
}

header {
    background-color: #1f1f1f;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f4c10f;
}

header nav {
    display: flex;
    gap: 10px;
}

header nav a {
    color: #272424;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #f4c10f;
}

.movie-detail-container {
    display: grid;
    grid-template-areas:
        "cover name"
        "cover infos"
        "cover beschreibung"
        "player player"
        "kritik kommentare";
    grid-template-columns: 1fr 2fr;
    grid-template-rows: auto auto auto auto auto;
    gap: 20px;
    width: 90%;
    max-width: 1200px;
    background: #201f1f;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: slideIn 1.2s ease-out;
    margin: 20px auto;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #007bff;
    color: rgb(0, 0, 0);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    z-index: 1000;
    transition: background 0.3s ease;
}

.back-button:hover {
    background: #0056b3;
}

.movie-poster {
    grid-area: cover;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    min-height: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.movie-poster:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.movie-title {
    grid-area: name;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: left;
    animation: fadeInText 1.5s ease-in-out;
    color: #333;
}

.movie-meta {
    grid-area: infos;
    background-color: #242020;
    padding: 15px;
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, background-color 0.3s ease;
    font-size: 0.9rem;
}

.movie-meta:hover {
    background-color: #2f4052;
    transform: translateY(-5px);
}

.movie-description {
    grid-area: beschreibung;
    background-color: #332d2d;
    padding: 15px;
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, background-color 0.3s ease;
    font-size: 1rem;
    line-height: 1.6;
}

.movie-description:hover {
    background-color: #243444;
    transform: translateY(-5px);
}

.movie-player {
    grid-area: player;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.movie-player iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
}

.no-stream {
    color: rgb(43, 41, 41);
    font-size: 1.2rem;
    text-align: center;
}

.movie-kritik {
    grid-area: kritik;
    background-color: #3b3838;
    padding: 15px;
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, background-color 0.3s ease;
    font-size: 0.9rem;
    min-height: 200px;
}

.movie-kritik:hover {
    background-color: #151516;
    transform: translateY(-5px);
}

.movie-kommentare {
    grid-area: kommentare;
    background-color: #363333;
    padding: 15px;
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, background-color 0.3s ease;
    font-size: 0.9rem;
    min-height: 200px;
}

.movie-kommentare:hover {
    background-color: #1d2a36;
    transform: translateY(-5px);
}

.section-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #007bff;
    font-size: 1.1rem;
}

.info-item {
    margin-bottom: 5px;
}

.rating {
    color: #ff6b35;
    font-weight: bold;
}

.play-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
    transition: background 0.3s ease;
}

.play-button:hover {
    background: #218838;
}

.movie-actions {
    margin-top: 15px;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@media (max-width: 768px) {
    .movie-detail-container {
        grid-template-areas:
            "cover"
            "name"
            "infos"
            "beschreibung"
            "player"
            "kritik"
            "kommentare";
        grid-template-columns: 1fr;
        width: 95%;
        padding: 15px;
    }

    .back-button {
        position: relative;
        margin-bottom: 20px;
    }

    .movie-title {
        font-size: 1.5rem;
    }
}
