/* Netflix Premium Design */
:root {
    --netflix-red: #e50914;
    --netflix-black: #141414;
    --netflix-dark-gray: #2f2f2f;
    --netflix-gray: #404040;
    --netflix-light-gray: #8c8c8c;
    --netflix-white: #ffffff;
    --netflix-hover-red: #f40612;
}

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

@import url('https://fonts.googleapis.com/css2?family=Helvetica+Neue:wght@300;400;500;700&display=swap');

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: var(--netflix-black);
    color: var(--netflix-white);
    line-height: 1.6;
}

/* ===== PREMIUM LOGIN DESIGN ===== */
.login-page {
    background: #000;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#bgVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.5;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(229, 9, 20, 0.1) 0%,
        rgba(0, 0, 0, 0.8) 40%,
        rgba(0, 0, 0, 0.9) 100%
    );
    z-index: 1;
}

.login-container {
    background: rgba(0, 0, 0, 0.85);
    padding: 60px 68px 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 16px 40px rgba(229, 9, 20, 0.2);
    border: 1px solid #333;
    position: relative;
    z-index: 2;
}

.login-logo {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo h1 {
    font-size: 2em; /* Etwas kleiner */
    font-weight: 700;
    background: linear-gradient(135deg, #e50914, #f40612);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 8px rgba(229, 9, 20, 0.3);
    letter-spacing: 1px; /* Weniger Abstand */
    line-height: 1.1; /* Damit das "tal" nicht rausschaut */
}

.login-logo p {
    color: #ffffff;
    margin-top: 10px;
    font-size: 1.1em;
    font-weight: 300;
}

.login-form-group {
    margin-bottom: 20px;
    position: relative;
}

.login-form-group input {
    width: 100%;
    padding: 16px 20px;
    background: #333;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.login-form-group input:focus {
    outline: none;
    background: #444;
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.5);
}

.login-form-group input::placeholder {
    color: #8c8c8c;
}

.login-button {
    width: 100%;
    padding: 16px;
    background: #e50914;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-button:hover {
    background: #f40612;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.4);
}

.login-error {
    color: #e50914;
    text-align: center;
    margin: 15px 0;
    padding: 12px;
    background: rgba(229, 9, 20, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(229, 9, 20, 0.3);
}

/* ===== PREMIUM DASHBOARD DESIGN ===== */
.dashboard-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 60px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, transparent 100%);
    z-index: 1000;
    transition: all 0.3s ease;
}

.dashboard-header.scrolled {
    background: var(--netflix-black);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.dashboard-header h1 {
    color: var(--netflix-red);
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.user-info {
    color: var(--netflix-white);
    font-size: 14px;
    font-weight: 500;
}

.logout-btn {
    background: var(--netflix-red);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: var(--netflix-hover-red);
    transform: translateY(-1px);
}

.dashboard-main {
    padding: 140px 60px 60px;
    margin-top: 0;
}

/* Admin Navigation */
.admin-navigation {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--netflix-white);
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.admin-nav-btn.active,
.admin-nav-btn:hover {
    background: var(--netflix-red);
    border-color: var(--netflix-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.3);
}

/* Media Grid Premium */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.media-item {
    background: var(--netflix-dark-gray);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.media-item:hover {
    transform: scale(1.08);
    border-color: var(--netflix-white);
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.2);
    z-index: 100;
}

.media-cover {
    width: 100%;
    height: 450px;
    background: var(--netflix-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.media-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.media-item:hover .media-cover img {
    transform: scale(1.1);
}

.media-info {
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.media-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--netflix-white);
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.media-year {
    color: var(--netflix-light-gray);
    font-size: 14px;
    font-weight: 500;
}

/* Category Buttons Premium */
.category-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.category-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--netflix-white);
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-btn.active,
.category-btn:hover {
    background: var(--netflix-red);
    border-color: var(--netflix-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(229, 9, 20, 0.3);
}

/* Section Headers */
.section-header {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 50px 0 30px 0;
    color: var(--netflix-white);
    border-left: 4px solid var(--netflix-red);
    padding-left: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 20px;
    }
    
    .dashboard-main {
        padding: 120px 20px 40px;
    }
    
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .admin-navigation {
        flex-direction: column;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--netflix-black);
}

::-webkit-scrollbar-thumb {
    background: var(--netflix-red);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--netflix-hover-red);
}