/*
Theme Name: Canais Play
Theme URI: https://futebol8k.com
Description: A streaming platform WordPress theme
Version: 1.2.9
*/

/* Root Variables */
:root {
  --primary: #00d1ff;
  --primary-hover: #33daff;
  --background: #0a0a0f;
  --card-bg: rgba(16, 16, 24, 0.95);
  --card-border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --gradient-1: linear-gradient(135deg, rgba(0, 209, 255, 0.1) 0%, rgba(0, 209, 255, 0) 100%);
  --shadow-1: 0 4px 20px rgba(0, 209, 255, 0.15);
  --status-live: #ff0000;
  --status-upcoming: #00e096;
  --status-tomorrow: #ffb800;
  --status-finished: #6c757d;
}

/* Global Styles */
html {
  font-size: 14px; /* Reduced from the default 16px */
}
body {
  background-color: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Header and Navigation */
.site-header {
  background-color: var(--background);
  border-bottom: 2px solid #00d1ff;
  position: relative;
  z-index: 1000;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  height: 60px;
}

.logo-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.main-navigation {
  background: var(--background);
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s;
  display: block;
}

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu .current-menu-item > a {
  color: var(--primary);
}

.nav-menu .current-menu-item > a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

/* Submenu Styles */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 220px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
  z-index: 100;
  overflow: hidden;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li.hover-active > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0s;
}

.nav-menu .sub-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--card-bg);
  z-index: 1;
}

.nav-menu .sub-menu li {
  width: 100%;
  padding: 0;
  margin: 0;
}

.nav-menu .sub-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text);
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  text-align: left;
}

.nav-menu .sub-menu a:hover,
.nav-menu .sub-menu a:focus {
  background: rgba(0, 209, 255, 0.1);
  color: var(--primary);
  border-left: 3px solid var(--primary);
  padding-left: 1.5rem;
}

.nav-menu .sub-menu .current-menu-item > a {
  color: var(--primary);
  background: rgba(0, 209, 255, 0.1);
  border-left: 3px solid var(--primary);
}

.nav-menu .sub-menu .current-menu-item > a::after {
  display: none;
}

/* Multi-level Desktop Submenus */
.nav-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  transform: translateX(10px);
  margin-top: 0;
  margin-left: 0;
}

.nav-menu .sub-menu .sub-menu::before {
  display: none;
}

.nav-menu .sub-menu li:hover > .sub-menu,
.nav-menu .sub-menu li.hover-active > .sub-menu {
  transform: translateX(0);
}

/* Submenu Indicators */
.nav-menu .menu-item-has-children > a {
  padding-right: 1.2rem;
  position: relative;
}

.nav-menu .menu-item-has-children > a::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.3s ease;
}

.nav-menu .menu-item-has-children:hover > a::after,
.nav-menu .menu-item-has-children.hover-active > a::after {
  transform: translateY(-50%) rotate(180deg);
}

.nav-menu .sub-menu .menu-item-has-children > a::after {
  right: 10px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 4px solid currentColor;
  transform: translateY(-50%) rotate(0);
}

.nav-menu .sub-menu .menu-item-has-children:hover > a::after,
.nav-menu .sub-menu .menu-item-has-children.hover-active > a::after {
  transform: translateY(-50%) rotate(90deg);
}

/* Logo Container */
.logo-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 3px;
  z-index: 1;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  letter-spacing: -0.5px;
}

.logo-text .d-letter {
  color: var(--primary);
  transform: scaleX(-1);
  margin-right: -3px;
}

.logo-text .canais {
  color: var(--text);
}

.logo-text .play {
  color: var(--primary);
}

.logo-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  opacity: 0.5;
}

/* Menu Toggle */
.menu-toggle {
  background: none;
  border: none;
  color: var(--text);
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform 0.2s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

.menu-toggle:active {
  transform: scale(0.95);
}

.menu-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  position: relative;
  transition: background-color 0.3s;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.3s;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  bottom: -6px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* Search Form */
.search-form-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  backdrop-filter: blur(5px);
}

.search-form-wrapper.active {
  opacity: 1;
  visibility: visible;
}

