/* ============================================
   PLAYER LOGO FIX - Sizing Constraints
   ============================================ */

/* Header Logo Container */
.header-logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Logo Image - Properly Sized (Critical Fix) */
.header-logo-image {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    object-fit: contain;
}

/* Logo Text */
.header-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.logo-accent {
    color: #e87c03;
}

/* Responsive Player Logo */
@media (max-width: 768px) {
    .header-logo-image {
        width: 32px !important;
        height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }
    
    .header-logo {
        font-size: 1.25rem;
    }
}

/* Fix for excessive spacing issue */
.header-logo-container {
    margin: 0 !important;
    padding: 0 !important;
    min-height: auto !important;
}

.sidebar-header {
    padding-top: 0.5rem !important;
}

.logo-container {
    padding: 10px 20px !important;
    min-height: auto !important;
}

/* Eliminate top spacing before category tabs */
.category-tabs {
    margin-top: 0 !important;
}

.sidebar-header h3 {
    margin-bottom: 0.5rem !important;
}


/* ========================================
   CRITICAL FIX: Hide login screen when inactive
   ========================================
   
   Problem: netflix-login.css has #loginScreen { display: flex }
   which overrides style.css .screen { display: none } due to
   higher specificity (ID selector > class selector).
   
   When .active is removed from #loginScreen after login,
   the screen stays visible but invisible (opacity: 0),
   creating a ~1100px "ghost" space at the top.
   
   Solution: Force display: none when NOT active.
   ======================================== */

#loginScreen:not(.active) {
    display: none !important;
}

/* CRITICAL FIX: Remove 1000px empty space */
#playerScreen {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#playerScreen .app-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#playerScreen .screen-content,
#playerScreen .player-layout {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
