.movie-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Navbar and Filters */
.navbar-wrapper {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.navbar {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.filters-section {
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.1);
}

/* Logo styling */
.navbar-logo {
    height: 40px;
    padding: 4px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filters-container {
    max-width: 1000px;
    margin: 0 auto;
}

.search-input {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.25);
    border-color: transparent;
}

.filter-card {
    background: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 0.5rem;
    padding: 1rem;
}

/* Range Slider Customization */
.rc-slider {
    padding: 10px 0;
}

.rc-slider-track {
    background-color: #3498db;
    height: 4px;
}

.rc-slider-rail {
    height: 4px;
    background-color: #e0e0e0;
}

.rc-slider-handle {
    border: 2px solid #3498db;
    background-color: white;
    width: 16px;
    height: 16px;
    margin-top: -6px;
}

.rc-slider-handle:hover {
    border-color: #2980b9;
}

.rc-slider-handle:active {
    border-color: #2980b9;
    box-shadow: 0 0 5px #2980b9;
}

.rc-slider-mark {
    top: 20px;
}

.rc-slider-mark-text {
    color: #666;
    font-size: 0.8rem;
}

.rc-slider-mark-text-active {
    color: #2980b9;
}

/* Filter Button */
#filters-button {
    font-size: 0.9rem;
    text-decoration: none;
}

#filters-button:hover {
    color: rgba(255,255,255,0.8) !important;
}

#filters-button i {
    transition: transform 0.2s ease;
}

#filters-button[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Spacing for fixed navbar */
body {
    padding-top: 120px;
}

@media (max-width: 768px) {
    body {
        padding-top: 160px;
    }
    
    .filters-container .row {
        flex-direction: column;
    }
    
    .filters-container .col-md-4 {
        width: 100%;
        margin-bottom: 1rem;
    }

    /* Mobile Navigation Styles */
    .navbar-container {
        position: relative;
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1.25rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: transparent;
        color: white;
    }

    .navbar-toggler:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    #navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bs-primary);
        padding: 0.5rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .mobile-nav {
        flex-direction: column;
        width: 100%;
    }

    .mobile-nav .nav-item {
        width: 100%;
    }

    .mobile-nav .nav-link {
        padding: 0.75rem 1.5rem;
        width: 100%;
        display: block;
    }

    .mobile-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .mobile-nav .nav-link.active {
        background: rgba(255, 255, 255, 0.15);
    }
}

.card {
    border: 2px solid rgba(0.1,0.1,0.1,0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    background: white;
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    transform: translateY(-2px);
}

.card-body {
    padding: 1.5rem;
}

.movie-poster {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 12px 0 0 12px;
    background-color: #f8f9fa;
}

.no-poster {
    width: 100%;
    height: 300px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 12px 0 0 12px;
}

@media (max-width: 768px) {
    .movie-poster, .no-poster {
        height: 200px;
        border-radius: 12px 12px 0 0;
        object-fit: cover;
    }
    
    .card .row {
        flex-direction: column;
    }
    
    .card .col-4, .card .col-8 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .movie-poster {
        border-radius: 12px 12px 0 0;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .movie-metadata {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .movie-overview {
        font-size: 0.9rem;
        max-height: none;
    }
}

.movie-overview {
    color: #555;
    line-height: 1.6;
    margin-top: 1rem;
    font-size: 0.95rem;
    max-height: 150px;
    overflow-y: auto;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.movie-metadata {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.movie-metadata strong {
    color: #2c3e50;
}

mark {
    background-color: #ffd700;
    padding: 0.1em 0.2em;
    border-radius: 2px;
}

.watched-icon {
    font-size: 1.25rem;
    color: #2ecc71;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* Icon size constraints */
img.icon, .icon img {
    max-width: 10%;
    max-height: 10%;
    width: auto;
    height: auto;
}

.card-title {
    margin-right: 0.5rem;
}

/* Recommendation badge styling */
.recommendation-badge {
    display: block;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 1rem;
    background-color: #3498db;
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 6px;
}

.recommendation-badge span {
    display: inline;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 0.25rem;
    font-weight: 300;
}
