:root {
    /* Colors */
    --primary-gradient: linear-gradient(to right, #ff0f7b, #f89b29);
    --primary-color: #ff0f7b;
    --primary-dark: #cc0c62;
    --primary-rgb: 255, 15, 123; /* RGB equivalent of primary color for alpha operations */
    --secondary-color: #f89b29;
    --secondary-dark: #c67b21;
    --background-color: #101010;
    --surface-color: #1a1a1a;
    --text-color: #f89b29;
    --text-light: #fafafa;
    --text-color-dark: #101010;
    --white: #ffffff;
    --gray-100: #1a1a1a;
    --gray-200: #252525;
    --background-color-light: #fafafa;
    
    /* Fonts */
    --font-family-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
    
    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    
    /* Typography */
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 2rem;
    
    /* Button */
    --btn-padding-y: 0.75rem;
    --btn-padding-x: 1.5rem;
    --btn-font-size: var(--font-base);
    --btn-font-weight: 500;
    --btn-radius: 0.5rem;
    --btn-transition: all 0.2s ease;
    
    /* Container */
    --container-padding: var(--spacing-4);
    --section-padding: 4rem 0;

    --success-color: #4CAF50;
    --success-color-light: #E8F5E9;
    --success-color-dark: #388E3C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Header Styles */
.header {
    background-color: var(--surface-color);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

h2.header-text {
    font-size: 30px!important;
}

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

.add-wl-button {
    margin-left: auto;
    margin-right: auto;
}

.recommendation-notification {
    margin-left: auto;
    margin-right: auto;
}

.notification-content {
    text-align: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    font-family: var(--font-family-heading);
}

.nav-links {
    display: flex;
    gap: 1rem;
}

/* Button Styles */
.btn {
    padding: var(--btn-padding-y) var(--btn-padding-x);
    border-radius: var(--btn-radius);
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    font-family: var(--font-family-body);
    text-decoration: none;
    transition: var(--btn-transition);
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
    line-height: 1.4;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    z-index: -1;
    transition: opacity 0.2s ease;
}

.btn:hover::before {
    opacity: 0.9;
}

.btn-primary {
    background: var(--primary-gradient);
}

.btn-secondary {
    background: var(--surface-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-orange {
    background: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.btn-orange:hover {
    background: var(--secondary-dark);
    border: 1px solid var(--secondary-dark);
}

.btn-notification {
    background: linear-gradient(to right, #0859fd, var(--secondary-color));
    color: var(--white);
    border: none;
}

.btn-notification::before {
    background: linear-gradient(to right, #87ceeb, var(--secondary-color));
}

.btn-notification:hover::before {
    opacity: 0.8;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
    background: linear-gradient(to bottom, var(--white), var(--gray-100));
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: var(--font-family-heading);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Features Section */
.features {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    font-family: var(--font-family-heading);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s ease;
    font-family: var(--font-family-body);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-family: var(--font-family-heading);
}

.feature-card p {
    color: var(--text-light);
    font-family: var(--font-family-body);
}

/* Footer */
.footer {
    background-color: var(--white);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--gray-200);
}

/* Media Queries */
@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-buttons {
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 10rem 0 6rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Authentication Styles */
.auth-container {
    min-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    font-family: var(--font-family-heading);
}

.auth-subtitle {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--font-family-body);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-color);
    font-family: var(--font-family-body);
}

.form-input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    background-color: var(--surface-color);
    color: var(--text-color);
    transition: border-color 0.2s ease;
    font-family: var(--font-family-body);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 15, 123, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-family: var(--font-family-body);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: var(--font-family-body);
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.25rem;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark:after {
    display: block;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-family: var(--font-family-body);
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    margin-top: var(--spacing-4);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    margin: 1.5rem 0;
}

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

.auth-divider span {
    padding: 0 1rem;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--text-color);
}

.btn-social:hover {
    background-color: var(--gray-100);
}

.social-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Additional Form Styles */
.form-help {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-family: var(--font-family-body);
}

.checkbox-container a {
    color: var(--primary-color);
    text-decoration: none;
    font-family: var(--font-family-body);
}

.checkbox-container a:hover {
    text-decoration: underline;
}

/* Success message styles */
.success-message {
    background-color: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    color: #81c784;
    padding: 16px;
    border-radius: 8px;
    margin: 0 0 24px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

.success-message strong {
    display: block;
    color: var(--success-color-dark);
    margin-bottom: 4px;
    font-weight: 600;
}

/* Error message styles */
.error-message {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.error-message strong {
    display: block;
    color: #f44336;
    margin-bottom: 4px;
    font-weight: 600;
}

/* Form Validation Styles */
.form-input.error {
    border-color: #f44336;
    background-color: rgba(244, 67, 54, 0.05);
}

.form-input.error:focus {
    border-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.invalid-feedback {
    color: #f44336;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

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

/* Password Strength Indicator */
.password-strength {
    height: 4px;
    background-color: var(--gray-200);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-text {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Social Icons */
.btn-google {
    background-color: var(--white);
    color: var(--text-color);
}

.btn-google:hover {
    background-color: var(--gray-100);
}

.btn-facebook {
    background-color: var(--facebook-color);
    color: var(--white);
}

.btn-facebook:hover {
    background-color: var(--facebook-color-dark);
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .auth-card {
        padding: var(--spacing-6);
    }

    .auth-title {
        font-size: var(--text-xl);
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-4);
    }
}

.movie-poster-placeholder {
    background: var(--gray-100);
    width: 185px;
    height: 278px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    overflow: hidden;
}

.movie-poster-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Search Results Styling - Mobile First */
.search-result-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
    background-color: var(--surface-color);
}

.search-result-item:hover {
    border-color: var(--primary-color);
    background-color: var(--gray-100);
}

.result-poster {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 0.25rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.result-info {
    width: 100%;
}

.result-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.result-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    width: 100%;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: var(--font-sm);
    color: var(--text-light);
    margin-top: 0.25rem;
}

.result-info .item-overview {
    color: var(--text-light)
}

.add-to-list {
    margin-top: 0.5rem;
    width: 100%;
}

/* Desktop Styling - for larger screens */
@media (min-width: 768px) {
    .search-result-item {
        flex-direction: row;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .result-poster {
        width: 120px;
        height: 180px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .result-info {
        flex: 1;
    }
    
    .result-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .result-meta {
        margin-top: 0;
    }
    
    .add-to-list {
        width: auto;
    }
}

/* Watchlist Items */
.watchlist-item {
    display: flex;
    gap: 1.5rem;
    background-color: var(--background-color-light);
    border: 1px solid var(--secondary-color);
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.watchlist-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Watched items styling */
.watchlist-item.watched {
    opacity: 0.6;
    background-color: #f5f5f5;
    border-color: #d0d0d0;
}

.watchlist-item.watched .watchlist-item-meta-header h3 {
    color: #888;
}

.watchlist-item.watched .watchlist-item-poster img {
    filter: grayscale(50%);
}

/* Items with new episodes (should be promoted back up) */
.watchlist-item.watched.has-new-episode {
    opacity: 1;
    background-color: rgba(var(--primary-rgb), 0.05);
    border-color: var(--primary-color);
    border-width: 2px;
}

.watchlist-item.watched.has-new-episode .watchlist-item-meta-header h3 {
    color: var(--text-color);
    text-decoration: none;
}

.watchlist-item.watched.has-new-episode .watchlist-item-poster img {
    filter: none;
}

.watchlist-item.watched.has-new-episode::before {
    content: "NEW EPISODE!";
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
}

.watchlist-item {
    position: relative; /* For the NEW EPISODE badge positioning */
}

.watchlist-item-poster {
    flex-shrink: 0;
}

.watchlist-item-poster img {
    width: 120px;
    height: 180px;
    border-radius: 0.25rem;
    object-fit: cover;
}

.watchlist-item-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}

/* Watchlist Item Layout Improvements */
.watchlist-item-meta-header {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 1rem;
}

.watchlist-item-meta-header h3 {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-family: var(--font-family-heading);
    font-size: var(--font-lg);
    flex-wrap: wrap;
}

.watchlist-item-meta-header h3 .item-date {
    font-size: 0.9rem;
    font-weight: normal;
    opacity: 0.8;
}

.watchlist-item-meta-details {
    width: 100%;
    overflow: visible; /* Show by default on desktop */
    padding: 0;
    margin: 0;
    clear: both; /* Clear the floats so this appears below */
    max-height: none; /* Show by default on desktop */
    transition: max-height 0.3s ease;
}

.watchlist-item-meta-details.expanded {
    max-height: 1000px !important; /* Large enough to accommodate content */
    overflow: visible !important;
}

/* Recommendations should always show their details on mobile */
.watchlist-item-meta-details.recommendation-details-always-visible {
    max-height: 1000px !important; /* Always expanded for recommendations */
    overflow: visible !important;
}

/* Add a toggle button for mobile */
.mobile-toggle-details {
    display: block;
    width: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border: none;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    cursor: pointer;
    text-align: center;
    margin-top: 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-toggle-details:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mobile-toggle-details:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-toggle-details:before {
    content: "▼ ";
    transition: transform 0.3s ease;
    margin-right: 0.25rem;
}

.mobile-toggle-details.collapsed:before {
    content: "▶ ";
}

.watchlist-item-details {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Mobile-specific collapse/expand functionality */
@media (max-width: 768px) {
    .watchlist-item {
        flex-direction: row;
        gap: 1rem;
        padding: 1rem;
    }

    .watchlist-item-poster {
        width: 100px; /* Smaller poster size on mobile */
    }

    .watchlist-item-details {
        width: 100%; /* Ensure full width */
        flex: 1;
    }
}

@media (max-width: 480px) {
    .watchlist-item {
        flex-direction: column;
        padding: 0.75rem;
    }

    /* Create a flex container for poster and header only */
    .watchlist-item-details {
        width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    /* Create a wrapper for poster and meta-header to be side by side */
    .watchlist-item-details::before {
        content: '';
        display: none; /* We'll handle this differently */
    }

    .watchlist-item-poster {
        width: 80px;
        flex-shrink: 0;
        margin-right: 1rem;
        float: left;
    }

    .watchlist-item-poster img {
        width: 80px;
        height: 120px;
        object-fit: cover;
    }

    .watchlist-item-meta-header {
        width: 100%; /* Account for poster width + margin */
        overflow: hidden;
        padding: 0;
        margin: 0 0 0.5rem 0;
        float: left;
    }
    
    .watchlist-item-meta-details {
        max-height: 0 !important; /* Start collapsed on mobile */
        overflow: hidden !important;
    }

    .watchlist-item-meta-details.expanded {
        max-height: 1000px !important; /* Large enough to accommodate content */
        overflow: visible !important;
    }

    .item-watched {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
        margin-left: 0.25rem;
        margin-right: 0.25rem;
    }
    
    .watchlist-item-meta-header h3 {
        flex-wrap: nowrap;
        align-items: baseline;
    }
    
    .watchlist-item-meta-header h3 .item-date {
        font-size: 0.75rem;
        flex-shrink: 0;
    }
}

/* Filter Box Responsive Styles */
.filter-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* When filters are in the collapsible container, center them properly */
.filter-container .filter-box {
    align-items: center;
}

.filter-container .filter-box input[type="text"],
.filter-container .filter-box select {
    flex: 0 1 auto;
    min-width: 140px;
    max-width: 180px;
}

.filter-container .filter-box .form-input[type="text"] {
    flex: 0 1 auto;
    min-width: 200px;
    max-width: 250px;
}

.filter-box input[type="text"],
.filter-box select {
    flex: 1;
    min-width: 140px;
}

.filter-box .form-input[type="text"] {
    flex: 2;
    min-width: 200px;
}

@media (max-width: 767px) {
    /* Adjust the selects to be half width if there's enough space */
    .filter-box select {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: calc(50% - 0.5rem);
    }
}

/* For even smaller screens, make all elements full width */
@media (max-width: 480px) {
    .filter-box select {
        flex: 1 1 100%;
        width: 100%;
        min-width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .filter-box .form-input[type="text"] {
        flex: 1 1 100%;
        width: 100%;
        min-width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .watchlist-item-meta-header h3 {
        flex-direction: row;
        align-items: baseline;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .watchlist-item-meta-header h3 .item-date {
        font-size: 0.8rem;
    }
}

/* Modal Styles */
.modal-content {
    background-color: var(--surface-color);
    border: 1px solid var(--gray-200);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
}

/* Search Results */
.result-title {
    color: var(--text-color);
}

.result-meta {
    color: var(--text-light);
}

.star-icon {
    color: #ffd700;
}

.trending-icon {
    color: var(--secondary-color);
}

/* Dashboard Content */
.dashboard-welcome h1 {
    color: var(--text-color);
}

.dashboard-content {
    margin-top: 6rem;
    background: none;
    border-radius: 1rem;
    padding: 0.52rem;
    box-shadow: var(--shadow-md);
}

.playlist-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.playlist-header h2 {
    font-size: var(--font-xl);
    color: var(--text-color);
    font-family: var(--font-family-heading);
}

.playlist-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 200px;
}

/* Filter Box Responsive Styles */
.filter-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.filter-box input[type="text"],
.filter-box select {
    flex: 1;
    min-width: 140px;
}

.filter-box .form-input[type="text"] {
    flex: 2;
    min-width: 200px;
}

.watchlist-item-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.item-type, .item-date, .item-genre, .item-score {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap; /* Prevent wrapping */
}

.item-type {
    background-color: rgba(157, 6, 253, 0.3);
    color: purple;
}

.item-date {
    color: var(--text-color);
    background-color: unset;
}

.item-genre {
    background-color: rgba(var(--primary-rgb), 0.15);
    color: var(--primary-color);
}

.item-score {
    background-color: rgba(76, 175, 80, 0.15); /* Greenish background */
    color: #4CAF50; /* Green text */
    font-weight: 600;
}

.item-watched {
    background-color: rgba(158, 158, 158, 0.15); /* Gray background */
    color: #666; /* Gray text */
    font-weight: 600;
    display: inline-block;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    vertical-align: baseline;
    white-space: nowrap;
}

.item-addition-info {
    display: flex;
    gap: 0.5rem;
    color: var(--text-color-dark);
    font-size: var(--font-sm);
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.item-cast, .item-release-date {
    font-size: var(--font-sm);
    color: var(--primary-color);
    margin-top: 0.5rem; /* Space below meta */
    line-height: 1.4;
}

.item-cast strong, .item-release-date strong {
    color: var(--text-color-dark);
    font-weight: 600;
}

.recommender {
    color: var(--text-color-dark);
    font-weight: 500;
}

.added-by {
    color: var(--text-color-dark);
    font-weight: 500;
}

.addition-date {
    color: var(--text-color-dark);
}

.item-overview {
    color: var(--text-color-dark);
    margin-bottom: 1rem;
    transition: max-height 0.3s ease;
}

.result-info .item-overview {
    color: var(--text-light)
}

/* Toggle-able collapsible overview section for watchlist items */
.expandable-overview {
    position: relative;
    width: 100%;
    margin: 0.75rem 0;
}

.expandable-overview .item-overview {
    transition: max-height 0.3s ease;
    color: var(--text-color-dark);
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.expandable-overview .toggle-expand {
    display: inline-block;
    color: var(--primary-color);
    cursor: pointer;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .watchlist-item-actions {
        flex-direction: column;
        width: 100%;
    }

    .watchlist-item-actions button {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .item-addition-info {
        flex-direction: column;
        gap: 0.25rem;
    }
}

.watchlist-item-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: var(--white);
    margin: 2rem auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    margin: 0;
    font-size: var(--font-lg);
    font-family: var(--font-family-heading);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.modal-body {
    padding: 1.5rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.search-input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-input-group input {
    flex: 1;
}

.search-results {
    display: grid;
    gap: 1rem;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

/* Recommendations Section */
.recommendations-section {
    margin-top: 3rem;
    padding-top: 2rem;
}

.recommendations-section h2 {
    margin-bottom: 1.5rem;
}

.recommendation-item {
    display: flex;
    gap: 1.5rem;
    background: var(--background-color-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.recommendation-poster {
    flex-shrink: 0;
}

.recommendation-poster img {
    width: 120px;
    height: 180px;
    border-radius: 0.25rem;
    object-fit: cover;
}

.recommendation-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

/* Add specific styles for recommendation meta header and details */
.recommendation-details .watchlist-item-meta-header {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 1rem;
}

.recommendation-details .watchlist-item-meta-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-family: var(--font-family-heading);
    font-size: var(--font-lg);
}

.recommendation-details .watchlist-item-meta-header h3 .item-date {
    font-size: 0.9rem;
    font-weight: normal;
    opacity: 0.8;
}

.recommendation-details .watchlist-item-meta-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem;
    position: relative;
}

.recommendation-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-color-dark);
    font-size: var(--font-sm);
    margin: 0 0 0.75rem;
    flex-wrap: wrap;
}

.rec-message {
    font-style: italic;
    color: var(--text-color-dark);
    margin: 0 0 1rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
    border-left: 2px solid var(--primary-color);
    padding-left: 1rem;
}

.recommendation-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: var(--font-sm);
    font-weight: 500;
}

.status-badge.accepted {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.status-badge.declined {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.recommendation-item.accepted {
    border-left: 3px solid #4CAF50;
}

.recommendation-item.declined {
    border-left: 3px solid #f44336;
}

/* Mobile Responsive Styles for recommendation items */
@media (max-width: 768px) {
    .recommendation-item {
        flex-direction: row;
        gap: 1rem;
        padding: 1rem;
    }

    .recommendation-poster {
        width: 100px; /* Smaller poster size on mobile */
    }

    .recommendation-details {
        width: 100%; /* Ensure full width */
        flex: 1;
    }
    
    .recommendation-details .watchlist-item-meta-header h3 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .recommendation-details .watchlist-item-meta-header h3 .item-date {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .recommendation-item {
        flex-direction: column;
        padding: 0.75rem;
    }

    .recommendation-poster {
        width: 100%;
    }

    .recommendation-poster img {
        
        height: auto;
        max-height: 200px;
        object-fit: cover;
    }
    
    .recommendation-details {
        width: 100%; /* Force full width */
        padding: 0;
    }
    
    .recommendation-details .watchlist-item-meta-header,
    .recommendation-details .watchlist-item-meta-details {
        width: 100%; /* Force full width */
        overflow: hidden; /* Prevent overflow */
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .recommendation-details .watchlist-item-meta-details {
        margin-top: 0.5rem;
    }

    /* Make buttons stack and take full width */
    .recommendation-actions {
        flex-direction: column;
        width: 100%;
    }

    .recommendation-actions button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Empty State */
.empty-state {
    color: var(--text-light);
}

.no-new-flicks {
    text-align: center;
    color: var(--primary-color);
    font-size: var(--font-lg);
    font-weight: 600;
    margin-top: 2rem;
    padding: 2rem;
    background-color: rgba(var(--primary-rgb), 0.3);
    border-radius: 0.5rem;
}

.fa-pink {
    color: var(--primary-color);
}

/* Critical mobile-specific layout for search results */
@media (max-width: 480px) {
    /* Force the result-header to be column layout on mobile */
    .search-result-item .result-header {
        display: flex;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100%;
    }

    /* Make the title full width */
    .search-result-item .result-title {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Style meta to be directly below title */
    .search-result-item .result-meta {
        width: 100%;
        margin-top: 0 !important;
        margin-bottom: 0.75rem;
    }
    
    /* Ensure the image is prominent */
    .search-result-item .result-poster {
        width: 100%;
        max-height: 220px;
        object-fit: cover;
        margin-bottom: 1rem;
    }
    
    /* Make the button more visible */
    .search-result-item .add-to-list {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
    }
}

/* iOS-specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    /* This targets all iOS devices */
    .search-result-item .btn.add-to-list {
        /* Increase tap target size */
        min-height: 44px;
        padding: 10px 15px;
        -webkit-appearance: none;
        border-radius: 5px;
        cursor: pointer;
        /* Fix for text sometimes being invisible on older iOS */
        -webkit-text-fill-color: initial;
    }
    
    /* Fix for button appearance on older iOS */
    .btn {
        -webkit-appearance: none;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    /* Fix for touch events sometimes being blocked */
    .search-result-item {
        cursor: pointer;
        z-index: 1;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Ensure proper stacking */
    .result-info {
        z-index: 2;
    }
    
    /* Prevent zooming when tapping on inputs (common iOS issue) */
    input[type="text"], 
    select,
    textarea {
        font-size: 16px;
    }
}

/* Fixes specific to older iOS versions */
@supports (-webkit-overflow-scrolling: touch) {
    .add-to-list {
        /* Override any transforms that might be causing issues */
        transform: none !important;
        /* Ensure visible text */
        color: #ffffff !important;
        /* Add extra padding for easier tapping */
        padding: 10px 15px !important;
        /* Improve tap reliability */
        -webkit-touch-callout: none;
    }
    
    /* Force hardware acceleration for smoother interactions */
    .search-result-item,
    .add-to-list,
    .modal-content {
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        -webkit-touch-callout: none;
    }
}

/* Specific fix for iPhone SE and other small iOS devices */
@media screen and (max-width: 320px) {
    .add-to-list {
        /* Ensure button is properly sized on small screens */
        width: 100%;
        margin-top: 10px;
        padding: 12px 0;
    }
}

/* Latest Episode Styles */
.latest-episode {
    padding: 1rem;
    margin: 1rem 0;
    background-color: rgba(0, 0, 0, 0.06);
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    width: 100%;
}

.series-commencement {
    padding: 1rem;
    margin: 1rem 0;
    background-color: rgba(255, 193, 7, 0.08);
    border-left: 3px solid #ffc107;
    border-radius: 4px;
    width: 100%;
}

.watchlist-item-meta-details .latest-episode,
.watchlist-item-meta-details .series-commencement {
    margin-top: 0;
}

.latest-episode.recent-episode {
    background-color: rgba(var(--primary-rgb), 0.08);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.15);
}

.episode-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.episode-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
}

.series-commencement .episode-title {
    color: #b8860b;
}

.episode-title i {
    margin-right: 0.5rem;
    opacity: 0.8;
}

.new-badge {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
    font-weight: bold;
    vertical-align: middle;
}

.episode-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.episode-number {
    font-weight: 600;
    color: var(--primary-color);
}

.episode-date, .episode-runtime, .show-status {
    color: var(--text-color-dark);
}

.series-commencement .episode-date {
    color: #b8860b;
    font-weight: 600;
}

.episode-rating {
    color: goldenrod;
}

.episode-rating i {
    margin-right: 0.25rem;
}

.episode-overview {
    color: var(--text-color-dark);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(var(--primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
    }
}

/* Mobile Responsive for Latest Episode and Series Commencement */
@media (max-width: 768px) {
    .latest-episode,
    .series-commencement {
        padding: 0.75rem;
        margin: 0.75rem 0;
    }
    
    .episode-title {
        font-size: 0.95rem;
    }
    
    .episode-meta {
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    
    .episode-overview {
        font-size: 0.85rem;
    }
}

/* Small screens */
@media (max-width: 480px) {
    .latest-episode,
    .series-commencement {
        padding: 0.5rem;
        margin: 0.5rem 0;
    }
    
    .episode-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.25rem;
        font-size: 0.75rem;
    }
}

.episode-date-rec {
    font-size: var(--font-sm);
}

/* Mobile styles for search input - this ensures the search box is full width on mobile devices 
   (fixed issue with red-highlighted area in screenshot) */
@media (max-width: 768px) {
    #searchInput {
        width: 100% !important;
        flex: 1 1 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 0.5rem !important;
        min-width: 100% !important;
    }
}

/* Add to Watchlist Modal styles */
.add-watchlist-filter,
.add-watchlist-search {
    width: 100%;
}

.add-watchlist-filter-form,
.add-watchlist-search-form {
    width: 100%;
    box-sizing: border-box;
}

#modalTypeFilter,
#modalSearch {
    width: 100%;
    box-sizing: border-box;
}

/* Mobile optimizations for the modal */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 1rem auto;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* Increase tap target size for better mobile UX */
    #modalTypeFilter {
        height: 44px;
        font-size: 16px;
    }
    
    #modalSearch {
        height: 44px;
        font-size: 16px;
    }
}

/* When a user clicks on an item, give visual feedback */
.search-result-item:active {
    transform: scale(0.99);
    transition: transform 0.1s ease;
}

.login-logo-img {
    width: 60%;
    margin-right: auto;
    margin-left: auto;
    display: block;
}

/* Loading Spinner Styles */
.episode-loading-placeholder {
    padding: 1rem;
    margin: 1rem 0;
    background-color: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 0.5rem;
    text-align: center;
}

.loading-spinner {
    color: var(--primary-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.loading-spinner i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Mobile responsive for loading placeholder */
@media (max-width: 768px) {
    .episode-loading-placeholder {
        padding: 0.75rem;
        margin: 0.75rem 0;
    }
    
    .loading-spinner {
        font-size: 0.8rem;
    }
}

.series-commencement.new-series {
    background-color: rgba(76, 175, 80, 0.08);
    border-left-color: #4CAF50;
}

.series-commencement.new-series .episode-title {
    color: #4CAF50;
}

.series-commencement.new-series .episode-date {
    color: #4CAF50;
    font-weight: 600;
}

.series-commencement.returning-series {
    background-color: rgba(255, 193, 7, 0.08);
    border-left-color: #ffc107;
}

.series-commencement.returning-series .episode-title {
    color: #b8860b;
}

.series-commencement.returning-series .episode-date {
    color: #b8860b;
    font-weight: 600;
}

.show-status.new-series {
    background-color: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.show-status.returning-series {
    background-color: rgba(255, 193, 7, 0.15);
    color: #b8860b;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Show Status Badge Styles */
.show-status-badge {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    font-weight: 600;
}

.show-status-badge.loading {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    animation: pulse-loading 1.5s ease-in-out infinite;
}

.show-status-badge.new-series {
    background-color: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

.show-status-badge.returning-series {
    background-color: rgba(255, 193, 7, 0.15);
    color: #b8860b;
}

.show-status-badge.ended {
    background-color: rgba(158, 158, 158, 0.15);
    color: #666;
}

.show-status-badge.in-production {
    background-color: rgba(33, 150, 243, 0.15);
    color: #2196F3;
}

.show-status-badge.planned {
    background-color: rgba(156, 39, 176, 0.15);
    color: #9C27B0;
}

.show-status-badge.active {
    background-color: rgba(var(--primary-rgb), 0.15);
    color: var(--primary-color);
}

.show-status-badge.unknown {
    background-color: rgba(158, 158, 158, 0.1);
    color: #999;
}

@keyframes pulse-loading {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.episode-overview {
    color: var(--text-color-dark);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.next-episode-info {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background-color: rgba(var(--primary-rgb), 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 0 4px 4px 0;
    font-size: 0.9rem;
    color: var(--text-color-dark);
}

.next-episode-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.next-episode-info strong {
    color: var(--primary-color);
}

/* Mobile responsive for next episode info */
@media (max-width: 768px) {
    .next-episode-info {
        margin-top: 0.5rem;
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .next-episode-info {
        margin-top: 0.4rem;
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .next-episode-info i {
        margin-right: 0.3rem;
    }
}

.filter-box select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 15, 123, 0.1);
}

/* Visual indicator for active sort filter */
.filter-box select[data-active="true"] {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.05);
}

/* Loading message for sort operations */
.loading-message {
    padding: 2rem;
    text-align: center;
    color: var(--primary-color);
    font-size: 1rem;
    background-color: rgba(var(--primary-rgb), 0.05);
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.loading-message i {
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

/* Active filter styling */
.form-input[data-active="true"] {
    background-color: #ff0f7b !important;
    color: white !important;
}

/* Comprehensive dropdown option styling */
select.form-input option,
.form-input[data-active="true"] option,
select option {
    background-color: white !important;
    background: white !important;
    color: black !important;
}

/* Firefox specific fix */
select.form-input[data-active="true"] option {
    background-color: white !important;
    background: white !important;
    color: black !important;
}

/* WebKit specific fix */
select.form-input[data-active="true"] option:checked {
    background-color: white !important;
    color: black !important;
}

/* Additional browser compatibility */
select.form-input {
    background-clip: padding-box;
}

select.form-input[data-active="true"] {
    background-clip: padding-box;
}

/* Remove pink background when dropdown is opened/focused */
select.form-input[data-active="true"]:focus,
select.form-input[data-active="true"]:active {
    background-color: white !important;
    color: black !important;
}

/* Logo and welcome text layout */
.logo.top-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.welcome-text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

/* Center the Flicks from Friends heading */
.recommendations-section h2 {
    text-align: center;
}

/* Style the no new flicks section */
.no-new-flicks {
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.no-new-flicks p {
    margin: 0;
    color: #666;
    font-size: 1.1rem;
}

.sad-face-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Collapsible Filter Section */
.filter-toggle-section {
    text-align: center;
    margin-bottom: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    background: var(--surface-color);
    border: 1px solid var(--primary-color);
    color: var(--text-color);
}

.filter-toggle-btn:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.filter-toggle-btn::before {
    display: none;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.filter-toggle-btn.expanded .toggle-icon {
    transform: rotate(180deg);
}

.filter-container {
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    width: 100%;
}

.filter-container.expanding {
    animation: slideDown 0.3s ease-out;
}

.filter-container.collapsing {
    animation: slideUp 0.3s ease-in;
}

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 200px;
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        max-height: 200px;
        opacity: 1;
    }
    to {
        max-height: 0;
        opacity: 0;
    }
}

/* Type Filter Buttons */
.type-filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding: 0 1rem;
    width: 100%;
}

.btn-type-filter {
    padding: 0.5rem 1.25rem;
    background: var(--surface-color);
    border: 2px solid var(--gray-200);
    color: var(--text-color);
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex: 0 0 auto;
}

.btn-type-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-type-filter:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 15, 123, 0.3);
}

.btn-type-filter:hover::before {
    opacity: 0.1;
}

.btn-type-filter.active {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 15, 123, 0.4);
}

.btn-type-filter.active::before {
    opacity: 0;
}

@media (max-width: 768px) {
    .type-filter-buttons {
        gap: 0.4rem;
        margin: 1rem 0;
        padding: 0 0.5rem;
        justify-content: center;
    }
    
    .btn-type-filter {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        flex: 0 1 auto;
        min-width: fit-content;
    }
}

@media (max-width: 480px) {
    .type-filter-buttons {
        gap: 0.3rem;
        margin: 1rem 0;
        padding: 0 0.25rem;
        justify-content: center;
        flex-wrap: nowrap;
    }
    
    .btn-type-filter {
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
        flex: 1 1 0;
        min-width: 0;
        text-align: center;
        max-width: calc(33.333% - 0.2rem);
    }
}