/* ===========================================================
   SCORES365 — espn-theme.css (v0.8)
   Public site theme. Poppins font, 1300px container.
   Desktop: ticker + mega-menu nav. Mobile: icon strip + full-screen overlays.
   The admin dashboard keeps its own theme (assets/css/style.css).
=========================================================== */

/* Poppins font is loaded via <link> in each page's <head> (faster than @import) */

:root{
  --e-bg:#ffffff; --e-bg-soft:#f6f6f8; --e-ticker-bg:#faf7f0;
  --e-nav-bg:#14161a; --e-nav-text:#dfe1e6; --e-nav-text-dim:#8b8f98;
  --e-red:#e0142c; --e-red-dark:#b30f22;
  --e-text:#161821; --e-text-dim:#5b5f6b; --e-text-faint:#8a8e98;
  --e-border:#e9e9ec; --e-border-soft:#f1f1f3;
  --e-live:#0a8a3c;
  --e-shadow-card: 0 1px 2px rgba(20,20,30,.04), 0 6px 20px rgba(20,20,30,.06);
  --e-shadow-card-hover: 0 4px 10px rgba(20,20,30,.06), 0 14px 32px rgba(20,20,30,.10);
}
[data-theme="dark"]{
  --e-bg:#111214; --e-bg-soft:#191b1e; --e-ticker-bg:#1b1d20;
  --e-nav-bg:#0b0c0d; --e-nav-text:#d9dbe0; --e-nav-text-dim:#787c85;
  --e-text:#f0f1f3; --e-text-dim:#b7bac0; --e-text-faint:#7d8189;
  --e-border:#2a2c30; --e-border-soft:#232527;
}

*{ box-sizing:border-box; }
.espn-body{ background:var(--e-bg-soft); color:var(--e-text); font-family:'Poppins',sans-serif; min-height:100vh; -webkit-font-smoothing:antialiased; margin:0; overflow-x:hidden; }
.espn-body a{ color:inherit; text-decoration:none; }
.espn-scroll::-webkit-scrollbar{ height:6px; }
.espn-scroll::-webkit-scrollbar-thumb{ background:var(--e-border); }
.e-wrap{ max-width:1300px; margin:0 auto; padding:0 28px; }
@media (max-width:600px){ .e-wrap{ padding:0 16px; } }

