/* =========================================================
   CAPITAL CRICKET SPORTS - MASTER VISUAL REDESIGN
   ========================================================= */

/* PHASE 4 & 5: ROOT CAUSE AND RESPONSIVE CONTENT WIDTH */
:root {
  --max-width: 1200px;
}
@media (min-width: 1440px) { :root { --max-width: 1350px; } }
@media (min-width: 1920px) { :root { --max-width: 1800px; } }
@media (min-width: 2048px) { :root { --max-width: 1850px; } }

/* Fix container width restriction */
.container, main, #main-content, #landing-root {
  width: 100% !important;
  max-width: min(94vw, 1850px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* PHASE 3: FIX ENTRY SCREEN HEADER ALIGNMENT */
.cinematic-presents-banner {
  padding-top: calc(var(--nav-height, 72px) + 2rem) !important;
}
.cinematic-entry-wrapper {
  /* Prevent header overlap */
  position: relative;
  z-index: 1;
}

/* PHASE 15: FIXED WALLPAPER */
.site-global-background {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}

/* PHASE 16: HOME / INTERNAL PAGE THEMING */
body {
  background-color: transparent !important;
}

/* HOME (Blue Cinematic) */
body[data-route="home"] .site-global-background {
  background-image: linear-gradient(to bottom, rgba(4, 7, 14, 0.15), rgba(4, 7, 14, 0.30)), url('../assets/wallpapers/main.png') !important;
}

/* INTERNAL PAGES (Maroon Cinematic) */
body:not([data-route="home"]) .site-global-background {
  background-image: linear-gradient(to bottom, rgba(20, 4, 8, 0.20), rgba(20, 4, 8, 0.35)), url('../assets/wallpapers/main1.png') !important;
}

/* Base theming colors for internal pages */
body:not([data-route="home"]) {
  --bg-dark: transparent;
  --bg-card: rgba(30, 10, 10, 0.6);
  --brand-primary: #800000;
  --brand-secondary: #B88A32;
  --brand-accent: #D4A84F;
  --border-subtle: rgba(212, 168, 79, 0.3);
}

/* PHASE 17 & 18: GLASS 3D SYSTEM & METALLIC GOLD EDGES */
.fixture-card, .team-card, .venue-card, .gallery-item, .tournament-card, .standings-table-container, .rules-container, .tpl-feature-card, .admin-card, .login-panel {
  background: rgba(8, 8, 12, 0.55) !important;
  
  -webkit-
  
  -webkit-
  border: 1px solid rgba(212, 168, 79, 0.4) !important;
  border-bottom: 2px solid #D4A84F !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  position: relative;
  overflow: hidden;
}

body:not([data-route="home"]) .fixture-card,
body:not([data-route="home"]) .team-card,
body:not([data-route="home"]) .venue-card,
body:not([data-route="home"]) .standings-table-container,
body:not([data-route="home"]) .tpl-feature-card {
  background: rgba(18, 8, 10, 0.55) !important;
}

/* PHASE 19: GOLD SHIMMER */
.fixture-card::after, .team-card::after, .tpl-feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: -150%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 79, 0.2), transparent);
  transform: skewX(-20deg);
  transition: all 0.8s ease;
  pointer-events: none;
}
.fixture-card:hover::after, .team-card:hover::after, .tpl-feature-card:hover::after {
  left: 150%;
  transition: all 1.2s ease-in-out;
}

