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

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0f1419;
    color: #e4e6eb;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    padding: 20px max(20px, calc((100vw - 1600px) / 2 + 20px));
    min-height: 80px;
    width: 100%;
    box-sizing: border-box;
}

.container {
    display: grid;
    grid-template-columns: 400px 1fr;
    grid-template-rows: 1fr;
    column-gap: 30px;
    row-gap: 20px;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    position: relative;
    box-sizing: border-box;
}

.left-panel {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 0;
}

.right-panel {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 0;
    position: relative;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header .navbar-search-wrapper {
    flex: 0 1 350px;
    margin-left: auto;
}

.header .watchlist-header-btn {
    flex-shrink: 0;
}

.header .auth-container {
    flex-shrink: 0;
}

.logo {
    height: 36px;
    width: auto;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.nav-link {
    padding: 10px 20px;
    background: #242933;
    color: #e4e6eb;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
}

.nav-link:hover {
    background: #2d3541;
}

/* Modern Navbar Search */
.navbar-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 200px;
}

.navbar-search-compact {
    display: none;
}

.navbar-search-icon {
    color: #e4e6eb;
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: block;
}

.navbar-search-placeholder {
    color: #8b92a0;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.navbar-search-expanded {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(26, 31, 41, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0 12px 0 16px;
    width: 100%;
    height: 38px;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-search-expanded:hover {
    background: rgba(26, 31, 41, 0.8);
    border-color: rgba(131, 205, 190, 0.4);
}

.navbar-search-expanded:focus-within {
    background: rgba(26, 31, 41, 0.95);
    border-color: #83CDBE;
}

.navbar-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e4e6eb;
    font-size: 0.9rem;
    padding: 8px 0;
}

.navbar-search-input::placeholder {
    color: #6b7280;
}

.navbar-search-close {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #8b92a0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    flex-shrink: 0;
}

.navbar-search-input:not(:placeholder-shown) ~ .navbar-search-close {
    opacity: 1;
    pointer-events: auto;
}

.navbar-search-close:hover {
    background: rgba(131, 205, 190, 0.1);
    color: #83CDBE;
}

/* Search results dropdown for navbar */
.navbar-search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 350px;
    max-height: 500px;
    overflow-y: auto;
    background: #1a1f29;
    border-radius: 12px;
    z-index: 1002;
    display: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.navbar-search-results.show {
    display: block;
}

.navbar-search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #2a2f39;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    gap: 12px;
    align-items: center;
}

.navbar-search-result-item:hover {
    background: #242933;
}

.navbar-search-result-item:last-child {
    border-bottom: none;
}

.navbar-search-result-poster {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.navbar-search-result-info {
    flex: 1;
    min-width: 0;
}

.navbar-search-result-title {
    font-weight: 600;
    color: #e4e6eb;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-search-result-year {
    font-size: 0.85rem;
    color: #8b92a0;
}

.search-box-container {
    background: #1a1f29;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-top: 15px;
    margin-bottom: 12px;
}

.search-box-container label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #b0b3b8;
    margin-bottom: 10px;
}

.filters {
    background: #1a1f29;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 16px;
}


.filter-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #b0b3b8;
    margin: 0 0 8px 0;
}

.filter-subtitle {
    font-size: 0.9rem;
    color: #8b92a0;
    margin: 0;
    line-height: 1.5;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    align-items: flex-start;
}

.filter-row .filter-group {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
    max-width: none;
    width: auto;
}

