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

body { 
    background-color: #0b0b0b; 
    color: #ffffff; 
    font-family: 'Helvetica Neue', Arial, sans-serif; 
    overflow-x: hidden; 
} 

.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.navbar { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    padding: 15px 4%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 100%); 
    z-index: 100; 
} 

.nav-right { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
} 

.logo { 
    font-family: 'Montserrat', sans-serif; 
    color: #e50914; 
    font-size: 28px; 
    font-weight: 900; 
    text-transform: uppercase; 
    cursor: pointer; 
} 

.logo-sub { 
    font-size: 10px; 
    color: #b3b3b3; 
    letter-spacing: 3px; 
    text-transform: uppercase; 
    margin-top: -5px; 
    display: block; 
} 

.profile-badge { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    cursor: pointer; 
    background: rgba(255,255,255,0.1); 
    padding: 4px 10px; 
    border-radius: 4px; 
} 

.profile-badge img { 
    width: 28px; 
    height: 28px; 
    border-radius: 4px; 
    object-fit: cover;
} 

.profile-badge span { 
    font-size: 0.85rem; 
    font-weight: bold; 
} 

.profile-menu-container {
    position: relative;
    display: inline-block;
}

.caret {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s;
}

.profile-menu-container:hover .caret {
    transform: rotate(180deg);
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    min-width: 160px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    margin-top: 10px;
}

.profile-menu-container:hover .profile-dropdown {
    display: flex;
}

.profile-dropdown a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    font-size: 0.85rem;
    display: block;
    transition: background 0.2s;
}

.profile-dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.profile-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: #141414; 
    z-index: 2000; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
} 

.profile-container { 
    text-align: center; 
} 

.profile-container h1 { 
    font-size: 3.5rem; 
    margin-bottom: 40px; 
} 

.profiles-grid { 
    display: flex; 
    gap: 25px; 
    justify-content: center; 
    margin-bottom: 30px; 
    flex-wrap: wrap;
} 

.profile-card { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    cursor: pointer; 
    transition: transform 0.2s; 
} 

.profile-card:hover { 
    transform: scale(1.08); 
} 

.profile-card span { 
    color: #808080; 
    font-size: 1.1rem; 
    margin-top: 10px;
} 

.profile-card:hover span { 
    color: #fff; 
} 

.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 3px solid transparent;
    object-fit: cover;
    transition: border-color 0.2s;
}

.profile-card:hover .avatar-wrapper img { 
    border-color: #fff; 
} 

.delete-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    background: rgba(0,0,0,0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.delete-icon:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #e50914;
}

.add-icon {
    background: transparent;
    border: 3px solid grey;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: grey;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.add-profile-card:hover .add-icon {
    border-color: white;
    color: white;
    background: rgba(255,255,255,0.1);
}

.manage-btn {
    margin-top: 40px;
    background: transparent;
    color: grey;
    border: 1px solid grey;
    padding: 10px 30px;
    font-size: 1.2rem;
    letter-spacing: 2px;
    cursor: pointer;
    text-transform: uppercase;
    transition: color 0.2s, border-color 0.2s;
}

.manage-btn:hover {
    color: white;
    border-color: white;
}

.hero { 
    position: relative; 
    height: 80vh; 
    background-size: cover; 
    background-position: center top; 
    display: flex; 
    align-items: center; 
    padding-left: 4%; 
} 

.hero-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(to right, rgba(11, 11, 11, 0.9) 0%, rgba(11, 11, 11, 0.1) 50%, rgba(11, 11, 11, 0) 100%), linear-gradient(to top, #0b0b0b 0%, transparent 30%); 
} 

.hero-content { 
    position: relative; 
    z-index: 10; 
    max-width: 650px; 
} 

.prime-badge { 
    display: inline-block; 
    background: #00a8e1; 
    color: white; 
    font-weight: bold; 
    font-size: 0.75rem; 
    padding: 3px 8px; 
    border-radius: 3px; 
    margin-bottom: 10px; 
    text-transform: uppercase; 
} 

.hero-content h1 { 
    font-size: 3.2rem; 
    font-weight: bold; 
    margin-bottom: 15px; 
} 

.play-btn { 
    padding: 12px 28px; 
    font-size: 1.1rem; 
    font-weight: bold; 
    border-radius: 4px; 
    background: #ffffff; 
    color: #000; 
    border: none; 
    cursor: pointer; 
    transition: background 0.2s; 
} 

.play-btn:hover { 
    background: #e6e6e6; 
} 

.search-container { 
    position: relative; 
    width: 280px; 
} 

.search-input-wrapper { 
    display: flex; 
    align-items: center; 
    background: rgba(0,0,0,0.75); 
    border: 1px solid rgba(255,255,255,0.3); 
    border-radius: 4px; 
    padding: 6px 10px; 
} 

#searchInput { 
    background: transparent; 
    border: none; 
    color: white; 
    width: 100%; 
    outline: none; 
    margin-left: 8px; 
} 

