/*
Theme Name: Sports Portal
Theme URI: https://sportsportal.net
Description: Custom multi-sport portal theme — Football, Cricket, Tennis
Author: Sports Portal
Author URI: https://sportsportal.net
Template: sportsarc
Version: 2.0.0
License: GPL-2.0+
Text Domain: stylonest-sports
*/

:root {
  --primary: #e41e31;
  --secondary: #0a0f1e;
  --accent-football: #00c853;
  --accent-cricket: #ffc107;
  --accent-tennis: #2196f3;
  --bg-dark: #0a0f1e;
  --bg-card: #111827;
  --bg-card-hover: #1a2035;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --border: rgba(255,255,255,0.08);
  --radius: 12px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  max-width: 100vw;
}
html, body { overflow-x: hidden; max-width: 100vw; }

/* ── Header ── */
.site-header, #masthead {
  background: var(--secondary) !important;
  border-bottom: 2px solid var(--primary);
  padding: 0.75rem 1rem;
}
.site-title a, .site-branding .site-title a {
  color: var(--primary) !important;
  font-weight: 800;
  font-size: 1.75rem;
  text-decoration: none;
  letter-spacing: -0.5px;
}
.site-description { color: var(--text-secondary) !important; font-size: 0.85rem; }

/* ── Header Social ── */
.sp-header-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.25rem 1rem;
  background: rgba(255,255,255,0.03);
}
.sp-header-social a {
  color: var(--text-secondary) !important;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.sp-header-social a:hover { color: var(--primary) !important; }

/* ── Navigation ── */
.main-navigation, .primary-menu, #site-navigation { background: var(--secondary) !important; }
.main-navigation a, .primary-menu a, #site-navigation a, .main-navigation ul li a {
  color: var(--text-primary) !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}
.main-navigation a:hover, .primary-menu a:hover, .main-navigation ul li a:hover { color: var(--primary) !important; }
.current-menu-item a, .current-menu-item > a { color: var(--primary) !important; border-bottom: 2px solid var(--primary); }

/* ── Sport Sub-Navigation ── */
.sp-subnav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  background: var(--bg-card);
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: 1.5rem;
  -webkit-overflow-scrolling: touch;
}
.sp-subnav-item {
  padding: 0.75rem 1.25rem;
  color: var(--text-secondary) !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}
.sp-subnav-item:hover { color: var(--text-primary) !important; background: rgba(255,255,255,0.03); }
.sp-subnav-item.sp-subnav-active {
  color: var(--text-primary) !important;
  border-bottom-color: var(--accent, var(--primary));
  background: rgba(255,255,255,0.05);
}

/* ── Content ── */
.site-content, .content-area, #primary, #content { background: var(--bg-dark) !important; }
.entry-title, .page-title, h1, h2, h3, h4, h5, h6 { color: var(--text-primary) !important; }
.entry-content, .page-content { color: var(--text-secondary) !important; }
.entry-content p, .page-content p { color: var(--text-secondary) !important; line-height: 1.7; }

/* ── Cards ── */
.wp-block-group, .wp-block-cover, article.post, article.page {
  background: var(--bg-card) !important;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ── Buttons ── */
.wp-block-button__link, button, input[type=submit], .btn, .wp-element-button {
  background: var(--primary) !important;
  color: white !important;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s;
}
.wp-block-button__link:hover, button:hover, .wp-element-button:hover {
  background: #c41020 !important;
  transform: translateY(-1px);
}

/* ── Sport Page Accent Colors ── */
body.page-id-8 .entry-title { color: var(--accent-football) !important; }
body.page-id-8 .site-header { border-bottom-color: var(--accent-football); }
body.page-id-9 .entry-title { color: var(--accent-cricket) !important; }
body.page-id-9 .site-header { border-bottom-color: var(--accent-cricket); }
body.page-id-10 .entry-title { color: var(--accent-tennis) !important; }
body.page-id-10 .site-header { border-bottom-color: var(--accent-tennis); }

/* ── Live Scores Container ── */
.sp-live-container { margin-bottom: 2rem; }

/* Filter Tabs */
.sp-score-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.sp-filter-btn {
  background: var(--bg-card) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border) !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  border-radius: 20px !important;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: none !important;
  transition: all 0.2s;
}
.sp-filter-btn:hover { border-color: var(--primary) !important; color: var(--text-primary) !important; }
.sp-filter-btn.sp-filter-active {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}
.sp-live-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