.filter-row .filter-group label {
    min-height: 20px;
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   - Desktop: ≥1025px (default styles, no media query)
   - Tablet & Mobile: ≤1024px (single column layout)
   - Mobile: ≤768px (header wrapping, mobile optimizations)
   - Small Mobile: ≤600px (extra compact for small phones)
   ============================================================================ */

/* More Filters Toggle Button - Hidden on Desktop */
.more-filters-toggle {
    display: none;
}

/* Advanced Filters Container - Always visible on desktop */
.advanced-filters-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Mobile (phones and small tablets) */
@media (max-width: 768px) {
    .filter-row .filter-group {
        flex: 1 1 100%;
    }
    
    /* Show More Filters Toggle Button on Mobile */
    .more-filters-toggle {
        display: flex;
        width: 100%;
        padding: 14px 18px;
        background: #1a1f29;
        border: 1px solid #3a3f4b;
        border-radius: 16px;
        color: #e4e6eb;
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        justify-content: space-between;
        align-items: center;
        transition: all 0.3s ease;
        margin: 0;
        position: relative;
        overflow: hidden;
    }
    
    /* Shimmer effect on hover */
    .more-filters-toggle::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
        transition: left 0.5s;
    }
    
    .more-filters-toggle:hover::before {
        left: 100%;
    }
    
    .more-filters-toggle:hover {
        transform: translateY(-1px);
        border-color: #4a4f5b;
    }
    
    .more-filters-toggle:active {
        transform: translateY(0);
    }
    
    .more-filters-content {
        display: flex;
        align-items: center;
        gap: 10px;
        z-index: 1;
    }
    
    .filter-icon {
        color: #8a8d91;
        transition: all 0.3s ease;
    }
    
    .more-filters-toggle:hover .filter-icon {
        transform: scale(1.05);
    }
    
    .filter-badge {
        background: #3a3f4b;
        color: #e4e6eb;
        font-size: 0.75rem;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 12px;
        min-width: 20px;
        text-align: center;
    }
    
    .chevron-icon {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        color: #8a8d91;
        z-index: 1;
    }
    
    .more-filters-toggle.open .chevron-icon {
        transform: rotate(180deg);
    }
    
    .more-filters-toggle.open {
        border-color: #3a3f4b;
    }
    
    /* Hide Advanced Filters by default on Mobile */
    .advanced-filters-container {
        display: none;
        gap: 16px;
    }
    
    .advanced-filters-container.show {
        display: flex;
        flex-direction: column;
        animation: expandFilters 0.3s ease-out;
    }
    
    @keyframes expandFilters {
        from {
            opacity: 0;
            max-height: 0;
            overflow: hidden;
        }
        to {
            opacity: 1;
            max-height: 1000px;
        }
    }
    
    /* Mobile header - wrap search to second row */
    .header {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        min-height: auto;
        padding: 8px 20px;
        gap: 12px;
    }
    
    .header-logo {
        order: 1;
        flex: 0 0 auto;
    }
    
    .watchlist-header-btn {
        order: 2;
        flex-shrink: 0;
        margin-left: auto;
        padding: 0 8px !important;
        height: 30px !important;
        font-size: 0.7rem !important;
        gap: 4px !important;
    }
    
    .watchlist-header-btn span {
        font-size: 0.7rem;
    }
    
    .auth-container {
        order: 3;
        flex-shrink: 0;
    }
    
    .navbar-search-wrapper {
        order: 10;
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
    }
    
    .watchlist-view.show {
        top: 90px;
    }
    
    /* Mobile navbar search adjustments */
    .navbar-search-expanded {
        width: 100% !important;
        max-width: 100% !important;
        height: 48px !important;
        padding: 14px 16px !important;
    }
    
    .navbar-search-icon {
        font-size: 20px;
    }
    
    .navbar-search-input {
        font-size: 1rem;
    }
    
    .navbar-search-results {
        width: 100%;
        left: 0;
        right: 0;
    }
    
    /* Adjust logo position on mobile */

}

.filter-group.full-width {
    grid-column: 1 / -1;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #b0b3b8;
}

.filter-group select,
.filter-group input {
    padding: 10px;
    border: 1px solid #3a3f47;
    border-radius: 6px;
    background: #242933;
    color: #e4e6eb;
    font-size: 0.95rem;
}

/* Search Container */
.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #667eea;
    border-radius: 8px;
    background: #242933;
    color: #e4e6eb;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #1a1f29;
    border: 1px solid #3a3f47;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #2a2f39;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-result-item:hover {
    background: #242933;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-poster {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    color: #e4e6eb;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    font-size: 0.85rem;
    color: #b0b3b8;
}

.search-no-results,
.search-loading {
    padding: 20px;
    text-align: center;
    color: #b0b3b8;
}