.fixture-card:hover, .team-card:hover, .venue-card:hover, .tpl-feature-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  border-color: #F0D58A !important;
  box-shadow: 0 16px 50px rgba(212, 168, 79, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* PHASE 6: FIXTURES */
.fixtures-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
}
@media (min-width: 768px) { .fixtures-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (min-width: 1280px) { .fixtures-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (min-width: 1920px) { .fixtures-grid { grid-template-columns: repeat(4, 1fr) !important; } }

.fixture-team-logo img {
  width: 75px !important;
  height: 75px !important;
  object-fit: contain !important;
}
.fixture-team-name {
  font-size: 1.2rem !important;
  font-weight: 800 !important;
}

/* PHASE 7: TEAMS */
.teams-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.75rem !important;
}
@media (min-width: 768px) { .teams-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (min-width: 1100px) { .teams-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (min-width: 1600px) { .teams-grid { grid-template-columns: repeat(4, 1fr) !important; } }

.team-card-logo img {
  width: 110px !important;
  height: 110px !important;
  object-fit: contain !important;
  margin-bottom: 1rem !important;
}
.team-card-name {
  font-size: 1.5rem !important;
  font-weight: 900 !important;
  color: #FFF !important;
}

/* PHASE 8: POINTS TABLE */
.standings-table-container {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto 3rem auto !important;
}
.standings-table {
  width: 100% !important;
  font-size: 1.15rem !important;
}
.standings-table th, .standings-table td {
  padding: 1.25rem 1.5rem !important;
}
.standings-table th {
  background: rgba(0, 0, 0, 0.5) !important;
  color: #D4A84F !important;
  font-size: 1.1rem !important;
  letter-spacing: 0.5px !important;
}
.standings-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.standings-team-cell {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
}
.standings-team-logo {
  width: 44px !important;
  height: 44px !important;
  margin-right: 12px !important;
}

/* PHASE 13: RULES SECOND ROW PLACEMENT */
/* Ensure rules and other content aren't hidden behind the cinematic wrapper */
#tournament-rules, .rules-section, #live-rules-container-public, #live-rules-container-team {
  position: relative !important;
  z-index: 10 !important;
  margin-top: 50% !important; transform: translate(-50%, -50%) !important;
  clear: both !important;
}

/* PHASE 24: BUTTONS */
.btn {
  background: linear-gradient(135deg, rgba(20,25,35,0.8), rgba(10,15,25,0.9)) !important;
  border: 1px solid rgba(212, 168, 79, 0.5) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
  transition: all 0.3s ease !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}
.btn-primary {
  background: linear-gradient(135deg, rgba(212, 168, 79, 0.9), rgba(184, 138, 50, 0.9)) !important;
  color: #000 !important;
  border: 1px solid #FFF4C7 !important;
}
.btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(212, 168, 79, 0.3) !important;
  border-color: #F0D58A !important;
}

/* PHASE 22: TENNIS BALL CRICKET */
/* Keep green ball on panel */
.ball-element-rush {
  background: radial-gradient(circle at 30% 30%, #7cfc00, #228b22) !important;
  box-shadow: inset -5px -5px 15px rgba(0,0,0,0.5), 0 10px 20px rgba(0,0,0,0.4) !important;
}

/* PHASE 20: SPARKLES (Subtle) */
.hero-title span::after {
  content: '✨';
  position: absolute;
  top: -10px; right: -20px;
  font-size: 1.5rem;
  opacity: 0.6;
  animation: float-sparkle 4s infinite ease-in-out;
}
@keyframes float-sparkle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-10px) scale(1.2); opacity: 0.8; }
}

/* Typography Enhancements */
h1, h2, h3, .tpl-section-title {
  font-family: 'Teko', sans-serif !important;
  letter-spacing: 1px !important;
}
.tpl-section-title {
  font-size: 2.75rem !important;
  color: #FFF !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
}

/* Media Queries for Mobile (Phase 28) */
@media (max-width: 767px) {
  .fixtures-grid, .teams-grid {
    grid-template-columns: 1fr !important;
  }
  .team-card-logo img { width: 80px !important; height: 80px !important; }
  .team-card-name { font-size: 1.25rem !important; }
  .fixture-team-logo img { width: 50px !important; height: 50px !important; }
  .fixture-team-name { font-size: 1rem !important; }
  
  .standings-table th, .standings-table td {
    padding: 0.75rem 0.5rem !important;
    font-size: 0.95rem !important;
  }
  .standings-team-cell { font-size: 1rem !important; }
  .standings-team-logo { width: 28px !important; height: 28px !important; }
  
  .cinematic-presents-title { font-size: 2rem !important; }
}
/* PHASE 10: MATCH CENTER */
.match-center-header {
  padding: 2.5rem 1.5rem !important;
}
.match-center-team-logo img {
  width: 100px !important;
  height: 100px !important;
}
.match-center-team-name {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
}
.match-center-score {
  font-size: 2.5rem !important;
  font-family: 'Teko', sans-serif !important;
  color: #D4A84F !important;
}
/* PHASE 12: GALLERY */
.gallery-item {
  transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}
