/* ============================================================
   CineMassa — filmes.css
   ============================================================ */

.filmes-container {
    padding-top: 40px;
    padding-bottom: 60px;
    max-width: 1200px;
}

.page-title-block {
    margin-bottom: 32px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.page-title-bar {
    width: 40px;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Section header ──────────────────────────────────────── */
.filmes-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.filmes-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ── Grid ────────────────────────────────────────────────── */
.filmes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* ── Card de filme ───────────────────────────────────────── */
.filme-card {
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 2px solid var(--border);
    transition: all .25s ease;
    position: relative;
}

.filme-card:hover {
    border-color: rgba(224,48,48,0.5);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.filme-card.selected {
    border-color: var(--red);
    box-shadow: 0 0 0 1px var(--red), var(--shadow-red);
}

/* ── Poster ──────────────────────────────────────────────── */
.filme-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.filme-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.filme-card:hover .filme-poster img {
    transform: scale(1.04);
}

/* Overlay de selecionado */
.filme-selected-overlay {
    position: absolute;
    inset: 0;
    background: rgba(224,48,48,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s ease;
    color: #fff;
}

.filme-card.selected .filme-selected-overlay { opacity: 1; }

/* Badge de check */
.filme-check-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all .25s ease;
}

.filme-card.selected .filme-check-badge {
    opacity: 1;
    transform: scale(1);
}

/* ── Info ────────────────────────────────────────────────── */
.filme-info {
    padding: 14px;
}

.filme-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.filme-genre {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Actions ─────────────────────────────────────────────── */
.filmes-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 1024px) {
    .filmes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .filmes-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .filmes-actions { flex-direction: column; gap: 12px; }
    .filmes-actions .btn { width: 100%; }
}