/* app/assets/stylesheets/movies.css */

.movie-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.movie-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.poster-container {
/*    width: 300px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;*/
}

.poster {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 2 / 3; /* Enforces 2:3 ratio */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.movie-info {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .movie-header {
        flex-direction: column;
        align-items: center;
    }

    .poster-container {
        width: 100%;
        max-width: 300px;
    }
}

.movie-info h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
}

.original-title {
    color: #666;
    margin: 0 0 15px 0;
}

.metadata {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.badge {
    background: #e0e0e0;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.9em;
}

.genres {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.genre-tag {
    background: #007bff;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85em;
}

.description {
    line-height: 1.6;
    margin-bottom: 20px;
}

.credits-section {
    margin-top: 20px;
}

.directors-block,
.cast-block {
    margin-bottom: 10px;
}

.directors-block h2,
.cast-block h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.directors-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.director-name {
    font-weight: bold;
    font-size: 1.1em;
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.cast-card {
    padding: 3px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s;
}

.cast-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.actor-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.character-name {
    color: #666;
    font-size: 0.9em;
}

.more-cast {
    margin-top: 15px;
    color: #666;
    font-style: italic;
}

.toggle-cast-btn {
    margin-top: 1px;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.toggle-cast-btn:hover {
    background-color: #0056b3;
}

.toggle-cast-btn:active {
    transform: scale(0.98);
}
