* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

:root {
    --primary-color: #007bff;
    --background-color: #ffffff;
    --text-color: #333333;
    --card-bg: #f8f9fa;
    --border-color: #dee2e6;
    --hover-color: #e9ecef;
    --gradient-start: #7b00ff;
    --gradient-end: #ff00d9;
}

[data-theme="dark"] {
    --primary-color: #0d6efd;
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: #2d2d2d;
    --border-color: #404040;
    --hover-color: #3d3d3d;
    --gradient-start: #1a1a1a;
    --gradient-end: #1a1a1a;
}

body {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.5s ease, color 0.3s ease;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    width: 90%;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

[data-theme="dark"] .container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.container h1, .container p{
    color: #ffffff;
}

h1 {
    color: #1a1a1a;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 2.2rem;
    transition: color 0.3s ease;
}

.search-section {
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease;
}

.search-input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    background-color: var(--background-color);
    color: var(--text-color);
    border-color: var(--border-color);
}

.search-input:focus {
    outline: none;
    border-color: #33b95b;
    box-shadow: 0 0 0 3px rgba(51, 185, 91, 0.1);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 1rem;
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.7;
}

.choice-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

.choice-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    background-color: #33b95b;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-color);
    border-color: var(--border-color);
}

.choice-btn:hover {
    background-color: #2da34e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 185, 91, 0.2);
}

.choice-btn:active {
    transform: translateY(0);
}

.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    z-index: 1000;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.genre-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.5rem 0;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

.genre-btn {
    padding: 0.6rem 1.2rem;
    background-color: #f0f2f5;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background-color: var(--background-color);
    border-color: var(--border-color);
}

.genre-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.genre-btn.selected {
    background-color: #33b95b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 185, 91, 0.2);
}

.results {
    margin-top: 2rem;
    text-align: left;
    animation: fadeIn 0.5s ease;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 25px;
    background-color: rgba(248, 249, 250, 0.9);
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.result-item h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.result-item p {
    margin: 5px 0;
    color: #34495e;
    line-height: 1.6;
}

.result-item img {
    max-width: 200px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    align-self: center;
    transition: all 0.3s ease;
}

.result-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

#loadMoreBtn {
    margin-top: 1.5rem;
    width: 100%;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.logo {
    max-width: 150px;
    margin-bottom: 2rem;
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .result-item {
        flex-direction: row;
        align-items: flex-start;
    }

    .result-item img {
        margin: 0 25px 0 0;
    }

    .result-item .content {
        flex: 1;
    }
}

/* Profile Styles */
.profile-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #00ff88;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.change-picture-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 0;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
    width: 100%;
    display: block;
    z-index: 1;
    background-color: var(--primary-color);
    border-color: var(--border-color);
}

.change-picture-btn label {
    display: block;
    width: 100%;
    cursor: pointer;
    padding: 4px 0;
}

.change-picture-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

#avatarInput {
    display: none;
}

.profile-info {
    flex: 1;
}

.profile-info input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    background-color: var(--background-color);
    color: var(--text-color);
    border-color: var(--border-color);
}

.profile-info input:focus {
    outline: none;
    border-color: #00ff88;
}

.preferences-section,
.watch-history-section {
    margin-bottom: 30px;
}

.preferences-section h2,
.watch-history-section h2 {
    margin-bottom: 15px;
    color: #333;
}

#watchHistory .result-item {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
}

#watchHistory .result-item:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 600px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar img {
        width: 120px;
        height: 120px;
    }

    .profile-info {
        width: 100%;
    }
}

/* Streaming Providers Styles */
.providers-section {
    margin: 15px 0;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.provider-group {
    margin-bottom: 10px;
}

.provider-group h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 14px;
}

.provider-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.provider-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: white;
    padding: 5px 10px;
    border-radius: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    background-color: var(--background-color);
    border-color: var(--border-color);
}

.provider-item img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: contain;
}

.provider-item span {
    font-size: 12px;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .provider-list {
        gap: 5px;
    }
    
    .provider-item {
        padding: 3px 8px;
    }
    
    .provider-item img {
        width: 25px;
        height: 25px;
    }
    
    .provider-item span {
        font-size: 11px;
    }
}

.dropdown-section {
    margin: 10px 0;
}

.dropdown-btn {
    width: 100%;
    padding: 10px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 5px;
    text-align: left;
    cursor: pointer;
    font-size: 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
    background-color: var(--background-color);
    border-color: var(--border-color);
}

.dropdown-btn:hover {
    background-color: #e0e0e0;
}

.dropdown-content {
    display: none;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 0 0 5px 5px;
    margin-top: 2px;
}

.dropdown-arrow {
    font-size: 0.8em;
    transition: transform 0.3s;
}

.delete-btn {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.delete-btn:hover {
    background-color: #cc0000;
}

.filter-section {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #007bff;
    background-color: white;
    color: #007bff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: #007bff;
    color: white;
}

.filter-btn.active {
    background-color: #007bff;
    color: white;
}

.watch-history-list {
    margin-top: 20px;
}

.watch-history-item {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.watch-history-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.watch-history-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.98);
}

.watch-history-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.watch-history-title h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.watch-history-actions {
    display: flex;
    gap: 10px;
}

.trailer-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #e50914;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.trailer-btn:hover {
    background-color: #f40612;
}

.trailer-icon {
    font-size: 12px;
}

.type-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.type-badge.movie {
    background-color: #33b95b;
    color: white;
}

