/* ===========================================
   HOME PAGE & MOVIE GRID STYLES
   =========================================== */

/* Restore Layout Container */
.home-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 2rem;
    min-height: calc(100vh - 120px);
    width: 100%;
}

.home-container-left {
    width: 100%;
    max-width: 1400px;
}

/* Results Title */
.results-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: #fff;
    border-left: 4px solid #E50914; /* Netflix red accent */
    padding-left: 1rem;
    line-height: 1;
}

/* Movie Grid - 4 Columns */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 1rem 0;
}

/* Movie Card */
.movie-card {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.movie-card:hover {
    transform: translateY(-12px);
    border-color: #E50914; /* Highlight on hover */
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.2);
}

/* Card Header */
.card-header {
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.movie-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    line-height: 1.3;
}

.movie-year {
    font-size: 0.75rem;
    color: #fff;
    font-weight: 600;
    padding: 3px 8px;
    background: #333;
    border-radius: 6px;
    white-space: nowrap;
}

/* Card Body */
.card-body {
    padding: 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.movie-info {
    font-size: 0.85rem;
    color: #bbb;
    margin: 0;
    line-height: 1.4;
}

.movie-info strong {
    color: #8c8c8c;
    font-weight: 600;
    margin-right: 0.4rem;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
}

.movie-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 800;
    color: #ffd700;
}

.age-badge {
    font-size: 0.7rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.movie-synopsis {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: normal;
}

/* Empty State */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    color: #8c8c8c;
    font-size: 1.25rem;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .movie-grid {
        grid-template-columns: 1fr;
    }
    .results-title {
        text-align: center;
        border-left: none;
        border-bottom: 3px solid #E50914;
        padding-left: 0;
    }
}