﻿/* ============================================================
   JAMSHEDPUR STEELERS â€” Pages Stylesheet
   ============================================================ */

/* ===== PAGE HERO ===== */
.page-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
}

.ph-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a0a00 50%, #0a0a1a 100%);
}

.ph-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(30,94,255,0.2) 0%, transparent 60%);
}

.ph-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30,94,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,94,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

.ph-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  width: 100%;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-accent);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.breadcrumb a { color: var(--primary); transition: var(--transition); }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb i { font-size: 10px; }

.ph-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 80px);
  color: var(--white);
  line-height: 0.9;
  margin-bottom: 16px;
}

.ph-title span {
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ph-subtitle {
  font-family: var(--font-accent);
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
}

/* ===== FOOTER COMPACT ===== */
.footer-bottom-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo-sm {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.6);
}

.footer-nav-sm {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav-sm a {
  font-family: var(--font-accent);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
  transition: var(--transition);
}

.footer-nav-sm a:hover { color: var(--primary); }

/* ===== MANAGEMENT GRID ===== */
.management-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.mgmt-card {
  background: var(--white);
  border-radius: var(--border-r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.mgmt-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }

.mgmt-avatar {
  height: 220px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: rgba(255,255,255,0.3);
}

/* Real photo inside management avatar */
.mgmt-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Grid: 3 equal columns on desktop */
.management-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .management-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .management-grid { grid-template-columns: 1fr; }
}

.mgmt-info { padding: 20px; }
.mgmt-info h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin-bottom: 4px; color: var(--text-primary); }
.mgmt-info span { display: block; font-family: var(--font-accent); font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--primary); margin-bottom: 12px; }
.mgmt-info p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ===== FULL SQUAD GRID ===== */
.squad-page-section {
  background: #05070a;
}

.full-squad-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: start;
}

.full-player-card {
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.full-player-card.featured-card {
  border-color: rgba(30,94,255,0.55);
  box-shadow: 0 0 24px rgba(30,94,255,0.35), 0 0 0 1px rgba(30,94,255,0.25);
}

.full-player-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  border-color: rgba(30,94,255,0.35);
}

.full-player-card.featured-card:hover {
  box-shadow: 0 0 28px rgba(30,94,255,0.45), 0 16px 40px rgba(0,0,0,0.4);
}

/* Light photo area — top half */
.fpc-header {
  height: 220px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f0f2f6 0%, #e4e8ef 100%);
  border-radius: 16px 16px 0 0;
}

.fpc-photo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  z-index: 0;
}

/* Fade photo into dark body */
.fpc-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to bottom,
    rgba(15,23,42,0) 0%,
    rgba(15,23,42,0.55) 55%,
    #0f172a 100%);
  z-index: 1;
  pointer-events: none;
}

.fpc-number,
.fpc-badges,
.badge-wk,
.badge-intl {
  position: absolute;
  z-index: 2;
}

.fpc-number {
  top: 10px;
  left: 12px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: rgba(0,0,0,0.08);
  line-height: 1;
}