/* League Header */
.sp-league-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  margin: 1rem 0 0.5rem 0;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--primary);
  border-radius: 0 6px 6px 0;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sp-league-icon { font-size: 1rem; }
.sp-league-name { color: var(--text-primary); }

/* Match Row */
.sp-match-row {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.sp-match-row:last-child { border-bottom: none; }
.sp-match-row:hover { background: rgba(255,255,255,0.02); }

.sp-match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.sp-team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}
.sp-team-away { justify-content: flex-end; text-align: right; }
.sp-team-logo {
  width: 24px; height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 2px;
}
.sp-team-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sp-match-score {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  min-width: 60px;
  text-align: center;
  flex-shrink: 0;
  letter-spacing: 1px;
}
.sp-match-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding-left: 2rem;
}
.sp-match-detail { color: var(--text-secondary); font-size: 0.75rem; }

/* Status Badges */
.sp-status-badge {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.sp-badge-live { background: var(--primary); color: white; animation: pulse 2s infinite; }
.sp-badge-ft { background: #22c55e; color: white; }
.sp-badge-ht { background: #f59e0b; color: #111; }
.sp-badge-sched { background: rgba(255,255,255,0.1); color: var(--text-secondary); }

.sp-no-data { color: #6b7280; font-size: 0.85rem; text-align: center; margin: 0.5rem 0; }
.sp-update-time { color: #4b5563; font-size: 0.7rem; text-align: right; margin-top: 0.5rem; }
.sp-loader { color: #6b7280; font-size: 0.9rem; }

/* ── Share Bar ── */
.sp-share-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  margin: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.sp-share-label {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 0.5rem;
}
.sp-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  transition: all 0.2s;
  text-decoration: none;
}
.sp-twitter { background: #1da1f2; color: white !important; }
.sp-facebook { background: #1877f2; color: white !important; }
.sp-whatsapp { background: #25d366; color: white !important; }
.sp-reddit { background: #ff4500; color: white !important; }
.sp-email { background: #6b7280; color: white !important; }
.sp-share-btn:hover { transform: scale(1.15); opacity: 0.9; }

/* ── Related Articles ── */
.sp-related-articles {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.sp-related-title {
  color: var(--primary) !important;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}
.sp-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.sp-related-card {
  display: block;
  background: var(--bg-dark);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}
.sp-related-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.sp-related-card img { width: 100%; height: 150px; object-fit: cover; }
.sp-related-card h4 {
  color: var(--text-primary) !important;
  font-size: 0.9rem;
  padding: 0.75rem;
  margin: 0;
  line-height: 1.4;
}
.sp-related-cat {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0.5rem 0.75rem 0;
}
.sp-related-date { color: var(--text-secondary); font-size: 0.75rem; padding: 0 0.75rem 0.75rem; display: block; }

/* ── Article Cards (Hub Pages) ── */
.sp-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.sp-article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}
.sp-article-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(228,30,49,0.15); }
.sp-article-img img { width: 100%; height: 180px; object-fit: cover; }
.sp-article-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.sp-article-cat {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  align-self: flex-start;
}
.sp-article-card h4 { color: var(--text-primary) !important; font-size: 1rem; margin: 0 0 0.5rem; line-height: 1.4; }
.sp-article-card p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; flex: 1; margin: 0 0 0.5rem; }
.sp-article-date { color: var(--text-secondary); font-size: 0.75rem; }

/* ── Newsletter ── */
.sp-newsletter {
  background: linear-gradient(135deg, #111827, #1a1f2e);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 2rem 0;
}
.sp-newsletter-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 0.75rem; }
.sp-newsletter h3 { color: var(--text-primary) !important; font-size: 1.5rem; margin-bottom: 0.5rem; }
.sp-newsletter p { color: var(--text-secondary); margin-bottom: 1.25rem; }
.sp-newsletter-form { display: flex; gap: 0.5rem; max-width: 450px; margin: 0 auto; }
.sp-nl-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-dark);
  color: var(--text-primary);
  font-size: 0.9rem;
}
.sp-nl-input::placeholder { color: var(--text-secondary); }
.sp-nl-btn {
  background: var(--primary) !important;
  color: white !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer;
  white-space: nowrap;
}
.sp-nl-btn:hover { background: #c41020 !important; }

/* ── Cookie Consent ── */
#sp-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 2px solid var(--primary);
  padding: 1rem 1.5rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-cookie-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1200px;
  flex-wrap: wrap;
  justify-content: center;
}
.sp-cookie-inner p { color: var(--text-secondary); font-size: 0.85rem; margin: 0; }
.sp-cookie-btns { display: flex; gap: 0.75rem; }
.sp-cookie-btn {
  padding: 0.5rem 1rem !important;
  border-radius: 6px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  text-decoration: none;
}
.sp-cookie-accept { background: var(--primary) !important; color: white !important; border: none !important; }
.sp-cookie-learn { background: transparent !important; color: var(--primary) !important; border: 1px solid var(--primary) !important; }

/* ── Back to Top ── */
#sp-back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--primary) !important;
  color: white !important;
  border: none !important;
  border-radius: 50% !important;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 4px 15px rgba(228,30,49,0.4);
  padding: 0 !important;
  font-size: 1rem;
  transition: transform 0.2s;
}
#sp-back-top:hover { transform: translateY(-3px); }

/* ── Footer ── */
#colophon, .site-footer:not(.sp-footer) { display: none !important; }
.sp-footer {
  background: linear-gradient(180deg, #0d1117, #080c14);
  border-top: 3px solid var(--primary);
  padding: 0;
  margin-top: 3rem;
}
.sp-footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding: 3rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.sp-footer-col h4 {
  color: var(--primary) !important;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}
.sp-footer-col p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }
.sp-footer-col ul { list-style: none; padding: 0; margin: 0; }
.sp-footer-col ul li { margin-bottom: 0.5rem; }
.sp-footer-col ul li a {
  color: var(--text-secondary) !important;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.sp-footer-col ul li a:hover { color: var(--primary) !important; }
.sp-social-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.sp-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text-secondary) !important;
  transition: all 0.2s;
  text-decoration: none;
}
.sp-social-links a:hover { background: var(--primary); color: white !important; }

/* Newsletter mini (footer) */
.sp-newsletter-mini { margin-top: 1rem; }
.sp-newsletter-mini h5 { color: var(--text-primary) !important; font-size: 0.85rem; margin-bottom: 0.5rem; }
.sp-newsletter-mini form, .sp-nl-mini-form {
  display: flex;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.sp-newsletter-mini input, .sp-nl-mini-form input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: none;
  background: var(--bg-dark);
  color: var(--text-primary);
  font-size: 0.8rem;
}
.sp-newsletter-mini input::placeholder, .sp-nl-mini-form input::placeholder { color: var(--text-secondary); }
.sp-newsletter-mini button, .sp-nl-mini-form button {
  background: var(--primary) !important;
  color: white !important;
  border: none !important;
  padding: 0.5rem 0.75rem !important;
  cursor: pointer;
  border-radius: 0 !important;
}

.sp-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-top: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sp-footer-bottom p { color: var(--text-secondary); font-size: 0.8rem; margin: 0; }
.sp-footer-bottom-links { display: flex; gap: 1.5rem; }
.sp-footer-bottom-links a {
  color: var(--text-secondary) !important;
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}
.sp-footer-bottom-links a:hover { color: var(--primary) !important; }

/* ── Live Ticker base ── */
.live-ticker {
  background: linear-gradient(135deg, var(--bg-card), #1a1f2e);
  border: 1px solid rgba(228,30,49,0.2);
  border-radius: var(--radius);
  padding: 0.75rem;
}
.live-badge {
  background: var(--primary);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  animation: pulse 2s infinite;
}

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

/* ── Widget/Sidebar ── */
.widget, .wp-block-widget-area {
  background: var(--bg-card) !important;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}
.widget-title, .wp-block-heading {
  color: var(--primary) !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

/* ── Links & Scrollbar ── */
a { color: var(--primary); }
a:hover { color: #ff4757; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ── SportsPress ── */
.sp-template, .sp-template table { background: var(--bg-card) !important; color: var(--text-primary) !important; }
.sp-template th { background: var(--secondary) !important; color: var(--primary) !important; }
.sp-template td { border-color: var(--border) !important; color: var(--text-secondary) !important; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .sp-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-title a { font-size: 1.25rem; }
  .main-navigation a { font-size: 0.8rem; padding: 0.4rem 0.6rem; }
  .main-navigation ul { flex-direction: column; }
  .sp-footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .sp-footer-bottom { flex-direction: column; text-align: center; }
  .sp-related-grid { grid-template-columns: 1fr; }
  .sp-articles-grid { grid-template-columns: 1fr; }
  .sp-newsletter-form { flex-direction: column; }
  .sp-match-teams { font-size: 0.85rem; }
  .sp-team-logo { width: 20px; height: 20px; }
  .sp-share-bar { justify-content: center; }
  .sp-cookie-inner { flex-direction: column; text-align: center; }
  .sp-subnav { gap: 0; }
  .sp-subnav-item { padding: 0.6rem 0.9rem; font-size: 0.75rem; }
  .sp-header-social { justify-content: center; }
}

/* Dropdown menu styles */
.main-navigation ul li { position: relative; }
.main-navigation ul li:hover > .sub-menu { display: block; opacity: 1; transform: translateY(0); }
.main-navigation ul .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #111128;
  border: 1px solid #2a2a4e;
  border-radius: 8px;
  padding: 8px 0;
  min-width: 200px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.2s;
}
.main-navigation ul .sub-menu li { display: block; }
.main-navigation ul .sub-menu li a {
  display: block;
  padding: 10px 20px !important;
  color: #ccc !important;
  font-size: 14px;
  white-space: nowrap;
}
.main-navigation ul .sub-menu li a:hover { background: #1a1a2e; color: #e63946 !important; }
@media (max-width: 768px) {
  .main-navigation ul .sub-menu { position: static; background: #0a0a1e; border: none; box-shadow: none; display: none; transform: none; opacity: 1; }
  .main-navigation ul li:hover > .sub-menu, .main-navigation ul li.active > .sub-menu { display: block; }
  .main-navigation ul .sub-menu li a { padding-left: 30px !important; font-size: 13px; }
}

/* ══════════════════════════════════════════
   MOBILE RESPONSIVENESS FIXES — 2026-04-26
   ══════════════════════════════════════════ */

/* 1. Reduce oversized header on mobile (was 234px, target ≤90px) */
@media (max-width: 768px) {
  .site-header, #masthead { padding: 0.4rem 0.75rem !important; }
  .site-branding .custom-logo { max-height: 40px !important; width: auto !important; }
  .site-branding-area { gap: 8px !important; }
  .site-title a, .site-branding .site-title a { font-size: 1.1rem !important; }
  .site-description { font-size: 0.75rem !important; display: none; }
  .sp-header-social { padding: 0.2rem 0.75rem; font-size: 0.8rem; }
  #masthead .site-branding { padding-top: 0.3rem !important; padding-bottom: 0.3rem !important; }
}
@media (max-width: 480px) {
  .site-title a, .site-branding .site-title a { font-size: 1rem !important; }
  .site-branding .custom-logo { max-height: 32px !important; }
  .sp-header-social { display: none; }
}

/* 2. Fix article/post grid fluid width on mobile */
@media (max-width: 768px) {
  .sp-articles-grid,
  .wpmotif-posts-grid,
  .wpmotif-archive-posts-grid { width: 100% !important; max-width: 100% !important; grid-template-columns: 1fr !important; }
  .sp-news-3col { display: flex !important; flex-direction: column !important; gap: 1.5rem !important; }
  .entry-content, .page-content, #primary, .site-main { max-width: 100vw !important; overflow-x: hidden !important; }
}

/* 3. Live scores: limit height so page heading is still visible */
@media (max-width: 768px) {
  .sp-live-container { max-height: 70vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
}

/* 4. Team logo touch targets: 44px minimum row height */
@media (max-width: 768px) {
  .sp-team-logo { width: 28px !important; height: 28px !important; }
  .sp-team { min-height: 44px; }
  .sp-match-row { padding: 0.85rem 0.75rem; }
  .sp-filter-btn { min-height: 44px !important; }
}

/* 5. Sport nav grid — 2 cols on mobile */
@media (max-width: 768px) {
  .sp-sport-nav-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.75rem !important; }
  .sp-sport-nav-item { padding: 0.85rem 0.5rem; font-size: 0.85rem; }
}

/* 6. Teams quick-links — column on mobile */
@media (max-width: 768px) {
  .sp-teams-quicklinks { display: flex !important; flex-direction: column !important; gap: 0.75rem; }
  .sp-team-ql-card { flex-direction: row; align-items: center; }
}

/* 7. Video grid — single column on mobile */
@media (max-width: 768px) {
  .sp-video-grid { grid-template-columns: 1fr !important; }
  .sp-video-card { display: flex; gap: 0.75rem; align-items: flex-start; }
  .sp-video-thumb { flex-shrink: 0; width: 120px; overflow: hidden; border-radius: 8px; }
  .sp-video-thumb img { height: 80px; object-fit: cover; }
  .sp-video-info { flex: 1; }
  .sp-video-title { font-size: 0.85rem; }
}

/* 8. Prevent tables from causing horizontal scroll */
@media (max-width: 768px) {
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }
}

/* 9. Hero featured — compact on small mobile */
@media (max-width: 480px) {
  .sp-hero-featured { min-height: 240px; border-radius: 8px; }
  .sp-hero-title { font-size: 1.2rem !important; }
  .sp-hero-excerpt { display: none; }
}

/* 10. Newsletter form — stacked on small mobile */
@media (max-width: 480px) {
  .sp-newsletter-form, .sp-nl-form { flex-direction: column; }
  .sp-nl-input { border-radius: 6px !important; margin-bottom: 0.5rem; }
  .sp-nl-btn { border-radius: 6px !important; }
}

/* 11. Related articles — single column on small mobile */
@media (max-width: 480px) {
  .sp-related-grid { grid-template-columns: 1fr !important; }
  .sp-related-card img { height: 140px; }
}

/* 12. Social share bar — compact on small mobile */
@media (max-width: 480px) {
  .sp-share-bar { gap: 0.35rem; }
  .sp-share-label { display: none; }
}

/* 13. Top scorers — compact on small mobile */
@media (max-width: 480px) {
  .sp-scorer-rank { width: 28px; height: 28px; font-size: 0.8rem; }
  .sp-scorer-goals { width: 40px; font-size: 1rem; }
}

/* Header height micro-fix — reduce to ≤88px on mobile */
@media (max-width: 768px) {
  #masthead, .site-header { max-height: 88px !important; overflow: hidden; }
  .site-branding-area { padding: 0 !important; margin: 0 !important; }
  .site-branding { padding-top: 0 !important; padding-bottom: 0 !important; }
  .site-topbar, .sp-header-topbar { display: none !important; }
  .site-header-inner, .header-wrapper { padding: 0.35rem 0.75rem !important; }
  .custom-logo-link img, .site-branding .custom-logo { max-height: 36px !important; }
  .site-title { line-height: 1.1 !important; margin: 0 !important; }
  .site-description { display: none !important; }
}
