/* ===================================================
   CRICKET TOURNAMENT DESIGN SYSTEM & CORE STYLES
   =================================================== */

:root {
  /* Color Palette */
  --bg-dark: #070B14;
  --bg-surface: #0E1626;
  --bg-card: #141F36;
  --bg-card-hover: #1B2A4A;
  --bg-card-alt: #101B30;
  
  --brand-primary: #0284C7;
  --brand-accent: #00D2FF;
  --brand-pitch-green: #10B981;
  --brand-gold: #F59E0B;
  --brand-gold-glow: rgba(245, 158, 11, 0.25);
  --brand-live: #EF4444;
  --brand-live-glow: rgba(239, 68, 68, 0.4);
  
  --text-main: #FFFFFF;
  --text-secondary: #E2E8F0;
  --text-muted: #94A3B8;
  --text-dark: #0F172A;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(0, 210, 255, 0.25);
  --border-gold: rgba(245, 158, 11, 0.3);

  /* Typography */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Shadows & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 210, 255, 0.25);

  /* Layout */
  --max-width: 1340px;
  --nav-height: 72px;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-display);
  background-color: transparent;
  color: var(--text-secondary);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; font-weight: 700; }

p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Badge Styles */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.badge-upcoming {
  background: rgba(2, 132, 199, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-live {
  background: rgba(239, 68, 68, 0.2);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #EF4444;
  animation: live-pulse 1.4s infinite;
}

@keyframes live-pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.badge-completed {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-rescheduled {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-tournament {
  background: rgba(255, 255, 255, 0.1);
  color: #F8FAFC;
  border: 1px solid var(--border-subtle);
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #0284C7 0%, #00D2FF 100%);
  color: #070B14;
  box-shadow: 0 4px 14px rgba(0, 210, 255, 0.35);
  font-weight: 800;
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFF;
}

.btn-accent {
  background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
  color: #0F172A;
  font-weight: 800;
}

.btn-accent:hover {
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.btn-whatsapp {
  background: #25D366;
  color: #072B13;
  font-weight: 800;
}

.btn-whatsapp:hover {
  background: #20BA5A;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-accent);
}

.btn-outline:hover {
  background: rgba(0, 210, 255, 0.1);
  border-color: var(--brand-accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

.btn-icon {
  padding: 0.5rem;
  border-radius: var(--radius-md);
  width: 40px;
  height: 40px;
}

/* ===================================================
   HEADER & NAVIGATION BAR
   =================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-title {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text-main);
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.nav-brand-title .accent-text {
  color: var(--brand-accent);
}

.nav-brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Desktop Navigation Menu */
.nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 0.1rem;
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
}

@media (min-width: 1100px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--brand-accent);
  background: rgba(0, 210, 255, 0.08);
}

/* Right Header Controls — allow shrink so header fits within viewport */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  min-width: 0;
}

/* Tournament selector in nav-actions: only show at very wide viewports */
.nav-actions .header-tournament-selector {
  display: none;
}

@media (min-width: 1380px) {
  .nav-actions .header-tournament-selector {
    display: flex;
  }
}

/* Switcher pills in nav-actions: show at ≥900px */
.nav-actions .tourney-switcher-pills {
  display: none;
}

@media (min-width: 900px) {
  .nav-actions .tourney-switcher-pills {
    display: flex;
  }
}

.season-select-wrapper {
  position: relative;
  display: none;
}

@media (min-width: 768px) {
  .season-select-wrapper {
    display: block;
  }
}

.season-select {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.45rem 1.8rem 0.45rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  appearance: none;
  cursor: pointer;
}

.season-select:hover {
  border-color: var(--border-accent);
}

.header-utility-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  gap: 0.35rem;
  white-space: nowrap;
}

/* Icon-only mode at mid-widths: hide text label to save space */
@media (min-width: 641px) and (max-width: 899px) {
  .header-utility-btn span {
    display: none;
  }
  .header-utility-btn {
    padding: 0.4rem 0.55rem;
  }
}

/* Also icon-only when desktop nav-links are visible (≥1100px) to prevent overflow */
@media (min-width: 1100px) {
  .header-utility-btn span {
    display: none;
  }
  .header-utility-btn {
    padding: 0.4rem 0.55rem;
  }
}

/* Restore full labels at very wide viewports where there's ample room */
@media (min-width: 1700px) {
  .header-utility-btn span {
    display: inline;
  }
  .header-utility-btn {
    padding: 0.4rem 0.75rem;
  }
}

/* Hide CTA buttons entirely on very small screens */
@media (max-width: 640px) {
  .header-utility-btn {
    display: none;
  }
}

.hamburger-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

/* Hide hamburger when full nav-links are visible */
@media (min-width: 1100px) {
  .hamburger-btn {
    display: none;
  }
}

/* ===================================================
   MOBILE NAVIGATION DRAWER
   =================================================== */

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
  transform: translateX(-320px);
}

.mobile-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-content {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-nav-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
}

.drawer-nav-item a:hover, .drawer-nav-item a.active {
  background: rgba(0, 210, 255, 0.1);
  color: var(--brand-accent);
}

.drawer-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

/* ===================================================
   ALERT & ANNOUNCEMENT TICKER
   =================================================== */

.announcement-ticker {
  background: linear-gradient(90deg, #1E293B 0%, #0F172A 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 0;
  font-size: 0.8rem;
}

.ticker-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  color: var(--brand-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.ticker-item {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-item strong {
  color: #FFF;
}

/* ===================================================
   HERO SECTION
   =================================================== */

.hero-section {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: radial-gradient(circle at 50% 20%, rgba(2, 132, 199, 0.18) 0%, rgba(7, 11, 20, 0.95) 75%),
              linear-gradient(180deg, #070B14 0%, #0B1220 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.6;
}

.hero-glow-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.12) 0%, rgba(0,0,0,0) 70%);
  top: -150px;
  right: -100px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-crest-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 10px 20px rgba(0, 210, 255, 0.25));
  animation: hero-float 4s ease-in-out infinite alternate;
}

@keyframes hero-float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.hero-tournament-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-title span {
  background: linear-gradient(135deg, #FFFFFF 30%, var(--brand-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-statement {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* 5-Second UX Highlight Box */
.hero-match-banner {
  background: linear-gradient(90deg, rgba(20, 31, 54, 0.95), rgba(14, 22, 38, 0.95));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-md);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.banner-match-tag {
  background: var(--brand-accent);
  color: #070B14;
  font-weight: 900;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.banner-match-info {
  display: flex;
  flex-direction: column;
}

.banner-match-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFF;
}

.banner-match-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.countdown-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  min-width: 44px;
}

.countdown-number {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--brand-accent);
  font-family: var(--font-mono);
  line-height: 1;
}

.countdown-unit {
  font-size: 0.625rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===================================================
   SECTION HEADERS & LAYOUT
   =================================================== */

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.section-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--text-main);
  text-transform: uppercase;
}

/* Filter Day Tabs */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  padding: 0.3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
  max-width: 100%;
}

