:root {
  --bg-space: #090d1a;
  --panel-solid: #111726;
  --panel-accent: #192239;
  --text-primary: #f0f4ff;
  --text-muted: #9bb0cf;
  --neon-border: #2c3b5e;
  --emerald-accent: #4ade80;
  --crimson-warn: #f87171;
  --orange-accent: #ff7300; 
  --transition-speed: 0.35s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg-space); color: var(--text-primary); overflow-x: hidden; }

/* Custom Dark Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--panel-solid); border-left: 1px solid var(--neon-border); }
::-webkit-scrollbar-thumb { background: var(--neon-border); border-radius: 5px; border: 2px solid var(--panel-solid); }
::-webkit-scrollbar-thumb:hover { background: var(--orange-accent); }

/* The layout margin wrapper */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Global Navigation */
.global-header { background-color: var(--panel-solid); border-bottom: 1px solid var(--neon-border); position: sticky; top: 0; z-index: 100; padding: 15px 24px; }
/* Added position: relative so the absolute drop-down knows where to anchor */
.header-flex { display: flex; justify-content: space-between; align-items: center; position: relative; }
.header-mini-ball { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 8px rgba(0,0,0,0.8); }
.header-title { font-weight: 700; font-size: 1.25rem; }
.nav-icon-btn { background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* Refined Bubble Menu */
.side-drawer { position: absolute; top: 55px; right: 0; width: 240px; background-color: var(--panel-solid); border: 1px solid var(--neon-border); border-radius: 12px; z-index: 200; padding: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.7); opacity: 0; visibility: hidden; transform: translateY(-15px); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.side-drawer.open { opacity: 1; visibility: visible; transform: translateY(0); }
.side-drawer .close-btn { display: none; } /* Hidden for bubble style */
.side-drawer ul { list-style: none; margin-top: 0; }
.side-drawer ul li { padding: 12px 15px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: color 0.2s, background-color 0.2s; border-radius: 6px; }
.side-drawer ul li:last-child { border-bottom: none; }
.side-drawer ul li:hover { color: var(--orange-accent); background-color: var(--panel-accent); }

/* View Container */
#viewContainer { padding: 30px 20px; min-height: calc(100vh - 70px); }
.app-view { display: none; opacity: 0; transition: opacity var(--transition-speed); }
.app-view.active-view { display: block; opacity: 1; }
.fade-out { opacity: 0; }

/* Buttons & Inputs */
.back-btn, .action-btn, .primary-btn, .secondary-btn, .danger-btn { padding: 10px 18px; border-radius: 8px; border: 1px solid var(--neon-border); background-color: var(--panel-accent); color: var(--text-primary); cursor: pointer; transition: 0.2s; }
.action-btn.active-toggle { background-color: var(--orange-accent); color: #000; font-weight: 700; border-color: var(--orange-accent); }
.primary-btn { background-color: var(--orange-accent); color: #120700; font-weight: 700; border: none; }
.danger-btn { background-color: var(--crimson-warn); color: #200404; font-weight: 600; border: none; }
.danger-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.settings-form-input { width: 100%; padding: 12px; border-radius: 8px; background-color: var(--bg-space); border: 1px solid var(--neon-border); color: #fff; margin-bottom: 20px; }
.settings-form label { display: block; margin-bottom: 8px; color: var(--text-muted); }
.view-header-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px;}

/* =========================================
   NEW HOME HERO LAYOUT (Perfect Curve Nav) 
   ========================================= */
.welcome-container { text-align: center; margin-top: 20px; }
.home-hero-layout { display: flex; align-items: center; justify-content: center; gap: 0px; flex-wrap: wrap; margin-top: 30px; }

/* The Ball Container */
.hero-ball-container { position: relative; width: 450px; height: 450px; display: flex; align-items: center; justify-content: center; z-index: 10; margin-right: -25px; }
.hero-ball-container .smoke-glow { position: absolute; width: 500px; height: 500px; background: radial-gradient(circle, rgba(255,115,0,0.1) 0%, rgba(9,13,26,0) 70%); border-radius: 50%; filter: blur(20px); z-index: 1; }
.static-3d-ball { width: 450px; height: 450px; border-radius: 50%; object-fit: cover; z-index: 2; position: relative; box-shadow: inset -15px -15px 25px rgba(0,0,0,0.4), 0 0 25px rgba(0,0,0,0.5); }

/* The Navigation Container */
.streak-menu { 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    gap: 32px; 
    position: relative; 
    width: 420px; 
}

.streak-nav-item { 
    display: flex; 
    align-items: center; 
    width: 100%;
    cursor: pointer; 
}

/* Mathematical Circle Curvature (Hugs the ball's contour) */
.streak-nav-item:nth-child(1) { padding-left: 20px; }
.streak-nav-item:nth-child(2) { padding-left: 60px; }
.streak-nav-item:nth-child(3) { padding-left: 85px; }
.streak-nav-item:nth-child(4) { padding-left: 95px; } /* Equator (Closest to center bulge) */
.streak-nav-item:nth-child(5) { padding-left: 85px; }
.streak-nav-item:nth-child(6) { padding-left: 60px; }
.streak-nav-item:nth-child(7) { padding-left: 20px; }

/* Abstract floating text */
.streak-label { 
    color: var(--text-muted); 
    font-size: 1.15rem; 
    font-weight: 800; 
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-right: 15px;
    z-index: 2; 
    text-align: left; 
    position: relative; 
    transition: all 0.3s ease; 
    white-space: nowrap;
}

/* Hover dynamics */
.streak-nav-item:hover .streak-label { 
    color: var(--orange-accent); 
    transform: translateX(10px); /* Pushes text slightly closer to ball */
    text-shadow: 0 0 10px rgba(255, 115, 0, 0.5); 
}

/* The Sleek Trail (Flex-grow ensures right side is perfectly flush) */
.streak-tail { 
    height: 3px; 
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 10px; 
    z-index: 1; 
    position: relative; 
    overflow: hidden; 
    transition: all 0.3s; 
    flex-grow: 1; /* Automatically stretches to right edge */
}

/* Base state laser generator */
.streak-tail::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: -150px; 
    width: 150px; 
    height: 100%; 
    background: linear-gradient(90deg, transparent, var(--orange-accent), transparent); 
    opacity: 0; 
    transition: opacity 0.3s; 
}

/* Trigger Orange Laser Animation on Hover */
.streak-nav-item:hover .streak-tail { 
    background: rgba(255, 115, 0, 0.1); 
    box-shadow: 0 0 15px rgba(255, 115, 0, 0.4); 
}
.streak-nav-item:hover .streak-tail::before { 
    opacity: 1; 
    animation: laserShoot 1s infinite cubic-bezier(0.4, 0, 0.2, 1); 
}

@keyframes laserShoot {
  0% { left: -150px; }
  100% { left: 100%; }
}

/* Grids and Cards */
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.group-card { background-color: var(--panel-solid); border: 1px solid var(--neon-border); border-radius: 12px; padding: 20px; }
.group-card h3 { color: var(--orange-accent); border-bottom: 1px solid var(--orange-accent); padding-bottom: 8px; margin-bottom: 12px; }
.competitor-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 1rem; }
.flag-icon { font-size: 1.5rem; border-radius: 3px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.3);}

/* Inline Schedules */
.inline-schedule { margin-top: 15px; border-top: 1px solid var(--neon-border); padding-top: 10px; }
.inline-schedule h4 { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; }
.inline-schedule-row { display: grid; grid-template-columns: 85px 1fr 60px; font-size: 0.85rem; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }

/* Country Deep Dive */
.country-profile-header { display: flex; align-items: center; gap: 20px; margin: 20px 0; }
.big-flag { font-size: 4rem; border-radius: 5px; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.power-score-legend { background-color: rgba(255,115,0,0.1); border-left: 4px solid var(--orange-accent); padding: 15px; margin-bottom: 25px; border-radius: 0 8px 8px 0; }
.country-stats-dashboard { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; margin-bottom: 30px; }
.stat-card { background-color: var(--panel-solid); padding: 20px; border-radius: 12px; border: 1px solid var(--neon-border); text-align: center; }
.stat-card.dynamic-highlight { border-color: var(--orange-accent); }
.stat-card.dynamic-highlight p { color: var(--orange-accent); }
.stat-card p { font-size: 1.8rem; font-weight: 700; }
.country-schedule-box { background-color: var(--panel-solid); padding: 20px; border-radius: 12px; border: 1px solid var(--neon-border); }

/* Tables */
.match-history-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.match-history-table th, .match-history-table td { text-align: left; padding: 10px; font-size: 0.9rem; border-bottom: 1px solid var(--neon-border); }

/* Tiny Stage Badges and Selectors for the AI List */
.tiny-stage-badge { background-color: var(--panel-accent); border: 1px solid var(--neon-border); padding: 3px 8px; border-radius: 4px; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; font-weight: bold; }
.actual-winner-selector { background-color: var(--panel-accent); border: 1px solid var(--neon-border); color: var(--text-primary); border-radius: 6px; cursor: pointer; padding: 6px 10px; font-size: 0.85rem; transition: border-color 0.2s; outline: none; }
.actual-winner-selector:focus { border-color: var(--orange-accent); }

/* Bracket Workspace Layout */
.sandbox-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; background-color: var(--panel-solid); padding: 15px; border-radius: 12px; border: 1px solid var(--neon-border); }
.save-controls { display: flex; gap: 10px; }
.bracket-workspace { display: grid; grid-template-columns: 300px 1fr; gap: 20px; margin-top: 20px; }
.countries-pool { background-color: var(--panel-solid); border: 1px solid var(--neon-border); border-radius: 12px; padding: 15px; height: 800px; overflow-y: auto; }
.small-instruction { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }
.draggable-pool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.drag-flag-item { display: flex; flex-direction: column; align-items: center; background-color: var(--panel-accent); border: 1px solid var(--neon-border); border-radius: 8px; padding: 10px; cursor: grab; position: relative; }
.drag-flag-item:active { cursor: grabbing; }
.power-badge { position: absolute; top: -5px; right: -5px; background-color: var(--emerald-accent); color: #000; font-size: 0.7rem; font-weight: 700; padding: 2px 5px; border-radius: 10px; }
.drag-flag-item span.name-lbl { font-size: 0.75rem; margin-top: 4px; text-align: center; }

/* The Bracket Tree */
.bracket-canvas { background-color: var(--panel-solid); border: 1px solid var(--neon-border); border-radius: 12px; padding: 20px; overflow-x: auto; }
.bracket-tree-grid { display: flex; gap: 40px; }
.bracket-column { display: flex; flex-direction: column; justify-content: space-around; min-width: 220px; gap: 20px; }
.bracket-column h4 { text-align: center; color: var(--orange-accent); margin-bottom: 10px; font-size: 1rem; }
.matchup-box { display: flex; flex-direction: column; border: 1px solid var(--neon-border); border-radius: 8px; background-color: var(--panel-accent); }
.drop-slot-box { min-height: 50px; padding: 8px 12px; border-bottom: 1px solid var(--neon-border); display: flex; align-items: center; gap: 10px; font-size: 0.9rem; transition: 0.2s; }
.drop-slot-box:last-child { border-bottom: none; }
.drop-slot-box.drag-over { background-color: rgba(255,115,0,0.2); }

/* Directory and Schedule Utils */
.countries-directory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.tab-navigation { display: flex; gap: 10px; margin-bottom: 15px; }
.tab-btn { padding: 8px 16px; background-color: var(--panel-accent); border: 1px solid var(--neon-border); color: var(--text-muted); border-radius: 6px; cursor: pointer; }
.tab-btn.active { border-color: var(--orange-accent); color: var(--orange-accent); background-color: rgba(255,115,0,0.08); }
.timezone-note { color: var(--crimson-warn); font-size: 0.9rem; margin-bottom: 15px; }

/* Dynamic Schedule Highlights */
.schedule-item-row { display: grid; grid-template-columns: 160px 1fr 100px; padding: 12px 8px; border-bottom: 1px solid var(--neon-border); align-items: center; border-left: 4px solid transparent; }
.schedule-item-row.completed { border-left-color: #f39c12; background-color: rgba(243, 156, 18, 0.05); }
.schedule-item-row.today { border-left-color: var(--orange-accent); background-color: rgba(255, 115, 0, 0.05); }

/* Orange UI accent overrides */
.settings-form-input:focus,
select:focus,
input:focus {
  outline: none;
  border-color: var(--orange-accent);
  box-shadow: 0 0 0 2px rgba(255,115,0,0.15);
}

select.settings-form-input option:checked {
  background: var(--orange-accent);
  color: #120700;
}

.secondary-btn:hover,
.action-btn:hover,
.back-btn:hover {
  border-color: var(--orange-accent);
  color: var(--orange-accent);
}

.side-drawer.open {
  border-color: var(--orange-accent);
}

.side-drawer ul li.active,
.side-drawer ul li:focus {
  color: var(--orange-accent);
  background-color: var(--panel-accent);
}

.inline-schedule {
  border-top-color: var(--orange-accent);
}


/* Schedule controls */
.schedule-action-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
#togglePlayedMatchesBtn.active-toggle { background-color: var(--orange-accent); color: #120700; border-color: var(--orange-accent); font-weight: 700; }

/* Compact My Championship Bracket layout */
#selfPredictionView .sandbox-actions { padding: 10px 12px; margin-bottom: 14px; }
#selfPredictionView .bracket-workspace { grid-template-columns: 245px minmax(0, 1fr); gap: 14px; margin-top: 14px; }
#selfPredictionView .countries-pool { height: 640px; padding: 12px; }
#selfPredictionView .countries-pool h3 { font-size: 1rem; }
#selfPredictionView .draggable-pool-grid { gap: 8px; }
#selfPredictionView .drag-flag-item { padding: 8px 6px; min-height: 58px; }
#selfPredictionView .drag-flag-item span.name-lbl { font-size: 0.68rem; line-height: 1.1; }
#selfPredictionView .bracket-canvas { padding: 14px; }
#selfPredictionView .bracket-tree-grid { gap: 22px; align-items: stretch; }
#selfPredictionView .bracket-column { min-width: 172px; gap: 12px; }
#selfPredictionView .bracket-column h4 { font-size: 0.82rem; margin-bottom: 6px; }
#selfPredictionView .matchup-box { min-width: 172px; }
#selfPredictionView .drop-slot-box { min-height: 36px; padding: 6px 8px; gap: 7px; font-size: 0.76rem; }
#selfPredictionView .drop-slot-box .flag-icon { font-size: 1.1rem; }
#selfPredictionView .settings-form-input { font-size: 0.78rem; }

@media (max-width: 900px) {
  #selfPredictionView .bracket-workspace { grid-template-columns: 1fr; }
  #selfPredictionView .countries-pool { height: 360px; }
}

/* Site-wide power score footer */
.power-score-site-footer {
  padding: 0 20px 28px;
}
.site-wide-power-note {
  margin: 10px 0 0;
  background: rgba(255,115,0,0.08);
  border-left-color: var(--orange-accent);
}
.site-wide-power-note-muted {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animated home speed trails behind the ball and menu */
.home-hero-layout {
  position: relative;
  overflow: visible;
}

.hero-ball-container {
  overflow: visible;
}

.ball-motion-trails {
  position: absolute;
  left: 305px;
  top: 30px;
  width: 640px;
  height: 390px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.74;
  filter: blur(0.15px);
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 72%, transparent 100%);
}

.ball-motion-trails::before,
.ball-motion-trails::after {
  content: '';
  position: absolute;
  left: 5px;
  width: 560px;
  height: 115px;
  border-radius: 999px;
  opacity: 0.22;
  background:
    radial-gradient(ellipse at 8% 50%, rgba(255,255,255,0.20), transparent 42%),
    radial-gradient(ellipse at 35% 45%, rgba(255,255,255,0.10), transparent 48%),
    linear-gradient(90deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035), transparent);
  transform: skewX(-10deg);
  animation: trailWisp 7s ease-in-out infinite alternate;
}

.ball-motion-trails::before {
  top: 42px;
}

.ball-motion-trails::after {
  top: 218px;
  left: 45px;
  width: 520px;
  opacity: 0.16;
  animation-duration: 8.5s;
}

.motion-trail {
  position: absolute;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.28) 8%,
    rgba(255,255,255,0.14) 35%,
    rgba(255,115,0,0.12) 60%,
    transparent 100%);
  box-shadow: 0 0 8px rgba(255,255,255,0.10);
  transform-origin: left center;
  animation: trailSlide 4.8s ease-in-out infinite;
}

