/* ============================================================
   SPORT TEMPLATE — Fidèle aux prototypes Desktop + Mobile
   Vert forêt #1a472a | Dark mode | Responsive
   ============================================================ */

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

:root {
  --primary:        #1a472a;
  --primary-dark:   #0f2818;
  --accent:         #2d5f3f;
  --bg:             #f0f5f1;
  --bg-card:        #fff;
  --text:           #0a0a0a;
  --text-secondary: #666;
  --border:         #d0d0d0;
}

[data-theme="dark"] {
  --primary:        #2d5f3f;
  --primary-dark:   #1a472a;
  --accent:         #3d7f5f;
  --bg:             #0a0a0a;
  --bg-card:        #1a1a1a;
  --text:           #fff;
  --text-secondary: #999;
  --border:         #333;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── TOP BAR (desktop only) ─────────────────────────────── */
.top-bar {
  background: var(--primary-dark);
  color: #fff;
  padding: 8px 0;
  border-bottom: 2px solid var(--primary);
  font-size: 12px;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-social { display: flex; gap: 16px; }
.top-bar-links  { display: flex; gap: 20px; }
.top-bar a { color: rgba(255,255,255,.85); transition: opacity .2s; }
.top-bar a:hover { opacity: .7; }

/* ── HEADER (desktop) ───────────────────────────────────── */
.site-header {
  background: var(--bg-card);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background .3s;
}
.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 20px;
}
.site-logo {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo img { height: 38px; object-fit: contain; }
.site-logo:hover { color: var(--accent); }

.header-search {
  flex: 1;
  max-width: 500px;
  margin: 0 40px;
}
.header-search input {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.header-search input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
}

.dark-toggle-btn {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: background .2s, border-color .2s;
  white-space: nowrap;
}
.dark-toggle-btn:hover { background: var(--accent); border-color: var(--accent); }

/* Nav bar */
.site-nav {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding-bottom: 16px;
}
.site-nav a {
  padding: 12px 20px;
  color: var(--text);
  font-weight: 600;
  border: 1px solid transparent;
  transition: all .2s;
}
.site-nav a:hover { background: var(--bg); border-color: var(--border); }
.site-nav a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── LIVE SCORES BAR ────────────────────────────────────── */
.live-scores-bar {
  background: var(--primary-dark);
  color: #fff;
  padding: 16px 0;
  border-bottom: 2px solid var(--primary);
  overflow: hidden;
}
.live-scores-label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 12px;
}
.scores-container {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.scores-container::-webkit-scrollbar { display: none; }

.score-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  padding: 12px 16px;
  min-width: 200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all .2s;
  flex-shrink: 0;
}
.score-card:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.4); }
.score-teams { flex: 1; }
.score-team {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px; font-size: 13px; font-weight: 600;
}
.score-team:last-child { margin-bottom: 0; }
.score-number { font-size: 18px; font-weight: 900; min-width: 30px; text-align: right; }
.score-live {
  background: #ef4444; color: #fff;
  padding: 2px 6px; font-size: 10px; font-weight: 700;
  margin-left: 12px; flex-shrink: 0;
  animation: pulse 2s infinite;
}
.score-time {
  background: rgba(255,255,255,.25); color: #fff;
  padding: 2px 6px; font-size: 10px; font-weight: 700;
  margin-left: 12px; flex-shrink: 0;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }

/* ── AD BANNER ──────────────────────────────────────────── */
.ad-banner {
  background: #e0e0e0; border: 1px solid #ccc;
  padding: 40px; text-align: center;
  margin: 20px 0; color: #999; font-weight: 600;
  position: relative;
}
.ad-banner::after {
  content: 'PUBLICITÉ';
  position: absolute; top: 8px; right: 12px;
  font-size: 10px; color: #aaa;
}
.ad-banner-small { padding: 20px; min-height: 50px; }
.ad-banner-rect  { height: 250px; display: flex; align-items: center; justify-content: center; margin: 0; }

/* ── MAIN LAYOUT ────────────────────────────────────────── */
.main-content {
  max-width: 1200px; margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
}

/* ── FEATURED ARTICLE ───────────────────────────────────── */
.featured-article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 40px; overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.featured-article:hover { border-color: var(--primary); transform: translateY(-2px); }