.filter-tab {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.filter-tab:hover {
  color: var(--text-main);
}

.filter-tab.active {
  background: var(--brand-primary);
  color: #FFF;
}

/* ===================================================
   FIXTURE CARDS & MODULES
   =================================================== */

.fixtures-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .fixtures-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .fixtures-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Distinct Card Design */
.fixture-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.fixture-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 210, 255, 0.3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.fixture-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-accent), transparent);
  opacity: 0.7;
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.match-number-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand-accent);
  letter-spacing: 0.05em;
}

.match-date-time {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Teams Duel Graphic */
.teams-duel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.75rem 0 1rem;
  gap: 0.5rem;
}

.team-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  gap: 0.4rem;
}

.team-logo-wrap {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s ease;
}

.fixture-card:hover .team-logo-wrap {
  transform: scale(1.06);
}

.team-name-card {
  font-size: 0.925rem;
  font-weight: 800;
  color: #FFF;
  line-height: 1.2;
}

.team-score-card {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-gold);
  font-family: var(--font-mono);
}

.vs-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--brand-accent);
}

/* Card Venue & Footer */
.card-venue-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.6rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
}

.card-venue-info svg {
  flex-shrink: 0;
  color: var(--brand-accent);
}

/* Completed Result Notice */
.result-banner {
  background: rgba(16, 185, 129, 0.1);
  border-left: 3px solid var(--brand-pitch-green);
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #6EE7B7;
  margin-bottom: 0.75rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Rescheduled Notice */
.rescheduled-banner {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid var(--brand-gold);
  padding: 0.5rem;
  font-size: 0.75rem;
  color: #FCD34D;
  margin-bottom: 0.75rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.card-action-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.card-action-bar .btn {
  flex: 1;
}


/* =========================================================
   PUBLIC TEAM DETAIL - PROFESSIONAL SQUAD CARDS
   ========================================================= */

.ccs-squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}

.ccs-player-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.045),
      rgba(255,255,255,0.015)
    ),
    var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.ccs-player-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.ccs-player-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.2;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(255,255,255,0.08),
      transparent 55%
    ),
    var(--bg-secondary);
}