.trail-1 { --trail-rotate: -8deg; top: 22px; width: 360px; opacity: 0.28; animation-delay: -0.7s; }
.trail-2 { --trail-rotate: -5deg; top: 64px; width: 510px; opacity: 0.42; animation-delay: -2.1s; }
.trail-3 { --trail-rotate: -2deg; top: 112px; width: 610px; height: 4px; opacity: 0.58; animation-delay: -1.2s; }
.trail-4 { --trail-rotate: 0deg; top: 162px; width: 640px; height: 4px; opacity: 0.66; animation-delay: -3.0s; }
.trail-5 { --trail-rotate: 2deg; top: 210px; width: 620px; height: 4px; opacity: 0.54; animation-delay: -0.3s; }
.trail-6 { --trail-rotate: 4deg; top: 258px; width: 560px; opacity: 0.45; animation-delay: -1.8s; }
.trail-7 { --trail-rotate: 6deg; top: 306px; width: 470px; opacity: 0.34; animation-delay: -2.6s; }
.trail-8 { --trail-rotate: 8deg; top: 350px; width: 330px; opacity: 0.24; animation-delay: -1.0s; }

.static-3d-ball {
  z-index: 4;
}

.streak-menu {
  z-index: 12;
}
.streak-label {
  text-shadow: 0 2px 6px rgba(9,13,26,0.95);
}
.streak-tail {
  box-shadow: 0 1px 6px rgba(9,13,26,0.8);
}

