/* Movies Page Styles */

.movies-main {
    padding: 6rem 4% 4rem;
    min-height: 100vh;
    background: #0a0a0a;
}

/* Content Section */
.content-section {
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #5B8DEE, #A855F7, transparent);
    border-radius: 2px;
}

/* Row Container with Navigation */
.row-container {
    position: relative;
    padding: 0 50px;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
}

.row-container:hover .nav-button {
    opacity: 1;
    visibility: visible;
}

.nav-button:hover {
    background: rgba(91, 141, 238, 0.9);
    border-color: rgba(91, 141, 238, 0.8);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(91, 141, 238, 0.5);
}

.nav-button:active {
    transform: translateY(-50%) scale(0.95);
}

.nav-button-left {
    left: 5px;
}

.nav-button-right {
    right: 5px;
}

/* Movies Row */
.movies-row {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: #555 transparent;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    transition: all 0.3s ease;
}

/* List View Mode */
.movies-row.list-view {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    overflow-x: visible;
    overflow-y: visible;
}

.movies-row::-webkit-scrollbar {
    height: 8px;
}

.movies-row::-webkit-scrollbar-track {
    background: transparent;
}

.movies-row::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.movie-item {
    position: relative;
    min-width: 180px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    overflow: hidden;
}

.movie-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.movie-poster {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    transition: all 0.4s ease;
    border-radius: 8px;
}

.movie-item:hover .movie-poster {
    box-shadow: 0 12px 40px rgba(229, 9, 20, 0.3), 0 0 60px rgba(229, 9, 20, 0.15);
}

.movie-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.movie-item:hover .movie-overlay {
    opacity: 1;
    transform: translateY(0);
}

.movie-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.movie-rating {
    color: #ffd700;
    font-size: 0.85rem;
    font-weight: 600;
}

.movie-year {
    color: #999;
    font-size: 0.85rem;
}

/* List View Styles */
.movies-row.list-view .movie-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    min-width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
}

.movies-row.list-view .movie-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.08);
}

.movies-row.list-view .movie-poster {
    height: 280px;
    width: 200px;
}

.movies-row.list-view .movie-overlay {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.movies-row.list-view .movie-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.movies-row.list-view .movie-meta {
    margin-bottom: 0.5rem;
}

/* Hide scroll buttons in list mode */
.row-container.list-mode .nav-button {
    display: none;
}

.row-container.list-mode {
    padding: 0;
}

/* Loading Spinner */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #5B8DEE;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hidden class */
.hidden {
    display: none;
}

/* Movies Header */
.movies-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.movies-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.movies-title {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, #e5e5e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -1px;
}

/* Genre Dropdown */
.genre-dropdown-container {
    position: relative;
}

.genre-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.genre-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(91, 141, 238, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(91, 141, 238, 0.2);
}

.genre-dropdown-btn.active {
    background: rgba(91, 141, 238, 0.2);
    border-color: rgba(91, 141, 238, 0.6);
}

.dropdown-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.genre-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Genre Dropdown Menu */
.genre-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 600px;
    max-width: 700px;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(91, 141, 238, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.genre-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.genre-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.genre-item {
    padding: 0.8rem 1rem;
    color: #e5e5e5;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    display: block;
}

.genre-item:hover {
    background: rgba(91, 141, 238, 0.15);
    border-color: rgba(91, 141, 238, 0.3);
    color: #fff;
    transform: translateX(5px);
}

.genre-item.active {
    background: linear-gradient(135deg, #5B8DEE 0%, #A855F7 100%);
    border-color: rgba(91, 141, 238, 0.8);
    color: #fff;
    font-weight: 600;
}

/* Filter Controls */
.movies-header-right {
    display: flex;
    align-items: center;
}

.filter-controls {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.filter-dropdown-container {
    position: relative;
}

.filter-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.filter-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(91, 141, 238, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 141, 238, 0.15);
}

.filter-dropdown-btn.active {
    background: rgba(91, 141, 238, 0.15);
    border-color: rgba(91, 141, 238, 0.5);
}

.filter-dropdown-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.filter-dropdown-btn .dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    margin-left: 0.2rem;
}

.filter-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 180px;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 0.5rem;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(91, 141, 238, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-item {
    display: block;
    padding: 0.7rem 1rem;
    color: #e5e5e5;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
}

.filter-item:hover {
    background: rgba(91, 141, 238, 0.12);
    border-color: rgba(91, 141, 238, 0.25);
    color: #fff;
    transform: translateX(3px);
}

.filter-item.active {
    background: linear-gradient(135deg, #5B8DEE 0%, #A855F7 100%);
    border-color: rgba(91, 141, 238, 0.6);
    color: #fff;
    font-weight: 600;
}

/* Movies Container */
.movies-container {
    position: relative;
    min-height: 400px;
}

/* Grid View */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* List View */
.movies-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Movie Card - Grid View */
.movie-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.movie-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(91, 141, 238, 0.4), 0 0 60px rgba(34, 211, 238, 0.2);
    border-color: rgba(91, 141, 238, 0.5);
    z-index: 10;
}

.movie-card-poster {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #000;
}

.movie-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.movie-card:hover .movie-card-poster img {
    transform: scale(1.1);
}

.movie-card-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.movie-card-info {
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.7));
}

.movie-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #999;
}