.squad-player-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}

.ccs-player-card:hover .squad-player-photo {
  transform: scale(1.035);
}

.ccs-player-number {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  min-width: 2rem;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.72);
  color: #FFF;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(5px);
}

.ccs-player-leadership {
  position: absolute;
  right: 0.7rem;
  top: 0.7rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.ccs-player-body {
  padding: 1rem;
}

.ccs-player-name {
  color: #FFF;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 850;
  margin-bottom: 0.3rem;
}

.ccs-player-role {
  color: var(--text-secondary);
  font-size: 0.78rem;
  min-height: 1.1rem;
  margin-bottom: 0.7rem;
}

.ccs-player-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.4rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-subtle);
  color: var(--brand-accent);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ccs-player-active {
  color: var(--text-muted);
}

.ccs-player-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-subtle);
}

.ccs-player-stats > div {
  text-align: center;
}

.ccs-player-stats strong {
  display: block;
  color: #FFF;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
}

.ccs-player-stats span {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.48rem;
  font-weight: 700;
  line-height: 1.1;
}

@media (max-width: 700px) {
  .ccs-squad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .ccs-player-body {
    padding: 0.75rem;
  }

  .ccs-player-name {
    font-size: 0.9rem;
  }

  .ccs-player-role {
    font-size: 0.68rem;
  }

  .ccs-player-stats {
    gap: 0;
  }

  .ccs-player-stats strong {
    font-size: 0.75rem;
  }

  .ccs-player-stats span {
    font-size: 0.4rem;
  }
}

@media (max-width: 420px) {
  .ccs-squad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ccs-player-photo-wrap {
    aspect-ratio: 4 / 4.5;
  }
}

/* ===================================================
   TEAM SELECTION MODULE & CARDS
   =================================================== */

.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
}

.team-card-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  opacity: 0.25;
}

.team-card-crest {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.team-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 0.25rem;
}

.team-card-city {
  font-size: 0.8rem;
  color: var(--brand-accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-card-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.4;
  flex-grow: 1;
}

.team-card-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  padding: 0.6rem 0;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 1rem;
  font-weight: 800;
  color: #FFF;
  font-family: var(--font-mono);
}

.stat-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ===================================================
   POINTS TABLE
   =================================================== */

.points-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cricket-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
  white-space: nowrap;
}

.cricket-table th {
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.cricket-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.cricket-table tbody tr {
  transition: background-color 0.15s ease;
}

.cricket-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.cricket-table tbody tr.highlighted {
  background-color: rgba(0, 210, 255, 0.08);
  border-left: 3px solid var(--brand-accent);
}

.table-pos {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pos-qualified {
  color: var(--brand-pitch-green);
}

.table-team-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-team-name {
  font-weight: 700;
  color: #FFF;
}

.table-pts {
  font-weight: 900;
  color: var(--brand-accent);
  font-size: 0.95rem;
  font-family: var(--font-mono);
}

/* ===================================================
   VENUES SECTION
   =================================================== */


/* ===================================================
   VENUE CARDS
   =================================================== */
.venue-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  min-width: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.venue-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.venue-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.venue-card-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap; 
}

.venue-card-actions .btn {
  flex: 1 1 auto;
  min-width: max-content;
  box-sizing: border-box;
  white-space: nowrap;
  padding: 0.4rem 0.5rem; 
  font-size: 0.75rem; 
  gap: 0.35rem; 
  justify-content: center;
}

.venues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}



.venue-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.venue-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.venue-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFF;
  line-height: 1.2;
}

.venue-city {
  font-size: 0.85rem;
  color: var(--brand-accent);
  font-weight: 600;
  margin-top: 0.2rem;
}

.venue-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
  font-size: 0.825rem;
}

.venue-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

/* ===================================================
   MODALS (MATCH CENTER, SEARCH, DOWNLOAD, SETTINGS)
   =================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.2s ease;
  position: relative;
}

.modal-backdrop.open .modal-container {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  z-index: 10;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFF;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: #FFF;
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 1.5rem;
}

/* ===================================================
   GLOBAL SEARCH MODAL
   =================================================== */

.search-input-wrap {
  position: relative;
  margin-bottom: 1.25rem;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  color: #FFF;
  font-size: 1rem;
  outline: none;
}

