/* Fond sombre comme sur Android TV */
body {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column; /* Aligne le header au dessus du contenu */
    //height: 100vh;
}
/* Conteneur principal */
#main-content {
    padding-top: 150px; /* Espace pour le header */
    height: 100vh;
}

.category-row {
    margin-bottom: 20px;
}

.row-title {
    margin-left: 50px;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.cards-slider {
    display: flex;
    padding: 20px 50px;
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: grey #ffffff00;
    scroll-behavior: smooth;
    will-change: scroll-position;
}

/* Style des Cartes (Inspiré de CardPresenter) */
.card {
    min-width: 280px;
    width: 280px;
    height: 400px;
    background: #1a1a1a;
    border-radius: 10px;
    border: 4px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    outline: none;
}

.card:focus {
    transform: scale(1.08);
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255,255,255,0.4);
    z-index: 100;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.card-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 15px;
    box-sizing: border-box;
}

.badge {
    background: #e50914;
    padding: 2px 8px;
    font-size: 0.7rem;
    border-radius: 4px;
    font-weight: bold;
}

/* Conteneur principal du Login */
.login-container {
    background-color: #1a1a1a;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    width: 450px;
    text-align: center;
    border: 1px solid #333;
    margin: auto;
}

h2 {
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: 300;
    color: #e5e5e5;
}

/* Style des champs de saisie */
input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #333;
    border-radius: 8px;
    background-color: #262626;
    color: white;
    font-size: 18px;
    box-sizing: border-box; /* Évite que le padding dépasse */
    outline: none;
    transition: all 0.2s ease;
}

/* EFFET CRUCIAL : Quand la télécommande arrive sur le champ */
input:focus {
    border-color: #e50914; /* Rouge Cars Adventures */
    background-color: #333;
    transform: scale(1.02);
}

/* Bouton de connexion */
button {
    width: 100%;
    padding: 18px;
    background-color: #e50914;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s ease;
    outline: none;
}

/* Quand le bouton est sélectionné à la télécommande */
button:focus {
    background-color: #ff0a16;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
}

/* Placeholder plus discret */
::placeholder {
    color: #777;
}


.header-tv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 50px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, transparent 100%);
    width: 100%; /* S'assure qu'il prend toute la largeur */
    box-sizing: border-box;
    z-index: 1000;
}

        .logo-tv {
            height: 100px;
        }
        .nav-buttons {
            display: flex;
            gap: 20px;
        }
        .nav-btn {
            padding: 10px 20px;
            background: rgba(255,255,255,0.1);
            color: white;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            font-size: 20pt;
        }
        .nav-btn:focus {
            background: white;
            color: black;
            outline: none;
            transform: scale(1.1);
        }