.genre-dropdown {
    position: relative;
}

.genre-dropdown-toggle {
    width: 100%;
    padding: 10px 15px;
    background: #242933;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #e4e6eb;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    min-height: 44px;
    box-sizing: border-box;
}

.genre-dropdown-toggle:hover {
    border-color: #764ba2;
    background: #2d3541;
}

.watched-toggle-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 15px;
    background: #242933;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.2s;
}

.watched-toggle-container:hover {
    border-color: #764ba2;
    background: #2d3541;
}

.watched-toggle-label {
    color: #e4e6eb;
    font-size: 0.9rem;
    user-select: none;
    text-align: center;
}

.toggle-switch {
    position: relative;
    width: 100%;
    height: 24px;
    background: #3a3f47;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    width: calc(33.33% - 4px);
    height: 20px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    cursor: grab;
}

.toggle-slider:active {
    cursor: grabbing;
}

/* Three positions: left (all), middle (not watched), right (watched) */
.watched-toggle-container.all .toggle-slider {
    left: 2px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.watched-toggle-container.not-watched .toggle-slider {
    left: calc(33.33% + 2px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.watched-toggle-container.watched .toggle-slider {
    left: calc(66.66% + 2px);
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.toggle-track-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
}

.toggle-track-labels span {
    flex: 1;
    text-align: center;
    user-select: none;
}

.toggle-icon {
    font-size: 0.85rem;
    margin-left: 8px;
}

.genre-count {
    background: #3a3f4b;
    color: #e4e6eb;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.dropdown-arrow {
    transition: transform 0.3s;
}

.dropdown-arrow.open {
    transform: rotate(180deg);
}

.genre-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    background: #1a1f29;
    border: 1px solid #3a3f47;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.genre-dropdown-menu.open {
    display: block;
    animation: dropdownSlide 0.2s ease-out;
}

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

.genre-option {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #242933;
}

.genre-option:last-child {
    border-bottom: none;
}

.genre-option:hover {
    background: #242933;
}

.genre-option.select-all {
    background: #242933;
    font-weight: 600;
    border-bottom: 2px solid #3a3f47;
}

.genre-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #3a3f47;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.genre-checkbox.checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.genre-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.genre-label {
    flex: 1;
    font-size: 0.9rem;
    user-select: none;
}

button {
    padding: 12px 24px;
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
}

button:not(.action-btn):not(.watchlist-button):not(.watchlist-header-btn):not(.more-filters-toggle):not(.view-bubble-btn):hover {
    background: #166fe5;
    transform: translateY(-1px);
}

button:not(.action-btn):not(.watchlist-button):not(.watchlist-header-btn):not(.more-filters-toggle):not(.view-bubble-btn):active {
    transform: translateY(0);
}

.big-button {
    width: 100%;
    max-width: 400px;
    padding: 14px 28px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.big-button:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f92 100%);
}

.movie-card {
    background: #1a1f29;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: none;
    position: relative;
    max-width: 100%;
    overflow-x: hidden;
}

.movie-card .watch-providers-section {
    overflow: visible !important;
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 10px;
    padding-right: 10px;
}

.movie-card.show {
    display: block;
}

/* Hide trending section and no-results when movie card is shown */
.right-panel:has(.movie-card.show) .trending-section,
.right-panel:has(.movie-card.show) .no-results {
    display: none !important;
}

.back-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #242933;
    border: none;
    color: #e4e6eb;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    min-height: 44px;
    min-width: 44px;
    line-height: 1;
}

.back-button span {
    display: flex;
    align-items: center;
}

.back-button:hover {
    background: #2d3541;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.back-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.movie-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    align-items: start;
    max-width: 100%;
    overflow-x: hidden;
}

.poster-column {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 100%;
    min-width: 0;
}

.movie-details {
    padding-top: 0;
    padding-right: 30px;
    display: flex;
    flex-direction: column;
}

.movie-details::-webkit-scrollbar {
    width: 6px;
}

.movie-details::-webkit-scrollbar-track {
    background: #242933;
    border-radius: 3px;
}