.fpc-badges {
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.fpc-header .badge-wk {
  top: 10px;
  right: 10px;
}

.badge-captain, .badge-pots, .badge-wk, .badge-intl {
  font-family: var(--font-accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.badge-captain { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; }
.badge-pots { background: linear-gradient(135deg, #9333ea, #7e22ce); color: #fff; }
.badge-wk { background: rgba(34,197,94,0.9); color: #fff; border: none; }

/* Dark info panel — bottom half */
.fpc-body {
  padding: 14px 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0f172a;
}

.fpc-body h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.fpc-role {
  display: inline-block;
  background: #1e293b;
  color: #38bdf8;
  font-family: var(--font-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.fpc-nat {
  display: block;
  font-family: var(--font-accent);
  font-size: 10px;
  color: #94a3b8;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
  line-height: 1.45;
}

.fpc-nat i { color: #64748b; margin-right: 2px; }

.fpc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 12px;
  margin-top: auto;
}

.fs-item { text-align: center; min-width: 0; }
.fs-item span {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #38bdf8;
  line-height: 1.1;
}
.fs-item small {
  display: block;
  font-size: 9px;
  color: #64748b;
  letter-spacing: 0.4px;
  margin-top: 4px;
  text-transform: capitalize;
}

[data-theme="light"] .squad-page-section { background: #0a0f1a; }
[data-theme="light"] .full-player-card { background: #0f172a; border-color: rgba(255,255,255,0.08); }
[data-theme="light"] .fpc-body h3 { color: #fff; }

/* ===== FIXTURE TABS ===== */
.fixture-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--light-gray);
  padding-bottom: 0;
}

.ftab {
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 12px 24px;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
}

.ftab:hover { color: var(--primary); }
.ftab.active { color: var(--primary); border-bottom-color: var(--primary); }

.fixture-panel { display: none; }
.fixture-panel.active { display: block; }

/* ===== FIXTURE LIST ===== */
.fixture-list { display: flex; flex-direction: column; gap: 16px; }

.fixture-item {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-r);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.upcoming-item { border-left: 4px solid var(--primary); }
.win-item { border-left: 4px solid #22c55e; }
.loss-item { border-left: 4px solid #ef4444; }

.fixture-item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }

.fi-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  text-align: center;
}

.fi-day { font-family: var(--font-display); font-size: 32px; color: var(--text-primary); line-height: 1; }
.fi-month { font-family: var(--font-accent); font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: 2px; }
.fi-year { font-family: var(--font-accent); font-size: 10px; color: var(--mid-gray); }

.fi-match { flex: 1; }

.fi-venue {
  font-family: var(--font-accent);
  font-size: 12px;
  color: var(--mid-gray);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fi-venue i { color: var(--primary); }

.fi-teams {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fi-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  min-width: 100px;
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.fi-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--white);
  font-weight: 900;
}

/* fi-logo backgrounds — old */
.js-bg  { background: var(--gradient-primary); }
.rr-bg  { background: linear-gradient(135deg, #004d00, #006600); }
.dd-bg  { background: linear-gradient(135deg, #00008b, #0000cd); }
.kk-bg  { background: linear-gradient(135deg, #4b0082, #9400d3); }
.mb-bg  { background: linear-gradient(135deg, #005f99, #004d80); }
.ll-bg  { background: linear-gradient(135deg, #8b4513, #a0522d); }
.ch-bg  { background: linear-gradient(135deg, #8b0000, #b00000); }
/* JT20 teams */
.rt-bg  { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.cr-bg  { background: linear-gradient(135deg, #6b21a8, #a855f7); }
.ss-bg  { background: linear-gradient(135deg, #15803d, #22c55e); }
.ksk-bg { background: linear-gradient(135deg, #c2410c, #f97316); }

/* ===== JT20 LEAGUE BANNER ===== */
.jt20-banner {
  background: linear-gradient(135deg, #0a0a2e 0%, #0d1a5e 50%, #0a0a2e 100%);
  border-top: 1px solid rgba(30,94,255,0.2);
  border-bottom: 1px solid rgba(30,94,255,0.2);
  padding: 14px 0;
}
.jt20-banner .container {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.jt20-icon { font-size: 22px; color: var(--gold); }
.jt20-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.jt20-label {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
}
.jt20-dates {
  font-family: var(--font-accent);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.jt20-dates i { color: var(--primary); }
.jt20-badge {
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: rgba(30,94,255,0.15);
  border: 1px solid rgba(30,94,255,0.35);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* fi-dow (day of week under month) */
.fi-dow {
  font-family: var(--font-accent);
  font-size: 10px;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ===== FULL SCHEDULE TABLE ===== */
.sched-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--bg-light);
  border: 1px solid rgba(30,94,255,0.15);
  border-radius: 8px;
}
.sleg {
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px 4px 6px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
}
.js-t  { background: rgba(30,94,255,0.15); color: #60a5fa; border: 1px solid rgba(30,94,255,0.3); }
.rt-t  { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.dd-t  { background: rgba(251,191,36,0.12); color: #fbbf24; border: 1px solid rgba(251,191,36,0.25); }
.cr-t  { background: rgba(168,85,247,0.12); color: #c084fc; border: 1px solid rgba(168,85,247,0.25); }
.ss-t  { background: rgba(34,197,94,0.12); color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.ksk-t { background: rgba(249,115,22,0.12); color: #fb923c; border: 1px solid rgba(249,115,22,0.25); }

.sched-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(30,94,255,0.15);
  background: var(--white);
}
.sched-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 14px;
  min-width: 620px;
}
.sched-table thead tr {
  background: rgba(30,94,255,0.15);
}
.sched-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
}
.sched-table tbody tr {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.2s;
}
.sched-table tbody tr:hover {
  background: rgba(30,94,255,0.05);
}
.sched-table td {
  padding: 11px 16px;
  vertical-align: middle;
  color: var(--text-primary);
}
[data-theme="light"] .sched-table-wrap {
  background: #ffffff;
  border-color: #e2e6ec;
}
[data-theme="light"] .sched-table tbody tr {
  border-bottom-color: #e2e6ec;
}
[data-theme="light"] .sched-table tbody tr:hover {
  background: rgba(30,94,255,0.04);
}
[data-theme="light"] .sched-legend {
  background: #f4f6fb;
}
/* Highlighted JS rows */
.js-row { background: rgba(30,94,255,0.06); }
.js-row:hover { background: rgba(30,94,255,0.10) !important; }

/* Section dividers */
.sched-divider td {
  background: rgba(180,130,0,0.10);
  color: #b8860b !important;
  font-family: var(--font-accent);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 12px;
  text-align: center;
  padding: 9px 16px;
}
.sched-divider td i { margin-right: 8px; }
.final-row td { background: rgba(180,130,0,0.16) !important; }

/* Knockout row */
.knockout-row td { color: var(--text-secondary); font-style: italic; }

.sched-mnum {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.sched-date { white-space: nowrap; font-size: 13px; color: var(--text-primary); }
.sched-day  { white-space: nowrap; font-size: 12px; color: var(--text-secondary); }
.sched-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.sched-vs-cell { text-align: center; }
.sched-vs {
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 1px;
}
/* Image logos — fi-logo (Our Matches cards) */
.fi-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 2px solid rgba(30,94,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.fi-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

/* Image logos — Full Schedule table */
.sched-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--bg-light);
  border: 1px solid rgba(30,94,255,0.12);
  padding: 3px;
  flex-shrink: 0;
}

/* Legend images */
.sleg img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
}

.js-highlight { color: var(--primary); font-size: 14px; font-weight: 700; }

.sched-time {
  white-space: nowrap;
  font-family: var(--font-accent);
  font-size: 12px;
  color: var(--text-secondary);
}
.sched-time i { color: var(--primary); margin-right: 4px; }

.sched-note {
  margin-top: 14px;
  font-family: var(--font-accent);
  font-size: 12px;
  color: var(--text-light);
  text-align: right;
}
.sched-note i { margin-right: 5px; }

/* ===== NO RESULTS MESSAGE ===== */
.no-results-msg {
  text-align: center;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.nrm-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(30,94,255,0.1);
  border: 2px solid rgba(30,94,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--primary);
}
.no-results-msg h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}
.no-results-msg p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 420px;
}
.nrm-countdown {
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  background: rgba(30,94,255,0.12);
  border: 1px solid rgba(30,94,255,0.3);
  border-radius: 20px;
  color: var(--primary);
}
.nrm-countdown strong { color: var(--gold); }

/* Light mode — only override what still needs adjustment */
[data-theme="light"] .jt20-banner { background: #0d1a5e; }

/* Responsive */
@media (max-width: 640px) {
  .jt20-banner .container { gap: 10px; }
  .jt20-badge { display: none; }
  .sched-day { display: none; }
}

.fi-tag {
  font-size: 9px;
  letter-spacing: 2px;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-accent);
  font-weight: 700;
}

.home-tag { background: rgba(30,94,255,0.15); color: var(--primary); }
.away-tag { background: rgba(59,130,246,0.15); color: #60a5fa; }

.fi-vs { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.fi-vs-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(30,94,255,0.1);
  border: 2px solid rgba(30,94,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--primary);
}

.fi-time {
  font-family: var(--font-accent);
  font-size: 11px;
  color: var(--mid-gray);
  white-space: nowrap;
}

.fi-score-block { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }

.fi-scores { display: flex; flex-direction: column; align-items: center; gap: 2px; }

.fi-score { font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: var(--text-primary); }
.fi-score.winner { color: #22c55e; }
.fi-vs-sm { font-size: 10px; color: var(--mid-gray); font-family: var(--font-accent); }

.fi-result-badge {
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 4px;
}

.win-b { background: rgba(34,197,94,0.15); color: #22c55e; }
.loss-b { background: rgba(239,68,68,0.15); color: #ef4444; }
.live-b { background: rgba(239,68,68,0.15); color: #ef4444; animation: livePulse 1.2s ease-in-out infinite; }

.ch-sync-note {
  font-family: var(--font-accent);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ch-sync-note a { color: var(--primary); font-weight: 600; }

.ch-live-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  margin-bottom: 20px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 10px;
  font-family: var(--font-accent);
  font-size: 14px;
}
.ch-live-banner a { margin-left: auto; color: var(--primary); font-weight: 700; font-size: 13px; }
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  animation: livePulse 1.2s ease-in-out infinite;
}
@keyframes livePulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.85); } }

.fi-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.btn-matchcentre {
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border: 2px solid rgba(30,94,255,0.3);
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-matchcentre:hover { background: var(--gradient-primary); color: var(--white); }

.fi-match-num { font-family: var(--font-accent); font-size: 11px; color: var(--mid-gray); letter-spacing: 1px; }

/* ===== FIXTURES CALENDAR ===== */
.fixtures-calendar { display: flex; flex-direction: column; gap: 32px; }

.cal-month h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(30,94,255,0.2);
  display: flex;
  align-items: center;
  gap: 12px;
}

.cal-month h3::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 4px;
}

.cal-matches { display: flex; gap: 12px; flex-wrap: wrap; }

.cal-match {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 130px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.cal-match:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cal-match.win { border-top: 3px solid #22c55e; }
.cal-match.loss { border-top: 3px solid #ef4444; }
.cal-match.upcoming-cal { border-top: 3px solid var(--primary); }

.cm-num { font-family: var(--font-accent); font-size: 10px; color: var(--mid-gray); letter-spacing: 1px; }
.cal-match span { font-family: var(--font-accent); font-size: 12px; font-weight: 600; color: var(--text-primary); }

.cm-res {
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  width: fit-content;
}

.cal-match.win .cm-res { background: rgba(34,197,94,0.15); color: #22c55e; }
.cal-match.loss .cm-res { background: rgba(239,68,68,0.15); color: #ef4444; }
.cm-res.up { background: rgba(30,94,255,0.1); color: var(--primary); }

/* ===== STATS PAGE ===== */
.overview-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.ov-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--border-r);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
}

.ov-card:hover { background: rgba(255,255,255,0.07); transform: translateY(-4px); }

.ov-card i { font-size: 32px; margin-bottom: 12px; display: block; }

.ov-num {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.ov-label {
  font-family: var(--font-accent);
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
}

/* STATS TABS */
.stats-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--light-gray);
}

.stab {
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 12px 24px;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
}

.stab:hover { color: var(--primary); }
.stab.active { color: var(--primary); border-bottom-color: var(--primary); }

.stats-panel { display: none; }
.stats-panel.active { display: block; }

/* Stats Table */
.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-accent);
  min-width: 700px;
}

.stats-table thead th {
  background: rgba(30,94,255,0.06);
  color: var(--mid-gray);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 14px;
  text-align: center;
  border-bottom: 2px solid var(--light-gray);
}

.stats-table thead th:nth-child(2) { text-align: left; }

.stats-table tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--light-gray);
  text-align: center;
  font-size: 14px;
  color: var(--text-primary);
}

.stats-table tbody td:nth-child(2) { text-align: left; }

.stats-table tbody tr:hover td { background: rgba(30,94,255,0.03); }

.stats-table .highlight-row td { background: rgba(30,94,255,0.06); }

.player-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: var(--font-accent);
  font-size: 10px;
  font-weight: 700;
  margin-right: 6px;
  flex-shrink: 0;
}

.ar-b { background: rgba(30,94,255,0.15); color: var(--primary); border: 1px solid rgba(30,94,255,0.3); }
.bat-b { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.bowl-b { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }

.captain-badge, .keeper-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
}

.captain-badge { background: rgba(30,94,255,0.15); color: var(--primary); }
.keeper-badge { background: rgba(34,197,94,0.15); color: #22c55e; }

/* ===== NEWS PAGE ===== */
.featured-news-full {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  border-radius: var(--border-r-lg);
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--light-gray);
  min-height: 320px;
}

.fnf-img {
  position: relative;
}

.fnf-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.3), transparent);
}

.fnf-date {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--font-accent);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.5);
  padding: 4px 10px;
  border-radius: 4px;
}

.fnf-content {
  background: var(--white);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fnf-tags { display: flex; gap: 8px; margin-bottom: 16px; }

.fnf-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 16px;
}

.fnf-text { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; }

.fnf-meta {
  display: flex;
  gap: 20px;
  font-family: var(--font-accent);
  font-size: 12px;
  color: var(--mid-gray);
  margin-top: 8px;
}

.fnf-meta span { display: flex; align-items: center; gap: 6px; }
.fnf-meta i { color: var(--primary); }

/* News Filters */
.news-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.nf-btn {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 18px;
  border-radius: 25px;
  border: 2px solid var(--light-gray);
  color: var(--text-secondary);
  background: none;
  cursor: pointer;
  transition: var(--transition);
}

.nf-btn:hover, .nf-btn.active {
  background: var(--gradient-primary);
  border-color: var(--primary);
  color: var(--white);
}

/* News Page Grid */
.news-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.np-card {
  background: var(--white);
  border-radius: var(--border-r-lg);
  overflow: hidden;
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.np-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }

.np-img { height: 180px; }

.np-body { padding: 20px; }

.np-tags { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }

.np-date { font-family: var(--font-accent); font-size: 12px; color: var(--mid-gray); }

.np-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.np-excerpt { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }

.np-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--light-gray);
  font-family: var(--font-accent);
  font-size: 12px;
  color: var(--mid-gray);
}

.np-footer span { display: flex; align-items: center; gap: 6px; }
.np-footer i { color: var(--primary); }

/* ===== GALLERY PAGE ===== */
.gallery-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.gf-btn {
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 2px solid var(--light-gray);
  color: var(--text-secondary);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.gf-btn:hover, .gf-btn.active {
  background: var(--gradient-primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-fire);
}

/* Gallery Masonry */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}

.gm-item { border-radius: var(--border-r); overflow: hidden; }
.gm-item.large { grid-column: span 2; }
.gm-item.tall { grid-row: span 2; }
.gm-item.wide { grid-column: span 2; }

.gm-inner {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.gm-inner:hover { transform: scale(1.03); }
.gm-inner:hover .gm-overlay { opacity: 1; }

/* Gallery backgrounds */
.gm-1 { background: linear-gradient(135deg, #1a0500 0%, #8b2500 40%, #1e5eff 100%); }
.gm-2 { background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #0a192f 100%); }
.gm-3 { background: linear-gradient(135deg, #1a1a00 0%, #4a4a00 50%, #aaaa00 100%); }
.gm-4 { background: linear-gradient(135deg, #1a0000 0%, #4a0000 50%, #cc0000 100%); }
.gm-5 { background: linear-gradient(135deg, #001a00 0%, #005500 50%, #00aa00 100%); }
.gm-6 { background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%); }
.gm-7 { background: linear-gradient(135deg, #1a1500 0%, #4a3f00 50%, #c8a800 100%); }
.gm-8 { background: linear-gradient(135deg, #0a001a 0%, #2a0050 100%); }
.gm-9 { background: linear-gradient(135deg, #001a1a 0%, #00404a 50%, #006666 100%); }
.gm-10 { background: linear-gradient(135deg, #1a0a00 0%, #4a2a00 50%, #c06000 100%); }

.gm-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gm-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gm-cat {
  font-family: var(--font-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  text-transform: uppercase;
}

.gm-info h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.gm-date {
  font-family: var(--font-accent);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

.gm-expand {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  align-self: flex-end;
}

.gm-expand:hover { background: var(--primary); border-color: var(--primary); }

/* Gallery Lightbox */
.gallery-lb {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
}

.gallery-lb.open { display: flex; }

.glb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.95);
  cursor: pointer;
}

.glb-content {
  position: relative;
  z-index: 1;
  width: 80vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.glb-close, .glb-prev, .glb-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.glb-close { top: -20px; right: -20px; background: var(--primary); border-color: var(--primary); }
.glb-prev { left: -60px; top: 50%; transform: translateY(-50%); }
.glb-next { right: -60px; top: 50%; transform: translateY(-50%); }

.glb-close:hover, .glb-prev:hover, .glb-next:hover {
  background: var(--primary);
  transform: scale(1.1);
}

.glb-prev:hover, .glb-next:hover { transform: translateY(-50%) scale(1.1); }

.glb-visual {
  width: 100%;
  height: 70vh;
  border-radius: var(--border-r);
  overflow: hidden;
}

.glb-caption {
  font-family: var(--font-accent);
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
  text-align: center;
}

/* ===== RESPONSIVE PAGES ===== */
@media (max-width: 1200px) {
  .full-squad-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .featured-news-full { grid-template-columns: 1fr; }
  .fnf-img { height: 200px; }
  .gallery-masonry { grid-template-columns: repeat(2, 1fr); }
  .gm-item.large, .gm-item.wide { grid-column: span 1; }
  .gm-item.tall { grid-row: span 1; }
  .full-squad-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .fixture-item { flex-direction: column; align-items: flex-start; }
  .fi-actions { width: 100%; flex-direction: row; justify-content: space-between; }
}

@media (max-width: 640px) {
  .ph-title { font-size: 44px; }
  .full-squad-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .fpc-header { height: 200px; min-height: 200px; }
  .fpc-body h3 { font-size: 14px; }
  .fs-item span { font-size: 14px; }
  .fs-item small { font-size: 8px; }
  .gallery-masonry { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .overview-cards { grid-template-columns: repeat(2, 1fr); }
  .news-page-grid { grid-template-columns: 1fr; }
  .management-grid { grid-template-columns: 1fr; }
  .glb-prev { left: -20px; }
  .glb-next { right: -20px; }
}

/* ===== LIGHT MODE â€” PAGES ===== */

/* Management cards */
[data-theme="light"] .mgmt-card {
  background: #ffffff;
  border-color: #e2e6ec;
}
[data-theme="light"] .mgmt-info h3 { color: var(--text-primary); }
[data-theme="light"] .mgmt-info p { color: var(--text-secondary); }

/* Fixture items */
[data-theme="light"] .fixture-item {
  background: #ffffff;
  border-color: #e2e6ec;
}
[data-theme="light"] .fi-date .fi-day { color: var(--text-primary); }
[data-theme="light"] .fi-team span { color: var(--text-primary); }
[data-theme="light"] .fi-venue { color: #777; }
[data-theme="light"] .fi-score { color: var(--text-primary); }
[data-theme="light"] .fi-vs-sm { color: #999; }

/* Calendar */
[data-theme="light"] .cal-match {
  background: #ffffff;
  border-color: #e2e6ec;
}
[data-theme="light"] .cal-match span { color: var(--text-primary); }
[data-theme="light"] .cal-month h3 { color: var(--text-primary); }

/* Stats table */
[data-theme="light"] .stats-table thead th {
  background: rgba(30,94,255,0.05);
  color: var(--text-secondary);
  border-bottom-color: #e2e6ec;
}
[data-theme="light"] .stats-table tbody td {
  color: var(--text-primary);
  border-bottom-color: #f0f2f5;
}
[data-theme="light"] .stats-table tbody tr:hover td { background: rgba(30,94,255,0.03); }
[data-theme="light"] .stats-table .highlight-row td { background: rgba(30,94,255,0.05); }

/* Stats tabs */
[data-theme="light"] .stats-tabs { border-bottom-color: #e2e6ec; }
[data-theme="light"] .stab { color: var(--text-secondary); }
[data-theme="light"] .stab:hover,
[data-theme="light"] .stab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Fixture tabs */
[data-theme="light"] .fixture-tabs { border-bottom-color: #e2e6ec; }
[data-theme="light"] .ftab { color: var(--text-secondary); }
[data-theme="light"] .ftab:hover,
[data-theme="light"] .ftab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* News page */
[data-theme="light"] .fnf-content {
  background: #ffffff;
}
[data-theme="light"] .fnf-title { color: var(--text-primary); }
[data-theme="light"] .fnf-text { color: var(--text-secondary); }
[data-theme="light"] .fnf-meta { color: #777; }
[data-theme="light"] .news-filter-bar .nf-btn {
  background: #ffffff;
  border-color: #e2e6ec;
  color: var(--text-secondary);
}
[data-theme="light"] .np-card {
  background: #ffffff;
  border-color: #e2e6ec;
}
[data-theme="light"] .np-title { color: var(--text-primary); }
[data-theme="light"] .np-excerpt { color: var(--text-secondary); }
[data-theme="light"] .np-footer { border-top-color: #e2e6ec; color: #777; }

/* Gallery filter */
[data-theme="light"] .gf-btn {
  background: #ffffff;
  border-color: #e2e6ec;
  color: var(--text-secondary);
}

/* Overview cards (stats page) */
[data-theme="light"] .ov-card {
  background: rgba(0,0,0,0.03);
  border-color: rgba(255,255,255,0.1);
}
[data-theme="light"] .ov-num { color: #ffffff; }
[data-theme="light"] .ov-label { color: rgba(255,255,255,0.5); }

/* Breadcrumb */
[data-theme="light"] .breadcrumb { color: rgba(255,255,255,0.5); }