.search-input:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.2);
}

.search-icon-pos {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 380px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.search-result-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

/* ===================================================
   FIXTURE DOWNLOAD & PRINT TEMPLATE
   =================================================== */

.pdf-preview-card {
  background: #FFFFFF;
  color: #0F172A;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 2px solid #E2E8F0;
}

.pdf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #0F172A;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.pdf-title-block h3 {
  color: #0F172A;
  font-size: 1.25rem;
  font-weight: 900;
}

.pdf-title-block p {
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
}

.pdf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.775rem;
  text-align: left;
}

.pdf-table th {
  background: #F1F5F9;
  color: #0F172A;
  padding: 0.5rem;
  font-weight: 800;
  border-bottom: 1px solid #CBD5E1;
}

.pdf-table td {
  padding: 0.5rem;
  border-bottom: 1px solid #E2E8F0;
  color: #1E293B;
}

.pdf-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #CBD5E1;
  font-size: 0.7rem;
  color: #64748B;
  display: flex;
  justify-content: space-between;
}

/* Print Media Styles */
@media print {
  body {
    background: #FFF !important;
    color: #000 !important;
  }

  .site-header, .site-footer, .hero-section, .filter-bar, .modal-backdrop, .btn, .no-print {
    display: none !important;
  }

  .print-only-container {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .pdf-preview-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

/* ===================================================
   FOOTER
   =================================================== */

.site-footer {
  background: #05080E;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #FFF;
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #FFF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--brand-accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Utility Animations */
.fade-in {
  animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tournament Selection Page Styles */
.tournament-select-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem 1.25rem;
}

.tournament-select-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.tournament-select-logo {
  display: inline-block;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-radius: 16px;
}

.tournament-select-brand {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.tournament-select-subtitle {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.tournament-select-desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tournaments-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.tournament-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.tournament-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-accent);
  box-shadow: 0 12px 28px rgba(0, 210, 255, 0.15);
  background: var(--bg-card-hover);
}

.tournament-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.tournament-card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-accent);
  background: rgba(0, 210, 255, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.tournament-card-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.tournament-specs {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tournament-spec-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.tournament-spec-item svg {
  color: var(--brand-accent);
  flex-shrink: 0;
}

.tournament-spec-label {
  color: var(--text-muted);
  min-width: 75px;
}

.tournament-spec-value {
  font-weight: 700;
  color: #FFFFFF;
}

.tournament-card-btn {
  width: 100%;
}

/* ===================================================
   TOP HEADER TOURNAMENT SELECTOR
   =================================================== */

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-tournament-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.header-tournament-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--brand-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  user-select: none;
  white-space: nowrap;
}

.header-tournament-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.header-tournament-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-card);
  color: #FFFFFF;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 0.3rem 1.6rem 0.3rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  max-width: 180px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.header-tournament-select:hover,
.header-tournament-select:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.25);
  background: var(--bg-card-hover);
}

.header-tournament-select option {
  background: #0B132B;
  color: #FFFFFF;
  padding: 0.5rem;
}

.header-tournament-caret {
  position: absolute;
  right: 0.5rem;
  pointer-events: none;
  color: var(--brand-accent);
  display: flex;
  align-items: center;
}

/* ===================================================
   CINEMATIC 4-TOURNAMENT ENTRY SHOWCASE
   =================================================== */

.cinematic-entry-wrapper {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  background: #04070E;
  color: #FFFFFF;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 210, 255, 0.2);
}

/* Top Cinematic Banner */
.cinematic-presents-banner {
  padding: 1.1rem 1.5rem 0.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(4, 7, 14, 0.98) 0%, rgba(4, 7, 14, 0.85) 100%);
  position: relative;
  z-index: 20;
  text-align: center;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cinematic-presents-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 0.25rem;
  text-shadow: 0 0 12px rgba(0, 210, 255, 0.5);
  animation: cinematicFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cinematic-presents-eyebrow::before,
.cinematic-presents-eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-accent));
}
.cinematic-presents-eyebrow::after {
  background: linear-gradient(90deg, var(--brand-accent), transparent);
}

.cinematic-presents-title {
  font-family: 'Teko', sans-serif;
  font-size: clamp(1.8rem, 3.8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  color: #FFFFFF;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.cinematic-presents-title span {
  color: #F59E0B;
}

/* 2x2 Desktop Showcase Grid */
.cinematic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  flex: 1;
  min-height: calc(100vh - var(--nav-height) - 75px);
  width: 100%;
  position: relative;
  background: #020408;
  overflow: hidden;
}