.movie-details::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.movie-details::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.movie-poster {
    width: 250px;
    max-width: 100%;
    height: 380px;
    object-fit: contain;
    background: #242933;
    transition: opacity 0.3s ease;
}

.movie-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #fff;
}

.movie-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 1rem;
    color: #8a8d91;
}

.movie-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-display {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
}

.rating-item {
    background: #242933;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.rating-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.rating-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.rating-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.rating-label {
    font-size: 0.85rem;
    color: #8a8d91;
    margin-bottom: 5px;
}

.rating-value {
    font-size: 2rem;
    font-weight: 700;
    color: #f5c518;
}

/* User rating gets Cinevist green */
#userRating {
    color: #25DFB7;
}

/* TMDb rating gets blue color */
#tmdbRating {
    color: #01b4e4;
}

/* FilmAffinity rating gets their brand color (dark blue) */
#faRating {
    color: #4582B4;
}

/* Letterboxd rating gets their brand color (green) */
#letterboxdRating {
    color: #00C030;
}

.user-rating-item {
    position: relative;
    cursor: pointer;
}

.user-rating-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.rating-input-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1f29;
    border: 2px solid #667eea;
    border-radius: 16px;
    padding: 25px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.8);
    min-width: 320px;
    max-width: 90vw;
}

.rating-input-container.show {
    display: block;
}

.rating-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.rating-overlay.show {
    display: block;
}

.star-rating {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
    font-size: 36px;
    cursor: pointer;
    user-select: none;
    max-width: 100%;
}

.star {
    color: #2a2d3a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-shadow: none;
    filter: none;
    -webkit-text-stroke: 1px #25DFB7;
}

.star:hover,
.star.active {
    color: #25DFB7;
    transform: scale(1.1);
    filter: drop-shadow(0 0 3px rgba(37, 223, 183, 0.4));
    text-shadow: none;
    -webkit-text-stroke: 1px #25DFB7;
}

/* Light up all stars when hovering */
.star.hover {
    color: #25DFB7;
    transform: scale(1.1);
    filter: drop-shadow(0 0 3px rgba(37, 223, 183, 0.4));
    text-shadow: none;
    -webkit-text-stroke: 1px #25DFB7;
}

.rating-label {
    text-align: center;
    color: #aaa;
    margin-bottom: 10px;
    font-size: 14px;
}

.rating-value-display {
    text-align: center;
    color: #667eea;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    min-height: 32px;
}

.rating-buttons {
    display: flex;
    gap: 8px;
}

.rating-buttons button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.rating-buttons .save-btn {
    background: #667eea;
    color: white;
}

.rating-buttons .save-btn:hover {
    background: #5568d3;
}

.rating-buttons .cancel-btn {
    background: #242933;
    color: #e4e6eb;
}

.rating-buttons .cancel-btn:hover {
    background: #2d3541;
}

.watched-button {
    background: #242933;
    border: 2px solid #667eea;
    color: #e4e6eb;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    margin-top: 12px;
    margin-bottom: 4px;
    width: 100%;
}

.watched-button:hover {
    background: #2d3541;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.watched-button.watched {
    background: #667eea;
    border-color: #667eea;
}

.watched-button.watched:hover {
    background: #5568d3;
}