.featured-image {
  height: 400px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  position: relative; overflow: hidden;
}
.featured-image img { width: 100%; height: 100%; object-fit: cover; }
.no-img-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,.3);
}

.featured-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
  color: #fff;
}

.cat-badge {
  display: inline-block; padding: 6px 14px;
  background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700;
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px;
}
.cat-badge-sm {
  display: inline-block; padding: 4px 10px;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700;
  margin-bottom: 8px; text-transform: uppercase;
}

.featured-title {
  font-size: 32px; font-weight: 900;
  line-height: 1.2; margin-bottom: 12px;
}
.featured-excerpt { font-size: 16px; opacity: .9; }

.featured-content { padding: 24px; }

.article-meta {
  display: flex; gap: 16px; align-items: center;
  color: var(--text-secondary); font-size: 14px;
}
.author-avatar {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--primary); border: 1px solid var(--primary);
  object-fit: cover;
}
.author-placeholder {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--primary); color: #fff;
  font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}

/* ── ARTICLES GRID (horizontal cards desktop) ───────────── */
.articles-grid { display: flex; flex-direction: column; gap: 24px; }

.article-card {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 20px; display: flex; gap: 20px;
  transition: border-color .3s, transform .3s;
  color: var(--text);
}
.article-card:hover { border-color: var(--primary); transform: translateX(4px); }

.article-thumbnail {
  width: 200px; height: 140px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  overflow: hidden;
}
.article-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.article-content { flex: 1; }
.article-title {
  font-size: 20px; font-weight: 700;
  margin-bottom: 8px; line-height: 1.3;
}
.article-excerpt {
  color: var(--text-secondary); font-size: 14px;
  margin-bottom: 12px; line-height: 1.5;
}