.search-form-container {
  width: 90%;
  max-width: 600px;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-form-wrapper.active .search-form-container {
  transform: translateY(0);
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-field {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid #00d1ff;
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 1.1rem;
}

.search-field:focus {
  outline: none;
  border-color: #33daff;
  box-shadow: 0 0 0 4px rgba(0, 209, 255, 0.2);
}

.search-submit {
  background: #00d1ff;
  color: var(--background);
  border: none;
  border-radius: 12px;
  padding: 0 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.search-submit:hover {
  background: #33daff;
  transform: scale(1.02);
}

.search-submit svg {
  width: 20px;
  height: 20px;
  stroke: var(--background);
}

.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-toggle svg {
  width: 22px;
  height: 22px;
  stroke: var(--text);
  transition: all 0.3s ease;
}

.search-toggle:hover {
  transform: scale(1.1);
}

.search-toggle:hover svg {
  stroke: #ffb800;
}

.search-toggle img {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%) invert(80%) sepia(5%) saturate(7500%) hue-rotate(156deg) brightness(101%)
    contrast(105%);
  transition: filter 0.3s ease;
}

.search-toggle:hover img {
  filter: brightness(0) saturate(100%) invert(85%) sepia(10%) saturate(7500%) hue-rotate(156deg) brightness(101%)
    contrast(105%);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--background);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

.mobile-menu[data-state="open"] {
  transform: translateX(0);
}

body.menu-open {
  overflow: hidden;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  background: var(--background);
  z-index: 2;
}

.mobile-logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.mobile-logo .d-letter {
  color: var(--primary);
  transform: scaleX(-1);
  margin-right: -3px;
}

.mobile-logo .canais {
  color: var(--text);
}

.mobile-logo .play {
  color: var(--primary);
}

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--text);
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.mobile-menu-close:hover {
  transform: scale(1.1);
}

.mobile-menu-close:active {
  transform: scale(0.95);
}

.mobile-menu-close svg,
.search-toggle svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.mobile-menu-close:hover svg,
.search-toggle:hover svg {
  transform: rotate(90deg);
}

/* Mobile Menu Items */
.mobile-menu-items {
  list-style: none;
  padding: 1rem;
  margin: 0;
}

.mobile-menu-items li {
  margin-bottom: 0.5rem;
  position: relative;
}

.mobile-menu-items a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.75rem 0;
  display: block;
  transition: color 0.3s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-items a:hover {
  color: var(--primary);
}

.mobile-menu-items .current-menu-item > a {
  color: var(--primary);
  font-weight: 500;
}

/* Improved Mobile Submenu Styles */
.mobile-menu-items .submenu-toggle {
  position: absolute;
  right: 0;
  top: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
  z-index: 2;
  padding: 0;
}

.mobile-menu-items .submenu-toggle:hover,
.mobile-menu-items .submenu-toggle:focus {
  color: var(--primary);
}

.mobile-menu-items .menu-item-has-children.active > .submenu-toggle {
  transform: rotate(180deg);
  color: var(--primary);
}

.mobile-menu-items .sub-menu {
  padding-left: 1rem;
  margin: 0;
  list-style: none;
  border-left: 2px solid var(--primary);
  overflow: hidden;
  transition: height 0.3s ease, opacity 0.3s ease;
  will-change: height, opacity;
}

.mobile-menu-items .sub-menu li:last-child {
  margin-bottom: 0;
}

.mobile-menu-items .sub-menu a {
  font-size: 0.9rem;
  padding: 0.6rem 0;
  opacity: 0.9;
}

.mobile-menu-items .sub-menu a:hover,
.mobile-menu-items .sub-menu .current-menu-item > a {
  color: var(--primary);
  opacity: 1;
}

/* Adicionar após os estilos existentes do mobile menu */

/* Mobile submenu toggle button */
.submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: 0.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-item-has-children.active > a .submenu-toggle {
  transform: rotate(180deg);
}

.mobile-menu-items .menu-item-has-children > a::after {
  display: none; /* Remove o indicador padrão, pois usaremos o botão toggle */
}

/* Ajuste para o menu mobile */
.mobile-menu-items {
  padding: 0 1rem;
}

.mobile-menu-items li {
  position: relative;
  margin-bottom: 0.5rem;
}

.mobile-menu-items a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-items .sub-menu {
  margin-left: 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--primary);
}

.mobile-menu-items .sub-menu a {
  border-bottom: none;
  padding: 0.5rem 0;
}

.mobile-menu-items .sub-menu li:last-child {
  margin-bottom: 0;
}

/* Mobile Menu Submenu Styles */
.mobile-menu-items .sub-menu {
  display: none;
  padding-left: 1rem;
  margin: 0.5rem 0;
  border-left: 2px solid var(--primary);
}

.mobile-menu-items .menu-item-has-children {
  position: relative;
}