/* Watchlist Button - Desktop - With gradient when active */
.watchlist-button:not(.watchlist-button-mobile) {
    background: #242933;
    border: 2px solid transparent;
    background-image: linear-gradient(#242933, #242933), linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    color: #e4e6eb;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    margin-top: 5px;
    margin-bottom: 4px;
    width: 100%;
}

.watchlist-button:not(.watchlist-button-mobile):hover {
    background-image: linear-gradient(#2d3541, #2d3541), linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transform: translateY(-2px);
}

.watchlist-button.in-watchlist:not(.watchlist-button-mobile) {
    background-image: linear-gradient(135deg, #f093fb 0%, #f5576c 100%), linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-color: transparent;
}

.watchlist-button.in-watchlist:not(.watchlist-button-mobile):hover {
    background-image: linear-gradient(135deg, #e082ea 0%, #e4465b 100%), linear-gradient(135deg, #e082ea 0%, #e4465b 100%);
    transform: translateY(-2px);
}

#watchlistIcon {
    font-size: 1.2rem;
}

/* Mobile Ribbon Button on Poster - Hidden on Desktop */
.watchlist-button-mobile {
    display: none;
}

@media (max-width: 768px) {
    .watchlist-button-mobile {
        display: flex;
    }
}

/* Login Modal & User Menu */
.auth-container {
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
    margin: 0;
}

.user-menu {
    background: #1a1f29;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    width: 42px;
    height: 42px;
}

.user-menu:hover {
    background: #242933;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.user-menu span {
    display: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3a3f4b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8d91;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.user-dropdown {
    position: absolute;
    top: 58px;
    right: 0;
    background: #1a1f29;
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 0;
    min-width: 200px;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.user-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid #3a3f4b;
}

.user-dropdown-label {
    color: #b0b3b8;
    font-size: 0.85rem;
}

.user-dropdown-email {
    color: #e4e6eb;
    font-weight: 400;
    margin-top: 4px;
    word-break: break-all;
}

.dropdown-item {
    width: 100%;
    background: none;
    border: none;
    padding: 12px 16px;
    color: #e4e6eb;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: #667eea;
}

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

.login-modal.show {
    display: flex;
}

.login-content {
    background: #1a1f29;
    padding: 40px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 2px solid #667eea;
    position: relative;
}

.login-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.login-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.login-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #b0b3b8;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    background: #242933;
    border: 1px solid #667eea;
    border-radius: 8px;
    padding: 12px;
    color: #e4e6eb;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.login-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.close-login {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #8a8d91;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 10;
}

.close-login:hover {
    color: #e4e6eb;
}

.login-error {
    background: #ff4444;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.login-error.show {
    display: block;
}

.login-success {
    background: #38ef7d;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.login-success.show {
    display: block;
}

/* Google Sign-In Button */
.social-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    margin-bottom: 20px;
}

.google-btn {
    background: #242933;
    color: #e4e6eb;
    border: 1px solid #3a3f4b;
}

.google-btn:hover {
    background: #2a2f3a;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.google-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.google-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Divider */
.divider-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    width: 100%;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #3a3f4b;
}

.divider-text {
    color: #8a8d91;
    font-size: 0.85rem;
    font-weight: 500;
}

.forgot-password-link {
    text-align: center;
    margin-top: 15px;
}

.forgot-password-link a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.forgot-password-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.genre-tag {
    padding: 6px 14px;
    background: #242933;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #e4e6eb;
}

.plot {
    line-height: 1.7;
    margin-bottom: 25px;
    color: #e4e6eb;
    font-size: 1.05rem;
}

.cast-section {
    margin-bottom: 25px;
}

.cast-section h3 {
    font-size: 1rem;
    color: #b0b3b8;
    margin-bottom: 8px;
}

.cast-list {
    color: #e4e6eb;
    font-size: 0.95rem;
}

.watch-providers-section {
    margin-top: 20px;
    overflow: visible !important;
}

.watch-providers-section h3 {
    font-size: 0.95rem;
    color: #b0b3b8;
    margin-bottom: 12px;
    font-weight: 600;
    text-align: left;
}

.watch-providers-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    overflow: visible !important;
    padding: 5px;
    margin: 0 -5px;
}

.watch-providers-list a {
    text-decoration: none;
    display: inline-block;
    overflow: visible;
    padding: 5px;
    margin: -5px;
}

.provider-logo {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    object-fit: contain;
    display: block;
    transform-origin: center center;
}

.watch-providers-list a:hover .provider-logo {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.stremio-provider {
    background: transparent !important;
    background-color: transparent !important;
}

.stremio-logo-img {
    background: transparent !important;
    background-color: transparent !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.watch-providers-list a:hover .stremio-logo-img {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.director-link {
    color: #667eea;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    transition: color 0.2s ease;
}

.director-link:hover {
    color: #764ba2;
    text-decoration-style: solid;
}

/* Filmography Modal */
.filmography-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    overflow-y: auto;
    padding: 40px 20px;
}

.filmography-modal.show {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.filmography-content {
    background: #1a1f29;
    border-radius: 12px;
    padding: 30px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.filmography-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filmography-header h2 {
    color: #e4e6eb;
    margin: 0;
}

.filmography-close {
    background: none;
    border: none;
    color: #b0b3b8;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.filmography-close:hover {
    color: #e4e6eb;
}

.filmography-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filmography-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #242933;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.filmography-item:hover {
    background: #2d3541;
}

.filmography-poster {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.filmography-info {
    flex: 1;
}

.filmography-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e4e6eb;
    margin-bottom: 6px;
}

.filmography-meta {
    font-size: 0.9rem;
    color: #b0b3b8;
}

/* Watchlist View (Full Page) */
.watchlist-view {
    display: none;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
    margin-top: 0;
    padding-top: 0;
}

.watchlist-view.show {
    display: flex;
    position: absolute;
    top: 80px;
    left: 20px;
    right: 20px;
    bottom: 0;
    background-color: #1a1d25;
    z-index: 10;
    padding: 20px;
    overflow-y: auto;
}

/* Watchlist top bar with title and back button */
.watchlist-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding-bottom: 12px;
    padding-top: 0;
    margin-top: 0;
    border-bottom: 2px solid #242933;
}

/* Back button in watchlist view should be static */
.watchlist-view .back-button {
    position: static;
    width: fit-content;
    flex-shrink: 0;
}

/* Hide left panel when watchlist is active */
.container.watchlist-active .left-panel {
    display: none;
}

/* Make right panel full width when watchlist is active */
.container.watchlist-active .right-panel {
    grid-column: 1 / -1;
}

/* Ensure header stays full width */
.container.watchlist-active .header {
    grid-column: 1 / -1;
}

.watchlist-header-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.watchlist-title {
    font-size: 2rem;
    color: #e4e6eb;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.watchlist-count {
    font-size: 1.1rem;
    color: #b0b3b8;
    font-weight: 500;
}

.watchlist-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 20px;
    background: #242933;
    border-radius: 12px;
    margin-top: 8px;
}

.watchlist-control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.watchlist-control-group label {
    color: #b0b3b8;
    font-weight: 600;
    font-size: 0.95rem;
}

.watchlist-select {
    background: #1a1f29;
    border: 2px solid #3a3f4b;
    color: #e4e6eb;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 180px;
}

.watchlist-select:hover {
    border-color: #667eea;
}

.watchlist-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.watchlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 15px;
    width: 100%;
    min-height: 200px;
}

.watchlist-movie {
    background: #242933;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.watchlist-movie:hover {
    transform: translateY(-4px);
    border-color: #ff6b6b;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.watchlist-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.watchlist-info {
    padding: 12px;
}

.watchlist-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e4e6eb;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.watchlist-meta {
    font-size: 0.85rem;
    color: #b0b3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.watchlist-empty {
    text-align: center;
    padding: 60px 20px;
    color: #b0b3b8;
}

.watchlist-empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* Watchlist Header Button */
.watchlist-header-btn {
    background: #242933;
    border: 2px solid transparent;
    background-image: linear-gradient(#242933, #242933), linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    color: #e4e6eb;
    padding: 0 10px;
    height: 35px;
    border-radius: 21px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    text-decoration: none;
}

.watchlist-header-btn:hover {
    background-image: linear-gradient(135deg, #f093fb 0%, #f5576c 100%), linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transform: translateY(-2px);
}

.actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 20px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.action-btn img {
    height: 20px;
    width: auto;
}

.imdb-link {
    background: #f5c518;
    color: #000;
}

.imdb-link:hover {
    filter: brightness(1.1);
}

.tmdb-link {
    background: #0d253f;
    color: #fff;
}

.tmdb-link:hover {
    filter: brightness(1.2);
}

.fa-link {
    background: #4582B4;
    color: #fff;
}

.fa-link:hover {
    filter: brightness(1.2);
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    font-size: 1.2rem;
    color: #8a8d91;
}

.trending-section {
    display: block;
    margin-top: 0;
    padding: 0;
}

.trending-section.show {
    display: block;
}

.trending-section h2 {
    color: #b0b3b8;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.show-more-trending {
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #3a3f47;
    color: #e1e3e6;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.show-more-trending:hover {
    background-color: #4a5057;
}

.trending-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
}

.trending-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.trending-item-poster {
    position: relative;
    width: 100%;
    height: 240px;
}


.trending-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #1a1f2e;
    transition: opacity 0.2s ease;
}


.trending-item-info {
    padding: 10px;
}

.trending-item-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #b0b3b8;
    line-height: 1.3;
}