/* Sibling dimming when one panel is hovered */
.cinematic-grid:hover .cinematic-panel:not(:hover) {
  opacity: 0.65;
  filter: brightness(0.7) contrast(0.95);
}

/* Individual Panel */
.cinematic-panel {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.45s ease,
              filter 0.45s ease,
              box-shadow 0.45s ease,
              border-color 0.35s ease;
  user-select: none;
  background-color: #060A12;
}

.cinematic-panel:hover {
  transform: scale(1.025);
  z-index: 10;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 35px var(--panel-glow, rgba(0, 210, 255, 0.3));
}

/* Panel Background Wallpaper */
.cinematic-bg {
  position: absolute;
  inset: -10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1), filter 0.65s ease;
  will-change: transform;
}

.cinematic-panel:hover .cinematic-bg {
  transform: scale(1.06);
}

/* Dynamic Cinematic Overlays */
.cinematic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 10, 18, 0.25) 0%,
    rgba(6, 10, 18, 0.55) 45%,
    rgba(3, 6, 12, 0.94) 85%,
    #020408 100%
  );
  z-index: 2;
  transition: opacity 0.4s ease;
}

.cinematic-panel:hover .cinematic-overlay {
  opacity: 0.88;
}

/* Specific Panel Theme Accents */
.panel-morning {
  --panel-glow: rgba(16, 185, 129, 0.35);
  --theme-accent: #10B981;
}
.panel-night {
  --panel-glow: rgba(0, 210, 255, 0.4);
  --theme-accent: #00D2FF;
}
.panel-evening {
  --panel-glow: rgba(245, 158, 11, 0.4);
  --theme-accent: #F59E0B;
}
.panel-rush {
  --panel-glow: rgba(239, 68, 68, 0.4);
  --theme-accent: #EF4444;
}

/* Oversized Editorial Typography Layers */
.cinematic-ghost-text {
  position: absolute;
  top: 5%;
  right: 4%;
  font-family: 'Teko', sans-serif;
  font-size: clamp(6.5rem, 15vw, 13.5rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.12);
  user-select: none;
  pointer-events: none;
  z-index: 3;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), -webkit-text-stroke-color 0.4s ease;
}

.cinematic-panel:hover .cinematic-ghost-text {
  transform: translateY(-8px) scale(1.03);
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.28);
}

/* Panel Foreground Content */
.cinematic-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 580px;
}

/* Experience Name Headline */
.cinematic-exp-name {
  font-family: 'Teko', sans-serif;
  font-size: clamp(3.2rem, 6.5vw, 5.5rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.cinematic-panel:hover .cinematic-exp-name {
  color: #FFFFFF;
  text-shadow: 0 0 20px var(--panel-glow);
}

.cinematic-exp-badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--theme-accent);
  border: 1px solid var(--theme-accent);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  text-transform: uppercase;
}

/* Tournament Title */
.cinematic-tourney-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #E2E8F0;
  line-height: 1.25;
  margin-top: 0.15rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Metadata Specs Strip */
.cinematic-meta-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: #CBD5E1;
  margin-top: 0.25rem;
}

.cinematic-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.22rem 0.6rem;
  border-radius: 9999px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.cinematic-meta-pill svg {
  color: var(--theme-accent);
  width: 13px;
  height: 13px;
}

.cinematic-meta-pill strong {
  color: #FFFFFF;
  font-weight: 700;
}

/* Action CTA Button */
.cinematic-btn-wrap {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cinematic-enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #FFFFFF;
  color: #070B14;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
}

.cinematic-enter-btn .btn-arrow {
  transition: transform 0.3s ease;
  display: inline-flex;
}

.cinematic-panel:hover .cinematic-enter-btn {
  background: var(--theme-accent);
  color: #070B14;
  box-shadow: 0 6px 24px var(--panel-glow);
  transform: translateY(-2px);
}

.cinematic-panel:hover .cinematic-enter-btn .btn-arrow {
  transform: translateX(4px);
}

/* ===================================================
   BALL ANIMATIONS (DOM + CSS KEYFRAMES)
   =================================================== */

.cinematic-ball-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

/* Morning: Tennis Ball (Yellow/Green with white curved seams) */
.ball-element-morning {
  position: absolute;
  right: 14%;
  bottom: 30%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #D9F99D 0%, #84CC16 45%, #4D7C0F 100%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), inset -4px -4px 8px rgba(0, 0, 0, 0.4), inset 3px 3px 6px rgba(255, 255, 255, 0.6);
  animation: morningBallFloat 6s ease-in-out infinite alternate;
}