.gallery-item:hover {
  transform: scale(1.03) !important;
  box-shadow: 0 15px 40px rgba(212, 168, 79, 0.3) !important;
  z-index: 2;
}
.gallery-item img {
  border-radius: 12px 12px 0 0 !important;
}
/* PHASE 23 & 24: TEAM PORTAL AND ADMIN */
.team-login-container, .admin-login-container {
  background: rgba(18, 8, 10, 0.65) !important;
  
  border: 1px solid rgba(212, 168, 79, 0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6) !important;
}

.portal-dashboard-header, .admin-header {
  background: rgba(15, 5, 8, 0.65) !important;
  border-bottom: 2px solid #D4A84F !important;
}
.portal-card, .admin-card {
  background: rgba(18, 8, 10, 0.55) !important;
  
  border: 1px solid rgba(212, 168, 79, 0.3) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
  transition: transform 0.3s ease !important;
}
.portal-card:hover, .admin-card:hover {
  transform: translateY(-4px) !important;
  border-color: #F0D58A !important;
}


/* Fix application content to sit above the wallpaper */
.site-header,
#app,
#main-content,
#landing-root,
main,
footer,
.cinematic-entry-wrapper {
    position: relative;
    z-index: 1;
}

html, body {
    background-color: transparent !important;
    background-image: none !important;
}
/* OVERRIDES FOR VISIBILITY */
.hero-section {
    background: transparent !important;
}
.site-footer {
    background: rgba(4, 7, 14, 0.6) !important;
    
}
#main-content, main, html, body {
    background-color: transparent !important;
    background-image: none !important;
}


