body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.screen {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

.container {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.logo {
    max-width: 200px;
    margin-bottom: 20px;
}

input {
    padding: 10px;
    font-size: 1.2em;
    border-radius: 5px;
    border: none;
    width: 80%;
    max-width: 300px;
    margin-bottom: 20px;
}

button {
    padding: 10px 20px;
    font-size: 1.2em;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#status-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    pointer-events: none;
}

/* Modal Estilo Android TV */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #121212;
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
    font-weight: 800;
}

.menu-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 16px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.menu-btn:hover, .menu-btn:focus {
    background: white;
    color: black;
    outline: none;
}

.menu-btn.danger:hover, .menu-btn.danger:focus {
    border: 2px solid #ff4444;
}

.menu-btn .icon {
    font-size: 1.4em;
}

.menu-btn-text {
    background: transparent;
    color: #888;
    border: none;
    padding: 10px;
    margin-top: 10px;
    font-size: 1em;
    cursor: pointer;
}

.menu-btn-text:hover {
    color: white;
}

/* Controles de Playback */
.controls-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.5s;
    z-index: 100;
}

.progress-bar-container {
    width: 90%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #007bff;
    transition: width 0.1s linear;
}

.controls-row {
    display: flex;
    gap: 30px;
    align-items: center;
}

.control-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 2.5em;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s, transform 0.2s;
}

.control-btn:focus {
    background: white;
    color: black;
    transform: scale(1.2);
    outline: none;
}