.ball-element-morning::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 20%;
  width: 60%;
  height: 70%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  transform: rotate(28deg);
  border-right: none;
  border-bottom: none;
}

/* Night: Red Cricket Leather Ball with Stitched White Seam */
.ball-element-night {
  position: absolute;
  right: 16%;
  bottom: 28%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #EF4444 0%, #B91C1C 50%, #450A0A 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8), 0 0 20px rgba(239, 68, 68, 0.4), inset -4px -4px 8px rgba(0, 0, 0, 0.6), inset 3px 3px 5px rgba(255, 255, 255, 0.5);
  animation: nightBallHover 7s ease-in-out infinite alternate;
}

.ball-element-night::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.9) 0px,
    rgba(255, 255, 255, 0.9) 3px,
    transparent 3px,
    transparent 6px
  );
  transform: translateX(-50%) rotate(25deg);
}

/* Night Ball Glow Trail */
.ball-trail-night {
  position: absolute;
  right: 14%;
  bottom: 25%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.25) 0%, transparent 70%);
  filter: blur(8px);
  animation: nightTrailPulse 3s ease-in-out infinite alternate;
}

/* Evening: Tennis ball bathed in sunset golden hour */
.ball-element-evening {
  position: absolute;
  right: 15%;
  bottom: 30%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FDE68A 0%, #F59E0B 45%, #92400E 100%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 158, 11, 0.4), inset -4px -4px 8px rgba(0, 0, 0, 0.4), inset 3px 3px 6px rgba(255, 255, 255, 0.7);
  animation: eveningBallFloat 6.5s ease-in-out infinite alternate;
}

.ball-element-evening::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 20%;
  width: 60%;
  height: 70%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  transform: rotate(-25deg);
  border-left: none;
  border-top: none;
}

/* Rush: High-velocity Tennis Ball */
.ball-element-rush {
  position: absolute;
  right: 15%;
  bottom: 32%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FEF08A 0%, #EAB308 40%, #713F12 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7), 0 0 25px rgba(239, 68, 68, 0.35), inset -3px -3px 6px rgba(0, 0, 0, 0.5);
  animation: rushBallPulse 5s ease-in-out infinite alternate;
}

.ball-element-rush::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 20%;
  width: 60%;
  height: 70%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: rotate(45deg);
  border-right: none;
  border-bottom: none;
}

/* Animations */
@keyframes morningBallFloat {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(15deg); }
  100% { transform: translateY(6px) rotate(-10deg); }
}

@keyframes nightBallHover {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-20px) rotate(25deg) scale(1.04); }
  100% { transform: translateY(4px) rotate(-15deg) scale(0.98); }
}

@keyframes nightTrailPulse {
  0% { transform: scale(0.9); opacity: 0.3; }
  100% { transform: scale(1.3); opacity: 0.7; }
}

@keyframes eveningBallFloat {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(-20deg); }
  100% { transform: translateY(8px) rotate(15deg); }
}

@keyframes rushBallPulse {
  0% { transform: translateY(0) rotate(0deg) scale(0.98); }
  50% { transform: translateY(-14px) rotate(35deg) scale(1.05); }
  100% { transform: translateY(6px) rotate(-20deg) scale(1); }
}

@keyframes cinematicFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Click Transition Effect */
.cinematic-panel.is-transitioning {
  transform: scale(1.08) !important;
  z-index: 50 !important;
  box-shadow: 0 0 100px rgba(0, 210, 255, 0.8) !important;
  filter: brightness(1.2) contrast(1.1) !important;
  transition: all 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

/* ===================================================
   TOURNAMENT HEADER SWITCHER PILL BAR
   =================================================== */
.tourney-switcher-pills {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0.2rem 0.35rem;
}

.tourney-switcher-pill {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94A3B8;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tourney-switcher-pill:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.tourney-switcher-pill.active {
  color: #070B14;
  background: var(--brand-accent);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.4);
}

/* Mobile & Tablet Responsive Breakdown */
@media (max-width: 900px) {
  .cinematic-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .cinematic-panel {
    min-height: 380px;
    padding: 2rem 1.5rem;
  }

  .cinematic-ghost-text {
    font-size: 6.5rem;
    top: 2%;
    right: 2%;
  }

  .tourney-switcher-pills {
    display: none;
  }
}






