/* ============================================================
   sports-page.css — หน้าชนิดกีฬา
   ============================================================ */

/* ---- Page wrapper (fix layout — ไม่ใช้ grid หลายคอลัมน์) ---- */
.sports-page {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  animation: sportsPageIn .45s ease both;
}
@keyframes sportsPageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Hero Banner ---- */
.sports-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 45%, #1E293B 100%);
  border-radius: 20px;
  padding: 28px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 8px 32px rgba(15,23,42,.25);
}
.sports-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(37,99,235,.25) 0%, transparent 65%);
  pointer-events: none;
  animation: heroGlow 6s ease-in-out infinite alternate;
}
.sports-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(124,58,237,.15) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate-reverse;
}
@keyframes heroGlow {
  from { transform: scale(1) translate(0,0); opacity: .8; }
  to   { transform: scale(1.15) translate(-10px,10px); opacity: 1; }
}

/* floating orbs */
.sports-hero-orbs {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.04);
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb.o1 { width: 60px; height: 60px; top: 20%; left: 55%; animation-delay: 0s; }
.hero-orb.o2 { width: 40px; height: 40px; top: 60%; left: 70%; animation-delay: 2s; }
.hero-orb.o3 { width: 24px; height: 24px; top: 30%; left: 80%; animation-delay: 4s; }
@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-12px) scale(1.08); }
}

.sports-hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: flex-start;
  justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.sports-hero-left { flex: 1; min-width: 200px; }
.sports-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-size: .68rem; font-weight: 600;
  color: rgba(255,255,255,.75);
  margin-bottom: 10px;
  animation: badgePop .5s ease .1s both;
}
@keyframes badgePop {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}
.sports-hero-title {
  font-size: 1.75rem; font-weight: 700; margin-bottom: 6px;
  letter-spacing: -.3px;
  animation: titleSlide .5s ease .15s both;
}
@keyframes titleSlide {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}
.sports-hero-sub {
  font-size: .85rem; color: rgba(255,255,255,.55);
  max-width: 420px; line-height: 1.5;
  animation: titleSlide .5s ease .25s both;
}

/* hero stat pills */
.sports-hero-stats {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 18px;
  animation: titleSlide .5s ease .35s both;
}
.hero-stat-pill {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 18px; border-radius: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  min-width: 72px;
  transition: transform .2s, background .2s;
}
.hero-stat-pill:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); }
.hero-stat-num {
  font-size: 1.35rem; font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,.7));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label { font-size: .62rem; color: rgba(255,255,255,.5); margin-top: 3px; font-weight: 500; }

