/* ============================================
   RESET Y BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background-color: #000;
  color: #fff;
  min-height: 100vh;
}

/* ============================================
   PÁGINA DE LOGIN
   ============================================ */
.login-body {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0f0f1e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 420px;
}

.login-box {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 48px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.logo {
  text-align: center;
  margin-bottom: 40px;
}

.logo h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #e50914 0%, #f40612 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.logo .subtitle {
  color: #999;
  font-size: 14px;
  letter-spacing: 2px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group input {
  width: 100%;
  padding: 16px 18px;
  background: rgba(51, 51, 51, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  transition: all 0.2s;
}

.input-group input:focus {
  outline: none;
  background: rgba(70, 70, 70, 0.9);
  border-color: #e50914;
}

.input-group input::placeholder {
  color: #8c8c8c;
}

.btn-login {
  width: 100%;
  padding: 16px;
  background: #e50914;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.btn-login:hover {
  background: #f40612;
}

.error-message {
  background: rgba(229, 9, 20, 0.2);
  border: 1px solid #e50914;
  color: #ff6b6b;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}

.footer-text {
  text-align: center;
  margin-top: 32px;
  color: #666;
  font-size: 13px;
}

/* ============================================
   PÁGINA DE TV
   ============================================ */
.tv-body {
  background: #0a0a0a;
}

.tv-header {
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-header {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #e50914 0%, #f40612 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #ccc;
  font-size: 14px;
}

.btn-logout {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: #e50914;
  border-color: #e50914;
}

.tv-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px;
}

.video-container {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.video-container video {
  width: 100%;
  height: 100%;
  background: #000;
}

.stream-info {
  margin-top: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid #e50914;
}

.stream-info h2 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #e50914;
}

.delay-info {
  color: #999;
  font-size: 13px;
}

/* ============================================
   RESPONSIVE (móvil)
   ============================================ */
@media (max-width: 640px) {
  .login-box {
    padding: 32px 24px;
  }
  
  .logo h1 {
    font-size: 26px;
  }
  
  .tv-header {
    padding: 12px 16px;
  }
  
  .logo-header {
    font-size: 18px;
  }
  
  .user-info {
    gap: 12px;
    font-size: 12px;
  }
  
  .btn-logout {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .tv-main {
    padding: 16px;
  }
}