/*
   If you are reading this, I need you to know that this css was written with blood, sweat, and mostly tears. I wrote the bones of this css as my very first web development project ever.
   Now, retrofitting it for a django project has been an enormously painful task.
   I'm doing this because I want to keep the spirit of my original design, rather than make something that looks like every other website today.

   2026/11: moved onto the shared base (css/site.css) and its dark tokens. The layout is the original one:
   a bordered page with a title band and rating, poster beside the facts, then the review.
*/

.movie {
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid var(--line-strong);
    background: var(--stage);
}

.movie-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 32px;
    padding: 24px 40px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.movie-header h1 {
    font-size: clamp(26px, 3.6vw, 36px);
    line-height: 1.1;
}

.movie-rating {
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
}

.movie-facts {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 40px;
    padding: 40px;
}

.movie-poster {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border: 1px solid var(--line-strong);
}

.movie-synopsis {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.top250-rank {
    font-size: 19px;
    font-weight: 800;
    color: var(--accent);
}

.top250-rank a {
    color: inherit;
    text-decoration: none;
}

.top250-rank a:hover {
    text-decoration: underline;
}

.movie-credits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.movie-credits div {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
}

.movie-credits dt {
    flex: 0 0 96px;
    padding-top: 3px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.movie-credits dd {
    flex: 1 1 200px;
    margin: 0;
    color: var(--text-soft);
}

.movie-review {
    max-width: none;
    padding: 40px;
    border-top: 1px solid var(--line);
    line-height: 1.6;
}

@media (max-width: 767px) {
    .movie-header {
        padding: 20px;
    }

    .movie-facts {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding: 20px;
    }

    .movie-poster {
        max-width: 300px;
        margin: 0 auto;
    }

    .movie-review {
        padding: 20px;
    }
}

@media print {
    .movie,
    .movie-header {
        background: white;
        color: black;
        border: none;
    }
}
