:root {
  --primary: #00ff88;
  --secondary: #00ccff;
  --accent: #ff0055;

  /* Sports Navy Theme - Removing Neutral Grays */
  --bg-body: #02040a;
  /* Almost black blue */
  --bg-app: #0f172a;
  /* Deep navy */
  --surface: #1e293b;
  /* Richer blue-grey */

  --text-main: #ffffff;
  --text-muted: #94a3b8;
  /* Slate blue text */
  --font-main: 'Inter', sans-serif;
  --header-height: 70px;
  --bottom-nav-height: 70px;
  --sticky-footer-height: 80px;
  forced-color-adjust: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  margin: 0;
}

/* The Mobile App Simulator Container - Now Full Width/Responsive */
.app-container {
  width: 100%;
  max-width: 100%;
  background-color: var(--bg-app);
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--bottom-nav-height);
  /* Space for bottom nav */
  overflow-x: hidden;
  margin: 0;
}

/* Scrollbar hiding for app-like feel */
.app-container::-webkit-scrollbar {
  display: none;
}

/* App Bar / Header - Ludo King Style with Animated Gradient */
.app-header {
  height: var(--header-height);
  background: linear-gradient(135deg, #FF3B3F 0%, #FFD93D 25%, #6BCB77 50%, #4D96FF 75%, #FF3B3F 100%);
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 8px 30px rgba(255, 59, 63, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.app-header::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 50px;
  height: 50px;
  background: rgba(255, 59, 63, 0.3);
  border-radius: 50%;
  z-index: 0;
}

.app-header::after {
  content: '';
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 60px;
  height: 60px;
  background: rgba(255, 217, 61, 0.3);
  border-radius: 50%;
  z-index: 0;
}

/* Sticky Footer for Buttons */
.sticky-footer-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 15px;
  z-index: 200;
  display: flex;
  justify-content: center;
}


.header-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.8);

  /* Centering Logic */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  z-index: 1;
}

@keyframes titleGlow {

  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
  }

  50% {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
  }
}

.header-logo {
  height: 38px;
  width: 38px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  animation: logoSpin 20s linear infinite;
  z-index: 1;
  position: relative;
}

.header-logo:hover {
  transform: scale(1.1) rotate(360deg);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.2);
}

@keyframes logoSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Content Area */
.content-scroll {
  /* Removed margin-top because header is sticky and takes flow space */
  margin-top: 0;
  padding: 10px;
  flex: 1;
}

/* Hero "Banner" Style */
.hero-banner {
  background: linear-gradient(135deg, var(--primary), #00aa55);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 25px;
  color: #000;
  box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
  text-align: center;
}

.hero-banner h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.hero-banner p {
  font-size: 0.9rem;
  opacity: 0.8;
  font-weight: 600;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Slideshow Container - Premium Enhanced Design */
.slideshow-container {
  width: 100%;
  position: relative;
  margin-bottom: 25px;
  border-radius: 20px;
  overflow: hidden;
  height: 220px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(0, 255, 136, 0.1),
    inset 0 0 0 1px rgba(0, 255, 136, 0.15);
  border: 2px solid rgba(0, 255, 136, 0.2);
  transition: all 0.3s ease;
}

.slideshow-container:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(0, 255, 136, 0.15),
    inset 0 0 0 1px rgba(0, 255, 136, 0.25);
  transform: translateY(-2px);
}

.slideshow-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.1) 0%,
      transparent 30%,
      transparent 70%,
      rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
  pointer-events: none;
}

.slideshow-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
  z-index: 2;
  opacity: 0.6;
}

.slider-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.slide:hover img {
  transform: scale(1.05);
}

/* Slideshow Navigation Buttons - Modern Design */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  user-select: none;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.25) 0%, rgba(0, 204, 255, 0.2) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 255, 136, 0.2);
  z-index: 10;
  opacity: 0.8;
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