@keyframes trailSlide {
  0% { transform: translateX(-26px) scaleX(0.88) rotate(var(--trail-rotate, 0deg)); opacity: 0.18; }
  45% { opacity: 0.70; }
  100% { transform: translateX(42px) scaleX(1.08) rotate(var(--trail-rotate, 0deg)); opacity: 0.24; }
}

@keyframes trailWisp {
  0% { transform: translateX(-18px) skewX(-10deg) scaleX(0.92); opacity: 0.10; }
  100% { transform: translateX(34px) skewX(-10deg) scaleX(1.06); opacity: 0.22; }
}

@media (max-width: 900px) {
  .ball-motion-trails { display: none; }
  .power-score-site-footer { padding: 0 20px 22px; }
}
/* Clickable country names across the site */
.country-link {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.country-link:hover {
  color: var(--orange-accent) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inline-country-link strong { color: inherit; }

/* Rankings page */
.rankings-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.rank-info-panel {
  background-color: rgba(255,115,0,0.08);
  border-left: 4px solid var(--orange-accent);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  margin-bottom: 18px;
  color: var(--text-primary);
}
.rank-info-panel h3 {
  color: var(--orange-accent);
  margin-bottom: 8px;
}
.rank-info-panel p {
  margin: 6px 0;
  color: var(--text-muted);
  line-height: 1.35;
}
.rankings-table-wrap {
  overflow-x: auto;
  background-color: var(--panel-solid);
  border: 1px solid var(--neon-border);
  border-radius: 12px;
  padding: 10px 14px;
}
.rankings-table th {
  white-space: nowrap;
}
.rankings-table {
  border-collapse: separate;
  border-spacing: 0;
}
.rankings-table thead th {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, rgba(17, 23, 38, 0.98), rgba(17, 23, 38, 0.94));
  box-shadow: 0 1px 0 var(--neon-border), 0 8px 16px rgba(0,0,0,0.28);
}
.rankings-table thead th:first-child { border-top-left-radius: 8px; }
.rankings-table thead th:last-child { border-top-right-radius: 8px; }

.rankings-table-wrap {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
  position: relative;
}
.rank-sort-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}
.rank-sort-btn:hover {
  color: var(--orange-accent);
}
.rank-country-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}
.rank-country-cell .flag-icon {
  font-size: 1.1rem;
}
.legend-box {
  background-color: rgba(255,115,0,0.06);
  border: 1px solid rgba(255,115,0,0.35);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Eight-item home curve after adding Rankings */
.streak-nav-item:nth-child(1) { padding-left: 10px; }
.streak-nav-item:nth-child(2) { padding-left: 45px; }
.streak-nav-item:nth-child(3) { padding-left: 75px; }
.streak-nav-item:nth-child(4) { padding-left: 95px; }
.streak-nav-item:nth-child(5) { padding-left: 95px; }
.streak-nav-item:nth-child(6) { padding-left: 75px; }
.streak-nav-item:nth-child(7) { padding-left: 45px; }
.streak-nav-item:nth-child(8) { padding-left: 10px; }

@media (max-width: 900px) {
  .rankings-actions { justify-content: flex-start; }
  .rankings-actions .settings-form-input { max-width: 100% !important; }
}

/* Sortable AI predictions table */
.sortable-table-header {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.sortable-table-header:hover {
  color: var(--orange-accent);
}
.ai-predictions-table th {
  white-space: nowrap;
}


/* Homepage live match cards */
.home-live-section {
  max-width: 900px;
  margin: 56px auto 0;
  text-align: left;
  background: rgba(17, 23, 38, 0.55);
  border: 1px solid var(--neon-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}
.home-live-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}
.home-live-header h2 {
  color: var(--orange-accent);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.home-live-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.home-live-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.home-live-card {
  background: var(--panel-accent);
  border: 1px solid var(--neon-border);
  border-radius: 12px;
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.home-live-card.live {
  border-color: rgba(74,222,128,0.65);
  box-shadow: 0 0 18px rgba(74,222,128,0.12);
}
.home-live-card.live::before {
  content: '';
  position: absolute;
  top: 11px;
  right: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-accent);
  box-shadow: 0 0 10px var(--emerald-accent);
  animation: livePulse 1.4s infinite ease-in-out;
}
.home-live-card-top,
.home-live-time {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-bottom: 8px;
}
.home-live-card-top strong {
  color: var(--orange-accent);
  margin-right: 14px;
}
.home-live-team-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  margin: 6px 0;
}
.home-live-team-row .flag-icon {
  font-size: 1.15rem;
  margin-right: 6px;
}
.home-live-team-row span {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.home-live-score-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 8px 0;
  margin: 8px 0;
}
.home-live-score-line strong {
  font-size: 1.25rem;
  color: var(--text-primary);
}
.home-live-score-line span {
  color: var(--emerald-accent);
  font-weight: 700;
  font-size: 0.82rem;
}
.home-live-time {
  margin: 8px 0 0;
}
@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.45); opacity: 1; }
}
@media (max-width: 900px) {
  .home-live-section { margin-top: 28px; }
  .home-live-header { align-items: flex-start; flex-direction: column; }
}