/* ── SIDEBAR ────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.widget {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 24px; transition: background .3s, border-color .3s;
}
.widget-title {
  font-size: 18px; font-weight: 700;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

/* Trending widget */
.widget-trending { background: #000 !important; color: #fff !important; border-color: #000 !important; }
.widget-trending .widget-title { color: #fff; border-color: rgba(255,255,255,.2); }
.trending-item { border-bottom: 1px solid rgba(255,255,255,.1); padding: 12px 0; }
.trending-item:last-child { border-bottom: none; padding-bottom: 0; }
.trending-rank  { font-size: 12px; color: rgba(255,255,255,.6); font-weight: 700; margin-bottom: 4px; text-transform: uppercase; }
.trending-text  { font-size: 16px; font-weight: 700; line-height: 1.3; color: #fff; }
.trending-views { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 4px; }

/* Video widget */
.video-item { margin-bottom: 12px; cursor: pointer; }
.video-item:last-child { margin-bottom: 0; }
.video-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  position: relative; border: 1px solid var(--border); overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 50px; height: 50px;
  background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: transform .2s;
}
.video-item:hover .video-play { transform: translate(-50%, -50%) scale(1.1); }
.video-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: #000; color: #fff;
  padding: 4px 8px; font-size: 11px; font-weight: 700;
}
.video-title { font-size: 14px; font-weight: 700; margin-top: 8px; line-height: 1.3; }
.video-meta  { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* Widget list */
.widget-list { list-style: none; }
.widget-list li { padding: 10px 0; border-bottom: 1px solid var(--bg); }
.widget-list li:last-child { border-bottom: none; }
.widget-list a {
  color: var(--text); display: flex;
  justify-content: space-between; align-items: center;
  transition: all .2s;
}
.widget-list a:hover { color: var(--primary); padding-left: 4px; }
.count-badge {
  background: var(--bg); border: 1px solid var(--border);
  padding: 2px 8px; font-size: 12px; font-weight: 600; color: var(--text-secondary);
}

/* Newsletter widget */
.widget-newsletter { background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; }
.widget-newsletter .widget-title { color: #fff; border-color: rgba(255,255,255,.3); }
.widget-newsletter p { margin-bottom: 16px; opacity: .9; font-size: 14px; }
.newsletter-input {
  width: 100%; padding: 12px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1); color: #fff;
  margin-bottom: 12px; outline: none;
  font-size: 14px; transition: all .2s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.6); }
.newsletter-input:focus { background: rgba(255,255,255,.2); border-color: #fff; }
.newsletter-btn {
  width: 100%; padding: 12px;
  background: #fff; color: var(--primary);
  border: 1px solid #fff; font-weight: 700;
  font-size: 14px; cursor: pointer; transition: all .2s;
}
.newsletter-btn:hover { background: transparent; color: #fff; }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--primary-dark); color: #fff;
  border-top: 4px solid var(--primary);
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 60px 0 40px;
}
.footer-col h3 {
  font-size: 16px; font-weight: 700;
  margin-bottom: 20px; text-transform: uppercase;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: rgba(255,255,255,.8); font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-col p { color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.2);
  padding: 20px 0; text-align: center;
  font-size: 14px; color: rgba(255,255,255,.6);
}
.footer-bottom a { color: inherit; }

/* ── SINGLE ARTICLE ─────────────────────────────────────── */
.article-header { padding: 40px 0 24px; }
.article-cat-badge { display: inline-block; padding: 6px 14px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 16px; }
.article-title-h1 { font-size: 2.2rem; font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
.article-meta-bar { display: flex; gap: 20px; align-items: center; color: var(--text-secondary); font-size: 14px; flex-wrap: wrap; }

.article-featured-img { width: 100%; max-height: 500px; object-fit: cover; margin-bottom: 32px; }
.article-body { font-size: 16px; line-height: 1.8; color: var(--text); }
.article-body p   { margin-bottom: 18px; }
.article-body h2,
.article-body h3  { font-weight: 700; margin: 28px 0 12px; }
.article-body img { margin: 20px 0; max-width: 100%; }
.article-body blockquote {
  border-left: 4px solid var(--primary); padding: 12px 20px;
  background: rgba(26,71,42,.05); color: var(--text-secondary);
  margin: 20px 0; font-style: italic;
}
.article-body a { color: var(--primary); text-decoration: underline; }

.tags-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 24px; align-items: center; }
.tags-label { font-size: 13px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; margin-right: 4px; }
.tag-pill {
  padding: 6px 14px; background: var(--bg); border: 1px solid var(--border);
  color: var(--text); font-size: 13px; font-weight: 600; transition: all .2s;
}
.tag-pill:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.share-box { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border); margin: 24px 0; }
.share-label { font-size: 13px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; }
.share-btn { padding: 8px 16px; font-weight: 700; font-size: 13px; border: none; cursor: pointer; color: #fff; transition: opacity .2s; }
.share-btn:hover { opacity: .85; }
.share-btn-fb   { background: #1877f2; }
.share-btn-tw   { background: #1da1f2; }
.share-btn-copy { background: var(--text-secondary); }

/* Comments */
.comments-section { margin-top: 48px; }
.comments-section h3 { font-size: 1.3rem; font-weight: 700; border-bottom: 3px solid var(--primary); padding-bottom: 12px; margin-bottom: 24px; }
.comment-item { display: flex; gap: 14px; margin-bottom: 20px; }
.comment-avatar {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.comment-body { flex: 1; }
.comment-meta { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.comment-meta strong { color: var(--text); }
.comment-text { font-size: 15px; line-height: 1.6; }

.comment-form { background: var(--bg-card); border: 1px solid var(--border); padding: 24px; margin-top: 32px; }
.comment-form h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; display: block; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 12px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 14px; outline: none; font-family: inherit;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); }
.btn-submit {
  background: var(--primary); color: #fff; border: none;
  padding: 12px 28px; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover { background: var(--accent); }

/* Related articles */
.related-section { margin-top: 48px; }
.related-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { background: var(--bg-card); border: 1px solid var(--border); overflow: hidden; transition: border-color .2s; }
.related-card:hover { border-color: var(--primary); }
.related-thumb { height: 140px; background: linear-gradient(135deg, var(--primary), var(--accent)); overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-body { padding: 14px; }
.related-card-title { font-size: 14px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.related-card-meta  { font-size: 12px; color: var(--text-secondary); }

/* ── CATEGORY / TAG PAGE ────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  border-bottom: 4px solid var(--primary);
  padding: 40px 0;
  color: #fff;
  margin-bottom: 0;
}
.page-banner-inner { display: flex; align-items: center; gap: 20px; }
.page-banner-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.15); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.page-banner-name { font-size: 2rem; font-weight: 900; }
.page-banner-desc { font-size: 15px; opacity: .85; margin-top: 4px; }
.page-banner-count { display: inline-block; margin-top: 10px; background: rgba(255,255,255,.2); padding: 4px 12px; font-size: 13px; font-weight: 700; }

/* Posts list (category) */
.posts-list { display: flex; flex-direction: column; gap: 24px; }

.post-list-card {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 20px; display: flex; gap: 20px;
  transition: border-color .3s, transform .3s; color: var(--text);
}
.post-list-card:hover { border-color: var(--primary); transform: translateX(4px); }
.post-list-thumb {
  width: 200px; height: 140px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent)); overflow: hidden;
}
.post-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-list-body { flex: 1; }
.post-list-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.post-list-excerpt { color: var(--text-secondary); font-size: 14px; margin-bottom: 12px; line-height: 1.5; }

/* Empty state */
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border); }
.empty-state i { font-size: 3.5rem; margin-bottom: 16px; opacity: .2; display: block; }

/* Pagination */
.pagination { display: flex; gap: 4px; justify-content: center; margin: 32px 0; }
.page-link {
  padding: 10px 16px; background: var(--bg-card);
  border: 1px solid var(--border); color: var(--text);
  font-weight: 600; font-size: 14px; transition: all .2s;
}
.page-link:hover, .page-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── MOBILE HEADER ──────────────────────────────────────── */
.mobile-header {
  background: var(--bg-card); border-bottom: 2px solid var(--border);
  padding: 12px 16px; display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 100; transition: background .3s;
  display: none;
}
.hamburger-btn {
  width: 28px; height: 28px; display: flex; flex-direction: column;
  justify-content: center; gap: 5px; cursor: pointer; padding: 4px;
  background: none; border: none;
}
.hamburger-btn span { display: block; height: 2px; background: var(--text); transition: all .3s; }
.logo-mobile { font-size: 20px; font-weight: 900; color: var(--primary); letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; }
.logo-mobile img { height: 26px; object-fit: contain; }
.header-icons { display: flex; gap: 16px; align-items: center; }
.icon-btn { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text); padding: 4px; }

.search-mobile-bar { padding: 12px 16px; background: var(--bg-card); border-bottom: 2px solid var(--border); display: none; }
.search-mobile-bar.open { display: block; }
.search-mobile-bar input { width: 100%; padding: 12px 16px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 14px; outline: none; }
.search-mobile-bar input:focus { border-color: var(--primary); }

/* Category pills (mobile) */
.categories-scroll { padding: 12px 16px; overflow-x: auto; scrollbar-width: none; background: var(--bg-card); border-bottom: 2px solid var(--border); transition: background .3s; display: none; }
.categories-scroll::-webkit-scrollbar { display: none; }
.pills-container { display: flex; gap: 8px; }
.pill { padding: 8px 16px; background: var(--bg); border: 1px solid var(--border); color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: all .2s; }
.pill:hover, .pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Bottom nav (mobile) */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-card); border-top: 2px solid var(--border);
  display: none; justify-content: space-around; padding: 8px 0;
  z-index: 100; transition: background .3s;
}
.bn-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 12px; color: var(--text-secondary); font-size: 18px; transition: color .2s; }
.bn-item span { font-size: 11px; font-weight: 600; }
.bn-item.active, .bn-item:hover { color: var(--primary); }