.trending-item-year {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trending-item-ratings {
    display: flex;
    flex-direction: row;
    gap: 8px;
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.trending-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.trending-rating img {
    height: 12px;
    width: auto;
}

.trending-rating-value {
    color: #ffd700;
    font-weight: 600;
}

.no-results {
    background: #1a1f29;
    padding: 60px;
    border-radius: 12px;
    text-align: center;
    display: none;
    height: 480px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.no-results.show {
    display: flex;
}

.no-results h2 {
    font-size: 1.5rem;
    color: #eeeeee;
    margin-bottom: 10px;
}

.no-results p {
    color: #8a8d91;
    font-size: 1.1rem;
}

/* Modern slider styling - consistent for all sliders */
.noUi-target {
    background: #242933;
    border: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
    border-radius: 8px;
    height: 8px;
}

.noUi-connect {
    background: #667eea;
    box-shadow: 0 0 6px rgba(102, 126, 234, 0.3);
}

.noUi-handle {
    background: #667eea;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: grab;
    border-radius: 50%;
    width: 20px !important;
    height: 20px !important;
    top: -6px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.noUi-handle:before,
.noUi-handle:after {
    display: none;
}

.noUi-handle:hover {
    background: #5568d3;
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(0,0,0,0.5), 0 0 8px rgba(102, 126, 234, 0.5);
}

.noUi-handle:active {
    cursor: grabbing;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.noUi-horizontal .noUi-handle {
    right: -10px !important;
}

/* Input range slider (for vote count) - match noUiSlider style */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: #242933;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
    border-radius: 8px;
    height: 8px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #1877f2;
    cursor: grab;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #0e5dc1;
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(0,0,0,0.5), 0 0 8px rgba(24, 119, 242, 0.5);
}

input[type="range"]::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #1877f2;
    cursor: grab;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="range"]::-moz-range-thumb:hover {
    background: #0e5dc1;
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(0,0,0,0.5), 0 0 8px rgba(24, 119, 242, 0.5);
}

input[type="range"]::-moz-range-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.footer {
    text-align: center;
    padding: 20px 20px 30px;
    color: #8a8d91;
    font-size: 0.85rem;
    border-top: 1px solid #3a3f47;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer img {
    height: 24px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.2s;
    vertical-align: middle;
}

.footer img:hover {
    opacity: 1;
}

/* Letterboxd logo specific alignment */
.footer img[alt="Letterboxd"] {
    transform: translateY(-2px);
}

/* Tablet and Mobile */
@media (max-width: 1024px) {
    .header {
        padding: 15px 20px;
        min-height: 70px;
        gap: 20px;
    }
    
    .logo {
        height: 45px;
    }
    
    .header .navbar-search-wrapper {
        flex: 0 1 300px;
    }
    
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 20px;
        padding: 15px;
    }
    
    .left-panel {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        margin-top: 0;
    }
    
    .right-panel {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        margin-top: 0;
    }
    
    .big-button {
        max-width: none;
    }
}

/* Small Mobile (small phones) */
@media (max-width: 600px) {
    .container {
        padding: 12px;
        gap: 15px;
    }
    
    .logo {
        height: 32px;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .header {
        min-height: 48px;
        margin-top: 10px;
    }
    
    .navbar-search-expanded {
        width: 180px;
        height: 32px;
    }
    
    .user-menu,
    .user-avatar {
        width: 32px;
        height: 32px;
    }
    
    .search-box-container,
    .filters {
        padding: 15px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .filter-group {
        width: 100%;
        max-width: 100%;
    }
    
    .slider-container {
        width: 100%;
        max-width: 100%;
        padding-right: 10px;
        box-sizing: border-box;
    }
    
    .noUi-target {
        max-width: 100%;
    }
    
    .trending-section {
        margin-top: 12px;
    }
    
    .watchlist-view.show {
        padding: 10px;
        top: 60px;
        left: 10px;
        right: 10px;
    }
    
    .watchlist-title {
        font-size: 1.5rem;
    }
    
    .watchlist-controls {
        flex-direction: column;
        gap: 12px;
        padding: 12px 15px;
    }
    
    .watchlist-control-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .watchlist-select {
        width: 100%;
        min-width: auto;
    }
    
    .watchlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .movie-card {
        padding: 10px;
        margin: 0;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .movie-card .watch-providers-section {
        overflow: visible !important;
        margin-left: -5px;
        margin-right: -5px;
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .movie-content {
        gap: 15px;
        grid-template-columns: 1fr;
        overflow-x: hidden;
    }
    
    .poster-column {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .poster-wrapper {
        position: relative;
        width: 70%;
        max-width: 280px;
    }
    
    .movie-poster {
        width: 100%;
        height: auto;
        display: block;
    }
    
    .watched-button {
        width: 70%;
        max-width: 280px;
        margin-top: 4px;
        margin-bottom: 4px;
    }
    
    /* Hide desktop watchlist button on mobile */
    .watchlist-button:not(.watchlist-button-mobile) {
        display: none !important;
    }
    
    /* Show mobile ribbon button on poster */
    .watchlist-button-mobile {
        position: absolute;
        top: 0;
        right: 0;
        width: 48px;
        height: 68px;
        padding: 0;
        background: transparent;
        border: none;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        z-index: 10;
    }
    
    .watchlist-button-mobile:hover {
        transform: none !important;
        background: transparent !important;
    }
    
    .watchlist-button-mobile.in-watchlist:hover {
        background: transparent !important;
        transform: none !important;
    }
    
    .watchlist-ribbon-bg {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 48px;
        height: 68px;
        pointer-events: none;
    }
    
    .watchlist-button-mobile .ribbon-fill {
        fill: rgba(60, 60, 70, 0.85);
        transition: none;
    }
    
    .watchlist-button-mobile.in-watchlist .ribbon-fill {
        fill: url(#watchlistGradient);
    }
    
    .watchlist-button-mobile .ribbon-shadow {
        fill: rgba(0, 0, 0, 0.3);
    }
    
    .watchlist-button-mobile.in-watchlist .ribbon-shadow {
        fill: rgba(0, 0, 0, 0.3);
    }
    
    .watchlist-button-mobile .watchlist-icon-plus {
        font-size: 36px;
        font-weight: 300;
        color: white;
        line-height: 1;
        position: absolute;
        z-index: 2;
        top: 45%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .watch-providers-section {
        width: 100%;
        overflow: visible !important;
    }
    
    .watch-providers-list {
        overflow: visible !important;
    }
    
    .movie-details {
        padding: 10px 0;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .movie-details .watch-providers-section {
        overflow: visible !important;
        margin-left: -5px;
        margin-right: -5px;
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .back-button {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 15px;
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    img, video {
        max-width: 100%;
        height: auto;
    }
    
    .left-panel,
    .right-panel {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin-top: 0;
    }
    
    .filter-group label {
        font-size: 0.85rem;
    }
    
    .genre-dropdown-toggle {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .footer {
        flex-direction: column;
        gap: 8px;
        padding: 20px 10px 15px;
        font-size: 0.8rem;
    }
    
    .footer-text {
        width: 100%;
        text-align: center;
    }
    
    .footer-logos {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }
    
    .footer img {
        height: 20px;
    }
}

/* Watch Options Modal */
.watch-options-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.watch-options-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.watch-options-buttons .action-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.watch-options-buttons .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.watch-options-buttons .action-btn:active {
    transform: translateY(0);
}

#watchTimestamps {
    background: #242933;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #333;
}

#watchTimestamps div:first-child {
    font-weight: 600;
    color: #b0b3b8;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}