.prev:hover,
.next:hover {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.4) 0%, rgba(0, 204, 255, 0.35) 100%);
  border-color: var(--primary);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 255, 136, 0.4);
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
}

.prev:active,
.next:active {
  transform: translateY(-50%) scale(0.95);
}

/* Add slide indicators */
.slideshow-container .slide-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.slide-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  cursor: pointer;
}

.slide-indicator.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

/* Removed old fade animation rules */

/* Game Cards (ListView Style) - Premium Enhanced Design */
.game-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 15px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 18px;
  gap: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 255, 136, 0.1);
  border-left: 4px solid var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.game-card:hover {
  transform: translateY(-3px);
  background: linear-gradient(145deg, rgba(51, 65, 85, 0.9) 0%, rgba(30, 41, 59, 0.95) 100%);
  box-shadow: 0 8px 30px rgba(0, 255, 136, 0.15), 0 0 40px rgba(0, 255, 136, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-left-color: var(--secondary);
}

.game-card:hover::before {
  opacity: 1;
}

.game-card:active {
  transform: translateY(-1px) scale(0.99);
}

.game-icon-box {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 204, 255, 0.1) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2), inset 0 0 15px rgba(0, 255, 136, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.game-icon-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.game-card:hover .game-icon-box {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.4), inset 0 0 20px rgba(0, 255, 136, 0.1);
}

.game-info {
  flex: 1;
}

.game-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
}

.game-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.game-action {
  color: var(--primary);
  font-size: 1.2rem;
}

/* Buttons - Premium Design */
.btn {
  border: none;
  outline: none;
  border-radius: 14px;
  padding: 14px 24px;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #00cc70 100%);
  color: #000;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3), 0 0 40px rgba(0, 255, 136, 0.1);
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 255, 136, 0.4), 0 0 60px rgba(0, 255, 136, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 255, 136, 0.3);
}

.btn-block {
  width: 100%;
}

/* Form Styles */
.form-group {
  margin-bottom: 15px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  margin-left: 4px;
}

.form-control {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 2px solid rgba(0, 255, 136, 0.15);
  padding: 15px 18px;
  border-radius: 14px;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-control:focus {
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 255, 136, 0.15);
  transform: translateY(-1px);
}

/* Green Tick Validation */
.form-control:required:valid {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%2300ff88' d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 20px;
  border-color: var(--primary);
}

/* Bottom Navigation - Premium Design */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: var(--bottom-nav-height);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 15, 30, 0.98) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(0, 255, 136, 0.15);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 255, 136, 0.05);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  left: 0;
}

.bottom-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.5;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  gap: 4px;
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 0 0 3px 3px;
  transition: width 0.3s ease;
}

.nav-item ion-icon {
  font-size: 1.5rem;
  margin-bottom: 2px;
  transition: all 0.3s ease;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active::before {
  width: 60%;
}

.nav-item.active ion-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.6));
}

.nav-item:hover:not(.active) {
  color: rgba(0, 255, 136, 0.7);
}

.nav-item:hover:not(.active) ion-icon {
  transform: scale(1.1);
}

/* Detail Page Styles embedded */
.detail-header {
  text-align: center;
  margin-bottom: 20px;
}

.detail-table {
  background: var(--surface);
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-key {
  color: var(--text-muted);
}


/* Live Match Card Styles */
.live-match-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.live-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.live-badge {
  background: rgba(255, 0, 85, 0.2);
  color: #ff0055;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blink-dot {
  width: 8px;
  height: 8px;
  background-color: #ff0055;
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.match-tournament {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.match-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

.vs {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 10px;
  border-radius: 10px;
}

.match-status {
  text-align: center;
  font-size: 0.8rem;
  color: var(--primary);
  margin-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

/* Gallery Grid Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 columns */
  gap: 10px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  /* Square images */
  background: #000;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.download-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: 0.2s;
}

.download-btn:active {
  background: var(--primary);
  color: #000;
}