/* ============================================
   ICC CRICKET SCHEDULE — PHP Frontend
   Ported from Astro ESPN Cricinfo design system
   Mobile-first
   ============================================ */

:root {
  --blue: #3ea6ff;
  --blue-dark: #1a91ff;
  --navy: #0d47a1;
  --nav-bg: #003d6b;
  --header-bg: #3ea6ff;
  --bg: #f0f0f0;
  --card: #ffffff;
  --card-alt: #f8f9fa;
  --border: #e0e0e0;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --live: #d32f2f;
  --green: #2e7d32;
  /* Accent used for article links, labels and rules. Was a hardcoded #0088cc. */
  --accent: #0088cc;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-card: 0 2px 8px rgba(0,0,0,0.1);
  --hover-bg: #f5f5f5;
  --table-stripe: #f8fafc;
  --table-header: linear-gradient(180deg, #1e3a5f 0%, #0d2137 100%);
  --table-header-bg: #1e3a5f;
  --footer-bg: #0d2137;
  /* Status pills */
  --pill-upcoming-bg: #e3f2fd;
  --pill-upcoming-fg: #1565c0;
  --pill-done-bg: #e8f5e9;
  --pill-done-fg: #2e7d32;
}

[data-theme="dark"] {
  --blue: #5bb8ff;
  --blue-dark: #3ea6ff;
  --navy: #1a2744;
  --nav-bg: #0b1219;
  --header-bg: #132030;
  --bg: #0f1419;
  --card: #1a2332;
  --card-alt: #1e2a3a;
  --border: #2a3a4e;
  --text: #e1e8f0;
  --text-light: #a0aec0;
  --text-muted: #718096;
  --live: #ef4444;
  --green: #48bb78;
  --accent: #4db8f0;
  --shadow-card: 0 2px 8px rgba(0,0,0,0.3);
  --hover-bg: #243447;
  --table-stripe: #1e2a3a;
  --table-header: linear-gradient(180deg, #1a2744 0%, #0f1a2e 100%);
  --table-header-bg: #1a2744;
  --footer-bg: #0a1622;
  --pill-upcoming-bg: #16314a;
  --pill-upcoming-fg: #90caf9;
  --pill-done-bg: #14331d;
  --pill-done-fg: #7ee2a8;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ============ HEADER ============ */
.header { background: var(--header-bg); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
[data-theme="dark"] .header { border-bottom: 1px solid var(--border); box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.header-bar { max-width: 1200px; margin: 0 auto; padding: 6px 12px; display: flex; align-items: center; gap: 12px; }
.mobile-menu-btn { display: flex; align-items: center; color: #fff; cursor: pointer; padding: 4px; flex-shrink: 0; }
.logo-text { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.logo-brand { font-size: 14px; font-weight: 800; color: #fff; background: rgba(255,255,255,0.2); padding: 2px 5px; border-radius: 3px; }
.logo-name { font-size: 11px; font-weight: 600; color: #fff; text-transform: uppercase; white-space: nowrap; }
.header-spacer { flex: 1; }
.search-toggle-btn { display: flex; color: #fff; cursor: pointer; padding: 4px; }
.theme-toggle-btn { display: flex; color: #fff; cursor: pointer; padding: 6px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.theme-toggle-btn .icon-sun { display: none; }
.theme-toggle-btn .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle-btn .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle-btn .icon-moon { display: none; }
.toggle { display: none; }

/* Desktop nav */
.desktop-nav { display: none; background: var(--nav-bg); border-top: 1px solid rgba(255,255,255,0.1); }
.desktop-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 12px; display: flex; overflow-x: auto; scrollbar-width: none; }
.desktop-nav-inner::-webkit-scrollbar { display: none; }
.desktop-nav-link { display: block; padding: 8px 14px; color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.desktop-nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); border-bottom-color: #fff; }
@media (min-width: 768px) {
  .desktop-nav { display: block; }
  .mobile-menu-btn { display: none; }
}

/* Mobile menu */
.mobile-menu-overlay { position: fixed; top: 0; left: -290px; width: 280px; height: 100vh; background: var(--card); z-index: 200; transition: left .3s ease; overflow-y: auto; }
#mobile-menu-toggle:checked ~ .mobile-menu-overlay { left: 0; }
.mobile-menu-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 150; }
#mobile-menu-toggle:checked ~ .mobile-menu-backdrop { display: block; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--header-bg); color: #fff; }
.mobile-menu-title { font-weight: 700; }
.mobile-menu-close { cursor: pointer; font-size: 18px; padding: 4px; }
.mobile-menu-link { display: block; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 500; }
.mobile-menu-link:hover { background: var(--hover-bg); }
.mobile-menu-sublink { padding-left: 32px; font-weight: 400; font-size: 13px; color: var(--text-light); }
.desktop-more-btn { cursor: pointer; }
.mobile-menu-search { padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--card-alt); }
.mobile-menu-search-form { display: flex; gap: 8px; }
.mobile-menu-search-form input { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; background: var(--card); color: var(--text); }
.mobile-menu-search-form button { display: flex; align-items: center; justify-content: center; width: 36px; background: var(--blue); color: #fff; border-radius: 4px; }
.mobile-menu-parent { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.mobile-menu-arrow { font-size: 12px; color: var(--text-muted); transition: transform .2s; }
.mobile-submenu { display: none; border-bottom: 1px solid var(--border); }
.toggle:checked ~ .mobile-submenu { display: block; }
.toggle:checked ~ .mobile-menu-parent .mobile-menu-arrow { transform: rotate(180deg); }
.mobile-menu-see-all { font-weight: 600; color: var(--blue-dark); }

/* Search overlay */
.search-overlay { display: none; background: var(--card); padding: 10px 12px; border-bottom: 1px solid var(--border); }
#mobile-search-toggle:checked ~ .search-overlay { display: block; }
.search-form { display: flex; max-width: 600px; margin: 0 auto; gap: 8px; }
.search-input { flex: 1; padding: 9px 14px; border: 1px solid var(--border); border-radius: 20px; font-size: 14px; background: var(--card-alt); color: var(--text); outline: none; }
.search-input:focus { border-color: var(--blue); }
.search-submit { display: flex; align-items: center; padding: 8px 14px; background: var(--blue); color: #fff; border-radius: 20px; }

.newsletter-cta { display: flex; align-items: center; gap: 16px; background: linear-gradient(90deg, var(--navy), var(--blue-dark)); color: #fff; padding: 16px; border-radius: var(--radius-lg); margin: 24px 0; }
.newsletter-cta-icon { font-size: 28px; flex-shrink: 0; }
.newsletter-cta-content { flex: 1; }
.newsletter-cta-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.newsletter-cta-text { font-size: 13px; margin: 0; opacity: .9; }
.newsletter-cta-btn { flex-shrink: 0; background: #fff; color: var(--navy); font-weight: 700; padding: 10px 20px; border-radius: 20px; cursor: pointer; }
.newsletter-cta-btn:hover { background: var(--hover-bg); }
.newsletter-cta-inline { flex-direction: column; text-align: center; padding: 20px; }
.newsletter-cta-inline .newsletter-cta-icon { font-size: 36px; }

/* ============ BREAKING BAR ============ */
.breaking-bar { display: flex; align-items: center; background: var(--card); border-bottom: 1px solid var(--border); overflow: hidden; height: 36px; }
.breaking-label { flex-shrink: 0; background: var(--live); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 10px; margin-left: 8px; border-radius: 3px; letter-spacing: .5px; }
.breaking-track { flex: 1; overflow: hidden; margin: 0 8px; }
.breaking-marquee { display: inline-flex; gap: 32px; white-space: nowrap; animation: marquee 60s linear infinite; }
.breaking-marquee:hover { animation-play-state: paused; }
.breaking-item { font-size: 13px; font-weight: 500; color: var(--text); }
.breaking-item:hover { color: var(--blue-dark); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============ WHATSAPP BAR ============ */
.wa-bar { background: #075e54; }
.wa-bar-link { display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-size: 12.5px; padding: 7px 12px; }
.wa-bar-link strong { font-weight: 700; }

/* ============ HOME ============ */
.home-main { max-width: 1200px; margin: 0 auto; padding: 12px; }

.top-stories-text { background: var(--card); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 16px; box-shadow: var(--shadow-card); }
.top-stories-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.top-stories-header h2 { font-size: 17px; font-weight: 800; }
.more-link { font-size: 12px; color: var(--blue-dark); font-weight: 600; }
.top-story-item { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.top-story-item:last-child { border-bottom: none; }
.top-story-rank { font-size: 18px; font-weight: 800; color: var(--blue-dark); min-width: 20px; }
.top-story-title { font-size: 14px; font-weight: 600; line-height: 1.4; }
.top-story-item:hover .top-story-title { color: var(--blue-dark); }

.section-title { font-size: 17px; font-weight: 800; margin-bottom: 12px; }

.trending-section { margin-bottom: 18px; }
.trending-scroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.trending-scroll::-webkit-scrollbar { display: none; }
.trending-card { flex: 0 0 200px; background: var(--card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.trending-card img { width: 200px; height: 125px; object-fit: cover; }
.trending-card-title { display: block; padding: 8px 10px; font-size: 12.5px; font-weight: 600; line-height: 1.35; max-height: 60px; overflow: hidden; }

.quick-links { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 18px; scrollbar-width: none; }
.quick-links::-webkit-scrollbar { display: none; }
.quick-link { flex-shrink: 0; background: var(--card); border: 1px solid var(--border); padding: 8px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.quick-link:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Category sections */
.category-section { margin-bottom: 24px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; border-left: 4px solid var(--blue); padding-left: 10px; }
.section-header h2 { font-size: 17px; font-weight: 800; }
.section-header h2 a:hover { color: var(--blue-dark); }
.see-all { font-size: 12px; color: var(--blue-dark); font-weight: 600; white-space: nowrap; }
.featured-layout { display: grid; gap: 12px; }
@media (min-width: 768px) { .featured-layout { grid-template-columns: 1.4fr 1fr; } }
.featured-card { background: var(--card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.featured-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.featured-info { padding: 12px 14px; }
.featured-info h3 { font-size: 16px; font-weight: 700; line-height: 1.35; }
.featured-card:hover h3 { color: var(--blue-dark); }
.side-stories { display: flex; flex-direction: column; gap: 10px; }
.side-story { display: flex; gap: 10px; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); align-items: center; }
.side-story img { width: 110px; height: 72px; object-fit: cover; flex-shrink: 0; }
.side-story-title { font-size: 13px; font-weight: 600; line-height: 1.35; padding-right: 10px; max-height: 54px; overflow: hidden; }
.side-story:hover .side-story-title { color: var(--blue-dark); }

/* ============ ARTICLE PAGE ============ */
.reading-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 101; pointer-events: none; }
.reading-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), #059669); }

.amp-container { max-width: 100%; margin: 0 auto; background: var(--card); }
.ampMain { max-width: 1200px; margin: 0 auto; }
.ampBreadCrumb { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--border); color: var(--text-light); }
.ampBreadCrumb a:hover { color: var(--blue-dark); }

.desktop-layout-wrapper { background: var(--card); }
.main-article-content { background: var(--card); }
.desktop-sidebar { display: none; }
@media (min-width: 1024px) {
  .desktop-layout-wrapper { display: grid; grid-template-columns: 300px 1fr; gap: 32px; max-width: 1200px; margin: 0 auto; padding: 24px; }
  .desktop-sidebar { display: block; order: 1; position: sticky; top: 76px; height: fit-content; background: var(--card-alt); padding: 16px; border-radius: var(--radius-lg); }
  .main-article-content { order: 2; }
  .article-content { padding: 0; }
  .featured-image { margin: 0; }
}
.sidebar-heading { font-size: 15px; font-weight: 800; margin-bottom: 12px; border-bottom: 2px solid var(--blue); padding-bottom: 6px; }
.sidebar-story { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; line-height: 1.35; align-items: center; }
.sidebar-story img { width: 90px; height: 60px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.sidebar-story:hover span { color: var(--blue-dark); }

.article-content { padding: 0 16px; }
.article-category-label { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .5px; margin: 14px 0 12px; }
.article-title { font-size: 28px; font-weight: 800; line-height: 1.15; color: var(--text); margin: 0 0 14px; letter-spacing: -.5px; }
@media (min-width: 768px) { .article-title { font-size: 36px; line-height: 1.12; } }
.article-standfirst { font-size: 17px; line-height: 1.5; color: var(--text); margin: 0 0 16px; font-weight: 500; border-left: 3px solid var(--accent); padding-left: 14px; }
.article-meta-section { margin-bottom: 16px; }
.article-author-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.article-author-name a:hover { color: var(--accent); }
.article-date-info { font-size: 13px; color: var(--text-light); line-height: 1.5; }
.article-date-info .date-item { display: block; }
.article-read-time { font-size: 13px; color: var(--text-light); margin-top: 2px; }

.article-social-bar { display: flex; gap: 8px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.social-action-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; background: var(--card); color: var(--text-light); }
.social-action-btn:hover { border-color: var(--accent); color: var(--accent); }

.featured-image { margin: 0 -16px; background: var(--bg); }
.featured-image img { width: 100%; height: auto; }
.image-caption { font-size: 13px; color: var(--text-light); padding: 10px 16px; border-bottom: 1px solid var(--border); }

.contentStyle { font-size: 16px; line-height: 1.7; color: var(--text); padding-top: 20px; max-width: 680px; word-break: break-word; }
@media (min-width: 768px) { .contentStyle { font-size: 18px; } }
.contentStyle p { margin: 0 0 1em; }
.contentStyle a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.contentStyle strong, .contentStyle b { font-weight: 600; }
.contentStyle h2 { font-size: 22px; font-weight: 700; margin: 1.8em 0 .6em; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.contentStyle h3 { font-size: 18px; font-weight: 700; margin: 1.5em 0 .5em; }
.contentStyle img { margin: 1.5em auto; }
.contentStyle ul, .contentStyle ol { margin: 1em 0; padding-left: 1.5em; }
.contentStyle ul { list-style: disc; }
.contentStyle ol { list-style: decimal; }
.contentStyle li { margin-bottom: .4em; }
.contentStyle blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 3px solid var(--accent); background: var(--card-alt); font-style: italic; }
.contentStyle table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 1.5em 0; }
.contentStyle th, .contentStyle td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.contentStyle th { background: var(--table-header-bg); color: #fff; font-weight: 600; }

/* CMS-authored content hardening for dark mode.
   Article HTML comes from the admin editor and often carries pasted inline styles
   (color:#000, background:#fff, <font color>) that are invisible on a dark surface.
   Neutralise those so text inherits the theme. Links keep the accent colour; add
   data-keep-color to any element whose explicit colour must survive. */
[data-theme="dark"] .contentStyle [style*="color"]:not(a):not([data-keep-color]),
[data-theme="dark"] .contentStyle font[color] {
  color: var(--text) !important;
}
[data-theme="dark"] .contentStyle [style*="background"]:not([data-keep-color]) {
  background-color: transparent !important;
}
[data-theme="dark"] .contentStyle a[style*="color"]:not([data-keep-color]) {
  color: var(--accent) !important;
}
[data-theme="dark"] .contentStyle td[bgcolor],
[data-theme="dark"] .contentStyle th[bgcolor] {
  background-color: transparent !important;
}

.article-faqs { margin: 28px 0; max-width: 680px; }
.article-faqs h2 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; background: var(--card-alt); }
.faq-question { padding: 12px 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.faq-answer { padding: 0 14px 14px; font-size: 14px; line-height: 1.6; color: var(--text-light); }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.article-tag { background: var(--card-alt); border: 1px solid var(--border); padding: 5px 12px; border-radius: 16px; font-size: 12.5px; font-weight: 600; color: var(--text-light); }
.article-tag:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.author-box { display: flex; align-items: center; gap: 12px; background: var(--card-alt); border-radius: var(--radius-lg); padding: 14px 16px; margin: 20px 0; max-width: 680px; }
.author-avatar { border-radius: 50%; width: 56px; height: 56px; object-fit: cover; }
.author-box-label { display: block; font-size: 12px; color: var(--text-muted); }
.author-box-name { font-size: 15px; font-weight: 700; }
.author-box-name:hover { color: var(--blue-dark); }

.recommended-section { padding: 20px 16px; border-top: 1px solid var(--border); margin-top: 24px; }
.recommended-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .recommended-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .recommended-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============ CARDS ============ */
.article-card { background: var(--card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.card-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 10px 12px; }
.card-title { font-size: 14px; font-weight: 700; line-height: 1.35; }
.article-card:hover .card-title { color: var(--blue-dark); }
.card-time { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }

/* ============ LISTING ============ */
.listing-main { max-width: 1200px; margin: 0 auto; padding: 16px 12px; }
.listing-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; border-left: 4px solid var(--blue); padding-left: 12px; }
.listing-title { font-size: 24px; font-weight: 800; }
.listing-page { color: var(--text-muted); font-size: 14px; }
.listing-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .listing-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .listing-grid { grid-template-columns: repeat(4, 1fr); } }
.listing-empty { padding: 40px 0; text-align: center; color: var(--text-muted); }
.pagination { display: flex; justify-content: center; gap: 12px; margin: 24px 0; }
.page-btn { background: var(--card); border: 1px solid var(--border); padding: 9px 18px; border-radius: 20px; font-size: 14px; font-weight: 600; }
.page-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ============ SEARCH ============ */
.search-page-form { display: flex; gap: 10px; max-width: 600px; margin-bottom: 18px; }
.search-page-input { flex: 1; padding: 11px 16px; border: 1px solid var(--border); border-radius: 24px; font-size: 15px; background: var(--card); color: var(--text); outline: none; }
.search-page-input:focus { border-color: var(--blue); }
.search-page-btn { background: var(--blue); color: #fff; padding: 10px 22px; border-radius: 24px; font-weight: 600; }
.search-meta { margin-bottom: 14px; color: var(--text-light); }

/* ============ AUTHOR ============ */
.author-header { display: flex; gap: 16px; align-items: center; background: var(--card); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 20px; box-shadow: var(--shadow-card); }
.author-header-avatar { border-radius: 50%; width: 80px; height: 80px; object-fit: cover; }
.author-bio { color: var(--text-light); font-size: 14px; margin-top: 6px; }

/* ============ STATIC PAGES ============ */
.static-main { max-width: 800px; margin: 0 auto; padding: 20px 16px; }
.static-article { background: var(--card); border-radius: var(--radius-lg); padding: 24px 20px; box-shadow: var(--shadow-card); }
.static-title { font-size: 26px; font-weight: 800; margin-bottom: 16px; border-bottom: 2px solid var(--blue); padding-bottom: 10px; }

/* ============ CRICKET PAGES ============ */
.cricket-main { max-width: 1000px; margin: 0 auto; padding: 16px 12px; }
.cricket-title { font-size: 24px; font-weight: 800; margin-bottom: 14px; border-left: 4px solid var(--blue); padding-left: 12px; }
.cricket-subtitle { color: var(--text-light); margin-bottom: 16px; }

.match-list { display: grid; gap: 12px; }
@media (min-width: 768px) { .match-list { grid-template-columns: repeat(2, 1fr); } }
.match-card { background: var(--card); border-radius: var(--radius-lg); padding: 14px 16px; box-shadow: var(--shadow-card); }
.match-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.match-series { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.match-status { font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 3px; letter-spacing: .5px; }
.match-status-upcoming { background: var(--pill-upcoming-bg); color: var(--pill-upcoming-fg); }
.match-status-live { background: var(--live); color: #fff; animation: pulse 1.5s infinite; }
.match-status-completed { background: var(--pill-done-bg); color: var(--pill-done-fg); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .6; } }
.match-teams { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.match-vs { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.match-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-light); }
.match-result { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--green); }

.series-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .series-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .series-grid { grid-template-columns: repeat(3, 1fr); } }
.series-card { background: var(--card); border-radius: var(--radius-lg); padding: 14px 16px; box-shadow: var(--shadow-card); }
.series-name { font-size: 15px; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.series-name a:hover, .series-card-link:hover .series-name { color: var(--blue-dark); }
.series-meta { display: flex; gap: 10px; font-size: 12px; color: var(--text-light); margin-bottom: 10px; }
.series-format { background: var(--navy); color: #fff; padding: 2px 8px; border-radius: 3px; font-weight: 700; font-size: 10.5px; }
.series-links { display: flex; gap: 14px; font-size: 13px; font-weight: 600; color: var(--blue-dark); }

.format-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.format-tab { background: var(--card); border: 1px solid var(--border); padding: 8px 20px; border-radius: 20px; font-size: 13.5px; font-weight: 600; }
.format-tab.active, .format-tab:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); margin-bottom: 20px; }
.points-table, .rankings-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.points-table th, .rankings-table th { background-color: var(--table-header-bg); background-image: var(--table-header); color: #fff; font-weight: 600; padding: 11px 14px; text-align: left; white-space: nowrap; }
.points-table td, .rankings-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.points-table tbody tr:nth-child(even), .rankings-table tbody tr:nth-child(even) { background: var(--table-stripe); }
.points-table tbody tr:hover, .rankings-table tbody tr:hover { background: var(--hover-bg); }
.team-cell { font-weight: 700; }
.points-cell { font-weight: 800; color: var(--blue-dark); }
.points-group { margin-bottom: 24px; }
.points-links { display: flex; gap: 12px; }
.rankings-table { background: var(--card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); margin-bottom: 24px; }

/* ============ BUTTONS ============ */
.btn-primary { display: inline-block; background: var(--blue); color: #fff; padding: 10px 24px; border-radius: 24px; font-weight: 700; font-size: 14px; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { display: inline-block; background: var(--card); border: 1px solid var(--border); color: var(--text); padding: 9px 20px; border-radius: 24px; font-weight: 600; font-size: 13.5px; }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue-dark); }

/* ============ 404 ============ */
.notfound-main { display: flex; justify-content: center; padding: 40px 16px; }
.notfound-box { text-align: center; max-width: 460px; }
.notfound-img { margin: 0 auto 20px; }
.notfound-box h1 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.notfound-box p { color: var(--text-light); margin-bottom: 20px; }
.notfound-actions { display: flex; gap: 12px; justify-content: center; }

/* ============ FOOTER ============ */
.footer { background: var(--footer-bg); color: rgba(255,255,255,0.8); margin-top: 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 32px 16px 20px; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.footer-logo { margin-bottom: 12px; }
.footer-desc { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.6); max-width: 320px; }
.footer-heading { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: #fff; }
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; }
.social-link:hover { background: var(--blue); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 24px; padding-top: 16px; font-size: 12px; color: rgba(255,255,255,0.5); text-align: center; }
.footer-note { margin-top: 6px; font-size: 11px; }

/* ============ BACK TO TOP ============ */
.back-to-top { position: fixed; bottom: 20px; right: 16px; width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff; display: none; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.25); z-index: 90; }
.back-to-top.visible { display: flex; }