/* Homepage match center refresh status and subsections */
.home-refresh-status {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 6px;
}
.home-refresh-status strong { color: var(--orange-accent); }
.home-match-subsection { margin-top: 12px; }
.home-match-subsection:first-child { margin-top: 0; }
.home-match-subhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  margin: 8px 0;
}
.home-match-subhead h3 {
  color: var(--text-primary);
  font-size: 0.95rem;
}
.home-match-subhead span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.home-live-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.home-live-card.upcoming {
  border-color: rgba(255,115,0,0.45);
}
.home-live-card.upcoming .home-live-score-line span {
  color: var(--orange-accent);
}

/* Ranking movement arrows */
.rank-delta {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: middle;
}
.rank-delta-up { color: var(--emerald-accent); }
.rank-delta-down { color: var(--crimson-warn); }
.rank-country-cell .rank-delta { margin-left: 8px; }
.rankings-table td { white-space: nowrap; }

/* Extended home menu curve for Feedback */
.streak-nav-item:nth-child(8) { padding-left: 60px; }
.streak-nav-item:nth-child(9) { padding-left: 20px; }

/* Floating feedback shortcut */
.floating-feedback-btn {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 210;
  border: 1px solid var(--orange-accent);
  background: rgba(17, 23, 38, 0.92);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 15px rgba(255,115,0,0.18);
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
}
.floating-feedback-btn:hover {
  transform: translateY(-2px);
  background: var(--orange-accent);
  color: #120700;
}

/* Feedback page */
.feedback-header { align-items: flex-start; }
.feedback-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.feedback-form-card,
.feedback-list-card,
.feedback-admin-panel {
  background: var(--panel-solid);
  border: 1px solid var(--neon-border);
  border-radius: 12px;
  padding: 18px;
}
.feedback-form-card h3,
.feedback-list-card h3,
.feedback-admin-panel h3 { margin-bottom: 12px; }
.feedback-textarea {
  min-height: 150px;
  resize: vertical;
  font-family: inherit;
}
.feedback-storage-note { margin-top: 12px; }
.feedback-list-header,
.feedback-admin-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.feedback-count-badge {
  background: var(--orange-accent);
  color: #120700;
  font-weight: 800;
  border-radius: 999px;
  min-width: 28px;
  padding: 4px 9px;
  text-align: center;
}
.feedback-list,
.feedback-admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feedback-entry,
.feedback-admin-entry {
  background: var(--panel-accent);
  border: 1px solid var(--neon-border);
  border-radius: 10px;
  padding: 14px;
}
.feedback-entry.reviewed {
  border-color: rgba(74,222,128,0.45);
}
.feedback-entry-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 8px;
}
.feedback-entry-top strong { color: var(--text-primary); font-size: 0.95rem; }
.feedback-entry p,
.feedback-admin-entry p {
  line-height: 1.45;
  margin-bottom: 10px;
  white-space: pre-wrap;
}
.feedback-entry-status {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 6px;
}
.feedback-admin-reply {
  margin-top: 10px;
  border-left: 3px solid var(--orange-accent);
  padding: 10px 12px;
  background: rgba(255,115,0,0.08);
  border-radius: 0 8px 8px 0;
}
.feedback-admin-panel { margin-top: 20px; }
.feedback-admin-login { max-width: 420px; }
.feedback-reply-input {
  min-height: 86px;
  resize: vertical;
  font-family: inherit;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .feedback-layout { grid-template-columns: 1fr; }
  .floating-feedback-btn { right: 16px; bottom: 16px; padding: 10px 13px; }
}

/* =========================================
   V25 RESPONSIVE PASS, TABLET AND PHONE
   ========================================= */
@media (max-width: 1100px) {
  .content-wrapper { max-width: 100%; }
  .home-hero-layout { gap: 10px; }
  .hero-ball-container { width: 360px; height: 360px; margin-right: -10px; }
  .static-3d-ball { width: 360px; height: 360px; }
  .hero-ball-container .smoke-glow { width: 410px; height: 410px; }
  .ball-motion-trails { left: 220px; top: 20px; width: 520px; height: 350px; opacity: 0.55; }
  .streak-menu { width: 360px; gap: 24px; }
  .streak-label { font-size: 1rem; }
  .home-live-section { max-width: 820px; }
}

