* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #ffffff;
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  font-size: 2rem;
  color: #e91e63;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ffffff;
}

.tagline {
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(233, 30, 99, 0.2);
  color: #e91e63;
}

/* Search Section */
.search-section {
  padding: 2rem 0;
  background: rgba(0, 0, 0, 0.3);
}

.search-bar {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-bar i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.search-bar input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  backdrop-filter: blur(10px);
}

.search-bar input::placeholder {
  color: #888;
}

.search-bar input:focus {
  outline: none;
  border-color: #e91e63;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.2);
}

/* Categories */
.categories-section {
  padding: 1rem 0;
  background: rgba(0, 0, 0, 0.2);
}

.categories-filter {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.category-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-btn:hover,
.category-btn.active {
  background: #e91e63;
  border-color: #e91e63;
  transform: translateY(-2px);
}

/* Main Content */
.main-content {
  padding: 2rem 0;
  min-height: 60vh;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-indicator {
  color: #ff4444;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.game-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(233, 30, 99, 0.5);
}

.live-card {
  border-color: #ff4444;
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.2);
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.live-badge {
  background: #ff4444;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.finished-badge {
  background: #4caf50;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.channel {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
}

.teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem 0;
}

.team {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.team-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px;
}

.team-name {
  font-weight: bold;
  font-size: 1.1rem;
}

.vs {
  margin: 0 1rem;
  font-weight: bold;
  color: #e91e63;
  font-size: 0.9rem;
}

.game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #ccc;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.game-time,
.game-category,
.competition {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Estilos para múltiplas opções de stream */
.stream-options {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.watch-btn {
  flex: 1;
  background: linear-gradient(45deg, #e91e63, #f06292);
  border: none;
  color: white;
  padding: 1rem;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.watch-btn.primary {
  flex: 1;
}

.watch-btn:hover {
  background: linear-gradient(45deg, #c2185b, #e91e63);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
}

/* Dropdown para múltiplas opções de stream */
.stream-dropdown {
  position: relative;
}

.dropdown-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 1rem 0.8rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  bottom: 100%;
  margin-bottom: 0.5rem;
  background: rgba(26, 26, 46, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  min-width: 120px;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.dropdown-content.show {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 0.8rem 1rem;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease;
  font-size: 0.9rem;
}

.dropdown-content a:hover {
  background: rgba(233, 30, 99, 0.2);
}

.dropdown-content a:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-content a:last-child {
  border-radius: 0 0 8px 8px;
}

/* Badge para jogos em breve */
.upcoming-badge {
  background: #ff9800;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* No Games */
.no-games {
  text-align: center;
  padding: 3rem 0;
}

.loading-spinner {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.spinning {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  margin: 2% auto;
  width: 90%;
  max-width: 1200px;
  height: 90%;
  background: rgba(26, 26, 46, 0.95);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
  color: #ffffff;
  margin: 0;
}

.close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: #e91e63;
}

.modal-body {
  height: calc(100% - 80px);
  padding: 0;
  display: flex;
  flex-direction: column;
}

#streamFrame {
  width: 100%;
  flex: 1;
  border: none;
}

/* Adicionando estilos para as opções de stream no modal */
.stream-options-modal {
  background: rgba(0, 0, 0, 0.8);
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 16px 16px;
}

.stream-options-modal h4 {
  color: #ffffff;
  margin: 0 0 1rem 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stream-options-modal h4::before {
  content: "📺";
  font-size: 1.2rem;
}

.stream-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stream-option-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  min-width: 100px;
  justify-content: center;
}

.stream-option-btn:hover {
  background: rgba(233, 30, 99, 0.3);
  border-color: #e91e63;
  transform: translateY(-1px);
}

.stream-option-btn.active {
  background: linear-gradient(45deg, #e91e63, #f06292);
  border-color: #e91e63;
  box-shadow: 0 2px 10px rgba(233, 30, 99, 0.3);
}

.stream-option-btn i {
  font-size: 0.8rem;
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0 1rem;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: #e91e63;
  margin-bottom: 1rem;
}

.footer-section p {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #e91e63;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    gap: 1rem;
  }

  .nav-link {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    height: 95%;
    margin: 2.5% auto;
  }

  .categories-filter {
    justify-content: flex-start;
  }

  .teams {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
  }

  .team {
    flex: 0 1 auto;
    min-width: 0;
  }

  .team-name {
    font-size: 0.9rem;
    text-align: center;
    word-break: break-word;
  }

  .vs {
    margin: 0 0.5rem;
    font-size: 1rem;
    flex-shrink: 0;
  }

  /* Responsivo para escudos em mobile */
  .team-logo {
    width: 35px;
    height: 35px;
  }

  .stream-options {
    flex-direction: column;
    gap: 0.5rem;
  }

  .dropdown-content {
    right: auto;
    left: 0;
    width: 100%;
  }

  .stream-options-modal {
    padding: 0.8rem 1rem;
  }

  .stream-buttons {
    gap: 0.3rem;
  }

  .stream-option-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    min-width: 80px;
  }

  .modal-body {
    height: calc(100% - 70px);
  }
}

/* Hidden class for filtering */
.hidden {
  display: none !important;
}