.mobile-menu-items .menu-item-has-children > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-items .menu-item-has-children > a::after {
  content: "▾";
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.mobile-menu-items .menu-item-has-children.active > a::after {
  transform: rotate(180deg);
}

.mobile-menu-items .menu-item-has-children.active > .sub-menu {
  display: block;
  animation: fadeIn 0.3s ease;
}

.mobile-menu-items .sub-menu a {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.mobile-menu-items .sub-menu a:hover,
.mobile-menu-items .sub-menu .current-menu-item > a {
  color: var(--primary);
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .main-navigation {
    display: none;
  }
}

/* Responsive adjustments for submenus */
@media (max-width: 768px) {
  .nav-menu .sub-menu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0 0 0 1rem;
    margin: 0.5rem 0;
    display: none;
  }

  .nav-menu li:hover > .sub-menu {
    display: block;
  }

  .nav-menu .sub-menu a {
    padding: 0.5rem 0;
    border-left: none;
  }

  .nav-menu .sub-menu a:hover {
    background: transparent;
    padding-left: 0;
  }
}

/* Main Title and Description */
.main-title {
  color: var(--primary);
  font-size: 1.3rem; /* Reduced from 1.75rem */
  text-align: center;
  margin: 2rem 0 1rem;
}

.site-description {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 2rem;
  line-height: 1.5;
  color: var(--text);
  font-size: 0.85rem; /* Reduced from 0.95rem */
}

/* Channels Section */
.channels-container {
  background-color: transparent;
  padding: 0.75rem 0;
  margin: 0.5rem 0;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.channels-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(12.5% - 10px); /* Update: Changed grid-auto-columns */
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem; /* Update: Changed gap */
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 3rem; /* Update: Changed padding */
  -webkit-overflow-scrolling: touch;
}

.channels-grid::-webkit-scrollbar {
  display: none;
}

.channel-logo {
  aspect-ratio: 16 / 9; /* Update: Changed aspect-ratio */
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.channel-logo:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}

.channel-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0.5rem;
}

.channel-logo img {
  max-width: 75%; /* Update: Changed max-width */
  max-height: 75%; /* Update: Changed max-height */
  object-fit: contain;
  transition: transform 0.3s ease;
}

.channel-logo:hover img {
  transform: scale(1.05);
}

/* Navigation Arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--card-bg);
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.nav-arrow:hover {
  background: var(--primary);
  color: var(--background);
  transform: translateY(-50%) scale(1.1);
}

.nav-prev {
  left: 0.5rem; /* Update: Changed left position */
}

.nav-next {
  right: 0.5rem; /* Update: Changed right position */
}

.nav-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .channels-grid {
    grid-auto-columns: calc(14.28% - 7px); /* Update: Changed media query */
  }
}

@media (max-width: 992px) {
  .channels-grid {
    grid-auto-columns: calc(16.66% - 7px); /* Update: Changed media query */
  }
}

@media (max-width: 768px) {
  .channels-grid {
    grid-auto-columns: calc(20% - 6px); /* Update: Changed media query */
    gap: 6px; /* Update: Changed gap */
    padding: 0 1.5rem; /* Update: Changed padding */
  }

  .channel-logo img {
    max-width: 80%;
    max-height: 80%;
  }
}

@media (max-width: 576px) {
  .channels-grid {
    grid-auto-columns: calc(25% - 6px); /* Update: Changed media query */
  }

  .channel-logo img {
    max-width: 75%; /* Update: Changed max-width */
    max-height: 75%; /* Update: Changed max-height */
  }
}

@media (max-width: 360px) {
  /* Update: Added new media query */
  .channels-grid {
    grid-auto-columns: calc(33.33% - 5px);
    gap: 5px;
    padding: 0 1.25rem;
  }

  .channel-logo img {
    max-width: 70%;
    max-height: 70%;
  }
}

/* Live Section */
.live-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
}

.live-title {
  color: var(--primary);
  font-size: 1rem; /* Reduced from 1.25rem */
  font-weight: bold;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 0 20px rgba(0, 209, 255, 0.3);
}

.live-title::before {
  content: "•";
  color: var(--primary);
  font-size: 2em;
  animation: pulse 2s infinite;
}

/* Latest Games Section */
.latest-games {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding: 0 1rem;
}

.latest-title {
  color: var(--primary);
  font-size: 1rem; /* Reduced from 1.25rem */
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 0 20px rgba(0, 209, 255, 0.3);
}

/* Grid Layout */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem; /* Reduced from 1rem */
  max-width: 1400px;
  margin: 0 auto;
}

/* Live Matches Grid */
.live-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem; /* Reduced from 1rem */
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Latest Matches Grid */
.latest-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem; /* Reduced from 1rem */
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Featured Matches */
.featured-matches {
  margin: 2rem auto;
  max-width: 1400px;
  padding: 0 1rem;
}