@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .global-header { padding: 10px 14px; }
  .header-mini-ball { width: 30px; height: 30px; }
  .header-title { font-size: 1.05rem; }
  #viewContainer { padding: 18px 12px; min-height: calc(100vh - 56px); }
  .view-header-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .settings-form-input { margin-bottom: 12px; }
  .form-button-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .form-button-row .action-btn { margin-left: 0 !important; }

  .side-drawer { right: 0; width: min(92vw, 300px); top: 46px; }
  .side-drawer ul li { padding: 14px 15px; font-size: 1rem; }

  .welcome-container { margin-top: 10px; }
  .welcome-container h1 { font-size: 1.5rem; line-height: 1.2; }
  .home-hero-layout { display: flex; flex-direction: column; margin-top: 18px; gap: 16px; }
  .hero-ball-container { width: 260px; height: 260px; margin: 0 auto; }
  .static-3d-ball { width: 260px; height: 260px; }
  .hero-ball-container .smoke-glow { width: 300px; height: 300px; }
  .ball-motion-trails { display: none; }
  .streak-menu { width: 100%; max-width: 360px; gap: 10px; padding: 0 8px; }
  .streak-nav-item,
  .streak-nav-item:nth-child(n) { padding-left: 0 !important; }
  .streak-label { font-size: 0.9rem; letter-spacing: 1.2px; min-width: 120px; }
  .streak-tail { flex: 1; min-width: 50px; }
  .streak-nav-item { background: rgba(17, 23, 38, 0.72); border: 1px solid rgba(44, 59, 94, 0.85); border-radius: 10px; padding: 10px 12px !important; }
  .streak-nav-item:hover .streak-label { transform: none; }

  .home-live-section { margin-top: 22px; padding: 14px; }
  .home-live-header { flex-direction: column; align-items: stretch; gap: 12px; }
  .home-live-cards-grid { grid-template-columns: 1fr; }
  .home-refresh-status { gap: 8px; flex-direction: column; }

  .qualified-grid,
  .countries-directory-grid,
  .groups-grid { grid-template-columns: 1fr !important; }
  .country-card { min-height: 52px; }

  .ai-toolbar,
  .ai-filters,
  .schedule-action-row,
  .rankings-actions { flex-direction: column !important; align-items: stretch !important; }
  .ai-toolbar .right-actions { margin-left: 0 !important; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ai-toolbar .right-actions button { width: 100%; }

  .match-history-table { min-width: 0; width: 100%; }
  .match-history-table thead { display: none; }
  .match-history-table,
  .match-history-table tbody,
  .match-history-table tr,
  .match-history-table td { display: block; }
  .match-history-table tr { background: var(--panel-solid); border: 1px solid var(--neon-border); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
  .match-history-table td { border-bottom: 1px solid rgba(255,255,255,0.06); padding: 9px 0; white-space: normal; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; text-align: right; }
  .match-history-table td:last-child { border-bottom: 0; }
  .match-history-table td::before { content: attr(data-label); color: var(--text-muted); font-weight: 800; text-align: left; min-width: 95px; }
  .rankings-table td:first-child,
  .ai-predictions-table td:nth-child(2) { text-align: left; }
  .rankings-table td:first-child::before,
  .ai-predictions-table td:nth-child(2)::before { margin-right: 8px; }
  .rankings-table thead th { position: static; box-shadow: none; }
  .rankings-table-wrap { max-height: none; overflow: visible !important; }
  .rankings-table-wrap,
  .prediction-output-box { overflow-x: visible !important; }
  .rank-sort-btn { justify-content: flex-start; width: 100%; }

  .schedule-item-row { display: grid !important; grid-template-columns: 1fr !important; gap: 6px; background: var(--panel-solid); border: 1px solid var(--neon-border); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
  .schedule-item-row:first-child { display: none !important; }
  .schedule-date-cell::before { content: 'Date: '; color: var(--text-muted); font-weight: 800; }
  .schedule-matchup-cell::before { content: 'Matchup: '; color: var(--text-muted); font-weight: 800; display: block; margin-bottom: 4px; }
  .schedule-score-cell::before { content: 'Score: '; color: var(--text-muted); font-weight: 800; }
  .schedule-winner-cell::before { content: 'Winner: '; color: var(--text-muted); font-weight: 800; }

  .bracket-canvas,
  .prediction-output-box { max-width: 100%; overflow-x: auto; }
  .bracket-tree-grid { transform: scale(0.86); transform-origin: top left; width: max-content; }
  #selfPredictionView .bracket-workspace { grid-template-columns: 1fr; }
  #selfPredictionView .countries-pool { height: 300px; }

  .feedback-layout { grid-template-columns: 1fr; }
  .floating-feedback-btn { right: 12px; bottom: 12px; padding: 10px 12px; font-size: 0.82rem; }
  .power-score-site-footer { padding: 0 12px 22px; }
}

@media (max-width: 480px) {
  .welcome-container h1 { font-size: 1.25rem; }
  .hero-ball-container { width: 220px; height: 220px; }
  .static-3d-ball { width: 220px; height: 220px; }
  .streak-label { font-size: 0.78rem; min-width: 105px; }
  .home-live-card { padding: 12px; }
  .home-live-score-line { font-size: 1.1rem; }
  .match-history-table td { flex-direction: column; text-align: left; }
  .match-history-table td::before { min-width: 0; }
}


/* v27 fix: sticky ranking header must stick to top of the ranking scroll box, not 68px down. */
.rankings-table-wrap .rankings-table thead th {
  top: 0 !important;
}


/* Small protected admin entry point in footer */
.footer-admin-link-wrap {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  opacity: 0.72;
}

.footer-admin-link {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 115, 0, 0.45);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 115, 0, 0.08);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.footer-admin-link:hover,
.footer-admin-link:focus {
  opacity: 1;
  color: #ffffff;
  border-color: var(--orange-accent);
  background: rgba(255, 115, 0, 0.18);
  transform: translateY(-1px);
  outline: none;
}

@media (max-width: 720px) {
  .footer-admin-link {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }
}

/* v30 welcome split headline */
.welcome-subtitle {
  display: block;
  margin-top: 6px;
  color: var(--orange-accent);
  font-size: 0.72em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


.welcome-subtitle .cup-letter {
  color: #ffffff;
}

/* v30 modern update / notification banner */
.site-notice-banner {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 12px auto 0;
  height: 38px;
  border: 1px solid rgba(255, 115, 0, 0.30);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255,115,0,0.16), rgba(25,34,57,0.84), rgba(255,115,0,0.10)),
    rgba(9, 13, 26, 0.82);
  box-shadow: 0 10px 32px rgba(0,0,0,0.25), inset 0 0 18px rgba(255,115,0,0.08);
}
.site-notice-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 15% 50%, rgba(255,255,255,0.12), transparent 35%);
}
.site-notice-track {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  animation: siteNoticeScroll var(--notice-speed, 34s) linear infinite;
  will-change: transform;
}
.site-notice-banner:hover .site-notice-track { animation-play-state: paused; }
.site-notice-banner.no-hover-pause:hover .site-notice-track { animation-play-state: running; }
.site-notice-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
  white-space: nowrap;
}

.banner-flag-img {
  display: inline-block;
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.20), 0 2px 6px rgba(0,0,0,0.28);
  vertical-align: -3px;
  flex: 0 0 auto;
}

.site-notice-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
}
@keyframes siteNoticeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* v30 sticky headers for long data lists */
.sticky-table-wrap,
.ai-sticky-table-wrap {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
  border-radius: 12px;
}
.sticky-table-wrap table thead th,
.ai-sticky-table-wrap table thead th,
.ai-predictions-table thead th {
  position: sticky;
  top: 0;
  z-index: 15;
  background: linear-gradient(180deg, #1b2540 0%, #121a2d 100%);
  box-shadow: 0 2px 0 rgba(255,115,0,0.45), 0 8px 18px rgba(0,0,0,0.28);
}
.schedule-output-box {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}
.schedule-sticky-header {
  position: sticky;
  top: 0;
  z-index: 15;
  background: linear-gradient(180deg, #1b2540 0%, #121a2d 100%) !important;
  box-shadow: 0 2px 0 rgba(255,115,0,0.45), 0 8px 18px rgba(0,0,0,0.28);
  border-radius: 10px 10px 0 0;
}

/* v30 admin banner editor */
.admin-panel-card {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--neon-border);
  border-radius: 14px;
  background: rgba(25,34,57,0.65);
}
.admin-toggle-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 14px 0 16px;
  color: var(--text-primary) !important;
}
.admin-toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--orange-accent);
}

@media (max-width: 768px) {
  .site-notice-banner {
    height: 34px;
    margin: 10px 10px 0;
  }
  .site-notice-pill {
    font-size: 0.78rem;
    padding: 5px 10px;
  }
  .site-notice-track { animation-duration: 28s; }
  .sticky-table-wrap,
  .ai-sticky-table-wrap,
  .schedule-output-box { max-height: none; overflow: visible; }
  .ai-predictions-table thead th,
  .schedule-sticky-header { position: static; box-shadow: none; }
}


