body {
    background-color: #0f0f23;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar Styles */
.navbar-custom {
    background: linear-gradient(135deg, #1a1a3e, #2d2d5f);
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #6366f1 !important;
}

.nav-link {
    color: #e0e0e0 !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #a0a0ff !important;
}

.search-bar {
    position: relative;
    width: 250px;
}

.search-bar input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #e0e0e0;
    padding: 8px 40px 8px 15px;
    width: 100%;
}

.search-bar input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #6366f1;
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0a0ff;
}

/* Filter Container */
.filter-container {
    background: linear-gradient(135deg, #1a1a3e, #2d2d5f);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.filter-group {
    margin-bottom: 15px;
}

.filter-label {
    font-weight: 600;
    color: #a0a0ff;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: inline-block;
    min-width: 100px;
}

.filter-options {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-option {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    color: #e0e0e0;
}

.filter-option:hover {
    background: rgba(100, 100, 255, 0.2);
}

.filter-option.selected {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.genre-row {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: 10px;
}

/* Sorting Options */
.sorting-container {
    margin-bottom: 15px;
}

.sorting-dropdown {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    padding: 8px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.sorting-dropdown:hover {
    background: rgba(255, 255, 255, 0.15);
}

.sorting-dropdown:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
    border-color: #6366f1;
}

.dropdown-menu {
    background: linear-gradient(135deg, #1a1a3e, #2d2d5f);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    color: #e0e0e0;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.3);
    color: white;
}

/* Movie Cards */
.movie-card {
    background: linear-gradient(145deg, #1e1e3f, #2a2a4e);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.3);
}

.movie-poster-container {
    position: relative;
    flex-grow: 1;
    min-height: 400px;
}

.movie-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.imdb-rating {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffd700;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.movie-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0) 100%);
    padding: 20px;
    text-align: center;
}

.movie-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 3em;
}

.platform-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0 3px;
}

.platform-netflix {
    background-color: #e50914;
}

.platform-disney {
    background-color: #113ccf;
}

.platform-amazon {
    background-color: #ff9900;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.pagination {
    background: linear-gradient(135deg, #1a1a3e, #2d2d5f);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.page-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    padding: 10px 15px;
    margin: 0 2px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: #6366f1;
    color: white;
}

.page-item.active .page-link {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

.page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #666;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 1.2rem;
}

/* Movie Detail Page */
.movie-detail-container {
    padding: 40px 0;
}

.back-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    padding: 10px 20px;
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.back-button:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: #6366f1;
    color: white;
}

.movie-detail-header {
    margin-bottom: 40px;
}

.movie-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.movie-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.movie-detail-poster {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    width: 100%;
    height: auto;
}

.movie-detail-section {
    background: linear-gradient(135deg, #1e1e3f, #2a2a4e);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #a0a0ff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cast-member {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.cast-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.cast-info h5 {
    margin-bottom: 5px;
    font-weight: 600;
}

.cast-info p {
    margin-bottom: 0;
    color: #a0a0ff;
    font-size: 0.9rem;
}

.similar-movie-card {
    background: linear-gradient(145deg, #1e1e3f, #2a2a4e);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.similar-movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.3);
}

.similar-movie-poster {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.similar-movie-info {
    padding: 15px;
}

.similar-movie-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.5em;
}

.similar-movie-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffd700;
    font-size: 0.9rem;
}