/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000;
    color: #fff;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-screen p {
    font-size: 18px;
    margin: 10px 0;
    opacity: 0.8;
}

#status-text {
    font-size: 14px;
    color: #00d4ff;
}

/* Player Container */
#player-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

#video-player,
#image-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#video-player.active,
#image-player.active {
    opacity: 1;
    z-index: 10;
}

/* Debug Info */
#debug-info {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 100;
}

#debug-info span {
    display: block;
    margin: 5px 0;
}

/* Error Screen */
#error-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d1b1b 0%, #1a0f0f 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.error-content {
    text-align: center;
    padding: 40px;
    max-width: 600px;
}

.error-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ff4444;
}

.error-content p {
    font-size: 18px;
    margin: 15px 0;
    opacity: 0.9;
}

#error-details {
    font-size: 14px;
    color: #ff8888;
    font-family: monospace;
}

.error-content button {
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 16px;
    background: #00d4ff;
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.error-content button:hover {
    background: #00b8e6;
}

/* Fade animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.fade-out {
    animation: fadeOut 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