/* v40: use one page-level scrollbar instead of nested vertical scrollers. */
:root { --sticky-data-top: 74px; }
.rankings-table thead th,
.sticky-table-wrap table thead th,
.ai-sticky-table-wrap table thead th,
.ai-predictions-table thead th,
.schedule-sticky-header {
  top: var(--sticky-data-top);
}
@media (max-width: 768px) {
  :root { --sticky-data-top: 58px; }
}

/* v36: Add-to-calendar controls */
.add-cal-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
}
.add-cal-btn {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,115,0,0.55);
  background: rgba(255,115,0,0.12);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.add-cal-btn span {
  position: absolute;
  top: -6px;
  right: -5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange-accent);
  color: #111827;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 16px;
}
.add-cal-btn:hover,
.add-cal-wrap.open .add-cal-btn {
  transform: translateY(-1px);
  border-color: var(--orange-accent);
  background: rgba(255,115,0,0.22);
}
.add-cal-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}
.add-cal-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 132px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(255,115,0,0.45);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.42);
  padding: 6px;
  z-index: 60;
}
.add-cal-menu a,
.add-cal-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  display: block;
  text-align: left;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.add-cal-menu a:hover,
.add-cal-menu button:hover {
  background: rgba(255,115,0,0.18);
  color: var(--orange-accent);
}
.schedule-calendar-cell {
  display: flex;
  justify-content: center;
  align-items: center;
}
.home-live-card-top .add-cal-wrap {
  margin-left: auto;
}
.home-live-card-top {
  align-items: center;
  gap: 8px;
}
@media (max-width: 760px) {
  .schedule-calendar-cell::before { content: 'Calendar: '; color: var(--text-muted); font-weight: 800; margin-right: 8px; }
  .schedule-calendar-cell { justify-content: flex-start; }
  .add-cal-menu { left: 0; right: auto; }
}
.home-live-card { overflow: visible; }

/* v42: Fix AI list header overlap and clean bracket round labels */
.ai-predictions-table thead th {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  box-shadow: 0 2px 0 rgba(255,115,0,0.45) !important;
}
.ai-sticky-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

/* Keep only the R32/R16/QF/SF/Final tabs looking like buttons.
   Round titles inside the bracket should read as labels, not a second set of buttons. */
.wc-round-tabs {
  margin: 18px 0 30px !important;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.wc-round-column h3 {
  position: static !important;
  top: auto !important;
  z-index: 1 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 0 16px !important;
  margin: 0 0 10px !important;
  box-shadow: none !important;
  color: var(--orange-accent) !important;
  text-align: center;
}
.wc-round-column.selected h3 {
  background: transparent !important;
  border: 0 !important;
  text-shadow: 0 0 14px rgba(255,115,0,0.55);
}
.wc-bracket-columns {
  padding-top: 4px;
}

/* v43: Page-level floating headers for long tables/lists.
   Use one sticky header row instead of sticky individual cells to avoid overlap. */
:root { --sticky-data-top: 88px; }
.rankings-table,
.ai-predictions-table,
.sticky-table-wrap table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}
.rankings-table thead,
.ai-predictions-table thead,
.sticky-table-wrap table thead {
  position: sticky;
  top: var(--sticky-data-top);
  z-index: 95;
}
.rankings-table thead th,
.ai-predictions-table thead th,
.sticky-table-wrap table thead th,
.schedule-sticky-header {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  background: linear-gradient(180deg, #1b2540 0%, #121a2d 100%) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 2px 0 rgba(255,115,0,0.55), 0 10px 18px rgba(0,0,0,0.38) !important;
  background-clip: padding-box;
}
.schedule-sticky-header {
  position: sticky !important;
  top: var(--sticky-data-top) !important;
  z-index: 95 !important;
}
.sticky-table-wrap,
.ai-sticky-table-wrap,
.rankings-table-wrap,
.schedule-output-box {
  overflow-y: visible !important;
  max-height: none !important;
}
@media (max-width: 768px) {
  :root { --sticky-data-top: 70px; }
  .rankings-table thead,
  .ai-predictions-table thead,
  .sticky-table-wrap table thead,
  .schedule-sticky-header {
    position: static !important;
    top: auto !important;
    box-shadow: none !important;
  }
}

/* v44: Reliable floating headers without CSS sticky overlap.
   Original headers stay in normal flow. A JS clone floats only after scroll. */
.rankings-table thead,
.ai-predictions-table thead,
.sticky-table-wrap table thead,
.schedule-sticky-header {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
}
.rankings-table thead th,
.ai-predictions-table thead th,
.sticky-table-wrap table thead th,
.schedule-sticky-header > div {
  position: static !important;
  top: auto !important;
}
.floating-header-clone {
  position: fixed;
  z-index: 98;
  pointer-events: none;
  display: grid;
  align-items: center;
  background: linear-gradient(180deg, #1b2540 0%, #121a2d 100%);
  border: 1px solid var(--neon-border);
  border-bottom: 2px solid var(--orange-accent);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 12px 26px rgba(0,0,0,0.42);
  overflow: hidden;
}
.floating-header-clone .floating-header-cell {
  color: var(--text-primary);
  font-weight: 900;
  font-size: 0.9rem;
  padding: 12px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 768px) {
  .floating-header-clone { display: none !important; }
}

/* v45 My Bracket save/autosave controls */
.my-bracket-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.my-bracket-toolbar h2 { margin: 0 0 4px; }
.small-muted { margin: 0; color: var(--text-muted); font-size: 0.88rem; }
.my-bracket-save-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.my-bracket-save-select { min-width: 260px; max-width: 360px; margin: 0 !important; }
.btn-secondary.danger { border-color: rgba(255,80,100,0.5); color: #ff8b9b; }
.my-bracket-save-status {
  color: #aebbd5;
  font-size: 0.82rem;
  background: rgba(255,115,0,0.08);
  border: 1px solid rgba(255,115,0,0.28);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 14px;
}
.slot-power-pill {
  margin-left: auto;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.72rem;
}
@media (max-width: 760px) {
  .my-bracket-save-controls { justify-content: flex-start; width: 100%; }
  .my-bracket-save-select { min-width: 100%; width: 100%; }
}


/* v45 revised: My Bracket tree alignment and live pool refresh.
   Later-round cards are vertically centered beside their feeder matches. */
#selfPredictionView .bracket-tree-grid {
  align-items: stretch;
  gap: 26px;
}
#selfPredictionView .bracket-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
}
#selfPredictionView .my-round-matches {
  display: grid;
  grid-template-rows: repeat(80, 20px);
  min-height: 1600px;
  align-items: center;
}
#selfPredictionView .my-round-matches .matchup-box {
  align-self: center;
}
#selfPredictionView .bracket-column h4 {
  min-height: 28px;
  margin-bottom: 10px;
}
@media (max-width: 900px) {
  #selfPredictionView .my-round-matches {
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 12px;
  }
}