.site-header {
  background: rgba(5, 7, 12, 0.70) !important;
  
  -webkit-
}
/* PHASE 28: Mobile Drawer */
.mobile-drawer {
  background: rgba(10, 15, 25, 0.85) !important;
  
  -webkit-
  border-left: 1px solid rgba(212, 168, 79, 0.4) !important;
}
body:not([data-route="home"]) .mobile-drawer {
  background: rgba(20, 8, 12, 0.85) !important;
}
/* GLOBAL CARD TRANSPARENCY VARS */
:root {
    --bg-card: rgba(8, 8, 12, 0.55) !important;
}
body:not([data-route="home"]) {
    --bg-card: rgba(18, 8, 10, 0.55) !important;
}
/* DASHBOARD STRIP */
.tournament-dashboard-strip {
  width: 100%;
  height: 120px;
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  position: relative;
  border-bottom: 2px solid #D4A84F;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  margin-bottom: 1.5rem;
}
.dashboard-strip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,15,25,0.85) 0%, rgba(10,15,25,0.4) 40%, transparent 100%);
  display: flex;
  align-items: center;
}
body:not([data-route="home"]) .dashboard-strip-overlay {
  background: linear-gradient(90deg, rgba(25,10,10,0.85) 0%, rgba(25,10,10,0.4) 40%, transparent 100%);
}
.strip-content {
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.strip-badge {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #D4A84F;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  display: block;
}
.strip-title {
  font-family: 'Teko', sans-serif;
  font-size: 2rem;
  margin: 0;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.strip-meta {
  text-align: right;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  display: flex;
  flex-direction: column;
}
@media (max-width: 767px) {
  .tournament-dashboard-strip { height: 90px; background-position: center center; }
  .strip-title { font-size: 1.4rem; }
  .strip-meta { display: none; }
  .dashboard-strip-overlay { background: linear-gradient(90deg, rgba(10,15,25,0.9) 0%, rgba(10,15,25,0.6) 70%, transparent 100%); }
  body:not([data-route="home"]) .dashboard-strip-overlay { background: linear-gradient(90deg, rgba(25,10,10,0.9) 0%, rgba(25,10,10,0.6) 70%, transparent 100%); }
}

/* LOGO REFINEMENT */
.nav-logo-box svg {
    width: 52px !important;
    height: 52px !important;
    transition: all 0.3s ease;
}
.nav-brand-title {
    font-size: 1.2rem !important;
    font-weight: 900 !important;
    color: #FFFFFF !important;
    text-transform: uppercase !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 0 1px #D4A84F !important;
    letter-spacing: 0.5px !important;
}
/* LOGO MOBILE FIX */
@media (max-width: 767px) {
    .nav-logo-box svg { width: 44px !important; height: 44px !important; }
    .nav-brand-title { font-size: 1rem !important; letter-spacing: 0px !important; }
}
/* PREMIUM HOME ENTRY GATE */
.cinematic-overlay {
  background: linear-gradient(
    180deg,
    rgba(6, 10, 18, 0.05) 0%,
    rgba(6, 10, 18, 0.15) 50%,
    rgba(3, 6, 12, 0.75) 85%,
    rgba(2, 4, 8, 0.9) 100%
  ) !important;
}
.cinematic-panel {
  border: 1px solid rgba(212, 168, 79, 0.15) !important;
}
.cinematic-panel:hover {
  border-color: rgba(212, 168, 79, 0.5) !important;
  box-shadow: inset 0 0 40px rgba(212, 168, 79, 0.15), 0 10px 40px rgba(0,0,0,0.5) !important;
  z-index: 10 !important;
}
.cinematic-panel:hover .cinematic-overlay {
  background: linear-gradient(
    180deg,
    rgba(6, 10, 18, 0.1) 0%,
    rgba(6, 10, 18, 0.25) 50%,
    rgba(3, 6, 12, 0.8) 85%,
    rgba(2, 4, 8, 0.95) 100%
  ) !important;
  opacity: 1 !important;
}

/* COMPACT HOME GATE BANNER */
.cinematic-entry-wrapper {
  height: calc(100vh - var(--nav-height));
  min-height: unset !important;
  display: flex;
  flex-direction: column;
}
.cinematic-grid {
  height: 100% !important;
  min-height: 100% !important;
  background: transparent !important;
}
.cinematic-presents-banner {
  position: absolute !important;
  top: 50% !important; transform: translate(-50%, -50%) !important;
  left: 50% !important;
  
  background: rgba(4, 7, 14, 0.65) !important;
  
  -webkit-
  border: 1px solid rgba(212, 168, 79, 0.3) !important;
  border-radius: 40px !important;
  padding: 0.5rem 1.5rem !important;
  z-index: 50 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1rem !important;
  width: auto !important;
  white-space: nowrap !important;
}
.cinematic-presents-eyebrow {
  margin: 0 !important;
  font-size: 0.65rem !important;
}
.cinematic-presents-eyebrow::before, .cinematic-presents-eyebrow::after {
  display: none !important;
}
.cinematic-presents-title {
  font-size: 1.1rem !important;
  letter-spacing: 1px !important;
  margin: 0 !important;
}

@media (max-width: 900px) {
  .cinematic-entry-wrapper {
    height: auto !important;
    min-height: calc(100vh - var(--nav-height)) !important;
  }
  .cinematic-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    padding-top: 5rem !important; /* Space for the floating banner */
  }
  .cinematic-panel {
    height: 45vh !important;
    min-height: 380px !important;
  }
  .cinematic-presents-banner {
    flex-direction: column !important;
    padding: 0.75rem 1rem !important;
    top: -2.25rem !important;
  }
}
/* HIDE DESKTOP NAV ROW ON MOBILE */
@media (max-width: 1099px) {
  .desktop-nav-row {
    display: none !important;
  }
}
@media (min-width: 1100px) {
  .desktop-nav-row {
    display: flex !important;
  }
  .nav-links {
    overflow: visible !important;
    flex-wrap: wrap !important;
    gap: 0.25rem 1rem !important;
  }
}
/* DYNAMIC DESKTOP NAVIGATION LAYOUT */
.nav-center-group {
  display: flex;
  justify-content: center;
  flex: 1 1 auto;
  order: 2; /* Sits in middle on ultra-wide screens */
}
.nav-actions {
  order: 3;
}
.nav-links {
  overflow: visible !important;
  flex-wrap: wrap !important;
  gap: 0.5rem 1rem !important;
  justify-content: center;
}
/* If width is < 1700px, push nav to Row 2 */
@media (max-width: 1700px) {
  .nav-center-group {
    order: 4;
    flex-basis: 100%;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 0.6rem;
    margin-top: 0.25rem;
  }
}
/* Hide desktop nav on mobile entirely */
@media (max-width: 1099px) {
  .nav-center-group {
    display: none !important;
  }
}
/* Compact pills */
.tourney-switcher-pill {
  padding: 0.35rem 0.65rem !important;
  font-size: 0.72rem !important;
}
/* Removed forced row from previous attempt */
.desktop-nav-row { display: none !important; }
/* UNIFIED TRANSPARENCY & CONTENT READABILITY RULES */

/* 1. SECTIONS COMPLETELY TRANSPARENT - NO BACKGROUND OR BLUR */
/* We leave the main sections transparent so they don't cover the wallpaper with a giant box */
.hero-section,
.section,
.section-alt,
.tournament-content-block,
.venues-container,
.gallery-container,
.rules-container,
.coming-soon-container {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* 2. INNER CONTENT PANELS & CARDS - DARK SEMI-TRANSPARENT BACKING FOR TEXT READABILITY */
/* This targets the actual content blocks inside the sections to give text a readable backing */
.hero-content,
.section-title-wrap,
.points-table-wrapper,
.points-table-container,
.fixtures-container,
.team-grid-container,
.content-card,
.match-card,
.team-card,
.feature-card,
.stats-card,
.standings-card {
  background: rgba(5, 5, 8, 0.45) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(212, 168, 79, 0.25) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
  padding: 1.5rem !important;
}

/* Make sure the hero-content margin works correctly when padding is added */
.hero-content {
  margin: 0 auto;
}

/* 3. POINTS TABLE SPECIFIC */
table.points-table,
.table-responsive {
  background: rgba(5, 5, 8, 0.55) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(212, 168, 79, 0.3) !important;
  box-shadow: none !important;
}

table.points-table th,
table.points-table td,
.match-header,
.match-footer,
.card-header,
.card-footer {
  background: rgba(0, 0, 0, 0.35) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Ensure body background doesn't hide wallpaper */
body, #app, #main-content {
  background-color: transparent !important;
}

/* 4. HOME PRESENTS CAPSULE */
.cinematic-presents-banner {
  position: absolute !important;
  top: -1.75rem !important;
  left: 50% !important;
  
  background: rgba(4, 7, 14, 0.75) !important;
   /* Retaining slight blur specifically for this floating UI capsule */
  -webkit-
  border: 1px solid rgba(212, 168, 79, 0.4) !important;
  border-radius: 50px !important;
  padding: 0.5rem 1.5rem !important;
  z-index: 100 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1rem !important;
  width: max-content !important;
}

.cinematic-grid {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

@media (max-width: 900px) {
  .cinematic-presents-banner {
    top: -2.25rem !important;
    
    flex-direction: column !important;
    padding: 0.5rem 1rem !important;
    text-align: center !important;
    width: 90% !important;
    max-width: 400px !important;
  }
  .cinematic-grid {
    padding-top: 6rem !important; /* give space for capsule on mobile */
  }
}

/* NEW EXPLICIT TWO-ROW HEADER STYLES */
@media (max-width: 1099px) {
  .nav-links {
    display: none !important;
  }
  .header-row-secondary {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }
  .nav-actions-right {
    justify-content: flex-start !important;
    width: 100% !important;
  }
  .tourney-switcher-pills {
    width: 100% !important;
    flex-wrap: wrap !important;
  }
}
@media (min-width: 1100px) {
  .hamburger-btn {
    display: none !important;
  }
  .nav-links {
    display: flex !important;
  }
}
.desktop-only { display: flex !important; }
.mobile-only { display: none !important; }

@media (max-width: 991px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
  
  .header-row-primary {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .nav-brand-title {
    font-size: 1rem !important;
  }
}


/* FINAL MICRO-FIX: HEADER HEIGHT & TOP BREATHING SPACE */
.site-header {
  height: auto !important;
  min-height: 72px !important;
}

#main-content > .fade-in:not(.cinematic-entry-wrapper) {
  margin-top: 28px !important;
}

@media (max-width: 991px) {
  #main-content > .fade-in:not(.cinematic-entry-wrapper) {
    margin-top: 16px !important;
  }
}


/* ON SCREEN PREVIEW (Dark, Maroon/Gold Premium Theme) */
.pdf-preview-card {
  background: linear-gradient(135deg, #0A0404 0%, #1A0A0A 100%) !important;
  color: #F8F9FA !important;
  border: 1px solid rgba(212, 168, 79, 0.3) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
}

.pdf-preview-card .pdf-header {
  border-bottom: 1px solid rgba(212, 168, 79, 0.4) !important;
}

.pdf-preview-card .pdf-title-block h3 {
  color: #D4A84F !important;
}

.pdf-preview-card .pdf-title-block p, 
.pdf-preview-card .pdf-team-home {
  color: #CBD5E1 !important;
}

.pdf-preview-card .pdf-team-name {
  color: #F8F9FA !important;
}

.pdf-preview-card table th {
  background: rgba(212, 168, 79, 0.1) !important;
  color: #D4A84F !important;
  border-bottom: 1px solid rgba(212, 168, 79, 0.3) !important;
}

.pdf-preview-card table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* PRINT PREVIEW (Clean White / A4) */
@media print {
  .pdf-preview-card {
    background: #FFFFFF !important;
    color: #0F172A !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  .pdf-preview-card .pdf-header {
    border-bottom: 2px solid #0F172A !important;
  }
  
  .pdf-preview-card .pdf-title-block h3, 
  .pdf-preview-card .pdf-team-name {
    color: #0F172A !important;
  }
  
  .pdf-preview-card .pdf-title-block p, 
  .pdf-preview-card .pdf-team-home {
    color: #475569 !important;
  }
  
  .pdf-preview-card table th {
    background: #F1F5F9 !important;
    color: #0F172A !important;
    border-bottom: 2px solid #CBD5E1 !important;
  }
  
  .pdf-preview-card table td {
    border-bottom: 1px solid #E2E8F0 !important;
  }
}

/* WHATSAPP BUTTON (Fluorescent Treatment) */
.btn-whatsapp {
  background: #25D366 !important;
  color: #041B0D !important;
  border: 1px solid #7CFFAE !important;
  box-shadow: 0 0 14px rgba(37,211,102,0.45) !important;
  font-weight: 800 !important;
  transition: all 0.2s ease-in-out;
}

.btn-whatsapp:hover {
  background: #28E16D !important;
  box-shadow: 0 0 20px rgba(37,211,102,0.65) !important;
  transform: translateY(-2px);
}

/* PDF Table Text Overrides for Screen */
.pdf-preview-card .pdf-table td {
  color: #F8F9FA !important;
}
.pdf-preview-card .pdf-table .pdf-match-col {
  color: #D4A84F !important;
}
.pdf-preview-card .pdf-table .pdf-status-col {
  color: #F8F9FA !important;
}

/* Print Overrides */
@media print {
  .pdf-preview-card .pdf-table td {
    color: #1E293B !important;
  }
  .pdf-preview-card .pdf-table .pdf-match-col {
    color: #0F172A !important;
  }
  .pdf-preview-card .pdf-table .pdf-status-col {
    color: #0F172A !important;
  }
}

/* Transparent PDF Preview Table */
.pdf-preview-card {
    background: rgba(10, 4, 4, 0.55) !important;
    
    -webkit-
}

.pdf-preview-card .pdf-table {
    background: transparent !important;
}

.pdf-preview-card .pdf-table thead,
.pdf-preview-card .pdf-table tbody,
.pdf-preview-card .pdf-table tr {
    background: transparent !important;
}

.pdf-preview-card .pdf-table th {
    background: rgba(212,168,79,0.10) !important;
    color: #F0D58A !important;
    border-bottom: 1px solid rgba(212,168,79,0.22) !important;
}

.pdf-preview-card .pdf-table td {
    background: rgba(5,5,5,0.18) !important;
    color: #FFFFFF !important;
    border-bottom: 1px solid rgba(212,168,79,0.22) !important;
}

/* FORCE PRINT OVERRIDES AT THE END */
@media print {
    .pdf-preview-card {
        background: #FFFFFF !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        color: #0F172A !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .pdf-preview-card .pdf-table {
        background: #FFFFFF !important;
    }

    .pdf-preview-card .pdf-table thead,
    .pdf-preview-card .pdf-table tbody,
    .pdf-preview-card .pdf-table tr {
        background: #FFFFFF !important;
    }

    .pdf-preview-card .pdf-table th {
        background: #F1F5F9 !important;
        color: #0F172A !important;
        border-bottom: 2px solid #CBD5E1 !important;
    }
    
    .pdf-preview-card .pdf-table td {
        background: #FFFFFF !important;
        color: #1E293B !important;
        border-bottom: 1px solid #E2E8F0 !important;
    }
    
    .pdf-preview-card .pdf-table .pdf-match-col,
    .pdf-preview-card .pdf-table .pdf-status-col {
        color: #0F172A !important;
    }
}

/* --- HOME FIXES --- */

/* 1 & 2: Header Logo and Brand Name */
.nav-logo-box img, .nav-logo-box svg {
    width: 42px !important;
    height: auto !important;
}
.nav-brand-title {
    font-size: 1.15rem !important;
    letter-spacing: 0px !important;
}
.nav-brand-group {
    display: flex;
    align-items: center;
}

/* 3: Center Controls */
.nav-actions-right.desktop-only {
    justify-content: center !important;
    flex: 1 !important;
    margin: 0 auto !important;
}

/* 4: Championship Strip Position Fix */
/* Reset from the absolute floating pill in premium.css to sit nicely above the grid */
.cinematic-presents-banner {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 1.5rem auto 1.5rem auto !important;
    z-index: 20 !important;
    display: flex !important;
    width: max-content !important;
}
@media (max-width: 900px) {
    .cinematic-presents-banner {
        width: 90% !important;
        max-width: 400px !important;
        margin: 1rem auto 1.5rem auto !important;
        flex-direction: column !important;
    }
}

/* 6, 7, 9: Badge Scaling for Night, Evening, Rush & Consistency */
.cinematic-exp-badge,
.panel-night .cinematic-exp-badge,
.panel-evening .cinematic-exp-badge,
.panel-rush .cinematic-exp-badge,
.panel-morning .cinematic-exp-badge {
    font-size: 0.85rem !important;
    padding: 0.15rem 0.5rem !important;
    line-height: 1.2 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* 8: Rush Typography Alignment Fixes */
.panel-rush .cinematic-ghost-text {
    top: 18% !important; /* Move RUSH title downward so it's not clipped */
}
.panel-rush .cinematic-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
/* 4: Championship Strip Position Fix (Text-only Overlay) */
.cinematic-presents-banner {
    position: absolute !important;
    top: 50% !important; transform: translate(-50%, -50%) !important;
    left: 50% !important;
    
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 20 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.5rem !important;
    pointer-events: none !important;
}
.cinematic-presents-eyebrow, .cinematic-presents-eyebrow span {
    color: #F8F9FA !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8) !important;
    font-size: 0.9rem !important;
    letter-spacing: 2px !important;
    margin: 0 !important;
}
.cinematic-presents-title {
    color: #F8F9FA !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8) !important;
    font-size: 1.15rem !important;
    letter-spacing: 1px !important;
    margin: 0 !important;
}
.cinematic-presents-title span {
    color: #D4A84F !important;
}
@media (max-width: 900px) {
    .cinematic-presents-banner {
        flex-direction: column !important;
        top: 50% !important; transform: translate(-50%, -50%) !important;
        gap: 0.25rem !important;
    }
}