.type-badge.show {
    background-color: #e50914;
    color: white;
}

.watch-history-details {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.details-content {
    max-width: 100%;
}

.details-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.poster-section {
    width: 100%;
}

.poster-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.no-poster {
    width: 100%;
    aspect-ratio: 2/3;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-header h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.8rem;
}

.release-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.ratings-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating-label {
    color: #666;
    font-size: 14px;
}

.rating-value {
    font-weight: 600;
    color: #2c3e50;
}

.overview-section h3,
.genres-section h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.overview-section p {
    color: #34495e;
    line-height: 1.6;
    margin: 0;
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.genre-tag {
    padding: 4px 12px;
    background-color: #f0f2f5;
    border-radius: 20px;
    font-size: 12px;
    color: #2c3e50;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.action-buttons button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.choice-btn {
    background-color: #33b95b;
    color: white;
}

.choice-btn:hover {
    background-color: #2da34e;
}

@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .poster-section {
        max-width: 300px;
        margin: 0 auto;
    }
}

.no-results, .error {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 20px;
}

.error {
    color: #ff6b6b;
}

/* Surprise Button and Modal Styles */
.surprise-btn {
    background-color: #ffd700;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.surprise-btn:hover {
    background-color: #ffed4a;
}

.surprise-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.surprise-content {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    color: white;
    text-align: center;
    animation: surprise-pop 0.5s ease-out;
}

@keyframes surprise-pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.surprise-content h2 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 24px;
}

.surprise-content h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.surprise-details {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.surprise-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.close-btn {
    background-color: #666;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background-color: #888;
}

.movie-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.movie-actions button {
    flex: 1;
    min-width: 120px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
}

.choice-btn {
    background-color: #28a745;
    color: white;
}

.choice-btn:hover {
    background-color: #218838;
}

.watchlist-btn {
    background-color: #1a1a1a;
    color: white;
    border: 1px solid #e50914;
}

.watchlist-btn:hover {
    background-color: #333;
}

.surprise-btn {
    background-color: #ffd700;
    color: #000;
}

.surprise-btn:hover {
    background-color: #ffed4a;
}

/* Theme Toggle Styles */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.theme-toggle .toggle-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-toggle .sun {
    background: #ffd700;
    color: #fff;
    transform: translateX(0);
}

.theme-toggle .moon {
    background: #2c3e50;
    color: #fff;
    transform: translateX(30px);
}

[data-theme="dark"] .theme-toggle .sun {
    transform: translateX(-30px);
}

[data-theme="dark"] .theme-toggle .moon {
    transform: translateX(0);
}

/* Animation for theme switch */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.theme-toggle .toggle-icon i {
    transition: transform 0.5s ease;
}

.theme-toggle:hover .toggle-icon i {
    animation: rotate 1s linear infinite;
}

/* Dark mode specific styles */
[data-theme="dark"] .navbar {
    background-color: var(--card-bg) !important;
}

[data-theme="dark"] .modal-content {
    background-color: var(--card-bg);
    color: var(--text-color);
}

[data-theme="dark"] .form-control {
    background-color: var(--background-color);
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .form-control:focus {
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Light mode specific styles */
[data-theme="light"] .card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .search-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .form-control:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Smooth transitions for all elements */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.search-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.form-control {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.btn {
    margin: 1rem auto;
    display: block;
}

/* Auth Form Styles */
.auth-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-form h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-form .form-control {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.auth-form .btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.auth-form p {
    color: var(--text-color);
    text-align: center;
}

.auth-form a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-form a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.alert {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
}

[data-theme="dark"] .alert {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.3);
}

/* User Info Styles */
.user-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-info span {
    color: var(--text-color);
    font-weight: 500;
}

.user-info .btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* Guest Button Styles */
.btn-outline-secondary {
    color: var(--text-color);
    border-color: var(--border-color);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: var(--hover-color);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .btn-outline-secondary {
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background: var(--hover-color);
    border-color: var(--border-color);
    color: var(--text-color);
}

/* Searched Movie Info Styles */
.searched-movie-label {
    margin-bottom: 10px;
    text-align: left;
}

.searched-movie {
    border: 2px solid var(--primary-color, #e50914);
    background: var(--card-bg, #fff3f3);
    border-radius: 12px;
    margin-bottom: 24px;
    padding: 18px 18px 18px 18px;
    box-shadow: 0 2px 8px rgba(229,9,20,0.08);
}

/* Make overview text in searched-movie always black */
.searched-movie .dropdown-content p {
    color: #000 !important;
}

@media (max-width: 600px) {
    .searched-movie {
        padding: 10px;
    }
}

#movieLikeSearch{
    border-radius: .5rem;
}

#showLikeSearch{
    border-radius: .5rem;
}

#searchLike{
    border-radius: .5rem;
    margin: auto;
    margin-left: 1rem;
}

/* Responsive container for cards */
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2vw;
  padding: 2vw;
}

/* Individual card styling */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin: 1vw 0;
  width: 90vw;         /* Mobile default: full width */
  max-width: 350px;    /* Prevents cards from getting too wide */
  flex: 1 1 300px;     /* Allows cards to shrink/grow */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Tablet: 2 cards per row */
@media (min-width: 600px) {
  .card {
    width: 45vw;
    max-width: 350px;
  }
}

/* Desktop: 3+ cards per row */
@media (min-width: 900px) {
  .card {
    width: 28vw;
    max-width: 350px;
  }
  .card-container {
    gap: 1.5vw;
  }
}