/* ============================================================
   movie-listing.css
   Styles for the public movie listing (/movies, /movies/genre/etc.)
   Classes used in movie-listing.php
   ============================================================ */

/* -- Grid --------------------------------------------------- */

.movie-grid-full {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (min-width: 480px)  { .movie-grid-full { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px)  { .movie-grid-full { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .movie-grid-full { grid-template-columns: repeat(5, 1fr); } }

/* -- Card --------------------------------------------------- */

.movie-card-sm {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, border-color 0.2s;
}
.movie-card-sm:hover {
    transform: translateY(-3px);
    border-color: var(--accent-border);
}

.movie-card-sm-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--bg-card-alt);
}
.movie-card-sm-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.movie-card-sm:hover .movie-card-sm-poster img {
    transform: scale(1.05);
}

.card-rating-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 7px;
    background: rgba(7,19,24,.85);
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
}
.card-rating-badge svg {
    width: 11px;
    height: 11px;
    color: var(--gold);
}

.movie-card-sm-info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.movie-card-sm-info strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.movie-card-sm-info span {
    font-size: 11px;
    color: var(--text-muted);
}

/* -- Poster placeholder ------------------------------------- */

.poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card-alt);
    color: var(--text-muted);
}
.poster-placeholder svg { width: 40px; height: 40px; }