/* Side menu */
.menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 199; opacity: 0; pointer-events: none; transition: opacity .3s; }
.menu-overlay.open { opacity: 1; pointer-events: auto; }
.side-menu { position: fixed; top: 0; left: -100%; width: 280px; height: 100%; background: var(--bg-card); z-index: 200; transition: left .3s; overflow-y: auto; border-right: 2px solid var(--border); }
.side-menu.open { left: 0; }
.side-menu-header { padding: 20px; background: var(--primary); color: #fff; }
.side-menu-header h2 { font-size: 20px; font-weight: 900; }
.side-menu-header p  { font-size: 13px; opacity: .8; margin-top: 4px; }
.side-menu-list { list-style: none; padding: 8px 0; }
.side-menu-list li { border-bottom: 1px solid var(--bg); }
.side-menu-list a { display: block; padding: 16px 20px; color: var(--text); font-weight: 600; transition: background .2s; }
.side-menu-list a:hover { background: var(--bg); }

/* Mobile featured (simpler) */
.mobile-featured { margin: 16px; background: var(--bg-card); border: 1px solid var(--border); overflow: hidden; }
.mobile-feat-img { height: 220px; background: linear-gradient(135deg, var(--primary), var(--accent)); position: relative; overflow: hidden; }
.mobile-feat-img img { width: 100%; height: 100%; object-fit: cover; }
.mobile-feat-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; background: linear-gradient(to top, rgba(0,0,0,.85), transparent); color: #fff; }
.mobile-feat-title { font-size: 18px; font-weight: 900; line-height: 1.3; }
.mobile-feat-body { padding: 12px; }
.mobile-meta { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--text-secondary); }
.mobile-author-placeholder { width: 32px; height: 32px; flex-shrink: 0; background: var(--primary); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* Mobile article cards */
.mobile-articles-list { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 16px; }
.mobile-article-card { background: var(--bg-card); border: 1px solid var(--border); overflow: hidden; color: var(--text); display: block; transition: border-color .2s; }
.mobile-article-card:hover { border-color: var(--primary); }
.mobile-card-img { height: 180px; background: linear-gradient(135deg, var(--primary), var(--accent)); overflow: hidden; }
.mobile-card-img img { width: 100%; height: 100%; object-fit: cover; }
.mobile-card-body { padding: 12px; }
.mobile-card-title { font-size: 16px; font-weight: 700; margin: 6px 0 8px; line-height: 1.3; }
.mobile-card-excerpt { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 10px; }

/* Mobile trending */
.mobile-trending { background: #000; color: #fff; padding: 20px 16px; margin: 16px; border: 1px solid #000; }
.mobile-trending-head { font-size: 16px; font-weight: 700; margin-bottom: 16px; }

/* Mobile newsletter */
.mobile-newsletter { background: var(--primary); color: #fff; padding: 20px 16px; margin: 16px; border: 1px solid var(--primary); }
.mobile-newsletter h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.mobile-newsletter p  { font-size: 13px; margin-bottom: 12px; opacity: .9; }

/* Mobile footer */
.mobile-footer { background: var(--primary-dark); color: #fff; padding: 32px 16px; border-top: 4px solid var(--primary); }
.mobile-footer h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; }
.mobile-footer ul { list-style: none; margin-bottom: 24px; }
.mobile-footer li { margin-bottom: 10px; }
.mobile-footer a  { color: rgba(255,255,255,.8); font-size: 13px; }
.mobile-footer-bottom { text-align: center; font-size: 12px; color: rgba(255,255,255,.6); padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .main-content { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Switch to mobile layout */
  body { padding-bottom: 70px; }

  .top-bar { display: none; }
  .site-header { display: none; }
  .live-scores-bar .container { padding: 0; }
  .live-scores-bar { padding: 12px 0; }
  .scores-container { padding: 0 16px; gap: 12px; }
  .score-card { min-width: 160px; padding: 10px 12px; }
  .score-number { font-size: 16px; }

  .main-content { display: block; padding: 0; }
  .main-content > aside.sidebar { display: none; }

  .mobile-header    { display: flex; }
  .categories-scroll{ display: block; }
  .bottom-nav       { display: flex; }

  .ad-banner { margin: 16px; }

  .featured-article,
  .articles-grid { display: none; }

  .mobile-featured,
  .mobile-articles-list { display: block; }

  .article-card { flex-direction: column; }
  .article-thumbnail { width: 100%; height: 200px; }

  .related-grid { grid-template-columns: 1fr; }

  .page-banner { padding: 24px 0; }
  .page-banner-name { font-size: 1.4rem; }
  .post-list-card { flex-direction: column; }
  .post-list-thumb { width: 100%; height: 200px; }

  .footer-grid { display: none; }
  .footer-bottom { display: none; }
}

@media (min-width: 769px) {
  .mobile-featured,
  .mobile-articles-list,
  .mobile-trending,
  .mobile-newsletter,
  .mobile-footer,
  .side-menu,
  .menu-overlay { display: none !important; }

  .featured-article { display: block; }
}
