:root {
  --primary-bg: #033c3d;
  --secondary-bg: #002d2e;
  --site-bg: #e8eef0;
  --primary-text-color: #1a1a1a;
  --title-color: #002d2e;
  --colored-title: #00cc99;
  --widgets-bg: #07888a;
  --primary-widgets-bg: #ffffff;
  --secondary-border-color: #00cc99;
  --ld-more-btn-color: #00cc99;
  --match-primary-bg: #e7f5f5;
  --match-secondary-bg: #d5f6ec;
  --match-ordinary-bg: #d9d9d9;
  --primary-light-bg: #f2f5f5;
  --player-link-color: #07888a;
  --widgets-title-bg: #033c3d;
  --card-bg: #fff;
  --live-red: #ff253a;
  --muted: #5f6b6b;
  --border: #d5e0e0;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --shadow-soft: 0 8px 24px rgba(0, 45, 46, 0.08);
  --radius: 4px;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body,
.site-body {
  font-family: var(--font);
  background:
    radial-gradient(circle at top left, rgba(0, 204, 153, 0.08), transparent 28%),
    linear-gradient(180deg, #edf3f3 0%, var(--site-bg) 40%, #e3ecec 100%);
  color: var(--primary-text-color);
  line-height: 1.5;
  padding-bottom: 72px;
  overflow-x: hidden;
  min-width: 0;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--colored-title); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.container {
  width: min(1200px, calc(100% - 24px));
  margin: 0 auto;
}

/* Top bar */
.top-bar {
  background: var(--secondary-bg);
  color: #fff;
  font-size: 12px;
  padding: 6px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.top-bar a { color: #ccf5eb; }
.lang-switch {
  background: var(--colored-title);
  color: var(--secondary-bg) !important;
  padding: 2px 10px;
  border-radius: 2px;
  font-weight: 700;
}

/* Header */
.site-header {
  background: var(--primary-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--colored-title), #07888a);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--secondary-bg);
  font-size: 16px;
  letter-spacing: 0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.brand-tag {
  font-size: 11px;
  font-weight: 600;
  color: #9adfd0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  place-items: center;
  gap: 5px;
  flex-direction: column;
  padding: 10px 9px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #fff;
  padding: 10px 12px;
  display: block;
  font-size: 14px;
  font-weight: 600;
  border-radius: 3px;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(0,204,153,.18);
  color: var(--colored-title);
}

.nav-item { position: relative; }

.nav-item .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--secondary-bg);
  border-top: 2px solid var(--colored-title);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  z-index: 50;
}

.nav-item:hover .dropdown { display: block; }
.nav-item .dropdown a {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Live ticker */
.live-ticker {
  background: linear-gradient(90deg, #fff 0%, #f3fbf9 50%, #fff 100%);
  border-bottom: 2px solid var(--colored-title);
  padding: 8px 0;
}

.live-ticker .container,
.live-ticker-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  align-items: center;
}

.live-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--match-primary-bg);
  border: 1px solid #b8e4e4;
  border-radius: 4px;
  padding: 8px 12px;
  min-width: 0;
  font-size: 13px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.live-chip:hover {
  border-color: var(--colored-title);
  transform: translateY(-1px);
}
.live-chip .chip-score { font-weight: 700; color: var(--title-color); }
.live-chip .chip-vs { color: var(--muted); font-size: 11px; text-transform: uppercase; }

.live-chip .badge-live,
.badge-live {
  display: inline-block;
  background: var(--live-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  margin-right: 2px;
  animation: pulse 1.4s infinite;
  letter-spacing: 0.04em;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

/* Layout grid */
.page-wrap { padding: 18px 0 40px; }

.home-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}

.left-col,
.center-col,
.right-col { min-width: 0; }

.widget {
  background: var(--card-bg);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(3, 60, 61, 0.06);
}

.widget-head {
  background: var(--widgets-title-bg, var(--primary-bg));
  color: #fff;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-head .see-all {
  color: var(--colored-title);
  font-size: 12px;
  font-weight: 600;
}

.widget-body { padding: 12px; }

.section-title {
  color: var(--title-color);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--colored-title);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.section-title a {
  font-size: 13px;
  color: var(--ld-more-btn-color);
  font-weight: 600;
}

/* Trending */
.trending-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.trending-item:last-child { border-bottom: 0; }

.trending-item img {
  width: 70px;
  height: 52px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.trending-item h4 {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--title-color);
}

.trending-item .meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* News cards */
.featured-story {
  position: relative;
  display: block;
  margin-bottom: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-soft);
}

.featured-story img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  opacity: .88;
  display: block;
  transition: transform 0.45s ease;
}
.featured-story:hover img { transform: scale(1.04); }

.featured-story .overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 18px 18px;
  background: linear-gradient(transparent, rgba(0,45,46,.95));
  color: #fff;
}

.featured-story h2 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.featured-story p { font-size: 14px; opacity: .9; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.news-card {
  background: #fff;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  overflow: hidden;
  border: 1px solid #ececec;
}

.news-card img {
  width: 140px;
  height: 100%;
  min-height: 110px;
  object-fit: cover;
}

.news-card .content { padding: 10px 10px 10px 0; }

.news-card h3 {
  font-size: 15px;
  line-height: 1.35;
  color: var(--title-color);
  margin-bottom: 6px;
}

.news-card p {
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .meta {
  font-size: 11px;
  color: var(--player-link-color);
  margin-top: 8px;
}

.news-list-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.news-list-item img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}

.news-list-item h3 {
  font-size: 16px;
  color: var(--title-color);
  margin-bottom: 4px;
}

/* Match cards */
.match-card {
  background: linear-gradient(180deg, #f4fbfb 0%, var(--match-primary-bg) 100%);
  border: 1px solid #b8e4e4;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.match-card:hover {
  border-color: #8fd4c8;
  box-shadow: 0 10px 28px rgba(0, 45, 46, 0.12);
}
.match-card.status-live {
  border-color: #f5a5a5;
  background: linear-gradient(180deg, #fff8f8 0%, #fdecea 100%);
}

.match-card .match-head {
  background: linear-gradient(90deg, var(--widgets-bg), #056c6e);
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.match-series {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-card .match-body { padding: 12px; }

.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.team-block strong { display: block; font-size: 18px; color: var(--title-color); }
.team-block span { font-size: 12px; color: var(--muted); }
.team-flag {
  display: block;
  margin: 0 auto 4px;
  width: 28px;
  height: 20px;
  object-fit: cover;
  border: 1px solid #ddd;
}
.vs-badge {
  background: var(--primary-bg);
  color: var(--colored-title);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
}

.match-result {
  margin-top: 10px;
  background: var(--match-secondary-bg);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--title-color);
  text-align: center;
}

.match-card-link { display: block; color: inherit; text-decoration: none; }
.team-score { margin-top: 6px; font-weight: 700; font-size: 14px; color: var(--title-color); }
.match-footer-meta {
  text-align: center;
  font-size: 12px;
  margin-top: 8px;
  color: #666;
  line-height: 1.4;
}
.match-status-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  background: rgba(255,255,255,0.15);
}
.match-status-pill.live { background: #c62828; color: #fff; }
.match-status-pill.upcoming { background: #1565c0; color: #fff; }
.match-status-pill.result { background: #2e7d32; color: #fff; }

.match-mini-innings {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #c5e0e0;
  font-size: 11px;
  color: #555;
}

/* Match detail / scorecard */
.match-detail { margin-bottom: 24px; }

.match-status-banner {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: #e8f6f4;
  border-left: 4px solid var(--colored-title, #00cc99);
  font-weight: 600;
  color: var(--title-color);
  font-size: 14px;
}
.match-status-banner.live { background: #fdecea; border-left-color: #c62828; }
.match-status-banner.result { background: #e8f5e9; border-left-color: #2e7d32; }

.live-overlay {
  background: #fff;
  border: 1px solid #e0ecec;
  margin-bottom: 16px;
  padding: 14px;
}
.overlay-rates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.overlay-rates > div {
  background: #f4faf9;
  border: 1px solid #d8ecea;
  padding: 10px 12px;
  text-align: center;
}
.overlay-rates span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #688;
  margin-bottom: 2px;
}
.overlay-rates strong {
  font-size: 18px;
  color: var(--title-color);
}
.overlay-rates small { font-size: 11px; font-weight: 600; color: #666; }
.last-over { margin-bottom: 14px; }
.last-over .balls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.last-over .ball {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 50%;
  background: var(--widgets-bg, #033c3d);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.overlay-players {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}
.overlay-bat h3,
.overlay-bowl h3 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #688;
}
.ov-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eef3f3;
}
.ov-player img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
}
.ov-player strong { display: block; font-size: 13px; color: var(--title-color); }
.ov-player span { font-size: 12px; color: #666; }

@media (max-width: 640px) {
  .overlay-players { grid-template-columns: 1fr; }
}

.match-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.meta-item {
  background: #fff;
  border: 1px solid #e0ecec;
  padding: 12px 14px;
}
.meta-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #788;
  margin-bottom: 4px;
}
.meta-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--title-color);
  line-height: 1.35;
}
.meta-sub {
  display: block;
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.score-section {
  background: #fff;
  border: 1px solid #e0ecec;
  margin-bottom: 14px;
}
.score-section-title {
  margin: 0;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--widgets-bg, #033c3d);
}
.innings-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  background: #dceaea;
}
.innings-chip {
  background: #f7fbfb;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.innings-chip strong { font-size: 12px; color: #555; font-weight: 600; }
.inn-score { font-size: 18px; font-weight: 800; color: var(--title-color); }
.inn-score small { font-size: 12px; font-weight: 600; color: #666; }
.inn-meta { font-size: 11px; color: #666; }

.score-table-wrap { overflow-x: auto; }
.score-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.score-table th,
.score-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eef3f3;
  text-align: left;
  vertical-align: middle;
}
.score-table thead th {
  background: #f0f7f7;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #566;
  font-weight: 700;
}
.score-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.score-table .player-name { font-weight: 600; color: var(--title-color); white-space: nowrap; }
.score-table .dismissal { color: #777; font-size: 12px; }
.score-table tbody tr:hover { background: #f9fcfc; }

.squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
}
.squad-block {
  padding: 14px 16px;
  border-right: 1px solid #e0ecec;
}
.squad-block:last-child { border-right: 0; }
.squad-block h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--title-color);
}
.squad-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 1;
}
.squad-block li {
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px dotted #e5eeee;
  color: #333;
}

.highlight-list {
  margin: 0;
  padding: 12px 16px 14px 32px;
  font-size: 13px;
  line-height: 1.55;
  color: #333;
}
.highlight-list li { margin-bottom: 6px; }

.info-dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0;
  margin: 0;
}
.info-dl > div {
  padding: 10px 14px;
  border-bottom: 1px solid #eef3f3;
  border-right: 1px solid #eef3f3;
}
.info-dl dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #788;
  margin-bottom: 2px;
}
.info-dl dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--title-color);
}

.sync-footer {
  margin-top: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #688;
  background: #f4f8f8;
  border: 1px solid #e0ecec;
}

/* Match page tabs + info layout */
.match-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 2px solid #d7eaea;
  margin: 0 0 16px;
  background: #fff;
}
.match-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #567;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.match-tab.is-active {
  color: var(--title-color, #033c3d);
  border-bottom-color: var(--colored-title, #00cc99);
}
.match-tab-panel[hidden] { display: none !important; }
.match-tab-panel.is-active { display: block; }

.match-info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
  gap: 14px;
  align-items: start;
}
.mi-card {
  background: #fff;
  border: 1px solid #e0ecec;
  margin-bottom: 14px;
  padding: 14px;
}
.mi-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--title-color);
}
.mi-empty {
  margin: 0;
  color: #688;
  font-size: 13px;
  padding: 8px 0;
}
.mi-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.team-form-list { display: grid; gap: 10px; }
.team-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.form-pills { display: flex; gap: 6px; }
.form-pill {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: #90a4ae;
}
.form-pill.win { background: #2e7d32; }
.form-pill.loss { background: #c62828; }
.form-pill.draw { background: #f9a825; color: #222; }

.weather-pitch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.weather-box h3,
.pitch-box h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #566;
}
.weather-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.weather-stats span {
  display: block;
  font-size: 11px;
  color: #788;
}
.weather-stats strong { font-size: 16px; color: var(--title-color); }
.pace-spin { margin-top: 10px; }
.bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
  color: #566;
}
.bar-track {
  height: 10px;
  background: #cfd8dc;
  border-radius: 999px;
  overflow: hidden;
}
.bar-pace {
  display: block;
  height: 100%;
  background: var(--colored-title, #00cc99);
}

.recent-results {
  list-style: none;
  margin: 0;
  padding: 0;
}
.recent-results li {
  padding: 10px 0;
  border-bottom: 1px solid #eef3f3;
  display: grid;
  gap: 2px;
}
.recent-results strong { font-size: 13px; color: var(--title-color); }
.recent-results span { font-size: 12px; color: #444; }
.recent-results small { font-size: 11px; color: #788; }

.squad-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.squad-tab {
  flex: 1;
  border: 1px solid #d7eaea;
  background: #f4faf9;
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: #456;
}
.squad-tab.is-active {
  background: var(--widgets-bg, #033c3d);
  border-color: var(--widgets-bg, #033c3d);
  color: #fff;
}
.squad-panel { display: none; }
.squad-panel.is-active { display: block; }
.squad-players {
  list-style: none;
  margin: 0;
  padding: 0;
}
.squad-players li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eef3f3;
}
.squad-players img,
.squad-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #e0ecec;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #456;
  flex: 0 0 auto;
}
.squad-players strong { display: block; font-size: 13px; color: var(--title-color); }
.squad-players span { font-size: 11px; color: #688; }
.squad-tab small { font-weight: 600; opacity: 0.8; }
.player-role { display: block; }
.player-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--widgets-bg);
  vertical-align: middle;
}
.player-meta { display: block; margin-top: 2px; color: #7a8; }
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.squad-players--grid .player-list-item {
  padding: 10px 0;
}
.mi-title small {
  font-size: 12px;
  font-weight: 600;
  color: #688;
  margin-left: 6px;
}

.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-table th,
.compare-table td { padding: 10px 8px; border-bottom: 1px solid #eef3f3; vertical-align: middle; }
.compare-table th { font-size: 12px; color: #566; }
.cmp-label { text-align: center; color: #566; font-size: 12px; width: 34%; }
.cmp-val { font-weight: 700; color: var(--title-color); margin-bottom: 4px; }
.cmp-bar {
  height: 6px;
  background: #e8f0f0;
  border-radius: 999px;
  overflow: hidden;
}
.cmp-bar span {
  display: block;
  height: 100%;
  background: var(--colored-title, #00cc99);
}
.cmp-bar.right { direction: rtl; }
.h2h-summary {
  background: #f4faf9;
  border: 1px solid #d8ecea;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .match-info-layout { grid-template-columns: 1fr; }
  .weather-pitch-grid { grid-template-columns: 1fr; }
}

.player-form-sub {
  margin: 0 0 8px;
  font-size: 13px;
  color: #566;
}

/* Players carousel */
.players-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.player-card {
  flex: 0 0 120px;
  background: #fff;
  text-align: center;
  border: 1px solid #ececec;
  padding: 10px 8px;
}

.player-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 8px;
  border: 3px solid var(--colored-title);
}

.player-card h4 { font-size: 13px; color: var(--title-color); }
.player-card span { font-size: 11px; color: var(--player-link-color); }

/* Videos / photos */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.media-card {
  background: #fff;
  overflow: hidden;
  border: 1px solid #ececec;
  position: relative;
}

.media-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.media-card .play {
  position: absolute;
  top: 55px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0,204,153,.9);
  color: var(--secondary-bg);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
}

.media-card h4 {
  padding: 10px;
  font-size: 13px;
  color: var(--title-color);
  line-height: 1.35;
}

.media-card .date {
  padding: 0 10px 10px;
  font-size: 11px;
  color: var(--muted);
}

/* Series */
.series-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.series-list .status {
  font-size: 11px;
  font-weight: 700;
  color: var(--widgets-bg);
  text-transform: uppercase;
}

/* Team fixtures icons */
.team-fixtures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.team-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  text-align: center;
  padding: 16px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--title-color);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.team-pill:hover {
  border-color: var(--colored-title);
  transform: translateY(-2px);
}

.team-pill .flag {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--match-secondary-bg);
  color: var(--primary-bg);
  display: grid;
  place-items: center;
  margin: 0 auto 6px;
  font-weight: 800;
  font-size: 11px;
}

.team-logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 6px;
  border: 1px solid #e5e5e5;
  background: #fff;
}

.team-logo--match {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
}

.team-block .team-logo {
  margin-left: auto;
  margin-right: auto;
}

.rank-table .team-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rank-table .team-logo {
  width: 22px;
  height: 22px;
  margin: 0;
  flex-shrink: 0;
}

/* Rankings */
.rank-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.rank-tabs a,
.rank-tabs span,
.rank-tab {
  padding: 6px 12px;
  background: var(--primary-light-bg);
  font-size: 12px;
  font-weight: 700;
  border-radius: 2px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  color: var(--title-color);
}

.rank-tabs a.active,
.rank-tabs span.active,
.rank-tab.is-active {
  background: var(--widgets-bg);
  color: #fff;
}

.rank-panel[hidden] { display: none !important; }
.rank-panel-title {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.rank-table th,
.rank-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.rank-table th {
  background: var(--match-primary-bg);
  color: var(--title-color);
}

.popular-list li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.popular-list .num {
  width: 24px;
  height: 24px;
  background: var(--primary-bg);
  color: var(--colored-title);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

/* Inner pages */
.page-hero {
  background:
    radial-gradient(circle at right top, rgba(0, 204, 153, 0.22), transparent 42%),
    linear-gradient(120deg, var(--primary-bg) 0%, #045455 55%, var(--secondary-bg) 100%);
  color: #fff;
  padding: 28px 0;
  margin-bottom: 18px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

.page-hero p { color: #b8ebe0; margin-top: 6px; font-size: 15px; }

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}

.player-profile {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.player-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--colored-title);
  justify-self: center;
}

.article-body {
  background: #fff;
  padding: 20px;
}

.article-body h1 {
  font-size: 28px;
  color: var(--title-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.article-body .lead-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin-bottom: 16px;
}

.article-body .body-text p {
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.7;
}

.pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.pagination a,
.pagination span {
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 13px;
}

.pagination .active span {
  background: var(--widgets-bg);
  color: #fff;
  border-color: var(--widgets-bg);
}

/* Footer */
.site-footer {
  background: var(--secondary-bg);
  color: #ccf5eb;
  padding: 28px 0 90px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}

.site-footer h4 {
  color: var(--colored-title);
  margin-bottom: 12px;
  font-size: 15px;
}

.site-footer a { color: #ccf5eb; display: block; padding: 4px 0; font-size: 13px; }
.site-footer p { font-size: 13px; line-height: 1.6; }
.copy {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 20px;
  padding-top: 14px;
  font-size: 12px;
  text-align: center;
}

/* Mobile bottom nav */
.mobile-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--primary-bg);
  display: none;
  z-index: 200;
  border-top: 2px solid var(--colored-title);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav ul {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.mobile-nav a {
  color: #fff;
  text-align: center;
  padding: 10px 4px 8px;
  font-size: 11px;
  font-weight: 600;
}

.mobile-nav a span {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}

.mobile-nav a.active,
.mobile-nav a:hover { color: var(--colored-title); }

/* ========== Responsive breakpoints ========== */

/* Large laptop / small desktop */
@media (max-width: 1199px) {
  .home-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .left-col {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    order: 3;
  }

  .center-col { order: 1; }
  .right-col { order: 2; }

  .left-col .widget { margin-bottom: 0; }

  .main-nav a {
    padding: 9px 8px;
    font-size: 13px;
  }

  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-fixtures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Tablet */
@media (max-width: 991px) {
  .container { width: min(100%, calc(100% - 20px)); }

  .header-main { position: relative; gap: 10px; }

  .brand-name { font-size: 22px; }
  .brand-tag { font-size: 10px; }
  .brand-mark { width: 36px; height: 36px; font-size: 12px; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--secondary-bg);
    padding: 8px;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    box-shadow: 0 12px 28px rgba(0,0,0,.35);
    z-index: 120;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav a {
    padding: 12px 14px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    border-radius: 0;
  }

  .nav-item .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border-top: 0;
    background: rgba(0,0,0,.2);
    min-width: 0;
  }

  .nav-item.open .dropdown { display: block; }
  .nav-item:hover .dropdown { display: none; }
  .nav-item.open:hover .dropdown { display: block; }

  .nav-item > a::after {
    content: " ▾";
    font-size: 11px;
    opacity: .8;
  }

  .home-grid,
  .content-layout,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .left-col {
    grid-template-columns: minmax(0, 1fr);
    order: 2;
  }

  .center-col { order: 1; }
  .right-col { order: 3; }

  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-fixtures { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .mobile-nav { display: block; }
  .site-footer { padding-bottom: 96px; }

  .page-hero { padding: 18px 0; }
  .page-hero h1 { font-size: 24px; }

  .featured-story img { height: 280px; }
  .featured-story h2 { font-size: 22px; }

  .section-title { font-size: 18px; }

  .player-profile {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .player-avatar { width: 140px; height: 140px; }
}

/* Mobile landscape / large phone */
@media (max-width: 767px) {
  .top-bar { font-size: 11px; }
  .top-bar .container > div:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
  }

  .brand-text { font-size: 16px; }
  .page-wrap { padding: 12px 0 28px; }

  .news-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .news-card {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 8px;
  }

  .news-card img {
    width: 100px;
    min-height: 96px;
  }

  .news-card .content { padding: 8px 8px 8px 0; }
  .news-card h3 { font-size: 14px; }
  .news-card p { display: none; }

  .news-list-item { gap: 10px; }
  .news-list-item img {
    width: 96px;
    height: 72px;
  }
  .news-list-item h3 { font-size: 14px; }

  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .media-card img { height: 120px; }
  .media-card .play { top: 40px; width: 36px; height: 36px; font-size: 14px; }

  .team-fixtures { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .featured-story img { height: 220px; }
  .featured-story .overlay { padding: 16px 12px 12px; }
  .featured-story h2 { font-size: 18px; }
  .featured-story p {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .match-card .match-head {
    font-size: 12px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .match-meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .score-table { font-size: 12px; }
  .score-table th,
  .score-table td { padding: 6px 8px; }
  .squad-block { border-right: 0; border-bottom: 1px solid #e0ecec; }
  .innings-summary { grid-template-columns: 1fr 1fr; }

  .team-block strong { font-size: 15px; }
  .team-block span {
    font-size: 11px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .vs-badge { width: 30px; height: 30px; font-size: 10px; }

  .article-body { padding: 14px; }
  .article-body h1 { font-size: 22px; }
  .article-body .body-text p { font-size: 15px; }
  .article-body .lead-img { max-height: 240px; }

  .live-chip {
    min-width: 190px;
    font-size: 12px;
    padding: 7px 10px;
  }

  .players-strip {
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .player-card {
    flex: 0 0 108px;
    scroll-snap-align: start;
  }

  .widget-head { font-size: 14px; padding: 9px 12px; }
  .rank-tabs { flex-wrap: wrap; }

  .mobile-nav a {
    font-size: 10px;
    padding: 8px 2px 7px;
  }

  .mobile-nav a span { font-size: 15px; }
}

/* Small phones */
@media (max-width: 480px) {
  .container { width: calc(100% - 16px); }

  .top-bar .container > div:first-child { display: none; }

  .brand-text { font-size: 15px; }
  .brand-mark { width: 32px; height: 32px; }

  .featured-story img { height: 190px; }
  .featured-story h2 { font-size: 16px; }

  .team-fixtures { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .media-grid { grid-template-columns: minmax(0, 1fr); }
  .media-card img { height: 180px; }
  .media-card .play { top: 70px; }

  .news-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .news-card img {
    width: 84px;
    min-height: 84px;
  }

  .news-list-item {
    flex-direction: column;
  }

  .news-list-item img {
    width: 100%;
    height: 160px;
  }

  .match-teams { gap: 4px; }
  .match-result { font-size: 12px; padding: 7px 8px; }

  .section-title {
    font-size: 16px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .page-hero h1 { font-size: 20px; }
  .article-body h1 { font-size: 20px; }

  .pagination a,
  .pagination span { padding: 7px 10px; font-size: 12px; }

  .footer-grid { gap: 18px; }
  .site-footer { padding: 22px 0 100px; }

  .player-card { flex: 0 0 100px; padding: 8px 6px; }
  .player-card img { width: 64px; height: 64px; }
}

/* Extra small */
@media (max-width: 360px) {
  .brand-name { font-size: 18px; }
  .mobile-nav ul { grid-template-columns: repeat(5, 1fr); }
  .mobile-nav li:nth-child(5) { display: none; }
  .team-block strong { font-size: 13px; }
}

/* Large desktop polish */
@media (min-width: 1400px) {
  .container { width: min(1280px, 96%); }
  .home-grid { grid-template-columns: 280px minmax(0, 1fr) 300px; gap: 20px; }
  .featured-story img { height: 400px; }
}

/* Prevent horizontal scroll from sticky strips */
.live-ticker .container,
.players-strip {
  scrollbar-width: thin;
}

.live-ticker .container::-webkit-scrollbar,
.players-strip::-webkit-scrollbar {
  height: 4px;
}

.live-ticker .container::-webkit-scrollbar-thumb,
.players-strip::-webkit-scrollbar-thumb {
  background: #07888a;
  border-radius: 4px;
}

/* —— Frontend refresh utilities —— */
.empty-note {
  background: #fff;
  border: 1px dashed var(--border);
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.empty-panel {
  background: #fff;
  border: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-soft);
}
.empty-panel strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--title-color);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.empty-panel p { color: var(--muted); font-size: 14px; }

.story-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--colored-title);
  margin-bottom: 8px;
}

.section-title-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-title-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live-red);
  animation: pulse 1.4s infinite;
}

.count-pill {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--live-red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font);
  text-transform: none;
  letter-spacing: 0;
}

.scores-page,
.players-page,
.player-profile-page {
  max-width: 960px;
}

.match-list { display: grid; gap: 0; }

.players-grid-page {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.player-tile {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.player-tile:hover {
  transform: translateY(-3px);
  border-color: var(--colored-title);
}
.player-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #dfeaea;
}
.player-tile-body {
  padding: 12px;
}
.player-tile-body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  color: var(--title-color);
  line-height: 1.15;
  margin-bottom: 4px;
}
.player-tile-body p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.player-tile-role {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--widgets-bg);
  background: var(--match-secondary-bg);
  padding: 3px 8px;
}

.player-hero-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
}
.player-avatar {
  width: 160px;
  height: 160px;
  object-fit: cover;
  background: #dfeaea;
  border: 3px solid var(--match-secondary-bg);
}
.player-hero-copy h2 {
  font-family: var(--font-display);
  font-size: 32px;
  text-transform: uppercase;
  color: var(--title-color);
  margin-bottom: 12px;
  line-height: 1.1;
}
.player-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px 14px;
  margin-bottom: 12px;
}
.player-meta-grid span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.player-meta-grid strong {
  font-size: 14px;
  color: var(--title-color);
}
.player-bio {
  color: #445;
  font-size: 14px;
  line-height: 1.6;
}
.player-form-sub {
  font-size: 14px;
  color: var(--title-color);
  margin: 0 0 8px;
}
.form-gap { margin-top: 18px; }
.form-pills-wrap { flex-wrap: wrap; margin-bottom: 12px; }
.pagination-wrap { margin-top: 8px; }

.category-link {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--title-color);
}
.category-link:hover { color: var(--widgets-bg); }

@media (max-width: 700px) {
  .player-hero-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .player-meta-grid { grid-template-columns: 1fr 1fr; }
  .players-grid-page { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .live-chip,
  .match-card,
  .player-tile,
  .team-pill,
  .featured-story img {
    transition: none;
  }
  .badge-live,
  .section-title-live::before {
    animation: none;
  }
}