.featured-title {
  color: var(--primary);
  font-size: 1rem; /* Reduced from 1.25rem */
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 0 20px rgba(0, 209, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.featured-title::before {
  content: "★";
  color: var(--primary);
  font-size: 1.5em;
}

.featured-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem; /* Reduced from 1rem */
  margin-bottom: 2rem;
}

/* Match Cards Styling */
.live-match-card,
.latest-match-card {
  width: 100%;
  margin: 0;
  position: relative;
  background-color: var(--card-bg);
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  /* Ajuste o tamanho dos boxes de jogos */
  min-height: 165px; /* Reduced from 220px */
  aspect-ratio: 4 / 4; /* Alterado de 7 / 10 para uma proporção um pouco mais quadrada */
  border: 1px solid var(--card-border);
}

@media (max-width: 768px) {
  .live-match-card,
  .latest-match-card {
    aspect-ratio: 3 / 5;
  }
}

/* Featured Match Card Styles */
.featured-match-card {
  border: 2px solid var(--primary);
  box-shadow: 0 0 15px rgba(0, 209, 255, 0.3);
}

.featured-match-card::before {
  content: "★";
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  color: var(--primary);
  font-size: 1.2rem;
  z-index: 10;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

/* Live Now Match Card Styles */
.live-now-match-card {
  border: 2px solid var(--status-live);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.live-now-match-card .match-status {
  background: var(--status-live);
  color: white;
  animation: livePulse 2s infinite;
}

.live-now-match-card .match-status::before {
  content: "•";
  display: inline-block;
  margin-right: 0.5rem;
  color: #fff;
  animation: blink 1s infinite;
}

@keyframes livePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Top section for logos and teams */
.match-top {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.team-logos {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  width: 100%;
}

.team-logo {
  width: 30px; /* Reduced from 40px */
  height: 30px; /* Reduced from 40px */
  min-width: 30px; /* Reduced from 40px */
  min-height: 30px; /* Reduced from 40px */
  object-fit: contain;
  background: var(--gradient-1);
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow-1);
  border-radius: 50%;
  padding: 0.25rem;
  backdrop-filter: blur(10px);
}

.vs-text {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.match-teams {
  margin-bottom: 0.5rem;
  color: var(--text);
  /* Ajuste o tamanho da fonte para os nomes das equipes */
  font-size: 0.9rem; /* Reduced from 1rem */
  font-weight: bold;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  width: 100%;
}

/* Middle section for title and description */
.match-middle {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.match-title {
  color: var(--text);
  /* Ajuste o tamanho da fonte para o título da partida */
  font-size: 0.7rem; /* Reduced from 0.8rem */
  margin: 0.75rem 0;
  line-height: 1.4;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.4em; /* Ajustado para 2 linhas */
}

.match-datetime {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.match-date,
.match-time {
  font-size: 0.8rem; /* Ajuste o tamanho da fonte para a data e hora */
  color: var(--primary);
}

.match-date::after {
  content: "•";
  margin-left: 0.5rem;
  color: var(--text-muted);
}

/* Bottom section for date, time and status */
.match-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* Match Status */
.match-status {
  font-size: 0.8rem; /* Ajuste o tamanho da fonte para o status da partida */
  font-weight: bold;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem; /* Reduzido de 0.35rem 0.75rem */
  border-radius: 4px;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Live Status Styling */

.live-match-card[class*="AO VIVO AGORA"] .match-status,
.latest-match-card[class*="AO VIVO AGORA"] .match-status {
  background: var(--status-live);
  color: white;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.live-match-card[class*="AO VIVO AGORA"] .match-status::before,
.latest-match-card[class*="AO VIVO AGORA"] .match-status::before {
  content: "•";
  display: inline-block;
  margin-right: 0.5rem;
  color: #fff;
  animation: blink 1s infinite;
}

.live-match-card[class*="AO VIVO AGORA"] .match-status::after,
.latest-match-card[class*="AO VIVO AGORA"] .match-status::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes livePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(255, 0, 0, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.4);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes shine {
  0% {
    left: -50%;
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  20% {
    opacity: 0;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

/* Status Colors */
.live-match-card[class*="HOJE AINDA"] .match-status,
.latest-match-card[class*="HOJE AINDA"] .match-status {
  background: var(--status-upcoming);
  color: var(--background);
  box-shadow: 0 0 15px rgba(0, 224, 150, 0.3);
}

.live-match-card[class*="AMANHA"] .match-status,
.latest-match-card[class*="AMANHA"] .match-status {
  background: var(--status-tomorrow);
  color: var(--background);
  box-shadow: 0 0 15px rgba(255, 184, 0, 0.3);
}

.live-match-card[class*="FINALIZADO"] .match-status,
.latest-match-card[class*="FINALIZADO"] .match-status {
  background: var(--status-finished);
  color: white;
}

.match-countdown {
  background: var(--gradient-1);
  border: 1px solid rgba(0, 209, 255, 0.2);
  border-radius: 20px;
  color: var(--primary);
  font-size: 0.9rem;
  margin: 0.75rem auto 0;
  padding: 8px 15px;
  text-align: center;
  width: fit-content;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-1);
}

.countdown-label {
  color: #fff;
  display: block;
  font-size: 0.75rem;
  margin-bottom: 4px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.countdown-time {
  font-size: 1.1 0.8;
  text-transform: uppercase;
  letter-spacing0.5px;
}

.match-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

/* Show All Games Button */
.show-all-games {
  display: block;
  width: fit-content;
  margin: 2rem auto 0;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-1);
  border: 1px solid var(--primary);
  color: var(--primary);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: var(--shadow-1);
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-align: center;
}

.show-all-games:hover {
  background: var(--primary);
  color: var(--background);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 209, 255, 0.3);
}

/* No Matches Message */
.no-matches {
  text-align: center;
  color: var(--text);
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 6px;
  font-size: 0.9rem;
}

/* Single Match Page */
.single-match {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem;
}

.match-content-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 1000px;
  box-shadow: var(--shadow-1);
}

.match-player-container {
  margin: 0 auto;
}

.match-player {
  background: #000;
  border: 1px solid var(--primary);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.video-player {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background-color: #000;
  background-size: cover;
  background-position: center;
}

.video-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--gradient-1);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--background);
  font-size: 2.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  backdrop-filter: blur(10px);
}

.play-button:hover {
  background: var(--primary);
  transform: translate(-50%, -50%) scale(1.05);
}

.stream-options {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.stream-option {
  background-color: rgba(0, 209, 255, 0.1);
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.stream-option:hover,
.stream-option.active {
  background-color: var(--primary);
  color: var(--background);
  box-shadow: var(--shadow-1);
}

.match-info {
  margin: 2rem auto 0;
}

.match-meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.match-description {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background-color: #111;
  color: #fff;
  padding: 1.5rem 0 0.75rem; /* Reduced from 2rem 0 1rem */
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 1.5rem;
}

.footer-section h3 {
  color: var(--primary);
  font-size: 1rem; /* Reduced from 1.2rem */
  margin-bottom: 1rem;
}

.footer-section p {
  font-size: 0.8rem; /* Reduced from 0.9rem */
  line-height: 1.5;
}

/* Menu de rodapé em colunas */
.footer-menu-columns {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
}

.footer-menu-column {
  flex: 1;
  min-width: 150px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem; /* Reduced from 0.9rem */
  transition: color 0.3s ease;
  display: block;
  padding: 0.2rem 0;
}

.footer-section ul li a:hover {
  color: var(--primary);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsividade para o rodapé */
@media (max-width: 992px) {
  .footer-menu-columns {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
  }

  .footer-section {
    margin-bottom: 2rem;
    width: 100%;
  }

  .footer-menu-columns {
    gap: 1rem;
  }

  .footer-menu-column {
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .footer-menu-columns {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-menu-column {
    width: 100%;
  }

  .footer-section ul li {
    margin-bottom: 0.3rem;
  }

  .footer-section ul li a {
    font-size: 0.75rem;
  }
}


/* All Games Page */
.all-games-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.all-games-page .matches-grid {
  margin-bottom: 2rem;
}

/* Pagination */
.pagination {
  text-align: center;
  margin-top: 2rem;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  background-color: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.pagination .page-numbers.current {
  background-color: var(--primary);
  color: var(--background);
}

.pagination .page-numbers:hover:not(.current) {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem;
  background: var(--card-bg);
  margin-bottom: 1rem;
  border-radius: 4px;
}

.breadcrumb .container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #e6a600;
}

.breadcrumb .separator {
  color: var(--text);
  opacity: 0.5;
}

.breadcrumb .current {
  color: var(--text);
  opacity: 0.8;
}

/* Match Header */
.match-header {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.teams-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.team {
  flex: 1;
  text-align: center;
}

.team-name {
  margin: 0.5rem 0 0;
  font-size: 1.2rem;
  color: var(--text);
}

.match-details {
  text-align: center;
}

/* Player Controls */
.player-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1rem;
}

.player-controls {
  display: flex;
  gap: 0.5rem;
}

.control-button {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.control-button:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Match Actions */
.match-actions {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.action-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-1);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

.action-button:hover,
.action-button.active {
  background: var(--primary);
  color: var(--background);
  box-shadow: var(--shadow-1);
}

.action-button svg {
  width: 20px;
  height: 20px;
}

.action-button.copied {
  background: var(--primary);
  color: var(--background);
}

.action-button.active {
  background: var(--primary);
  color: var(--background);
}

/* Related Matches */
.related-matches {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title,
.live-title,
.latest-title {
  color: var(--primary);
  font-size: 1rem; /* Reduced from 1.25rem */
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(0, 209, 255, 0.3);
}

.related-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.related-match-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.related-match-card:hover {
  transform: translateY(-2px);
}

.related-match-card .team-logos {
  margin-bottom: 1rem;
}

.related-match-card .match-teams {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.related-match-card .match-meta {
  font-size: 0.8rem;
  color: var(--text);
  opacity: 0.7;
}

/* Search Results Page */
.search-results {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.search-header {
  margin-bottom: 2rem;
  text-align: center;
}

.search-title {
  color: var(--primary);
  font-size: 1.75rem;
  margin: 0;
}

.search-title span {
  color: var(--text);
}

.search-section {
  margin-bottom: 3rem;
  padding-top: 1rem;
}

.search-section .section-title {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--card-border);
}

.search-channels-grid {
  padding: 0;
}

.search-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.search-item h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.search-item h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

.search-item h2 a:hover {
  color: var(--primary);
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--card-bg);
  border-radius: 12px;
  margin-top: 2rem;
}

/* Animations */
@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Styles */
@media (max-width: 1100px) {
  .matches-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .channels-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 50px;
  }

  .logo-container {
    position: relative;
    left: auto;
    transform: none;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .matches-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .channels-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    padding: 0 2rem;
  }

  .nav-arrow {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .team-logo {
    width: 35px;
    height: 35px;
  }

  .vs-text {
    font-size: 0.9rem;
  }

  .match-teams {
    font-size: 0.85rem;
  }

  .match-title {
    font-size: 0.75rem;
  }

  .match-status,
  .match-date,
  .match-time,
  .match-countdown {
    font-size: 0.7rem;
  }

  .live-matches-grid,
  .latest-matches-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-section {
    margin-bottom: 2rem;
  }

  .stream-options {
    flex-wrap: wrap;
  }

  .stream-option {
    flex: 1;
    min-width: 100px;
    text-align: center;
  }

  .match-countdown {
    padding: 8px 15px;
    font-size: 0.8rem;
  }

  .countdown-label {
    font-size: 0.7rem;
  }

  .countdown-time {
    font-size: 0.9rem;
  }

  .teams-info {
    flex-direction: column;
    gap: 1rem;
  }

  .match-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .action-button {
    flex: 1;
    min-width: 140px;
    justify-content: center;
  }

  .related-matches-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  /* Mobile Live Status Styling */
  .live-match-card[class*="AO VIVO AGORA"] .match-status,
  .latest-match-card[class*="AO VIVO AGORA"] .match-status {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0.5rem;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  .matches-grid {
    grid-rem;
  }

  .channels-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.35rem;
    padding: 0 1.5rem;
  }

  .nav-arrow {
    width: 25px;
    height: 25px;
    font-size: 0.9rem;
  }

  .team-logo {
    width: 30px;
    height: 30px;
  }

  .vs-text {
    font-size: 0.8rem;
  }

  .match-teams {
    font-size: 0.8rem;
  }

  .match-title {
    font-size: 0.75rem;
    -webkit-line-clamp: 1;
    max-height: 1.2em;
  }

  .match-status,
  .match-date,
  .match-time,
  .match-countdown {
    font-size: 0.65rem;
  }

  .live-matches-grid,
  .latest-matches-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }

  .match-countdown {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .countdown-time {
    font-size: 0.85rem;
  }

  .match-header {
    padding: 1rem;
  }

  .team-name {
    font-size: 1rem;
  }

  .action-button {
    min-width: 120px;
    font-size: 0.8rem;
  }

  .related-matches-grid {
    grid-template-columns: 1fr;
  }

  .search-field {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }

  .search-submit {
    padding: 0.5rem 0.75rem;
  }

  .search-title {
    font-size: 1.25rem;
  }
}

/* Animation */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

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

.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-toggle svg {
  width: 22px;
  height: 22px;
  stroke: var(--text);
  transition: all 0.3s ease;
}

.search-toggle:hover {
  transform: scale(1.1);
}

.search-toggle:hover svg {
  stroke: #ffb800;
}

.search-toggle img {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%) invert(80%) sepia(5%) saturate(7500%) hue-rotate(156deg) brightness(101%)
    contrast(105%);
  transition: filter 0.3s ease;
}

.search-toggle:hover img {
  filter: brightness(0) saturate(100%) invert(85%) sepia(10%) saturate(7500%) hue-rotate(156deg) brightness(101%)
    contrast(105%);
}

@media (max-width: 768px) {
  .channel-logo {
    flex: 0 0 160px;
  }

  .nav-arrow {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .channel-logo {
    flex: 0 0 140px;
  }

  .channels-grid {
    gap: 0.75rem;
    padding: 0 2rem;
  }

  .nav-arrow {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
}

/* All Channels Page */
.all-channels-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.all-channels-grid {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 2rem 1rem;
}

.channel-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.channel-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.channel-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  text-decoration: none;
  color: var(--text);
}

.channel-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.channel-title {
  font-size: 1rem;
  text-align: center;
  margin: 0;
}

/* Single Channel Page */
.single-channel .channel-content-box {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.single-channel .channel-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-1);
}

.single-channel .channel-info {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

.single-channel .channel-title {
  font-size: 2.5rem;
  margin: 0;
  color: var(--primary);
}

.single-channel .channel-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.single-channel .channel-description {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.single-channel .channel-player-section {
  margin-bottom: 2rem;
}

.single-channel .section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.single-channel .channel-player-container {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
}

.single-channel .video-player {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background-color: #000;
  background-image: url("https://futebol8k.net/wp-content/imagens/fundo.jpg");
  background-size: cover;
  background-position: center;
}

.single-channel .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--gradient-1);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.single-channel .play-button:hover {
  background: var(--primary);
  color: var(--background);
  transform: translate(-50%, -50%) scale(1.1);
}

.single-channel .channel-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.single-channel .action-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-1);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

.single-channel .action-button:hover {
  background: var(--primary);
  color: var(--background);
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}

.single-channel .related-channels {
  margin-top: 3rem;
}

.single-channel .related-channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.single-channel .related-channel-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  text-align: center;
  transition: transform 0.3s ease;
}

.single-channel .related-channel-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-1);
}

.single-channel .related-channel-card .channel-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.single-channel .related-channel-card .channel-name {
  font-size: 1rem;
  margin: 0;
}

@media (max-width: 768px) {
  .single-channel .channel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .single-channel .  .single-channel .channel-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .single-channel .channel-title {
    font-size: 2rem;
  }

  .single-channel .channel-logo {
    width: 100px;
    height: 100px;
  }

  .single-channel .channel-actions {
    flex-wrap: wrap;
  }

  .single-channel .action-button {
    flex: 1;
    min-width: 140px;
  }

  .single-channel .related-channels-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* Update Channels Grid Styling */
.channels-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 0;
  overflow: hidden;
}

.channels-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(12.5% - 10px);
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 3rem;
  -webkit-overflow-scrolling: touch;
}

.channels-grid::-webkit-scrollbar {
  display: none;
}

.channel-logo {
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.channel-logo:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}

.channel-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0.5rem;
}

.channel-logo img {
  max-width: 75%;
  max-height: 75%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.channel-logo:hover img {
  transform: scale(1.05);
}

/* Navigation Arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--card-bg);
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.nav-arrow:hover {
  background: var(--primary);
  color: var(--background);
  transform: translateY(-50%) scale(1.1);
}

.nav-prev {
  left: 0.5rem;
}

.nav-next {
  right: 0.5rem;
}

.nav-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .channels-grid {
    grid-auto-columns: calc(16.666% - 10px);
  }
}

@media (max-width: 992px) {
  .channels-grid {
    grid-auto-columns: calc(20% - 10px);
  }
}

@media (max-width: 768px) {
  .channels-grid {
    grid-auto-columns: calc(25% - 10px);
  }

  .nav-arrow {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .channels-grid {
    grid-auto-columns: calc(33.333% - 10px);
    gap: 0.75rem;
    padding: 0.5rem 2.5rem;
  }

  .nav-arrow {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
}

/* Pagination Styling */
.pagination {
  margin: 2rem 0;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem;
  margin: 0 0.25rem;
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
}

.pagination .page-numbers.current {
  background: var(--primary);
  color: var(--background);
  border-color: var(--primary);
}

.pagination .page-numbers:hover:not(.current) {
  background: var(--gradient-1);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}

.pagination .prev,
.pagination .next {
  padding: 0.5rem 1rem;
}

/* Mobile Pagination */
@media (max-width: 480px) {
  .pagination .page-numbers {
    min-width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .pagination .prev,
  .pagination .next {
    padding: 0.5rem;
  }
}

/* Update the video player styles to better handle mobile devices */
.video-player {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background-color: #000;
  background-size: cover;
  background-position: center;
}

/* Add specific mobile styles for the video player */
@media (max-width: 768px) {
  .video-player {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #000; /* Ensure black background fills any empty space */
  }

  .welcome-message {
    bottom: 10px;
    font-size: 12px;
    padding: 8px 15px;
    width: 90%;
    max-width: 300px;
  }

  .play-button {
    width: 60px;
    height: 60px;
  }

  .play-button svg {
    width: 28px;
    height: 28px;
  }
}

/* Add even smaller device adjustments */
@media (max-width: 480px) {
  .video-player {
    padding-bottom: 75%; /* Slightly taller ratio for very small screens */
  }

  .welcome-message {
    font-size: 11px;
    padding: 6px 12px;
  }

  .play-button {
    width: 50px;
    height: 50px;
  }

  .play-button svg {
    width: 24px;
    height: 24px;
  }
}

/* Notification Bar Styles */
.notification-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
  font-size: 0.95rem;
}

.notification-bar.dismissed {
  transform: translateY(-100%);
}

.notification-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  flex: 1;
}

.notification-close {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.notification-close:hover {
  opacity: 1;
}

/* Notification Types */
.notification-bar.info {
  background: var(--primary);
  color: var(--background);
}

.notification-bar.warning {
  background: var(--status-tomorrow);
  color: var(--background);
}

.notification-bar.success {
  background: var(--status-upcoming);
  color: var(--background);
}

/* Adjust body padding when notification is present */
body.has-notification {
  padding-top: 3.5rem;
}

/* Admin bar adjustment */
.admin-bar .notification-bar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .notification-bar {
    top: 46px;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .notification-bar {
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  .notification-close svg {
    width: 20px;
    height: 20px;
  }

  body.has-notification {
    padding-top: 3rem;
  }
}

.homepage-notification {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.homepage-notification .notification-title {
  text-align: center;
  margin-bottom: 10px;
  font-size: 1.2em;
  font-weight: bold;
}

.homepage-notification p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Add after the .latest-match-card styles: */

.featured-matches {
  margin: 2rem auto;
  max-width: 1400px;
  padding: 0 1rem;
}

.featured-title {
  color: var(--primary);
  font-size: 1rem; /* Reduced from 1.25rem */
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 0 20px rgba(0, 209, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.featured-title::before {
  content: "★";
  color: var(--primary);
  font-size: 1.5em;
}

.featured-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem; /* Reduced from 1rem */
  margin-bottom: 2rem;
}

.latest-match-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 0 10px rgba(0, 209, 255, 0.2);
}

.latest-match-card.featured:hover {
  transform: translateY(-5px);
}

.latest-match-card.featured::before {
  content: "★";
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  color: var(--primary);
  font-size: 1.2rem;
  z-index: 10;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

@media (max-width: 768px) {
  .featured-matches-grid,
  .live-matches-grid,
  .latest-matches-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .latest-match-card,
  .live-match-card,
  .latest-match-card.featured {
    min-height: 220px;
  }

  .team-logo {
    width: 35px;
    height: 35px;
  }

  .match-teams {
    font-size: 0.85rem;
  }

  .match-title {
    font-size: 0.75rem;
  }

  .match-status,
  .match-date,
  .match-time,
  .match-countdown {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .featured-matches-grid,
  .live-matches-grid,
  .latest-matches-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }

  .latest-match-card,
  .live-match-card,
  .latest-match-card.featured {
    min-height: 200px;
  }

  .team-logo {
    width: 30px;
    height: 30px;
  }

  .match-teams {
    font-size: 0.8rem;
  }

  .match-title {
    font-size: 0.7rem;
  }

  .match-status,
  .match-date,
  .match-time,
  .match-countdown {
    font-size: 0.65rem;
  }
}

/* Slider Styles */
.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.featured-matches-slider,
.live-matches-slider {
  display: flex;
  transition: transform 0.3s ease;
  gap: 1rem;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gradient-1);
  border: 1px solid var(--primary);
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.slider-arrow:hover {
  background: var(--primary);
  color: var(--background);
}

.slider-prev {
  left: 0.5rem;
}

.slider-next {
  right: 0.5rem;
}

.featured-matches .latest-match-card,
.live-section .live-match-card {
  flex: 0 0 250px; /* Ajuste o tamanho dos sliders */
}

@media (max-width: 768px) {
  .featured-matches .latest-match-card,
  .live-section .live-match-card {
    flex: 0 0 220px;
  }
}

@media (max-width: 480px) {
  .featured-matches .latest-match-card,
  .live-section .live-match-card {
    flex: 0 0 180px;
  }
}

/* Other Events Section Styles */
.other-events {
    margin: 3rem auto;
    padding: 0 1rem;
    max-width: 1400px;
}

.other-events .section-title {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: bold;
    text-align: center;
}

.other-events .events-carousel {
    position: relative;
    padding: 0 60px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.other-events .events-carousel-inner {
    display: flex;
    transition: transform 0.3s ease;
    gap: 1.5rem;
}

.other-events .event-card {
    flex: 0 0 300px;
    max-width: 300px;
    position: relative;
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.other-events .event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.other-events .event-card a {
    text-decoration: none;
    color: var(--text);
}

.other-events .event-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.other-events .event-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.other-events .event-card:hover .event-thumbnail img {
    transform: scale(1.05);
}

.other-events .event-time-badge {
    position: absolute;
    left: 1rem;
    top: 1rem;
    background: var(--primary);
    color: var(--background);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.other-events .event-time-badge.live {
    background: var(--status-live);
    color: #fff;
    animation: livePulse 2s infinite;
}

.other-events .event-time-badge.live::before {
    content: "•";
    display: inline-block;
    margin-right: 0.5rem;
    animation: blink 1s infinite;
}

.other-events .event-card[data-live="true"] {
    border: 2px solid var(--status-live);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.other-events .event-details {
    padding: 1.5rem;
}

.other-events .event-title {
    color: var(--text);
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;