.search-dropdown { 
    position: absolute; 
    top: 110%; 
    left: 0; 
    width: 100%; 
    background: #141414; 
    border: 1px solid #333; 
    border-radius: 6px; 
    max-height: 400px; 
    overflow-y: auto; 
    z-index: 105; 
} 

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #222;
    cursor: pointer;
    transition: background 0.2s;
}

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

.search-result-item img {
    width: 45px;
    height: 65px;
    border-radius: 4px;
    margin-right: 12px;
    object-fit: cover;
}

.genre-bar { 
    display: flex; 
    gap: 10px; 
    padding: 20px 4%; 
    overflow-x: auto; 
    background: #0b0b0b; 
} 

.genre-btn { 
    background: rgba(255,255,255,0.1); 
    border: 1px solid rgba(255,255,255,0.2); 
    color: #fff; 
    padding: 6px 16px; 
    border-radius: 20px; 
    cursor: pointer; 
    white-space: nowrap; 
} 

.genre-btn.active { 
    background: #e50914; 
    border-color: #e50914; 
} 

main { 
    padding: 0 4%; 
} 

.carousel-section { 
    margin-bottom: 35px; 
} 

.carousel-section h2 { 
    font-size: 1.3rem; 
    margin-bottom: 12px; 
} 

.carousel { 
    display: flex; 
    gap: 12px; 
    overflow-x: auto; 
    padding: 10px 0; 
} 

.carousel::-webkit-scrollbar { 
    display: none; 
} 

.media-card-wrapper { 
    flex: 0 0 calc(100% / 6); 
    min-width: 150px; 
    position: relative; 
    cursor: pointer; 
    transition: transform 0.3s; 
} 

.media-card-wrapper:hover { 
    transform: scale(1.06); 
    z-index: 10; 
} 

.movie-card { 
    width: 100%; 
    border-radius: 4px; 
    display: block; 
} 

.rich-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 20px; 
    margin-top: 20px; 
} 

#playerSection { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: #000; 
    z-index: 200; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
} 

.player-wrapper { 
    width: 90%; 
    max-width: 1100px; 
} 

.provider-selector { 
    display: flex !important; 
    gap: 10px; 
    justify-content: center; 
    margin-bottom: 20px; 
    flex-wrap: wrap; 
    position: relative;
    z-index: 1000; 
} 

.provider-btn { 
    background-color: #222222; 
    color: #ffffff; 
    border: 1px solid #444444; 
    padding: 10px 20px; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: bold; 
    font-size: 0.95rem; 
    transition: all 0.2s ease; 
    z-index: 1001;
} 

.provider-btn:hover { 
    background-color: #333333; 
    border-color: #666666; 
} 

.provider-btn.active { 
    background-color: #e50914; 
    border-color: #e50914; 
    color: #ffffff; 
} 

.tv-selectors { 
    display: flex; 
    gap: 15px; 
    justify-content: center; 
    margin-bottom: 15px; 
} 

.tv-selectors select { 
    background: #222; 
    color: #fff; 
    border: 1px solid #444; 
    padding: 8px 12px; 
    border-radius: 4px; 
    outline: none; 
} 

.btn-close { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    background: rgba(255,255,255,0.2); 
    color: #fff; 
    border: none; 
    padding: 8px 16px; 
    border-radius: 4px; 
    cursor: pointer; 
} 

.video-container { 
    position: relative; 
    width: 100%; 
    aspect-ratio: 16 / 9; 
    background: #111; 
} 

#iframePlayer { 
    width: 100%; 
    height: 100%; 
    border: none; 
} 

.hidden { 
    display: none !important; 
}