.sports-hero-right {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.hero-colors-ring {
  display: flex; gap: 8px; align-items: center;
  padding: 12px 16px; border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.hero-color-dot {
  width: 16px; height: 16px; border-radius: 50%;
  animation: heroDotPulse 2.5s ease-in-out infinite;
  box-shadow: 0 0 0 2px rgba(255,255,255,.15);
}
.hero-color-dot.red    { background: #EF4444; animation-delay: 0s; }
.hero-color-dot.blue   { background: #3B82F6; animation-delay: 0.3s; }
.hero-color-dot.green  { background: #22C55E; animation-delay: 0.6s; }
.hero-color-dot.yellow { background: #EAB308; animation-delay: 0.9s; }
@keyframes heroDotPulse {
  0%,100% { transform: scale(1); opacity: .85; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
  50%     { transform: scale(1.25); opacity: 1; box-shadow: 0 0 12px currentColor; }
}

/* ---- Team Legend ---- */
.sports-team-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: 20px;
}
.sports-team-legend-item {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; background: #fff;
  border-radius: 14px; border: 1.5px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s, border-color .22s;
  animation: legendSlideIn .4s ease both;
  position: relative; overflow: hidden;
}
.sports-team-legend-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  border-radius: 3px 0 0 3px;
}
.sports-team-legend-item.red::before    { background: #EF4444; }
.sports-team-legend-item.blue::before   { background: #3B82F6; }
.sports-team-legend-item.green::before  { background: #22C55E; }
.sports-team-legend-item.yellow::before { background: #EAB308; }
.sports-team-legend-item:nth-child(1){animation-delay:.05s}
.sports-team-legend-item:nth-child(2){animation-delay:.1s}
.sports-team-legend-item:nth-child(3){animation-delay:.15s}
.sports-team-legend-item:nth-child(4){animation-delay:.2s}
.sports-team-legend-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  border-color: rgba(37,99,235,.15);
}
@keyframes legendSlideIn {
  from { opacity:0; transform:translateY(14px); }
  to   { opacity:1; transform:translateY(0); }
}
.legend-icon-wrap {
  width:36px;height:36px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  font-size:1rem;flex-shrink:0;
  transition: transform .2s;
}
.sports-team-legend-item:hover .legend-icon-wrap { transform: scale(1.08); }
.legend-icon-wrap.red    { background:#FEF2F2; border:2px solid #FECACA; }
.legend-icon-wrap.blue   { background:#EFF6FF; border:2px solid #BFDBFE; }
.legend-icon-wrap.green  { background:#F0FDF4; border:2px solid #BBF7D0; }
.legend-icon-wrap.yellow { background:#FEFCE8; border:2px solid #FEF08A; }
.legend-text { min-width:0; flex: 1; }
.legend-name { font-size:.8rem; font-weight:700; white-space:nowrap; }
.legend-name.red    { color:#DC2626; }
.legend-name.blue   { color:#2563EB; }
.legend-name.green  { color:#16A34A; }
.legend-name.yellow { color:#CA8A04; }
.legend-count { font-size:.68rem; color:#64748B; margin-top:2px; font-weight: 500; }
.legend-bar-track {
  height: 3px; border-radius: 2px; background: #F1F5F9;
  margin-top: 6px; overflow: hidden;
}
.legend-bar-fill {
  height: 100%; border-radius: 2px;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
  width: 0;
}
.legend-bar-fill.red    { background: linear-gradient(90deg, #EF4444, #F87171); }
.legend-bar-fill.blue   { background: linear-gradient(90deg, #3B82F6, #60A5FA); }
.legend-bar-fill.green  { background: linear-gradient(90deg, #22C55E, #4ADE80); }
.legend-bar-fill.yellow { background: linear-gradient(90deg, #EAB308, #FACC15); }

/* ---- Toolbar: search + filter ---- */
.sports-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; margin-bottom: 20px;
  animation: legendSlideIn .4s ease .25s both;
}
.sports-search-wrap {
  flex: 1; min-width: 200px; max-width: 360px;
  position: relative;
}
.sports-search-wrap::before {
  content: '🔍'; position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%); font-size: .85rem; pointer-events: none;
  opacity: .5;
}
.sports-search-input {
  width: 100%; padding: 10px 14px 10px 40px;
  border-radius: 12px; border: 1.5px solid #E2E8F0;
  font-size: .82rem; font-family: inherit;
  background: #fff; color: #1E293B;
  transition: border-color .2s, box-shadow .2s;
}
.sports-search-input:focus {
  outline: none; border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.sports-search-input::placeholder { color: #94A3B8; }

.sports-filter-bar {
  display:flex; gap:8px; flex-wrap:wrap; align-items:center;
}
.sports-filter-btn {
  display:inline-flex; align-items:center; gap:6px;
  padding:9px 18px; border-radius:12px; font-size:.78rem; font-weight:600;
  border:1.5px solid #E2E8F0; cursor:pointer;
  transition:all .22s cubic-bezier(.4,0,.2,1);
  background:#fff; color:#64748B;
  position: relative; overflow: hidden;
}
.sports-filter-btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.08), transparent);
  opacity: 0; transition: opacity .2s;
}
.sports-filter-btn:hover {
  border-color:#2563EB; color:#2563EB;
  box-shadow:0 4px 12px rgba(37,99,235,.12);
  transform: translateY(-1px);
}
.sports-filter-btn:hover::after { opacity: 1; }
.sports-filter-btn.active {
  background:linear-gradient(135deg,#2563EB,#1D4ED8); color:#fff;
  border-color:transparent; box-shadow:0 4px 14px rgba(37,99,235,.35);
  transform: translateY(-1px);
}
.sports-filter-count {
  display:inline-flex;align-items:center;justify-content:center;
  min-width:20px;height:20px;padding:0 5px;border-radius:10px;
  font-size:.62rem;font-weight:700;
  background:rgba(255,255,255,.25); color:inherit;
}
.sports-filter-btn:not(.active) .sports-filter-count {
  background:#F1F5F9; color:#64748B;
}

/* ---- Section label ---- */
.sports-section-label {
  grid-column:1/-1;
  display:flex;align-items:center;gap:10px;padding:4px 0 10px;
  font-size:.78rem;font-weight:700;color:#475569;letter-spacing:.3px;
}
.sports-section-label .section-icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  background: #F1F5F9;
}
.sports-section-label::after {
  content:'';flex:1;height:1px;
  background:linear-gradient(90deg,#E2E8F0 0%, transparent 100%);
}

/* ---- Sports Grid ---- */
.sports-main-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap:16px;
}

/* ---- Sport Card ---- */
.sport-item-card {
  background:#fff; border-radius:16px;
  border:1.5px solid #E2E8F0;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
  overflow:hidden; cursor:pointer; position:relative;
  transition:transform .25s cubic-bezier(.4,0,.2,1),
             box-shadow .25s, border-color .25s;
  animation:cardEntrance .45s cubic-bezier(.4,0,.2,1) both;
  opacity:0;
}
.sport-item-card.filter-hidden {
  display: none !important;
}
.sport-item-card.filter-out {
  animation: cardFilterOut .25s ease forwards;
}
.sport-item-card.filter-in {
  animation: cardFilterIn .35s ease forwards;
}
@keyframes cardEntrance {
  from { opacity:0; transform:translateY(20px) scale(.96); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}
@keyframes cardFilterOut {
  to { opacity: 0; transform: scale(.95); }
}
@keyframes cardFilterIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.sport-item-card:hover {
  transform:translateY(-6px);
  box-shadow:0 16px 40px rgba(0,0,0,.12);
  border-color:rgba(37,99,235,.25);
}
.sport-item-card:active { transform:translateY(-3px) scale(.99); }

/* shimmer on hover */
.sport-item-card::after {
  content:'';position:absolute;inset:0;
  background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.35) 50%,transparent 60%);
  background-size:200% 100%;background-position:-200% 0;
  transition:background-position .6s;pointer-events:none;border-radius:inherit;
}
.sport-item-card:hover::after { background-position:200% 0; }

/* Ripple */
.sport-item-card .ripple {
  position:absolute;border-radius:50%;
  background:rgba(37,99,235,.15);transform:scale(0);
  animation:rippleAnim .55s ease-out forwards;pointer-events:none;
}
@keyframes rippleAnim { to { transform:scale(4); opacity:0; } }

/* 4-color stripe */
.sport-card-stripe {
  height:5px;width:100%;
  background:linear-gradient(90deg,#EF4444 25%,#3B82F6 25% 50%,#22C55E 50% 75%,#EAB308 75%);
  position: relative;
}
.sport-card-stripe::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation: stripeShine 3s ease-in-out infinite;
}
@keyframes stripeShine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ---- Card Head ---- */
.sport-card-head {
  display:flex;align-items:center;gap:12px;padding:16px 18px 12px;
}
.sport-card-icon-wrap {
  width:52px;height:52px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  font-size:1.75rem;flex-shrink:0;position:relative;
  background:linear-gradient(145deg,#F8FAFC,#EFF6FF);
  border:1.5px solid #E2E8F0;
  transition:transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.sport-item-card:hover .sport-card-icon-wrap {
  transform:scale(1.1) rotate(-4deg);
  box-shadow: 0 6px 16px rgba(37,99,235,.15);
}
.sport-card-type-badge {
  position:absolute;bottom:-5px;right:-5px;
  font-size:.58rem;font-weight:700;padding:2px 6px;
  border-radius:6px;color:#fff;line-height:1.3;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
}
.sport-card-type-badge.sport     { background:linear-gradient(135deg,#2563EB,#1D4ED8); }
.sport-card-type-badge.athletics { background:linear-gradient(135deg,#7C3AED,#6D28D9); }
.sport-card-meta { flex:1;min-width:0; }
.sport-card-name {
  font-size:.95rem;font-weight:700;color:#1E293B;margin-bottom:4px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.sport-card-category-count {
  font-size: .78rem;
  font-weight: 600;
  color: #64748B;
}

/* ---- Simplified sport card ---- */
.sport-item-card--simple {
  cursor: pointer;
}
.sport-item-card--simple:hover {
  transform: translateY(-4px);
}
.sport-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sport-card-head--simple {
  padding: 0;
  align-items: flex-start;
}
.sport-item-card--simple .sport-card-view-btn {
  width: 100%;
}
.sport-item-card--simple .sport-card-icon-wrap {
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
}

/* ---- Category block in athlete modal ---- */
.sports-ath-category-block {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #F1F5F9;
}
.sports-ath-category-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.sports-ath-category-hdr {
  margin-bottom: 12px;
}
.sports-ath-category-name {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 700;
  color: #475569;
  background: #F1F5F9;
}
.gender-pill {
  display:inline-flex;align-items:center;gap:4px;
  padding:3px 9px;border-radius:8px;font-size:.68rem;font-weight:600;
  background:#F1F5F9;color:#475569;
}
.gender-pill.male   { background:#EFF6FF;color:#2563EB; }
.gender-pill.female { background:#FDF2F8;color:#DB2777; }
.sport-card-total-badge {
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  width:48px;height:48px;border-radius:12px;flex-shrink:0;
  background:linear-gradient(135deg,#EFF6FF,#DBEAFE);color:#2563EB;
  transition:all .25s;
  border: 1px solid rgba(37,99,235,.1);
}
.sport-item-card:hover .sport-card-total-badge {
  background:linear-gradient(135deg,#2563EB,#1D4ED8);color:#fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.badge-num { font-size:1.1rem;font-weight:700;line-height:1; }
.badge-label { font-size:.55rem;opacity:.8; font-weight: 500; }

/* ---- Color Bars ---- */
.sport-card-color-section { padding:0 16px 10px; }
.sport-card-color-bars { display:grid;grid-template-columns:1fr 1fr;gap:6px; }
.color-bar-item {
  display:flex;align-items:center;gap:7px;padding:7px 10px;
  border-radius:10px;background:#F8FAFC;
  transition:background .18s, transform .18s;position:relative;overflow:hidden;
}
.color-bar-item:hover { transform: scale(1.02); }
.color-bar-item::before {
  content:'';position:absolute;inset:0;opacity:0;
  transition:opacity .18s;border-radius:inherit;
}
.color-bar-item.red::before    { background:rgba(239,68,68,.08); }
.color-bar-item.blue::before   { background:rgba(59,130,246,.08); }
.color-bar-item.green::before  { background:rgba(34,197,94,.08); }
.color-bar-item.yellow::before { background:rgba(234,179,8,.08); }
.color-bar-item:hover::before  { opacity:1; }
.color-dot {
  width:10px;height:10px;border-radius:50%;flex-shrink:0;position:relative;z-index:1;
}
.color-dot.red    { background:#EF4444; box-shadow:0 0 0 2px rgba(239,68,68,.25); }
.color-dot.blue   { background:#3B82F6; box-shadow:0 0 0 2px rgba(59,130,246,.25); }
.color-dot.green  { background:#22C55E; box-shadow:0 0 0 2px rgba(34,197,94,.25); }
.color-dot.yellow { background:#EAB308; box-shadow:0 0 0 2px rgba(234,179,8,.25); }
.color-bar-info { flex:1;min-width:0;position:relative;z-index:1; }
.color-bar-name { font-size:.7rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.color-bar-name.red    { color:#DC2626; }
.color-bar-name.blue   { color:#2563EB; }
.color-bar-name.green  { color:#16A34A; }
.color-bar-name.yellow { color:#CA8A04; }
.color-bar-count {
  font-size:.72rem;font-weight:700;padding:2px 7px;
  border-radius:6px;color:#fff;flex-shrink:0;position:relative;z-index:1;
  min-width: 22px; text-align: center;
}
.color-bar-count.red    { background:#EF4444; }
.color-bar-count.blue   { background:#3B82F6; }
.color-bar-count.green  { background:#22C55E; }
.color-bar-count.yellow { background:#EAB308; }
.color-bar-count.zero   { background:#E2E8F0; color:#94A3B8; }

/* ---- Progress Bars ---- */
.sport-vs-divider {
  display:flex;align-items:center;gap:8px;margin:0 16px 10px;
}
.vs-line { flex:1;height:1px;background:linear-gradient(90deg,transparent,#E2E8F0,transparent); }
.vs-text { font-size:.6rem;font-weight:700;letter-spacing:1.5px;color:#94A3B8;text-transform:uppercase; }
.sport-card-progress { padding:0 16px 12px; }
.progress-row { display:flex;align-items:center;gap:6px;margin-bottom:5px; }
.progress-label { font-size:.65rem;font-weight:600;min-width:52px;white-space:nowrap; }
.progress-label.red    { color:#DC2626; }
.progress-label.blue   { color:#2563EB; }
.progress-label.green  { color:#16A34A; }
.progress-label.yellow { color:#CA8A04; }
.progress-track { flex:1;height:6px;border-radius:4px;background:#F1F5F9;overflow:hidden; }
.progress-fill {
  height:100%;border-radius:4px;width:0%;
  transition:width 1.1s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.progress-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: progressShine 2s ease-in-out infinite;
}
@keyframes progressShine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.progress-fill.red    { background:linear-gradient(90deg,#EF4444,#F87171); }
.progress-fill.blue   { background:linear-gradient(90deg,#3B82F6,#60A5FA); }
.progress-fill.green  { background:linear-gradient(90deg,#22C55E,#4ADE80); }
.progress-fill.yellow { background:linear-gradient(90deg,#EAB308,#FACC15); }
.progress-count { font-size:.65rem;font-weight:700;min-width:20px;text-align:right; }
.progress-count.red    { color:#DC2626; }
.progress-count.blue   { color:#2563EB; }
.progress-count.green  { color:#16A34A; }
.progress-count.yellow { color:#CA8A04; }

/* ---- Battle badge ---- */
.sport-battle-badge {
  display:inline-flex;align-items:center;gap:5px;
  padding:4px 12px;border-radius:10px;font-size:.65rem;font-weight:700;
  background:linear-gradient(135deg,#0F172A,#1E293B);color:#fff;
  margin:0 16px 10px;width:fit-content;
  animation:battlePulse 2.5s ease-in-out infinite;
}
@keyframes battlePulse {
  0%,100% { box-shadow:0 0 0 0 rgba(34,197,94,0); }
  50%     { box-shadow:0 0 0 5px rgba(34,197,94,.15); }
}
.battle-dot {
  width:6px;height:6px;border-radius:50%;background:#22C55E;
  animation:battleDotBlink 1.2s ease-in-out infinite;
}
@keyframes battleDotBlink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.8)} }

/* ---- Card Footer ---- */
.sport-card-footer {
  display:flex;align-items:center;gap:8px;
  padding:10px 16px 14px;border-top:1px solid #F1F5F9;
  background: linear-gradient(180deg, transparent, #FAFBFC);
}
.sport-card-view-btn {
  flex:1;display:flex;align-items:center;justify-content:center;gap:6px;
  padding:9px 14px;border-radius:10px;font-size:.74rem;font-weight:600;
  border:1.5px solid #E2E8F0;background:#fff;color:#475569;
  cursor:pointer;transition:all .2s;
}
.sport-card-view-btn:hover {
  border-color:#2563EB;color:#2563EB;background:#EFF6FF;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(37,99,235,.12);
}
.sport-card-goto-btn {
  display:flex;align-items:center;justify-content:center;
  width:38px;height:38px;border-radius:10px;font-size:.95rem;
  background:linear-gradient(135deg,#2563EB,#1D4ED8);color:#fff;
  border:none;cursor:pointer;flex-shrink:0;
  transition:all .2s;box-shadow:0 3px 8px rgba(37,99,235,.25);
}
.sport-card-goto-btn:hover {
  transform:translateY(-2px) scale(1.06);
  box-shadow:0 6px 18px rgba(37,99,235,.4);
}

/* ---- Empty state ---- */
.sports-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border-radius: 16px;
  border: 1.5px dashed #E2E8F0;
  animation: cardEntrance .4s ease both;
}
.sports-empty-icon { font-size: 3rem; margin-bottom: 12px; opacity: .7; }
.sports-empty-title { font-size: .95rem; font-weight: 600; color: #64748B; margin-bottom: 4px; }
.sports-empty-sub { font-size: .78rem; color: #94A3B8; }

/* ---- Athlete Modal ---- */
.sports-ath-modal-body { max-height: 62vh; overflow-y: auto; padding: 4px 0; }
.sports-ath-house-block { margin-bottom: 18px; }
.sports-ath-house-hdr {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; padding-bottom: 8px;
  position: sticky; top: 0; background: #fff; z-index: 1; padding-top: 4px;
}
.sports-ath-house-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.sports-ath-house-name { font-weight: 700; font-size: .88rem; }
.sports-ath-house-count {
  margin-left: auto; font-size: .7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 10px;
}
.sports-ath-empty-row {
  font-size: .78rem; color: #CBD5E1; padding: 6px 4px; font-style: italic;
}
.sports-ath-list { display: flex; flex-direction: column; gap: 5px; }
.sports-ath-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px;
  font-size: .82rem; transition: background .15s, transform .15s;
}
.sports-ath-row:hover { transform: translateX(3px); }
.sports-ath-num {
  width: 24px; height: 24px; border-radius: 50%;
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: .62rem; font-weight: 700; flex-shrink: 0;
}
.sports-ath-name { font-weight: 500; flex: 1; }
.sports-ath-info { font-size: .7rem; color: #94A3B8; }
.sports-ath-modal-empty {
  text-align: center; padding: 40px 16px;
}
.sports-ath-modal-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.sports-ath-modal-empty-title { font-size: .9rem; font-weight: 600; color: #94A3B8; margin-bottom: 4px; }
.sports-ath-modal-empty-sub { font-size: .75rem; color: #CBD5E1; }

/* ── Responsive (sports-page) ── */
@media (max-width: 900px) {
  .sports-team-legend {
    grid-template-columns: repeat(2, 1fr);
  }

  .sports-hero-inner {
    flex-direction: column;
  }

  .sports-hero-right {
    align-items: flex-start;
    width: 100%;
  }

  .hero-colors-ring {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .sports-hero {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .sports-hero-title { font-size: 1.4rem; }

  .sports-team-legend {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .sports-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .sports-search-wrap {
    max-width: 100%;
    min-width: 0;
  }

  .sports-filter-bar { width: 100%; }

  .sports-filter-btn {
    flex: 1;
    justify-content: center;
    min-width: 0;
    padding: 10px 12px;
  }

  .sports-main-grid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .sports-team-legend {
    grid-template-columns: 1fr;
  }

  .sports-main-grid {
    grid-template-columns: 1fr;
  }

  .sport-card-color-bars {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .sports-hero-title { font-size: 1.2rem; }

  .sports-hero-stats { gap: 6px; }

  .hero-stat-pill {
    flex: 1;
    padding: 8px 10px;
    min-width: 56px;
  }
}
.schedule-filter-bar {
  display:flex;gap:6px;margin-bottom:14px;flex-wrap:wrap;align-items:center;
}
.sched-filter-btn {
  display:inline-flex;align-items:center;gap:5px;
  padding:6px 14px;border-radius:20px;font-size:.76rem;font-weight:600;
  border:1.5px solid #E2E8F0;cursor:pointer;
  transition:all .18s cubic-bezier(.4,0,.2,1);
  background:#fff;color:#64748B;white-space:nowrap;
}
.sched-filter-btn:hover { border-color:#64748B;color:#1E293B; }
.sched-filter-btn.active.all {
  background:linear-gradient(135deg,#334155,#1E293B);color:#fff;border-color:transparent;
  box-shadow:0 3px 8px rgba(30,41,59,.25);
}
.sched-filter-btn.active.live {
  background:linear-gradient(135deg,#EF4444,#DC2626);color:#fff;border-color:transparent;
  box-shadow:0 3px 8px rgba(239,68,68,.3);
}
.sched-filter-btn.active.upcoming {
  background:linear-gradient(135deg,#2563EB,#1D4ED8);color:#fff;border-color:transparent;
  box-shadow:0 3px 8px rgba(37,99,235,.3);
}
.sched-filter-btn.active.completed {
  background:linear-gradient(135deg,#16A34A,#15803D);color:#fff;border-color:transparent;
  box-shadow:0 3px 8px rgba(22,163,74,.25);
}
.sched-filter-count {
  display:inline-flex;align-items:center;justify-content:center;
  min-width:18px;height:18px;padding:0 4px;
  border-radius:9px;font-size:.62rem;font-weight:700;
  background:rgba(255,255,255,.22);color:inherit;
}
.sched-filter-btn:not(.active) .sched-filter-count {
  background:#F1F5F9;color:#64748B;
}
.live-dot-sm {
  width:6px;height:6px;border-radius:50%;background:#EF4444;flex-shrink:0;
  animation:liveSmDot 1s ease-in-out infinite;
}
@keyframes liveSmDot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.3)} }

.sched-match-card {
  background:#fff;border-radius:12px;
  border:1.5px solid #E2E8F0;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
  overflow:hidden;margin-bottom:10px;
  transition:box-shadow .18s, border-color .18s;
  animation:cardEntrance .35s ease both;
}
.sched-match-card:hover {
  box-shadow:0 5px 16px rgba(0,0,0,.1);
  border-color:rgba(37,99,235,.2);
}
.sched-match-card.status-live   { border-left:4px solid #EF4444; }
.sched-match-card.status-completed { border-left:4px solid #22C55E; }
.sched-match-card.status-pending   { border-left:4px solid #E2E8F0; }

.sched-card-header {
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 14px 8px;border-bottom:1px solid #F1F5F9;flex-wrap:wrap;gap:6px;
}
.sched-card-sport {
  display:flex;align-items:center;gap:6px;
  font-size:.8rem;font-weight:700;color:#1E293B;
}
.sched-card-round {
  font-size:.65rem;padding:2px 8px;border-radius:8px;
  font-weight:600;background:#F1F5F9;color:#475569;
}
.sched-card-round.final   { background:#FEF3C7;color:#B45309; }
.sched-card-round.semi    { background:#EFF6FF;color:#1D4ED8; }
.sched-card-round.third   { background:#F0FDF4;color:#15803D; }
.sched-status-pill {
  display:inline-flex;align-items:center;gap:4px;
  font-size:.65rem;font-weight:700;padding:3px 9px;border-radius:9px;
}
.sched-status-pill.live      { background:#FEF2F2;color:#DC2626; }
.sched-status-pill.upcoming  { background:#EFF6FF;color:#2563EB; }
.sched-status-pill.completed { background:#F0FDF4;color:#15803D; }
.sched-card-time {
  font-size:.68rem;color:#94A3B8;
  display:flex;align-items:center;gap:4px;
}

.sched-vs-row {
  display:flex;align-items:center;gap:10px;padding:12px 14px;
}
.sched-vs-team {
  flex:1;display:flex;align-items:center;gap:8px;min-width:0;
}
.sched-vs-team.away { flex-direction:row-reverse;text-align:right; }
.sched-team-color-bar {
  width:4px;height:36px;border-radius:2px;flex-shrink:0;
}
.sched-team-color-bar.red    { background:#EF4444; }
.sched-team-color-bar.blue   { background:#3B82F6; }
.sched-team-color-bar.green  { background:#22C55E; }
.sched-team-color-bar.yellow { background:#EAB308; }
.sched-team-name {
  font-size:.85rem;font-weight:700;color:#1E293B;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.sched-team-name.winner { color:#16A34A; }
.sched-vs-score {
  font-size:1.3rem;font-weight:700;color:#1E293B;
  min-width:60px;text-align:center;flex-shrink:0;
}
.sched-vs-badge {
  font-size:.7rem;font-weight:800;letter-spacing:1px;
  padding:4px 8px;border-radius:8px;
  background:linear-gradient(135deg,#0F172A,#1E293B);color:#fff;
  flex-shrink:0;
}
.sched-vs-badge.live-badge {
  background:linear-gradient(135deg,#EF4444,#DC2626);
  animation:vsBadgePulse 1.5s ease-in-out infinite;
}
@keyframes vsBadgePulse {
  0%,100%{opacity:1} 50%{opacity:.7}
}

.sched-empty-state {
  text-align:center;padding:40px 20px;color:#94A3B8;
}
.sched-empty-state .empty-icon { font-size:2.5rem;margin-bottom:8px;opacity:.6; }
.sched-empty-state .empty-text { font-size:.85rem; }

.sched-group-label {
  font-size: .72rem;
  font-weight: 700;
  color: #64748B;
  letter-spacing: .3px;
  padding: 10px 2px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sched-group-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #E2E8F0, transparent);
  margin-left: 4px;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion:reduce) {
  .sport-item-card, .sports-team-legend-item, .sched-match-card,
  .progress-fill, .sport-item-card::after, .sports-page,
  .hero-orb, .sport-card-stripe::after, .progress-fill::after {
    animation:none !important; transition:none !important;
    opacity:1 !important; transform:none !important;
  }
  .hero-color-dot,.battle-dot,.live-dot-sm,.sched-vs-badge.live-badge {
    animation:none !important;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 1400px) {
  .sports-main-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
  }
}

@media (max-width:1024px) {
  .sports-main-grid { grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); }
  .sports-hero { padding: 24px 26px; }
  .sports-hero-title { font-size: 1.5rem; }
}

@media (max-width:768px) {
  .sports-team-legend { grid-template-columns:repeat(2,1fr); }
  .sports-main-grid   { grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); }
  .sports-hero-title  { font-size: 1.35rem; }
  .sports-hero-stats  { gap: 8px; }
  .hero-stat-pill     { padding: 8px 14px; min-width: 64px; }
  .sports-toolbar     { flex-direction: column; align-items: stretch; }
  .sports-search-wrap { max-width: none; }
  .sports-filter-bar  { justify-content: center; }
}

@media (max-width:600px) {
  .sports-hero        { padding:20px 18px; border-radius: 16px; }
  .sports-main-grid   { grid-template-columns:1fr; gap: 12px; }
  .sport-card-color-bars { grid-template-columns:1fr; }
  .sched-vs-score     { font-size:1.1rem;min-width:48px; }
  .sports-hero-right  { width: 100%; align-items: flex-start; }
  .hero-colors-ring   { width: 100%; justify-content: center; }
  .sport-card-head    { padding: 14px 14px 10px; }
  .sport-card-icon-wrap { width: 46px; height: 46px; font-size: 1.5rem; }
}

@media (max-width:400px) {
  .sports-team-legend { grid-template-columns:1fr 1fr; gap:8px; }
  .sports-filter-btn  { padding:7px 12px;font-size:.72rem; flex: 1; justify-content: center; }
  .sports-filter-bar  { width: 100%; }
  .hero-stat-num      { font-size: 1.15rem; }
}
