/* StreamFlix - Netflix-style CSS */

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

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

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 10%, transparent);
    z-index: 1000;
    transition: background-color 0.4s;
}

.navbar.scrolled {
    background-color: #141414;
}

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

.logo {
    color: #e50914;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin-left: 40px;
}

.nav-menu a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #b3b3b3;
}

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

.btn-server {
    background-color: #e50914;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-server:hover {
    background-color: #f40612;
}

.profile img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

/* Hero Section */
.hero {
    height: 600px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('https://images.unsplash.com/photo-1574267432644-f56877a48cde?w=1920&h=1080&fit=crop') center/cover;
    display: flex;
    align-items: center;
    padding: 0 50px;
    margin-top: 70px;
    position: relative;
}

.hero-content {
    max-width: 500px;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-play {
    background-color: white;
    color: black;
}

.btn-play:hover {
    background-color: rgba(255,255,255,0.75);
}

.btn-info {
    background-color: rgba(109,109,110,0.7);
    color: white;
}

.btn-info:hover {
    background-color: rgba(109,109,110,0.4);
}

.hero-fade {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(transparent, #141414);
}

/* Content Rows */
.content-rows {
    padding: 20px 50px;
}

.row {
    margin-bottom: 40px;
}

.row h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.row-posters {
    display: flex;
    overflow-x: scroll;
    overflow-y: hidden;
    gap: 10px;
    padding: 20px 0;
}

.row-posters::-webkit-scrollbar {
    display: none;
}

.poster {
    min-width: 200px;
    height: 300px;
    background-color: #2f2f2f;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.poster:hover {
    transform: scale(1.08);
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.poster-title {
    font-size: 14px;
    font-weight: 600;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #181818;
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s;
}

.player-modal {
    max-width: 900px;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
}

.close:hover {
    color: #e50914;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    background-color: #333;
    color: white;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #e50914;
}

.btn-connect {
    width: 100%;
    background-color: #e50914;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-connect:hover {
    background-color: #f40612;
}

#connectionStatus {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

#connectionStatus.success {
    background-color: #0f8a00;
}

#connectionStatus.error {
    background-color: #e50914;
}

/* Video Player */
#videoPlayer {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.player-info h3 {
    margin-bottom: 10px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .hero {
        height: 400px;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .content-rows {
        padding: 20px;
    }
    
    .poster {
        min-width: 150px;
        height: 225px;
    }
}