/* v46 AI Predictor performance panel */
.ai-performance-panel {
  margin: 18px 0 18px;
  padding: 14px;
  border: 1px solid rgba(255, 115, 0, 0.35);
  background: linear-gradient(135deg, rgba(255, 115, 0, 0.08), rgba(22, 31, 52, 0.72));
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}
.ai-performance-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}
.ai-performance-heading h3 {
  margin: 0 0 4px;
  color: var(--text-main);
  font-size: 1rem;
}
.ai-performance-heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.ai-performance-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
}
.ai-performance-card {
  border: 1px solid rgba(125, 158, 212, 0.26);
  background: rgba(10, 16, 30, 0.68);
  border-radius: 12px;
  padding: 11px 12px;
  min-height: 86px;
}
.ai-performance-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-bottom: 8px;
}
.ai-performance-card strong {
  display: block;
  color: var(--orange-accent);
  font-size: 1.38rem;
  line-height: 1;
}
.ai-performance-card small {
  display: block;
  color: var(--text-muted);
  font-size: 0.68rem;
  margin-top: 7px;
}
@media (max-width: 900px) {
  .ai-performance-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
}
@media (max-width: 520px) {
  .ai-performance-grid { grid-template-columns: 1fr; }
}

/* v51 language selector: fixed lower-left control, compact globe + language code */
.language-control {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 4500;
  display: inline-flex;
  align-items: center;
}
.language-icon-btn {
  min-width: 0;
  height: 38px;
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(0,0,0,.38);
  border-color: rgba(82, 196, 255, .55);
  font-size: 1rem;
  padding: 0 11px;
  background: rgba(16, 24, 44, .96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #52c4ff;
}
.language-globe {
  font-size: 1rem;
  line-height: 1;
}
.language-code {
  color: #52c4ff;
  font-size: .68rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .04em;
}
.language-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 4600;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(11, 16, 32, 0.98);
  box-shadow: 0 18px 45px rgba(0,0,0,.45);
}
.language-menu button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-main);
  font-weight: 800;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
}
.language-menu button:hover { background: rgba(82, 196, 255, .14); color: #52c4ff; }
@media (max-width: 640px) {
  .language-control { left: 14px; bottom: 14px; }
  .language-icon-btn { height: 36px; padding: 0 10px; }
  .language-globe { font-size: .95rem; }
  .language-code { font-size: .62rem; }
  .language-menu { min-width: 190px; }
}


/* v53: eliminated/out-of-tournament styling */
.eliminated-team,
.eliminated-row,
.eliminated-inline-team,
.eliminated-country-link {
  filter: grayscale(1);
  opacity: 0.58;
}
.eliminated-row:hover,
.eliminated-team:hover,
.eliminated-inline-team:hover,
.eliminated-country-link:hover {
  opacity: 0.82;
}
.eliminated-team .fi,
.eliminated-row .fi,
.eliminated-inline-team .fi,
.eliminated-country-link .fi,
.wc-team-row.eliminated-team .wc-team-flag {
  filter: grayscale(1) contrast(0.85);
}
.eliminated-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 1px 5px;
  border: 1px solid rgba(170, 184, 210, 0.35);
  border-radius: 999px;
  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #aab8d2;
  background: rgba(125, 139, 170, 0.14);
  text-transform: uppercase;
  vertical-align: middle;
}
.rankings-table tr.eliminated-row td,
.schedule-item-row.eliminated-row,
.action-btn.eliminated-team,
.drag-flag-item.eliminated-team,
.drop-slot-box.eliminated-team,
.wc-team-row.eliminated-team {
  background-image: linear-gradient(90deg, rgba(125,139,170,0.08), rgba(125,139,170,0.02));
}


