body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #141414;
    color: white;
}

h2 {
    margin: 20px;
    color: #E50914;
    border-left: 4px solid #E50914;
    padding-left: 10px;
}

.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

.page-header {
    padding: 60px 40px 40px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    margin: 0 0 20px 0;
    color: #E50914;
}

.page-header p {
    font-size: 1.3rem;
    color: #ccc;
    margin: 0;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 30px 40px;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}

.filter-bar select {
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #222;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-bar select:hover {
    border-color: #E50914;
}

.full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.full-grid .card {
    min-width: unset;
    background-color: #1f1f1f;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 350px;
}

.full-grid .card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.full-grid .card .title {
    font-size: 1rem;
    text-align: center;
    padding: 10px;
    font-weight: 500;
    line-height: 1.3;
}

.full-grid .card .rating {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: gold;
    font-weight: bold;
}

.full-grid .card .wishlist-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #E50914;
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.full-grid .card .wishlist-btn:hover {
    background-color: #f40612;
}

.full-grid .card:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 25px rgba(229, 9, 20, 0.4);
}

.load-more-container {
    text-align: center;
    padding: 40px;
}

.load-more-btn {
    background-color: #E50914;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.load-more-btn:hover {
    background-color: #f40612;
}

.load-more-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
}

.navbar {
    background-color: #141414;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #222;
}

.logo {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
}

.logo span { color: #E50914; }

.nav-btn {
    background: none;
    border: none;
    color: white;
    margin: 0 5px;
    cursor: pointer;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-btn:hover { 
    color: #E50914; 
    background-color: rgba(229, 9, 20, 0.1);
}

.nav-btn.active {
    color: #E50914;
    background-color: rgba(229, 9, 20, 0.2);
    font-weight: bold;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: #222;
    border-radius: 25px;
    padding: 5px;
    margin: 0 10px;
    flex: 1;
    max-width: 400px;
}

#searchInput {
    flex: 1;
    background: none;
    border: none;
    color: white;
    padding: 8px 15px;
    font-size: 1rem;
    outline: none;
}

#searchInput::placeholder {
    color: #999;
}

#searchBtn {
    background: none;
    border: none;
    color: #999;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    transition: color 0.2s ease;
}

#searchBtn:hover {
    color: #E50914;
}

.navbar select {
    padding: 8px 15px;
    border-radius: 6px;
    border: 1px solid #444;
    margin: 0 10px;
    background-color: #222;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.navbar select:hover {
    border-color: #E50914;
}

.navbar select:focus {
    outline: none;
    border-color: #E50914;
}

#wishlistBtn {
    background-color: #E50914;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

#wishlistBtn:hover {
    background-color: #f40612;
}

.hero {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    color: white;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero-info {
    position: absolute;
    bottom: 60px;
    left: 60px;
    max-width: 500px;
}

.hero-info h1 { 
    font-size: 3rem; 
    margin-bottom: 20px; 
}

.hero-info p { 
    font-size: 1.2rem; 
    max-height: 80px; 
    overflow: hidden; 
    margin-bottom: 30px; 
}

.hero-info button {
    background-color: #E50914;
    border: none;
    color: white;
    padding: 12px 20px;
    margin-right: 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.hero-info button:hover {
    background-color: #f40612;
}

.search-results {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f1f1f;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 400px;
    overflow-y: auto;
    z-index: 2000;
    display: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #333;
}

.search-result-item img {
    width: 50px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.search-result-info h4 {
    margin: 0 0 5px 0;
    color: white;
}

.search-result-info p {
    margin: 0;
    color: #999;
    font-size: 0.9rem;
}

.row-container { 
    position: relative; 
    margin: 0 20px; 
}

.row {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.row::-webkit-scrollbar { 
    height: 6px; 
    background: #222; 
}

.row::-webkit-scrollbar-thumb { 
    background: #E50914; 
    border-radius: 5px; 
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 100;
}

.scroll-btn.left { left: 0; }
.scroll-btn.right { right: 0; }

.scroll-btn:hover { 
    background: rgba(229,9,20,0.8); 
}

.card {
    min-width: 160px;
    background-color: #1f1f1f;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.card img { 
    width: 100%; 
    display: block; 
}

.card .title {
    font-size: 0.9rem;
    text-align: center;
    padding: 5px;
}

.card .rating {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0,0,0,0.7);
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: gold;
}

.card .wishlist-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #E50914;
    border: none;
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: bold;
}

.card .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.8);
    border: none;
    color: white;
    padding: 3px 6px;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.card .remove-btn:hover {
    background: rgba(229, 9, 20, 0.9);
    transform: scale(1.1);
}

.card:hover {
    transform: scale(1.08);
    box-shadow: 0px 4px 15px rgba(229, 9, 20, 0.6);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: #1f1f1f;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    color: white;
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.actor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.actor-card img { 
    width: 100%; 
    border-radius: 4px; 
}

.actor-card { 
    text-align: center; 
    font-size: 0.8rem; 
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}