/* ---------------- dev switcher bar ---------------- */
.e-devbar{ padding:6px 0; background:var(--e-nav-bg); font-size:10.5px; color:var(--e-nav-text-dim); }
.e-devbar-inner{ display:flex; align-items:center; justify-content:flex-end; }
.e-devbar a{ color:var(--e-nav-text-dim); }
.e-devbar .switch{ display:flex; align-items:center; gap:10px; }
.e-devbar .switch a.active{ color:#fff; font-weight:700; }
.e-theme-toggle{ background: #8fbb32; border: 1px solid #333;  color: #ffffff; width:22px; height:22px; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; border-radius:4px; }

/* ================= DESKTOP (≥861px) ================= */
.e-desktop-only{ display:block; }
.e-mobile-only{ display:none; }

/* ticker */
.e-ticker{ background:var(--e-ticker-bg); border-bottom:1px solid var(--e-border); }
.e-ticker-track{ display:flex; overflow-x:auto; scrollbar-width:none; }
.e-ticker-track::-webkit-scrollbar{ display:none; }
.e-ticker-item{ position:relative; flex-shrink:0; padding:12px 20px; border-right:1px solid var(--e-border); cursor:pointer; min-width:168px; transition:background .12s ease; }
.e-ticker-item:hover{ background:rgba(0,0,0,.03); }
.e-ticker-comp{ font-size:9px; font-weight:700; letter-spacing:.3px; color:var(--e-text); text-transform:uppercase; margin-bottom:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:150px; }
.e-ticker-label{ font-size:10px; font-weight:700; letter-spacing:.4px; color:var(--e-text-faint); text-transform:uppercase; margin-bottom:5px; }
.e-ticker-row{ display:flex; align-items:center; justify-content:space-between; font-size:13px; font-weight:600; padding:2px 0; }
.e-ticker-score{ font-variant-numeric:tabular-nums; color:var(--e-text); font-weight:700; }

/* nav */
.e-nav{ background:var(--e-nav-bg); position:relative; z-index:40; }
.e-nav-inner{ display:flex; align-items:center; gap:8px; height:64px; max-width:1300px; margin:0 auto; padding:0 28px; }
.e-logo{ font-weight:800; font-size:22px; letter-spacing:-.5px; color:#fff; padding-right:28px; display:flex; align-items:center; }
.e-logo .r{ color:var(--e-red); }
.e-nav-items{ display:flex; align-items:center; height:100%; flex:1; gap:2px; }
.e-nav .e-nav-item{ position:relative; height:100%; display:flex; align-items:center; gap:7px; padding:0 16px; font-size:13.5px; font-weight:600; color:var(--e-nav-text); cursor:pointer; white-space:nowrap; text-decoration:none; }
.e-nav-icon{ width:16px; height:16px; flex-shrink:0; }
.e-nav-item:hover{ color:#fff; }
.e-nav-item:hover:after{ content:""; position:absolute; left:16px; right:16px; bottom:0; height:3px; background:var(--e-red); border-radius:3px 3px 0 0; }
.e-nav-right{ display:flex; align-items:center; gap:16px; color:var(--e-nav-text); }
.e-nav-right button, .e-nav-right a{ background:transparent; border:none; color:var(--e-nav-text); cursor:pointer; display:flex; }
.e-nav-right button:hover, .e-nav-right a:hover{ color:#fff; }

.e-search-panel{ display:none; position:absolute; top:100%; right:28px; background:var(--e-bg); border:1px solid var(--e-border); border-radius:10px; box-shadow:var(--e-shadow-card-hover); padding:14px; width:320px; z-index:60; }
.e-search-panel.open{ display:block; }
.e-search-panel input{ width:100%; padding:9px 12px; border:1px solid var(--e-border); border-radius:8px; font-family:'Poppins',sans-serif; font-size:13px; color:var(--e-text); background:var(--e-bg-soft); outline:none; box-sizing:border-box; }
.e-search-panel input:focus{ border-color:var(--e-red); }
.e-search-result{ display:flex; gap:10px; padding:9px 4px; border-top:1px solid var(--e-border-soft); align-items:center; }
.e-search-result:first-child{ border-top:none; margin-top:8px; }
.e-search-result img{ width:44px; height:34px; object-fit:cover; border-radius:5px; flex-shrink:0; }
.e-search-result .t{ font-size:12.5px; font-weight:600; color:var(--e-text); line-height:1.35; }
.e-search-empty{ font-size:12px; color:var(--e-text-faint); padding:10px 4px 2px; }

.e-mega{ display:none; position:absolute; top:100%; left:0; background:var(--e-bg); border-top:3px solid var(--e-red); box-shadow:var(--e-shadow-card-hover); padding:26px 30px; z-index:41; border-radius:0 0 10px 10px; max-width:min(90vw, 980px); }
.e-nav-item:hover .e-mega{ display:grid; grid-template-columns:repeat(4, minmax(150px, 1fr)); gap:22px 34px; }

/* compact nested dropdown (league -> team flyout) */
.e-mega-nested{ display:none; padding:8px !important; min-width:220px; max-width:220px; }
.e-nav-item:hover .e-mega-nested{ display:block !important; }
.e-mega-nest-item{ position:relative; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:10px 12px; font-size:13px; font-weight:600; color:var(--e-text); cursor:default; border-radius:6px; }
.e-mega-nest-item:hover{ background:var(--e-bg-soft); color:var(--e-red); }
.e-mega-flyout{ display:none; position:absolute; left:100%; top:-8px; background:var(--e-bg); border:1px solid var(--e-border); box-shadow:var(--e-shadow-card-hover); border-radius:8px; padding:8px; min-width:210px; max-height:320px; overflow-y:auto; z-index:42; }
.e-mega-nest-item:hover .e-mega-flyout{ display:block; }
.e-mega-flyout a{ display:block; padding:8px 12px; font-size:12.5px; font-weight:500; color:var(--e-text); border-radius:6px; }
.e-mega-flyout a:hover{ background:var(--e-bg-soft); color:var(--e-red); }
@media (max-width:860px){ .e-mega, .e-mega-nested{ display:none !important; } }
.e-mega-col{ min-width:150px; }
.e-mega-col-title{ font-size:10.5px; font-weight:700; letter-spacing:.5px; color:var(--e-text-faint); text-transform:uppercase; margin-bottom:12px; }
.e-mega-col a{ display:block; padding:6px 0; font-size:13.5px; font-weight:500; color:var(--e-text); min-width:0; }
.e-mega-col a > span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:block; min-width:0; }
.e-mega-col a:hover{ color:var(--e-red); }
.e-mega-grid{ display:grid; grid-template-columns:repeat(3, 150px); gap:2px 30px; }

/* ================= MOBILE (≤860px) ================= */
@media (max-width:860px){
  .e-desktop-only{ display:none !important; }
  .e-mobile-only{ display:block !important; }
}

.e-mtop{ background:var(--e-bg); border-bottom:1px solid var(--e-border); display:flex; align-items:center; justify-content:space-between; padding:12px 16px; position:sticky; top:0; z-index:30; }
.e-mtop-left{ display:flex; align-items:center; gap:12px; }
.e-mtop button{ background:none; border:none; padding:0; cursor:pointer; display:flex; }
.e-mtop button svg{ width:22px; height:22px; color:var(--e-text); }
.e-logo-badge{ background:var(--e-red); color:#fff !important; font-weight:800; padding:4px 9px; border-radius:3px; font-size:14px; letter-spacing:.3px; text-decoration:none; display:inline-block; }
.e-scores-link{ font-size:13px; font-weight:700; color:var(--e-text); cursor:pointer; }

.e-sport-icons{ display:flex; overflow-x:auto; background:var(--e-bg); border-bottom:1px solid var(--e-border); scrollbar-width:none; }
.e-sport-icons::-webkit-scrollbar{ display:none; }
.e-sport-icon-item{ flex-shrink:0; display:flex; flex-direction:column; align-items:center; gap:5px; padding:11px 13px; cursor:pointer; }
.e-sport-icon-item .ic{ width:22px; height:22px; display:flex; align-items:center; justify-content:center; color:var(--e-text); }
.e-sport-icon-item .ic svg{ width:100%; height:100%; }
.e-sport-icon-item .lbl{ font-size:9px; font-weight:600; color:var(--e-text); white-space:nowrap; }

/* full-screen mobile menu overlay */
.e-menu-overlay{ display:none; position:fixed; inset:0; background:var(--e-nav-bg); z-index:100; flex-direction:column; }
.e-menu-overlay.open{ display:flex; }
.e-menu-top{ display:flex; align-items:center; justify-content:space-between; padding:13px 16px; border-bottom:1px solid #26282c; flex-shrink:0; }
.e-menu-top button svg{ width:20px; height:20px; color:#fff; }
.e-menu-body{ display:flex; flex:1; min-height:0; }
.e-menu-rail{ width:58px; background:var(--e-nav-bg); border-right:1px solid #26282c; display:flex; flex-direction:column; align-items:center; padding-top:14px; gap:18px; flex-shrink:0; }
.e-menu-rail-item{ display:flex; flex-direction:column; align-items:center; gap:4px; color:var(--e-nav-text-dim); }
.e-menu-rail-item.active{ color:var(--e-red); }
.e-menu-rail-item svg{ width:19px; height:19px; }
.e-menu-rail-item span{ font-size:8.5px; font-weight:600; }
.e-menu-list{ flex:1; background:#fff; overflow-y:auto; }
.e-menu-list-title{ font-size:11px; font-weight:700; color:var(--e-text-faint); text-transform:uppercase; letter-spacing:.4px; padding:14px 16px 8px; }
.e-menu-list a{ display:flex; align-items:center; justify-content:space-between; padding:13px 16px; font-size:13.5px; font-weight:700; color:#111; border-bottom:1px solid var(--e-border-soft); }

/* mobile accordion (mirrors desktop mega menu — team links included) */
.e-mnav-accordion{ border-bottom:1px solid var(--e-border-soft); }
.e-mnav-accordion-toggle{ width:100%; background:none; border:none; padding:13px 16px; font-family:'Poppins',sans-serif; font-size:13.5px; font-weight:700; color:#111; cursor:pointer; display:flex; align-items:center; justify-content:space-between; text-align:left; }
.e-mnav-chev{ width:14px; height:14px; flex-shrink:0; color:#888; transition:transform .15s ease; }
.e-mnav-accordion.open .e-mnav-chev{ transform:rotate(180deg); }
.e-mnav-accordion-body{ display:none; background:#fafafa; padding:4px 0 8px; }
.e-mnav-accordion.open .e-mnav-accordion-body{ display:block; }
.e-msub-title{ padding:8px 16px 4px; font-size:10px; font-weight:700; color:#999; text-transform:uppercase; letter-spacing:.3px; }
.e-msub-link{ display:block; padding:8px 16px 8px 22px; font-size:12.5px; font-weight:600; color:#333; }
.e-msub-link:active{ background:#f0f0f0; }

/* full-screen mobile scores overlay */
.e-scores-overlay{ display:none; position:fixed; inset:0; background:#fff; z-index:110; flex-direction:column; }
.e-scores-overlay.open{ display:flex; }
.e-scores-top{ display:flex; align-items:center; justify-content:space-between; padding:12px 16px; border-bottom:1px solid var(--e-border); flex-shrink:0; }
.e-scores-dropdown{ margin:12px 16px 6px; padding:11px 14px; border:1px solid var(--e-border); border-radius:8px; display:flex; justify-content:space-between; align-items:center; font-size:13px; font-weight:700; color:#111; flex-shrink:0; }
.e-scores-dropdown svg{ width:15px; height:15px; color:var(--e-text-faint); }
.e-scores-body{ flex:1; overflow-y:auto; padding:4px 16px 24px; }
.e-scores-section{ border:1px solid var(--e-border); border-radius:10px; margin-bottom:14px; overflow:hidden; }
.e-scores-section-head{ display:flex; justify-content:space-between; align-items:center; padding:11px 14px; border-bottom:1px solid var(--e-border-soft); }
.e-scores-section-title{ font-size:11.5px; font-weight:800; letter-spacing:.4px; color:#111; }
.e-score-match{ padding:12px 14px; border-bottom:1px solid var(--e-border-soft); }
.e-score-match:last-child{ border-bottom:none; }
.e-score-match-comp{ font-size:9.5px; color:var(--e-text-faint); margin-bottom:7px; }
.e-score-match-row{ display:flex; justify-content:space-between; align-items:center; padding:3px 0; font-size:13px; font-weight:700; color:#111; }
.e-score-match-row .team{ display:flex; align-items:center; gap:8px; }
.e-score-match-row.dim{ color:var(--e-text-faint); font-weight:600; }
.e-score-match-status{ font-size:10.5px; font-weight:700; color:var(--e-red); }

/* ---------------- body layout / hero ---------------- */
.e-hero-note{ font-size:11px; font-weight:600; color:var(--e-red); background:#fdecee; display:inline-block; padding:4px 10px; border-radius:5px; margin:0 0 10px; }
.e-hero-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.e-hero-grid.single{ grid-template-columns:1fr; }
.e-hero{ display:block; position:relative; background:var(--e-bg); border-radius:14px; overflow:hidden; box-shadow:var(--e-shadow-card); transition:box-shadow .15s ease, transform .15s ease; }
.e-hero:hover{ box-shadow:var(--e-shadow-card-hover); transform:translateY(-2px); }
.e-hero-media{ position:relative; background:#f2f2f2; }
.e-hero-media img{ width:100%; height:auto; display:block; }
.e-hero-media .fade{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.35) 100%); }
.e-hero > .tag{ position:absolute; left:16px; top:16px; background:var(--e-red); color:#fff; font-size:10.5px; font-weight:700; letter-spacing:.4px; padding:5px 11px; border-radius:5px; z-index:2; text-decoration:none; }
.e-hero-body{ padding:16px 20px 20px; }
.e-hero-body h1{ font-size:19px; font-weight:800; line-height:1.32; margin:0 0 8px; color:var(--e-text); }
.e-hero-grid.single .e-hero-body h1{ font-size:26px; }
.e-hero:hover .e-hero-body h1{ color:var(--e-red); }
.e-hero-excerpt{ font-size:13.5px; color:var(--e-text-dim); line-height:1.6; margin:0 0 10px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.e-hero-meta{ font-size:11.5px; color:var(--e-text-faint); font-weight:500; }
@media (max-width:760px){
  /* Mobile: horizontally scrollable carousel (swipe or auto-scroll)
     instead of stacking cards on top of each other. */
  .e-hero-grid{
    display:flex; grid-template-columns:none; gap:14px;
    overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch;
    padding-bottom:4px; scrollbar-width:none;
  }
  .e-hero-grid::-webkit-scrollbar{ display:none; }
  .e-hero-grid .e-hero{ flex:0 0 86%; scroll-snap-align:start; }
  .e-hero-grid.single{ display:block; }
}
@media (max-width:600px){
  .e-hero > .tag{ left:14px; top:14px; }
  .e-hero-body{ padding:14px 16px 16px; }
  .e-hero-body h1{ font-size:17px; }
}

.e-section-title{ display:flex; align-items:center; gap:9px; font-size:15px; font-weight:700; padding-bottom:12px; border-bottom:2px solid var(--e-text); margin-bottom:18px; letter-spacing:.2px; }
.e-section-title .dot{ width:7px; height:7px; border-radius:99px; background:var(--e-red); }
.e-empty{ padding:20px; text-align:center; color:var(--e-text-faint); font-size:13px; border:1px dashed var(--e-border); border-radius:10px; }

/* ---------------- scoreboard: 3 columns ---------------- */
.e-score-cols{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:22px; }
@media (max-width:860px){ .e-score-cols{ display:block; } }
.e-score-col-title{ display:flex; align-items:center; gap:8px; font-size:13px; font-weight:700; letter-spacing:.4px; text-transform:uppercase; color:var(--e-text-dim); margin-bottom:12px; }
.e-score-col-title .bar{ width:4px; height:16px; background:var(--e-red); border-radius:2px; }
.e-score-col + .e-score-col{ margin-top:0; }
@media (max-width:860px){ .e-score-col{ margin-bottom:20px; } .e-score-col-title{ margin-top:6px; } }
.e-score-card{ display:block; background:var(--e-bg); border-radius:12px; padding:14px 16px; box-shadow:var(--e-shadow-card); transition:box-shadow .15s ease, transform .15s ease; margin-bottom:12px; }
.e-score-card:hover{ box-shadow:var(--e-shadow-card-hover); transform:translateY(-2px); }
.e-score-top{ display:flex; justify-content:space-between; font-size:10.5px; font-weight:700; letter-spacing:.3px; color:var(--e-text-faint); text-transform:uppercase; margin-bottom:10px; }
.e-score-row{ display:flex; align-items:center; justify-content:space-between; padding:5px 0; font-size:14px; font-weight:600; }
.e-score-row + .e-score-row{ border-top:1px solid var(--e-border-soft); }
.e-score-team{ display:flex; align-items:center; gap:9px; overflow:hidden; }
.e-score-team img{ width:22px; height:22px; object-fit:contain; flex-shrink:0; border-radius:50%; }
.e-badge-fallback{ width:22px; height:22px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:9px; font-weight:700; color:#fff; }
.e-score-team span.name{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.e-score-num{ font-variant-numeric:tabular-nums; font-weight:700; min-width:24px; text-align:right; flex-shrink:0; }

/* posts-based scoreboard column cards — matches the original score-card look */
.e-scorecol-list{ display:flex; flex-direction:column; gap:12px; }
.e-scorecol-post{ display:flex; gap:12px; background:var(--e-bg); border-radius:12px; padding:12px; box-shadow:var(--e-shadow-card); transition:box-shadow .15s ease, transform .15s ease; }
.e-scorecol-post:hover{ box-shadow:var(--e-shadow-card-hover); transform:translateY(-2px); }
.e-scorecol-post img, .e-scorecol-post-noimg{ width:92px; height:70px; object-fit:contain; border-radius:8px; flex-shrink:0; background:#f2f2f2; }
.e-scorecol-post-title{ font-size:13px; font-weight:600; line-height:1.4; color:var(--e-text); margin-bottom:5px; }
.e-scorecol-post:hover .e-scorecol-post-title{ color:var(--e-red); }
.e-scorecol-post-cat{ display:inline-block; font-size:9.5px; font-weight:700; color:var(--e-red) !important; letter-spacing:.3px; text-transform:uppercase; margin-bottom:4px; }
.e-scorecol-post-meta{ font-size:10.5px; color:var(--e-text-faint); }

/* ---------------- headlines grid + pagination ---------------- */
.e-headline-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:22px; }
@media (max-width:860px){ .e-headline-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:600px){ .e-headline-grid{ grid-template-columns:1fr; } }
.e-headline-card{ display:block; background:var(--e-bg); border-radius:12px; overflow:hidden; box-shadow:var(--e-shadow-card); transition:box-shadow .15s ease, transform .15s ease; }
.e-headline-card:hover{ box-shadow:var(--e-shadow-card-hover); transform:translateY(-3px); }
.e-headline-media{ position:relative; background:#f2f2f2; }
.e-headline-media img{ width:100%; height:auto; display:block; }
.e-headline-cat{ position:absolute; left:10px; bottom:10px; display:inline-block; background:var(--e-red) !important; color:#fff !important; font-size:9.5px; font-weight:700; letter-spacing:.4px; padding:4px 9px; border-radius:4px; text-transform:uppercase; text-decoration:none; }
.e-headline-card-body{ padding:14px 16px 16px; }
.e-headline-title{ font-size:14.5px; font-weight:700; line-height:1.4; margin:0 0 7px; color:var(--e-text); }
.e-headline-card:hover .e-headline-title{ color:var(--e-red); }
.e-headline-excerpt{ font-size:12.5px; color:var(--e-text-dim); line-height:1.55; margin:0 0 10px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.e-headline-meta{ font-size:11px; color:var(--e-text-faint); font-weight:500; }
.e-headline-meta b{ color:var(--e-text-dim); font-weight:600; }

/* ---------------- single post: content + sidebar ---------------- */
.e-post-layout{ display:grid; grid-template-columns:1fr 340px; gap:36px; align-items:start; max-width:1000px; margin:0 auto; }
@media (max-width:860px){ .e-post-layout{ grid-template-columns:1fr; } }
.e-sidebar{ display:grid; gap:20px; position:sticky; top:20px; }
.e-sidebar-box{ background:var(--e-bg); border:1px solid var(--e-border); border-radius:12px; padding:18px; }
.e-sidebar-title{ font-size:12.5px; font-weight:800; letter-spacing:.4px; text-transform:uppercase; margin:0 0 14px; padding-bottom:10px; border-bottom:2px solid var(--e-text); }
.e-sidebar-search{ display:flex; gap:8px; }
.e-sidebar-search input{ flex:1; padding:9px 12px; border:1px solid var(--e-border); border-radius:8px; font-family:'Poppins',sans-serif; font-size:13px; color:var(--e-text); background:var(--e-bg-soft); outline:none; }
.e-sidebar-search input:focus{ border-color:var(--e-red); }
.e-sidebar-search button{ background:var(--e-red); border:none; color:#fff; width:38px; border-radius:8px; display:flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0; }
.e-sidebar-results{ margin-top:10px; display:grid; gap:8px; }
.e-sidebar-post{ display:flex; gap:10px; align-items:center; }
.e-sidebar-post img{ width:56px; height:44px; object-fit:cover; border-radius:6px; flex-shrink:0; background:var(--e-bg-soft); }
.e-sidebar-post-title{ font-size:12.5px; font-weight:600; line-height:1.4; color:var(--e-text); }
.e-sidebar-post:hover .e-sidebar-post-title{ color:var(--e-red); }
.e-sidebar-post-meta{ font-size:10.5px; color:var(--e-text-faint); margin-top:2px; }
.e-sidebar-cat-row{ display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-top:1px solid var(--e-border-soft); font-size:12.5px; font-weight:600; color:var(--e-text); }
.e-sidebar-cat-row:first-child{ border-top:none; }
.e-sidebar-cat-row:hover{ color:var(--e-red); }
.e-sidebar-cat-row span{ font-size:11px; font-weight:700; color:var(--e-text-faint); }

.e-pagination{ display:flex; align-items:center; justify-content:center; gap:6px; margin-top:36px; }
.e-page-btn{ min-width:36px; height:36px; padding:0 8px; border-radius:8px; border:1px solid var(--e-border); background:var(--e-bg); font-family:'Poppins',sans-serif; font-size:13px; font-weight:600; color:var(--e-text-dim); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .12s ease; }
.e-page-btn:hover{ border-color:var(--e-red); color:var(--e-red); }
.e-page-btn.active{ background:var(--e-red); border-color:var(--e-red); color:#fff; }
.e-page-btn[disabled]{ opacity:.35; cursor:default; }

/* ---------------- footer ---------------- */
.e-footer{ background:var(--e-nav-bg); padding:30px 28px 34px; margin-top:12px; }
.e-footer-links{ display:flex; flex-wrap:wrap; justify-content:center; gap:28px; padding-bottom:18px; margin-bottom:16px; border-bottom:1px solid #26282c; }
.e-footer-links a{ font-size:13px; font-weight:600; color:var(--e-nav-text); }
.e-footer-copy{ font-size:12px; color:var(--e-nav-text-dim); text-align:center; }
@media (max-width:600px){
  .e-footer{ padding:22px 16px 26px; }
  .e-footer-links{ gap:16px; row-gap:10px; }
  .e-footer-links a{ font-size:11.5px; }
  .e-footer-copy{ font-size:10.5px; }
}

/* ---------------- back to top ---------------- */
.e-back-to-top{ position:fixed; right:28px; bottom:36px; width:44px; height:44px; border-radius:50%; background:var(--e-red); display:flex; align-items:center; justify-content:center; box-shadow:0 8px 20px rgba(224,20,44,.35); cursor:pointer; opacity:0; pointer-events:none; transition:opacity .2s ease; z-index:90; border:none; }
.e-back-to-top.show{ opacity:1; pointer-events:auto; }
.e-back-to-top svg{ width:19px; height:19px; color:#fff; }
@media (max-width:600px){ .e-back-to-top{ width:38px; height:38px; right:16px; bottom:26px; } .e-back-to-top svg{ width:16px; height:16px; } }

/* ---------------- match detail page ---------------- */
.e-match-header{ background:var(--e-nav-bg); color:#fff; padding:20px; }
.e-match-teams{ max-width:1000px; margin:0 auto; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:20px; }
.e-match-team{ display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; }
.e-match-team img{ width:56px; height:56px; object-fit:contain; }
.e-match-team-name{ font-size:15px; font-weight:700; }
.e-match-score{ font-size:44px; font-weight:900; font-variant-numeric:tabular-nums; display:flex; align-items:center; gap:16px; }
.e-match-status{ text-align:center; font-size:11px; color:#aaa; font-weight:700; letter-spacing:.5px; margin-bottom:6px; }
.e-match-info-bar{ text-align:center; font-size:11.5px; color:#9aa; margin-top:10px; }
.e-match-body{ max-width:1000px; margin:0 auto; padding:20px; display:grid; grid-template-columns:2fr 1fr; gap:20px; }
@media (max-width:800px){ .e-match-body{ grid-template-columns:1fr; } }
.e-info-panel{ border:1px solid var(--e-border); border-radius:12px; padding:16px; margin-bottom:16px; }
.e-info-panel h3{ font-size:13px; font-weight:800; margin:0 0 12px; text-transform:uppercase; letter-spacing:.4px; }
.e-info-row{ display:flex; justify-content:space-between; font-size:13px; padding:7px 0; border-top:1px solid var(--e-border-soft); }
.e-info-row:first-child{ border-top:none; }
@media (max-width:960px){ #teamPanels{ grid-template-columns:1fr 1fr !important; } }
@media (max-width:600px){ #teamPanels{ grid-template-columns:1fr !important; } #tennisPanels{ grid-template-columns:1fr !important; } }

/* ---------------- toast ---------------- */
#toast{ position:fixed; bottom:22px; left:50%; transform:translateX(-50%); background:var(--e-nav-bg); color:#fff; padding:11px 18px; font-size:13px; display:none; align-items:center; gap:8px; z-index:200; box-shadow:0 12px 40px rgba(0,0,0,.3); border-left:4px solid var(--e-red); border-radius:6px; }
#toast.err{ border-left-color:#b00020; }

/* ---------------- rich article content typography ---------------- */
.rte-content h1{ font-size:1.8em; margin:.6em 0 .3em; font-weight:800; }
.rte-content h2{ font-size:1.5em; margin:.6em 0 .3em; font-weight:800; }
.rte-content h3{ font-size:1.3em; margin:.6em 0 .3em; font-weight:700; }
.rte-content h4{ font-size:1.15em; margin:.6em 0 .3em; font-weight:700; }
.rte-content h5{ font-size:1.05em; margin:.6em 0 .3em; font-weight:700; }
.rte-content h6{ font-size:1em; margin:.6em 0 .3em; font-weight:700; }
.rte-content p{ margin:0 0 .8em; }
.rte-content a{ color:var(--e-red); text-decoration:underline; }
.rte-content img{ max-width:100%; height:auto; display:block; margin:.6em 0; border-radius:8px; }
.rte-content table{ border-collapse:collapse; margin:.8em 0; display:block; max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.rte-content table td, .rte-content table th{ border:1px solid var(--e-border); padding:8px; }
.rte-content blockquote{ border-left:3px solid var(--e-red); margin:.8em 0; padding:4px 0 4px 14px; color:var(--e-text-dim); font-style:italic; }
.rte-content ul, .rte-content ol{ margin:0 0 .8em; padding-left:1.4em; }
.rte-content, .rte-content *{ overflow-wrap:break-word; word-break:break-word; }
.rte-content pre{ overflow-x:auto; max-width:100%; }
.rte-content .rte-slider{
  display:flex; gap:10px; overflow-x:auto; scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch; margin:.8em 0; padding-bottom:6px; scrollbar-width:thin;
}
.rte-content .rte-slider img{
  flex:0 0 82%; max-width:82%; scroll-snap-align:start; margin:0;
  height:280px; object-fit:cover; border-radius:8px;
}
@media (max-width:600px){
  .rte-content .rte-slider img{ flex:0 0 88%; max-width:88%; height:200px; }
}
.rte-content iframe, .rte-content video{ max-width:100%; }

button#mMenuCloseBtn {
    background: transparent;
    border: 0;
}