/* Match details modal */
.match-details-trigger { cursor: pointer; }
.match-details-trigger:hover { box-shadow: 0 0 0 1px rgba(255,115,0,0.35), 0 12px 28px rgba(0,0,0,0.24); }
.match-details-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}
.match-details-modal.open { display: flex; }
.match-details-dialog {
  width: min(680px, 96vw);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid rgba(255, 115, 0, 0.45);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(12, 18, 34, 0.98), rgba(5, 9, 20, 0.98));
  color: var(--text-light);
  box-shadow: 0 28px 80px rgba(0,0,0,0.65);
  padding: 22px;
  position: relative;
}
.match-details-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
}
.match-detail-scoreline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 16px 0 10px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
}
.match-detail-scoreline > div { display:flex; align-items:center; gap:8px; }
.match-detail-scoreline > div:last-child { justify-content:flex-end; text-align:right; }
.match-detail-scoreline > span { color: var(--orange-accent); font-size: 1.55rem; font-weight: 900; }
.match-detail-meta { display:flex; flex-wrap:wrap; gap:8px; margin-bottom: 16px; }
.match-detail-meta span { padding:6px 10px; border-radius:999px; background:rgba(96,165,250,0.14); color:#bfdbfe; font-size:.78rem; }
.match-detail-section { margin-top: 14px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); }
.match-detail-section h4 { margin:0 0 10px; color:#fff; }
.match-detail-empty, .match-detail-note { color: var(--text-muted); font-size:.9rem; }
.match-detail-list { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.match-detail-list li { display:flex; gap:10px; align-items:flex-start; padding:8px 0; border-bottom:1px solid rgba(255,255,255,0.07); }
.match-detail-minute { color: var(--orange-accent); min-width: 44px; font-weight:900; }
.match-detail-muted { color: var(--text-muted); margin-left:6px; font-size:.82rem; }

.match-detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.match-detail-facts div {
  background: rgba(12,18,34,.72);
  border: 1px solid rgba(142,163,207,.18);
  border-radius: 10px;
  padding: 8px 10px;
}
.match-detail-facts span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 3px;
}
.match-detail-facts strong {
  color: var(--text);
  font-size: 13px;
}

/* Betting tracker page */
.betting-hero-card {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 18px;
  align-items: stretch;
  background: rgba(15, 26, 48, 0.72);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px;
  margin: 18px 0;
}
.betonline-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 115, 0, 0.45);
  background: #ffffff;
  text-decoration: none;
  overflow: hidden;
}
.betonline-card img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  display: block;
}
.betonline-fallback { display: none; color: var(--orange-accent); font-weight: 800; }
.betonline-card.missing-bet-image .betonline-fallback { display: inline-block; }
.betting-copy h3 { color: var(--orange-accent); margin-top: 0; }
.betting-note { color: #ffb86b; font-size: 0.88rem; }
.betting-layout {
  display: grid;
  grid-template-columns: minmax(300px, 430px) 1fr;
  gap: 18px;
}
.betting-form-card,
.betting-list-card,
.saved-bet-card,
.bet-leg-card {
  background: rgba(15, 26, 48, 0.72);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
}
.betting-form-top,
.bet-leg-head,
.betting-list-header,
.saved-bet-head,
.saved-bet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.bet-legs-container { display: grid; gap: 12px; margin-bottom: 10px; }
.bet-leg-grid,
.betting-stake-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.betting-stake-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bet-remove-leg-btn,
.bet-delete-btn {
  border: 1px solid rgba(255, 71, 87, 0.45);
  color: #ff7b8a;
  background: rgba(255, 71, 87, 0.08);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}
.saved-bets-list { display: grid; gap: 12px; }
.saved-bet-card ul { margin: 8px 0; padding-left: 20px; }
.saved-bet-card li { margin-bottom: 8px; }
.saved-bet-meta, .saved-bet-notes { color: var(--text-muted); font-size: 0.9rem; }
.bet-status-pill {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid currentColor;
}
.bet-status-won { color: var(--emerald-accent); background: rgba(46, 213, 115, 0.12); }
.bet-status-lost { color: var(--crimson-warn); background: rgba(255, 71, 87, 0.10); }
.bet-status-pending { color: #ffb86b; background: rgba(255, 115, 0, 0.10); }
.today-scroll-highlight {
  outline: 2px solid var(--orange-accent);
  box-shadow: 0 0 0 4px rgba(255, 115, 0, 0.18);
  border-radius: 8px;
}
@media (max-width: 860px) {
  .betting-hero-card, .betting-layout { grid-template-columns: 1fr; }
  .bet-leg-grid, .betting-stake-grid { grid-template-columns: 1fr; }
}

/* v60 hotfix visual helpers */
.row-pulse-highlight { animation: rowPulseHighlight 1.8s ease; }
@keyframes rowPulseHighlight {
  0%, 100% { box-shadow: none; }
  25%, 75% { box-shadow: 0 0 0 2px rgba(255,115,0,.75), 0 0 24px rgba(255,115,0,.28); }
}
.saved-bet-card { border: 1px solid var(--border-color); border-radius: 14px; padding: 14px; margin: 0 0 12px; background: rgba(15, 23, 42, .78); }
.saved-bet-top { display:flex; justify-content:space-between; gap:12px; color: var(--orange-accent); }
.saved-bet-card ul { margin: 10px 0; padding-left: 18px; }
.saved-bet-meta { color: var(--text-muted); font-size: .88rem; margin: 8px 0; }
.bet-status-won { border-color: rgba(36, 214, 124, .6); }
.bet-status-lost { border-color: rgba(255, 75, 105, .6); opacity: .9; }
.bet-status-push { border-color: rgba(154, 125, 255, .6); }


/* v65 betting result polish */
.saved-bet-card {
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.saved-bet-card.bet-status-won {
  border-color: rgba(36, 214, 124, .72);
  box-shadow: 0 0 0 1px rgba(36, 214, 124, .18), 0 0 22px rgba(36, 214, 124, .08);
}
.saved-bet-card.bet-status-lost {
  border-color: rgba(255, 71, 87, .72);
  box-shadow: 0 0 0 1px rgba(255, 71, 87, .18), 0 0 22px rgba(255, 71, 87, .08);
}
.bet-status-pill-won,
.bet-leg-status-won strong {
  color: var(--emerald-accent);
}
.bet-status-pill-lost,
.bet-leg-status-lost strong {
  color: var(--crimson-warn);
}
.bet-status-pill-pending,
.bet-leg-status-pending strong {
  color: #ffb86b;
}
.bet-status-pill-push,
.bet-leg-status-push strong {
  color: #9bb4ff;
}
.saved-bet-actions {
  display: inline-flex;
  gap: 8px;
  margin-left: 8px;
  vertical-align: middle;
}
.bet-icon-action {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.bet-edit-btn {
  border-color: rgba(102, 217, 255, .45);
  color: #66d9ff;
  background: rgba(102, 217, 255, .08);
}
.bet-delete-btn {
  border-color: rgba(255, 71, 87, .45);
  color: #ff7b8a;
  background: rgba(255, 71, 87, .08);
}
.saved-bet-card.bet-status-won:hover::after {
  content: "🎆 ✨ 🎉";
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 1.25rem;
  animation: betFireworks 900ms ease-out both;
  pointer-events: none;
}
.saved-bet-card.bet-status-lost:hover::after {
  content: "💔";
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 1.2rem;
  animation: betSadPop 700ms ease-out both;
  pointer-events: none;
}
@keyframes betFireworks {
  0% { opacity: 0; transform: translateY(12px) scale(.75); }
  40% { opacity: 1; transform: translateY(-4px) scale(1.08); }
  100% { opacity: 0; transform: translateY(-24px) scale(1.22); }
}
@keyframes betSadPop {
  0% { opacity: 0; transform: scale(.7); }
  40% { opacity: 1; transform: scale(1.1); }
  100% { opacity: .45; transform: scale(.95); }
}


/* v68 clickable banner shortcut links */
.site-notice-link {
  color: #ffffff;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(255, 115, 0, 0.9);
  text-underline-offset: 3px;
}
.site-notice-link:hover {
  color: var(--orange-accent);
}


/* v70 offseason splash screen */
.offseason-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 115, 0, 0.16), transparent 30%),
    radial-gradient(circle at 25% 75%, rgba(25, 118, 210, 0.22), transparent 34%),
    linear-gradient(180deg, #07101f 0%, #050915 100%);
  color: var(--text-main);
  overflow: auto;
}
.offseason-splash.hidden { display: none; }
.offseason-card {
  position: relative;
  width: min(760px, 94vw);
  text-align: center;
  padding: clamp(24px, 5vw, 54px);
  border-radius: 32px;
  border: 1px solid rgba(255, 115, 0, 0.35);
  background: rgba(11, 19, 36, 0.82);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}
.offseason-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 115, 0, 0.5);
  color: #ffb86b;
  background: rgba(255, 115, 0, 0.12);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.offseason-ball {
  width: min(230px, 56vw);
  height: auto;
  display: block;
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 38px rgba(255,255,255,0.16));
}
.offseason-card h1 {
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  line-height: 0.95;
  margin: 0;
  color: #fff;
  text-shadow: 0 0 32px rgba(255, 115, 0, 0.22);
}
.offseason-subtitle {
  margin: 12px 0 8px;
  color: var(--orange-accent);
  font-size: clamp(1rem, 3vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.offseason-champion-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 24px;
  color: #d8e6ff;
  font-size: 1.05rem;
}
.offseason-countdown-wrap {
  margin: 0 auto 24px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(7, 16, 31, 0.7);
  border: 1px solid rgba(160, 182, 220, 0.18);
}
.offseason-countdown-label {
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.82rem;
}
.offseason-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 10px;
}
.offseason-countdown div {
  padding: 14px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.offseason-countdown strong {
  display: block;
  font-size: clamp(1.45rem, 4vw, 2.35rem);
  color: #fff;
}
.offseason-countdown span {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}
.offseason-countdown-wrap small {
  display: block;
  margin-top: 12px;
  color: rgba(216, 230, 255, 0.6);
}
.offseason-enter-btn {
  border: none;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(255, 115, 0, 0.28);
}
.offseason-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.26;
  pointer-events: none;
}
.offseason-glow-one { left: 12%; top: 15%; background: #ff7300; }
.offseason-glow-two { right: 10%; bottom: 12%; background: #1e90ff; }
@media (max-width: 640px) {
  .offseason-countdown { grid-template-columns: repeat(2, minmax(90px, 1fr)); }
  .offseason-card { padding: 24px 16px; }
}


/* v71 offseason wording, flag and archive button polish */
.offseason-flag {
  width: 28px;
  height: 21px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 6px 14px rgba(0,0,0,.25);
}
.offseason-enter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 115, 0, .9);
  background: linear-gradient(135deg, #ff7300, #ff9d2e);
  color: #07101f;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: .02em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(255, 115, 0, .3);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.offseason-enter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 56px rgba(255, 115, 0, .42);
  filter: brightness(1.05);
}
.offseason-enter-btn:active {
  transform: translateY(0);
}