.movie-card-year {
    color: #999;
}

.movie-card-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.movie-card-genre {
    padding: 0.2rem 0.5rem;
    background: rgba(91, 141, 238, 0.2);
    border: 1px solid rgba(91, 141, 238, 0.3);
    border-radius: 4px;
    font-size: 0.75rem;
    color: #fff;
}

/* Movie Card - List View */
.movies-grid.list-view .movie-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    height: auto;
}

.movies-grid.list-view .movie-card:hover {
    transform: translateX(10px);
}

.movies-grid.list-view .movie-card-poster {
    height: 280px;
}

.movies-grid.list-view .movie-card-info {
    padding: 1.5rem;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.movies-grid.list-view .movie-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    -webkit-line-clamp: 1;
}

.movies-grid.list-view .movie-card-meta {
    margin-bottom: 0.8rem;
}

.movie-card-description {
    display: none;
    color: #ccc;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-top: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movies-grid.list-view .movie-card-description {
    display: -webkit-box;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 1rem;
}

.loading-state p {
    color: #999;
    font-size: 1.1rem;
}

.loading-state.hidden {
    display: none;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.empty-description {
    font-size: 1.1rem;
    color: #999;
    margin-bottom: 2rem;
}

/* Genre View Container */
.genre-view-container {
    margin-bottom: 3rem;
}

.genre-view-container.hidden {
    display: none;
}

.genre-view-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.genre-view-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.genre-view-count {
    font-size: 1rem;
    color: #999;
    margin: 0;
}

/* Categories Container */
.categories-container {
    display: block;
}

.categories-container.hidden {
    display: none;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination-container.hidden {
    display: none;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(91, 141, 238, 0.2);
    border-color: rgba(91, 141, 238, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(91, 141, 238, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn svg {
    width: 20px;
    height: 20px;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-number:hover {
    background: rgba(91, 141, 238, 0.15);
    border-color: rgba(91, 141, 238, 0.4);
    transform: translateY(-2px);
}

.pagination-number.active {
    background: linear-gradient(135deg, #5B8DEE 0%, #A855F7 100%);
    border-color: rgba(91, 141, 238, 0.8);
    box-shadow: 0 4px 15px rgba(91, 141, 238, 0.4);
}

.pagination-ellipsis {
    color: #999;
    padding: 0 0.5rem;
    font-size: 1.2rem;
}

/* Suggestions Filter Menu */
.suggestions-filter-menu {
    min-width: 220px;
}

.suggestions-filter-header {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #5B8DEE;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(91, 141, 238, 0.3);
    margin-bottom: 0.5rem;
    background: rgba(91, 141, 238, 0.1);
    border-radius: 4px 4px 0 0;
}

/* Suggestions View Container */
.suggestions-view-container {
    margin-bottom: 3rem;
}

.suggestions-view-container.hidden {
    display: none;
}

.suggestions-view-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.suggestions-view-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.suggestions-view-count {
    font-size: 1rem;
    color: #999;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .genre-dropdown-menu {
        min-width: 500px;
    }
    
    .genre-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .movies-main {
        padding: 5rem 3% 3rem;
    }
    
    .movies-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .movies-header-left {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .movies-title {
        font-size: 1.8rem;
    }
    
    /* Suggestions Filter Menu - Mobile */
    .suggestions-filter-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        min-width: 100%;
        max-width: 100%;
        max-height: 60vh;
        overflow-y: auto;
        border-radius: 16px 16px 0 0;
        padding: 1.5rem 1rem 2rem;
        margin: 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.8);
        transform: translateY(100%);
        -webkit-overflow-scrolling: touch;
        z-index: 1002 !important;
        pointer-events: auto !important;
    }
    
    .suggestions-filter-menu.show {
        transform: translateY(0);
    }
    
    /* Ensure overlay doesn't block dropdown on mobile */
    .mobile-overlay.active {
        pointer-events: none !important;
    }
    
    .suggestions-filter-menu::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }
    
    /* Mobile Movie Card - Always Show Info */
    .movie-item {
        position: relative;
    }
    
    .movie-item .movie-overlay {
        opacity: 1 !important;
        transform: translateY(0) !important;
        padding: 0;
        background: none;
        pointer-events: none;
    }
    
    .movie-item .movie-title {
        position: absolute;
        bottom: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
        margin: 0;
        font-size: 0.85rem;
        line-height: 1.2;
        text-align: left;
        background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
        padding: 0.5rem;
        border-radius: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        z-index: 2;
    }
    
    .movie-item .movie-meta {
        position: absolute;
        top: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
        display: flex !important;
        justify-content: space-between;
        align-items: flex-start;
        margin: 0;
        z-index: 2;
    }
    
    .movie-item .movie-rating {
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        font-size: 0.75rem;
        border: 1px solid rgba(255, 215, 0, 0.3);
        display: inline-flex !important;
        align-items: center;
        gap: 0.2rem;
    }
    
    .movie-item .movie-year {
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        font-size: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #e5e5e5;
        display: inline-block !important;
    }
    
    /* Genre Dropdown - Mobile Fixes */
    .genre-dropdown-container {
        width: 100%;
    }
    
    .genre-dropdown-btn {
        width: 100%;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        font-size: 1.05rem;
    }
    
    .genre-dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        min-width: 100%;
        max-width: 100%;
        max-height: 70vh;
        overflow-y: auto;
        border-radius: 16px 16px 0 0;
        padding: 1.5rem 1rem 2rem;
        margin: 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.8);
        transform: translateY(100%);
        -webkit-overflow-scrolling: touch;
    }
    
    .genre-dropdown-menu.show {
        transform: translateY(0);
    }
    
    .genre-dropdown-menu::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }
    
    .genre-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .genre-item {
        padding: 1rem 1.2rem;
        font-size: 1rem;
        text-align: left;
    }
    
    .genre-item:active {
        transform: scale(0.98);
    }
    
    .movies-header-right {
        width: 100%;
        justify-content: flex-end;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .movies-grid.list-view {
        grid-template-columns: 1fr;
    }
    
    .movies-grid.list-view .movie-card {
        grid-template-columns: 120px 1fr;
        gap: 1rem;
    }
    
    .movies-grid.list-view .movie-card-poster {
        height: 180px;
    }
    
    .movies-grid.list-view .movie-card-info {
        padding: 0.5rem;
    }
    
    .movies-grid.list-view .movie-card-title {
        font-size: 1rem;
    }
    
    .movies-grid.list-view .movie-card-description {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
    
    .movie-card-poster {
        height: 220px;
    }
    
    .movie-card-title {
        font-size: 0.9rem;
    }
    
    .load-more-btn {
        width: 100%;
        padding: 0.9rem 2rem;
    }
}

@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .movie-card-poster {
        height: 200px;
    }
    
    .genre-dropdown-btn {
        width: 100%;
        justify-content: space-between;
        padding: 1rem 1.2rem;
    }
    
    .genre-dropdown-menu {
        max-height: 75vh;
        padding: 1.5rem 0.8rem 2rem;
    }
    
    .genre-item {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }
    
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #5B8DEE 0%, #A855F7 100%);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(91, 141, 238, 0.4), 0 0 0 4px rgba(91, 141, 238, 0.1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(91, 141, 238, 0.6), 0 0 0 6px rgba(91, 141, 238, 0.15);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .movie-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .movie-card:hover .movie-card-poster img {
        transform: none;
    }
    
    .movies-grid.list-view .movie-card:hover {
        transform: none;
    }
    
    .scroll-to-top:hover {
        transform: translateY(0) scale(1);
    }
}
