/**
 * StreamPro - Estilos Principales
 * Estilos para el reproductor de streaming
 */

:root {
  /* Disney+ Authentic Color Palette */
  --primary-color: #1e9eff;
  /* Disney+ Bright Blue/Cyan */
  --primary-dark: #0072d2;
  --primary-light: #4db8ff;
  --accent-color: #f9f9f9;
  /* White */
  --accent-secondary: #ff3c78;
  /* Vibrant Pink/Red for live */

  /* Backgrounds - Disney+ Exact Dark Theme */
  --dark-bg: #0e0b20;
  /* Disney+ Deep Navy/Purple */
  --medium-bg: #13111c;
  /* Slightly lighter */
  --light-bg: #1a1d29;
  /* Card backgrounds */
  --card-hover: #232633;
  /* Hover state */

  /* Text Colors */
  --text-color: #ffffff;
  --text-secondary: #cacaca;
  --text-muted: #8a8a8a;

  /* Gradients - Disney+ Style */
  --gradient-primary: linear-gradient(90deg, #1e9eff 0%, #0072d2 100%);
  --gradient-accent: linear-gradient(90deg, #4db8ff 0%, #1e9eff 100%);
  --gradient-dark: linear-gradient(180deg, rgba(14, 11, 32, 0) 0%, rgba(14, 11, 32, 0.9) 100%);

  /* Shadows - Disney+ Style */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 20px rgba(30, 158, 255, 0.4);

  /* Transitions */
  --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: var(--dark-bg);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header Styles */
header {
  background: var(--medium-bg);
  padding: 15px;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(0, 99, 229, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.brand-logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
}

.brand-name {
  font-size: 1.5rem;
}

/* Match Selector Dropdown */
.match-selector {
  position: relative;
}

.match-selector-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.match-selector-btn:hover {
  background: var(--gradient-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.match-selector-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.match-selector-btn:hover::before {
  left: 100%;
}

.match-selector-btn i:first-child {
  font-size: 1.1rem;
}

.match-selector-btn i:last-child {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.match-selector-btn.active i:last-child {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.match-dropdown {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--medium-bg);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.match-dropdown.show {
  right: 0;
}

.match-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--gradient-primary);
  background: var(--light-bg);
  border-bottom: 2px solid var(--primary-color);
}

.match-dropdown-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-color);
}

.close-dropdown {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-dropdown:hover {
  color: var(--accent-color);
  transform: rotate(90deg);
}

/* Match List */
.match-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.loading-matches {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  gap: 10px;
}

.loading-matches i {
  font-size: 2rem;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.match-item {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.match-item:hover {
  background: var(--card-hover);
  border-color: var(--primary-color);
  transform: translateX(-5px);
  box-shadow: var(--shadow-glow);
}

.match-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.match-item:hover::before {
  opacity: 1;
}

.match-item.current {
  border-color: var(--primary-color);
  background: var(--card-hover);
  box-shadow: var(--shadow-glow);
}

.match-item.current::before {
  opacity: 1;
}

.match-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.match-item-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-color);
}

.match-item-badge {
  background: var(--accent-secondary);
  color: white;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
  animation: pulse-badge 2s infinite;
}

.match-item-teams {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.match-item-team {
  flex: 1;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-color);
}

.match-item-vs {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.75rem;
}

.match-item-info {
  display: flex;
  gap: 15px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.match-item-info i {
  margin-right: 4px;
}

.empty-matches {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.empty-matches i {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* Overlay for mobile */
.match-dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(4, 7, 20, 0.9);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.match-dropdown-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Badge Pulse Animation */
@keyframes pulse-badge {

  0%,
  100% {
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
  }

  50% {
    box-shadow: 0 2px 16px rgba(255, 107, 107, 0.8);
  }
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Video Player */
.player-wrapper {
  position: relative;
  width: 100%;
  background: var(--medium-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 30px;
  border: 1px solid rgba(0, 99, 229, 0.1);
}

.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
}

#videoPlayer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  outline: none;
}

.player-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.5);
}

.quality-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(4, 7, 20, 0.85);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 20px;
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  transition: var(--transition-fast);
  border: 1px solid rgba(0, 99, 229, 0.3);
}

.quality-switch:hover {
  background: rgba(4, 7, 20, 0.95);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-glow);
}

.quality-btn {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 15px;
  transition: var(--transition-fast);
}

.quality-btn.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 99, 229, 0.5);
}

.live-indicator {
  position: absolute;
  left: 15px;
  top: 15px;
  background: var(--accent-secondary);
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 5px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(255, 107, 107, 0.6);
}

.live-indicator::before {
  content: "";
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.unmute-button {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 24px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 10;
  box-shadow: var(--shadow);
}

.unmute-button.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.unmute-button.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
}

.premium-timer {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  padding: 5px 15px;
  border-radius: 15px;
  color: white;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.premium-timer.warning {
  background: rgba(231, 76, 60, 0.7);
  animation: pulse-warning 1s infinite;
}

.premium-info {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(46, 204, 113, 0.8);
  padding: 5px 15px;
  border-radius: 15px;
  color: white;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.premium-info.warning {
  background: rgba(243, 156, 18, 0.8);
}

.premium-info.danger {
  background: rgba(231, 76, 60, 0.8);
  animation: pulse-warning 1s infinite;
}

@keyframes pulse-warning {

  0%,
  100% {
    background: rgba(231, 76, 60, 0.7);
  }

  50% {
    background: rgba(231, 76, 60, 0.9);
  }
}

/* Notificación */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--medium-bg);
  border-radius: 8px;
  padding: 12px 20px;
  box-shadow: var(--shadow);
  z-index: 2000;
  transform: translateX(110%);
  transition: transform 0.3s ease;
  color: white;
}

.notification.show {
  transform: translateX(0);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification.success {
  background: rgba(39, 174, 96, 0.9);
}

.notification.error {
  background: rgba(231, 76, 60, 0.9);
}

.notification.warning {
  background: rgba(243, 156, 18, 0.9);
}

.notification.info {
  background: rgba(52, 152, 219, 0.9);
}

.notification i {
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 12px;
  }

  .brand-logo {
    font-size: 1.5rem;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .btn-back-to-matches {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .btn-back-to-matches span {
    display: none;
  }

  .btn-back-to-matches i {
    font-size: 1.2rem;
  }

  .container {
    padding: 10px;
  }

  .quality-switch {
    padding: 4px 8px;
    top: 10px;
    right: 10px;
  }

  .quality-btn {
    padding: 2px 6px;
    font-size: 0.8rem;
  }

  .live-indicator {
    top: 10px;
    left: 10px;
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .premium-timer,
  .premium-info {
    top: 10px;
    font-size: 0.8rem;
    padding: 4px 12px;
  }

  .unmute-button {
    bottom: 50px;
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .brand {
    flex-direction: column;
    gap: 5px;
  }

  .brand-logo {
    font-size: 1.3rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .player-wrapper {
    border-radius: 4px;
  }

  .quality-switch {
    gap: 4px;
  }

  .notification {
    top: 10px;
    right: 10px;
    left: 10px;
    padding: 10px 15px;
    transform: translateY(-110%);
  }

  .notification.show {
    transform: translateY(0);
  }
}

/* Ocultar controles de tiempo de forma más agresiva */
video::-webkit-media-controls-timeline-container {
  display: none !important;
}

video::-webkit-media-controls-current-time-display {
  display: none !important;
}

video::-webkit-media-controls-time-remaining-display {
  display: none !important;
}

video::-webkit-media-controls-timeline {
  display: none !important;
}

/* Para otros navegadores */
video::-moz-range-progress {
  display: none !important;
}

video::-moz-range-track {
  display: none !important;
}

/* Forzar con JavaScript si CSS no funciona */
video {
  position: relative;
}

video::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  z-index: 1000;
}