/* Estilos para la animación de carga - OPTIMIZADO Y LIGERO para Smart TV */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow: hidden;
}

.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    background: #000;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.logo {
    position: relative;
}

.logo img {
    width: 450px;
    margin-bottom: 40px;
    opacity: 0;
    animation: logoAppear 1.2s ease-out 0.3s forwards;
}

@keyframes logoAppear {
    to {
        opacity: 1;
    }
}

/* Animación de carga SIMPLE y RÁPIDA */
.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 180px;
    height: 180px;
}

.loader .line {
    width: 100%;
    height: 100%;
    border: 5px solid transparent;
    border-top-color: #3498db;
    border-radius: 50%;
    position: absolute;
    animation: spin 1.2s linear infinite;
}

.loader .line:nth-child(2) {
    width: 80%;
    height: 80%;
    border-top-color: #f39c12;
    border-width: 4px;
    animation-duration: 1.5s;
}

.loader .line:nth-child(3) {
    width: 60%;
    height: 60%;
    border-top-color: #e74c3c;
    border-width: 4px;
    animation-duration: 1.8s;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-container p {
    margin-top: 40px;
    font-size: 2em;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0;
    animation: textAppear 1s ease-out 0.5s forwards;
}

@keyframes textAppear {
    to {
        opacity: 1;
    }
}

/* Estilos del contenido */
.content {
    padding: 20px;
    text-align: center;
    display: none;
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

/* Media query para TVs 4K */
@media screen and (min-width: 1920px) {
    .logo img {
        width: 600px;
    }
    
    .loader {
        width: 240px;
        height: 240px;
    }
    
    .loader .line {
        border-width: 6px;
    }
    
    .loader .line:nth-child(2),
    .loader .line:nth-child(3) {
        border-width: 5px;
    }
    
    .loader-container p {
        font-size: 2.8em;
        letter-spacing: 5px;
    }
}

/* Para TVs 8K */
@media screen and (min-width: 3840px) {
    .logo img {
        width: 800px;
    }
    
    .loader {
        width: 320px;
        height: 320px;
    }
    
    .loader .line {
        border-width: 8px;
    }
    
    .loader .line:nth-child(2),
    .loader .line:nth-child(3) {
        border-width: 6px;
    }
    
    .loader-container p {
        font-size: 3.5em;
        letter-spacing: 7px;
    }
}