/* ===================================================================
   ورزش‌نما — Design System
   =================================================================== */
:root{
  --bg:#0b0e14;
  --bg-2:#0e131c;
  --panel:#141a24;
  --panel-2:#1a212d;
  --panel-3:#212a38;
  --line:#232c3a;
  --line-2:#2e3a4d;
  --txt:#e8edf4;
  --txt-2:#aeb9ca;
  --muted:#6f7d92;
  --brand:#a855f7;
  --brand-2:#7c3aed;
  --brand-ink:#ffffff;
  --accent:#ff4757;
  --gold:#ffc145;
  --blue:#3aa0ff;
  --green:#22c88c;
  --r-sm:10px;
  --r:14px;
  --r-lg:20px;
  --r-full:999px;
  --shadow:0 12px 34px rgba(0,0,0,.4);
  --shadow-sm:0 6px 18px rgba(0,0,0,.28);
  --ease:cubic-bezier(.22,.61,.36,1);
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:'Vazirmatn',system-ui,-apple-system,sans-serif;
  background:var(--bg);
  background-image:
    radial-gradient(1100px 520px at 100% -8%,rgba(168,85,247,.10),transparent 60%),
    radial-gradient(900px 480px at -8% 4%,rgba(58,160,255,.07),transparent 55%);
  background-attachment:fixed;
  color:var(--txt);
  line-height:1.85;
  min-height:100vh;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
input{font-family:inherit}
::selection{background:rgba(168,85,247,.3);color:#fff}

/* scrollbar */
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:var(--bg-2)}
::-webkit-scrollbar-thumb{background:var(--line-2);border-radius:10px;border:2px solid var(--bg-2)}
::-webkit-scrollbar-thumb:hover{background:var(--muted)}

.container{max-width:1280px;margin:0 auto;padding:0 20px}

/* ===== Icons ===== */
.ic{width:20px;height:20px;display:inline-block;flex:0 0 auto;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.ic-sm{width:16px;height:16px}
.ic-lg{width:24px;height:24px}

/* ===== Buttons ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:13.5px;border-radius:var(--r-sm);padding:10px 17px;transition:.22s var(--ease);white-space:nowrap}
.btn .ic{width:17px;height:17px}
.btn-primary{background:linear-gradient(135deg,var(--brand),var(--brand-2));color:var(--brand-ink);box-shadow:0 6px 16px rgba(168,85,247,.28)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(168,85,247,.4)}
.btn-ghost{background:var(--panel-2);color:var(--txt);border:1px solid var(--line)}
.btn-ghost:hover{background:var(--panel-3);border-color:var(--line-2)}
.btn-icon{width:42px;height:42px;padding:0;border-radius:var(--r-sm);background:var(--panel-2);border:1px solid var(--line);color:var(--txt-2)}
.btn-icon:hover{background:var(--panel-3);color:var(--txt)}
.btn-block{width:100%}

/* ===== Top strip ===== */
.strip{background:#070a0f;border-bottom:1px solid var(--line);font-size:12.5px;color:var(--txt-2)}
.strip .container{display:flex;align-items:center;justify-content:space-between;height:38px}
.strip-live{display:flex;align-items:center;gap:8px;color:var(--txt)}
.live-dot{width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 0 rgba(255,71,87,.6);animation:pulse 1.6s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(255,71,87,.5)}70%{box-shadow:0 0 0 8px rgba(255,71,87,0)}100%{box-shadow:0 0 0 0 rgba(255,71,87,0)}}
.strip-right{display:flex;align-items:center;gap:6px}
.strip-right .dt{color:var(--muted)}
.strip-sep{width:1px;height:14px;background:var(--line);margin:0 8px}
.strip a{color:var(--txt-2);display:inline-flex;align-items:center;gap:5px}
.strip a:hover{color:var(--brand)}

/* ===== Header ===== */
.hdr{position:sticky;top:0;z-index:100;background:rgba(11,14,20,.78);backdrop-filter:blur(16px) saturate(140%);border-bottom:1px solid var(--line)}
.hdr-row{display:flex;align-items:center;gap:24px;height:70px}
.brand{display:flex;align-items:center;gap:11px;font-weight:800;font-size:21px;white-space:nowrap}
.brand-mark{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,var(--brand),var(--brand-2));box-shadow:0 8px 20px rgba(168,85,247,.4)}
.brand-mark .ic{width:24px;height:24px;color:var(--brand-ink);stroke-width:2.3}
.brand b{color:var(--brand);font-weight:800}
.nav{display:flex;align-items:center;gap:2px;margin-inline-start:6px}
.nav a{display:flex;align-items:center;gap:7px;padding:9px 14px;border-radius:var(--r-sm);font-size:14px;font-weight:600;color:var(--txt-2);transition:.2s}
.nav a .ic{width:18px;height:18px;opacity:.85}
.nav a:hover{color:var(--txt);background:var(--panel)}
.nav a.active{color:var(--brand);background:rgba(168,85,247,.1)}
.hdr-actions{margin-inline-start:auto;display:flex;align-items:center;gap:10px}
.search{display:flex;align-items:center;gap:9px;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-sm);padding:0 13px;height:42px;width:230px;transition:.22s}
.search .ic{color:var(--muted);width:18px;height:18px}
.search:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px rgba(168,85,247,.12);width:260px}
.search input{flex:1;background:none;border:none;outline:none;color:var(--txt);font-size:13.5px;width:100%}
.search input::placeholder{color:var(--muted)}
.avatar{width:42px;height:42px;border-radius:var(--r-sm);overflow:hidden;border:1px solid var(--line-2);cursor:pointer}
.avatar img{width:100%;height:100%;object-fit:cover}

/* ===== Ticker ===== */
.ticker{background:var(--panel);border-bottom:1px solid var(--line);overflow:hidden}
.ticker .container{display:flex;align-items:center;gap:14px;height:48px}
.ticker-tag{display:inline-flex;align-items:center;gap:6px;background:var(--accent);color:#fff;font-weight:700;font-size:12px;padding:6px 12px;border-radius:var(--r-sm);white-space:nowrap;flex:0 0 auto}
.ticker-tag .ic{width:15px;height:15px;stroke-width:2.3}
.ticker-mask{overflow:hidden;flex:1}
.ticker-track{display:flex;gap:36px;white-space:nowrap;width:max-content;animation:slide 32s linear infinite}
.ticker:hover .ticker-track{animation-play-state:paused}
.ticker-track a{display:inline-flex;align-items:center;gap:8px;color:var(--txt-2);font-size:13.5px}
.ticker-track a:hover{color:var(--txt)}
.ticker-track b{color:var(--brand)}
@keyframes slide{from{transform:translateX(100%)}to{transform:translateX(-100%)}}

/* ===== Section heads ===== */
.section{margin-bottom:34px}
.sec-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:14px}
.sec-title{display:flex;align-items:center;gap:11px;font-size:19px;font-weight:800}
.sec-title .bar{width:5px;height:24px;border-radius:6px;background:linear-gradient(var(--brand),var(--brand-2))}
.sec-title .ic{color:var(--brand);width:21px;height:21px}
.sec-more{display:inline-flex;align-items:center;gap:5px;color:var(--brand);font-size:13px;font-weight:700;transition:.2s}
.sec-more .ic{width:16px;height:16px}
.sec-more:hover{gap:9px}

/* ===== Badges ===== */
.badge{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:700;padding:5px 11px;border-radius:var(--r-full)}
.badge .ic{width:13px;height:13px;stroke-width:2.4}
.badge.green{background:rgba(34,200,140,.16);color:#2bd49a;border:1px solid rgba(34,200,140,.32)}
.badge.red{background:rgba(255,71,87,.16);color:#ff6b78;border:1px solid rgba(255,71,87,.3)}
.badge.gold{background:rgba(255,193,69,.15);color:var(--gold);border:1px solid rgba(255,193,69,.3)}
.badge.blue{background:rgba(58,160,255,.15);color:var(--blue);border:1px solid rgba(58,160,255,.3)}
.badge.purple{background:rgba(168,85,247,.15);color:#c084fc;border:1px solid rgba(168,85,247,.3)}
.badge.solid-red{background:var(--accent);color:#fff}

/* ===== Cards / media ===== */
.card{position:relative;border-radius:var(--r);overflow:hidden;background:var(--panel);border:1px solid var(--line)}
.media{position:relative;overflow:hidden}
.media img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.card:hover .media img,.post:hover .media img{transform:scale(1.07)}
.media-grad{position:absolute;inset:0;background:linear-gradient(to top,rgba(6,9,14,.96) 4%,rgba(6,9,14,.4) 42%,transparent 72%)}
.play-btn{position:absolute;inset:0;margin:auto;width:56px;height:56px;border-radius:var(--r-full);background:rgba(168,85,247,.92);display:grid;place-items:center;box-shadow:0 8px 24px rgba(0,0,0,.45);transition:.25s}
.play-btn .ic{width:24px;height:24px;color:var(--brand-ink);fill:var(--brand-ink);stroke:none;margin-inline-start:3px}
.card:hover .play-btn,.post:hover .play-btn{transform:scale(1.12)}
.media-time{position:absolute;bottom:10px;inset-inline-start:10px;background:rgba(6,9,14,.85);color:#fff;font-size:11.5px;font-weight:600;padding:3px 9px;border-radius:var(--r-sm);display:inline-flex;align-items:center;gap:5px}
.media-time .ic{width:13px;height:13px}

.meta{display:flex;flex-wrap:wrap;gap:14px;color:var(--muted);font-size:12.5px;margin-top:11px}
.meta span{display:inline-flex;align-items:center;gap:5px}
.meta .ic{width:14px;height:14px}

/* ===== Hero ===== */
.hero{display:grid;grid-template-columns:1.7fr 1fr;gap:18px;margin:26px 0}
.hero-main{height:440px}
.hero-main .media{height:100%}
.hero-side{display:grid;grid-template-rows:1fr 1fr;gap:18px}
.hero-side .card .media{height:100%}
.cap{position:absolute;inset-inline:0;bottom:0;padding:24px;z-index:2}
.hero-side .cap{padding:18px}
.cap h2{font-size:26px;line-height:1.55;font-weight:800;margin-top:12px}
.cap h3{font-size:16px;line-height:1.6;font-weight:700;margin-top:10px}

/* ===== Post grid ===== */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.post{cursor:pointer;position:relative}
.post .media{height:190px;border-radius:var(--r);border:1px solid var(--line)}
.post .body{padding:14px 2px 2px}
.post h3{font-size:15.5px;font-weight:700;line-height:1.65;transition:.2s}
.post:hover h3{color:var(--brand)}
.post .badge{margin-bottom:10px}

/* ===== Two column layout ===== */
.layout{display:grid;grid-template-columns:1fr 350px;gap:28px;margin-top:8px}

/* ===== Sidebar cards ===== */
.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:20px;margin-bottom:22px}
.panel-head{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:800;margin-bottom:16px}
.panel-head .ic{width:19px;height:19px;color:var(--brand)}
.panel-head .bar{width:5px;height:19px;border-radius:6px;background:var(--accent)}

/* trends */
.trend{display:flex;gap:13px;align-items:flex-start;padding:12px 0;border-bottom:1px dashed var(--line);cursor:pointer}
.trend:last-child{border-bottom:none}
.trend-num{font-size:20px;font-weight:800;color:var(--brand);opacity:.5;min-width:26px;line-height:1.5}
.trend p{font-size:13.5px;font-weight:600;line-height:1.6;transition:.2s}
.trend:hover p{color:var(--brand)}
.trend small{color:var(--muted);font-size:11.5px;display:inline-flex;align-items:center;gap:4px}
.trend small .ic{width:13px;height:13px}

/* newsletter */
.promo{background:linear-gradient(150deg,rgba(168,85,247,.16),rgba(124,58,237,.04));text-align:center}
.promo .panel-head{justify-content:center}
.promo p{color:var(--txt-2);font-size:13px;margin-bottom:15px}

/* ===== Chips ===== */
.chips{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px}
.chip{display:inline-flex;align-items:center;gap:7px;padding:9px 15px;border-radius:var(--r-full);background:var(--panel);border:1px solid var(--line);font-size:13.5px;font-weight:600;color:var(--txt-2);transition:.2s;cursor:pointer}
.chip .ic{width:16px;height:16px}
.chip:hover{color:var(--txt);border-color:var(--line-2)}
.chip.active{background:rgba(168,85,247,.14);color:var(--brand);border-color:rgba(168,85,247,.4)}

/* ===== Page hero / banner ===== */
.page-banner{position:relative;border-radius:var(--r-lg);overflow:hidden;border:1px solid var(--line);margin:26px 0;min-height:230px;display:flex;align-items:flex-end}
.page-banner img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.page-banner .media-grad{background:linear-gradient(to top,rgba(6,9,14,.95),rgba(6,9,14,.3))}
.page-banner-in{position:relative;z-index:2;padding:30px}
.page-banner h1{font-size:30px;font-weight:800;margin:12px 0 8px}
.page-banner p{color:var(--txt-2);max-width:560px}

/* ===== Explore list item ===== */
.row-post{display:grid;grid-template-columns:160px 1fr;gap:16px;background:var(--panel);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;cursor:pointer;transition:.2s}
.row-post:hover{border-color:var(--line-2);transform:translateY(-2px);box-shadow:var(--shadow-sm)}
.row-post .media{height:120px}
.row-post .body{padding:14px 14px 14px 0;display:flex;flex-direction:column;justify-content:center}
.row-post h3{font-size:16px;font-weight:700;line-height:1.6;margin:8px 0}
.row-post p{color:var(--txt-2);font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ===== Footer ===== */
.ftr{margin-top:50px;border-top:1px solid var(--line);background:#070a0f}
.ftr-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:34px;padding:48px 0}
.ftr-col h5{font-size:15px;font-weight:800;margin-bottom:15px}
.ftr-col p{color:var(--muted);font-size:13px}
.ftr-col ul{list-style:none}
.ftr-col li{margin-bottom:10px}
.ftr-col a{color:var(--muted);font-size:13px;display:inline-flex;align-items:center;gap:7px;transition:.2s}
.ftr-col a:hover{color:var(--brand)}
.ftr-col a .ic{width:15px;height:15px}
.socials{display:flex;gap:10px;margin-top:16px}
.socials a{width:40px;height:40px;border-radius:12px;background:var(--panel);border:1px solid var(--line);display:grid;place-items:center;color:var(--txt-2);transition:.2s}
.socials a .ic{width:19px;height:19px}
.socials a:hover{background:var(--brand);color:var(--brand-ink);border-color:var(--brand);transform:translateY(-2px)}
.ftr-copy{border-top:1px solid var(--line);text-align:center;color:var(--muted);font-size:12.5px;padding:18px;display:flex;align-items:center;justify-content:center;gap:6px}
.ftr-copy .ic{width:14px;height:14px;color:var(--accent);fill:var(--accent);stroke:none}

/* ===== Animations on load ===== */
.reveal{opacity:0;transform:translateY(18px)}
.reveal.in{opacity:1;transform:none;transition:opacity .6s var(--ease),transform .6s var(--ease)}

/* ===== Mobile Bottom Nav ===== */
.bottomnav{position:fixed;bottom:0;left:0;right:0;height:68px;background:rgba(20,26,36,.88);backdrop-filter:blur(18px) saturate(120%);border-top:1px solid var(--line);display:none;justify-content:space-around;align-items:center;z-index:900;box-shadow:0 -5px 24px rgba(0,0,0,.3);padding:0 8px;padding-bottom:env(safe-area-inset-bottom)}
.bottomnav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--txt-2);font-size:10.5px;font-weight:600;flex:1;height:100%;transition:color .2s var(--ease)}
.bottomnav a .ic{width:20px;height:20px;opacity:.85;transition:transform .2s var(--ease)}
.bottomnav a:hover,.bottomnav a.active{color:var(--brand)}
.bottomnav a.active .ic{transform:translateY(-1px);color:var(--brand);opacity:1}

#mSearch{display:none}

/* ===== Responsive styles ===== */
@media(max-width:1080px){
  .layout{grid-template-columns:1fr 310px;gap:20px}
  .search{width:180px}
  .nav a span{display:none}
  .nav a{padding:8px 10px}
}

@media(max-width:920px){
  .nav,.strip-right .extra,.search-container{display:none}
  #mSearch{display:grid;place-items:center}
  
  /* Bottom Nav visible on tablet/mobile */
  .bottomnav{display:flex}
  body{padding-bottom:76px}
  .hdr-actions .avatar{display:none}
  .hdr-actions .admin-link{display:none}
  
  .layout{grid-template-columns:1fr}
  .hero{grid-template-columns:1fr}
  .hero-main{height:300px}
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .grid-3{grid-template-columns:repeat(2,1fr)}
  .ftr-grid{grid-template-columns:1fr 1fr;gap:24px;padding:32px 0}
  .profile-head{flex-wrap:wrap;gap:16px;margin-top:-50px}
  .profile-actions{width:100%}
  
  /* Mobile header search overlay */
  .hdr.search-active .search-container{
    display:flex;
    position:absolute;
    inset:0;
    width:100%;
    height:70px;
    background:var(--bg-2);
    align-items:center;
    padding:0 16px;
    z-index:90;
  }
  .hdr.search-active .search{
    width:100%;
  }
}

@media(max-width:600px){
  .container{padding:0 16px}
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr}
  .cap h2{font-size:20px;margin-top:8px}
  .row-post{grid-template-columns:110px 1fr;gap:12px}
  .row-post .media{height:90px}
  .row-post .body{padding:8px 0 8px 8px}
  .row-post h3{font-size:14.5px;margin:4px 0}
  .row-post p{font-size:12px}
  
  /* Footer Mobile Cleanups */
  .ftr{padding-bottom:12px}
  .ftr-grid{grid-template-columns:1fr;gap:20px;text-align:center;padding:30px 10px 20px}
  .ftr-col p{margin-bottom:10px}
  .socials{justify-content:center;margin-top:12px}
  .ftr-col h5{margin-bottom:10px;border-bottom:1px solid var(--line);padding-bottom:8px}
  .ftr-col ul{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 16px}
  .ftr-col li{margin-bottom:0}
  .ftr-copy{font-size:11.5px;padding:12px}
  
  .strip-right{gap:4px}
  .hero-side{grid-template-rows:auto auto}
  .hero-side .card .media{height:160px}
  .profile-head{padding:0 12px;gap:12px}
  .profile-id h1{font-size:21px}
  .profile-bio{padding:0 12px;font-size:13.5px}
  .hdr-row{height:60px}
  .hdr.search-active .search-container{height:60px}
  .brand{font-size:18px}
  .brand-mark{width:36px;height:36px;border-radius:10px}
  .brand-mark .ic{width:20px;height:20px}
}

/* ===== Toast Notifications ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10000;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(20, 26, 36, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 12px 18px;
  color: var(--txt);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  min-width: 280px;
  max-width: 400px;
  direction: rtl;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(.22,.61,.36,1), opacity 0.4s cubic-bezier(.22,.61,.36,1);
}
.toast.show {
  transform: translateX(0);
  opacity: 1;
}
.toast.hide {
  transform: translateY(20px);
  opacity: 0;
}
.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.toast-success {
  border-color: rgba(34, 200, 140, 0.4);
  box-shadow: 0 8px 20px rgba(34, 200, 140, 0.12), 0 10px 25px rgba(0, 0, 0, 0.35);
}
.toast-success .toast-icon {
  background: rgba(34, 200, 140, 0.16);
  color: var(--green);
}
.toast-info {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.12), 0 10px 25px rgba(0, 0, 0, 0.35);
}
.toast-info .toast-icon {
  background: rgba(168, 85, 247, 0.16);
  color: var(--brand);
}
.toast-error {
  border-color: rgba(255, 71, 87, 0.4);
  box-shadow: 0 8px 20px rgba(255, 71, 87, 0.12), 0 10px 25px rgba(0, 0, 0, 0.35);
}
.toast-error .toast-icon {
  background: rgba(255, 71, 87, 0.16);
  color: var(--accent);
}

/* ===== Modal Styles ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 15, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(.22,.61,.36,1);
}
.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  width: 90%;
  max-width: 440px;
  padding: 24px;
  box-shadow: var(--shadow);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(.22,.61,.36,1);
  direction: rtl;
}
.modal-overlay.show .modal-card {
  transform: translateY(0) scale(1);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.modal-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--txt);
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-close {
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s;
  border: none;
  background: none;
}
.modal-close:hover {
  color: var(--accent);
}
.share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: all 0.2s cubic-bezier(.22,.61,.36,1);
  font-size: 12px;
  font-weight: 600;
  color: var(--txt-2);
}
.share-btn:hover {
  background: var(--panel-3);
  border-color: var(--brand);
  color: var(--txt);
  transform: translateY(-2px);
}
.share-btn.telegram:hover {
  border-color: #24A1DE;
  color: #24A1DE;
}
.share-btn.twitter:hover {
  border-color: #1DA1F2;
  color: #1DA1F2;
}
.share-btn.whatsapp:hover {
  border-color: #25D366;
  color: #25D366;
}
.share-btn.copy:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.share-link-box {
  display: flex;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 4px;
  align-items: center;
  gap: 8px;
}
.share-link-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--txt-2);
  font-size: 13px;
  padding: 0 10px;
  direction: ltr;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.share-link-copy-btn {
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: 0.2s;
}
.share-link-copy-btn:hover {
  background: var(--brand-2);
  transform: translateY(-1px);
}

/* ===== Article Link Formats ===== */
.article-content a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
  transition: color 0.2s;
}
.article-content a:hover {
  color: var(--brand-2);
}
.article-content a.lnk-glow {
  color: var(--brand);
  text-shadow: 0 0 8px rgba(168,85,247,0.4);
  font-weight: 700;
}
.article-content a.lnk-btn-primary {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg,var(--brand),var(--brand-2));
  color: var(--brand-ink) !important;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  text-decoration: none !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(168,85,247,0.25);
  margin: 4px 0;
}
.article-content a.lnk-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(168,85,247,0.35);
}
.article-content a.lnk-btn-ghost {
  display: inline-flex;
  align-items: center;
  background: var(--panel-2);
  color: var(--txt) !important;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: var(--r-sm);
  text-decoration: none !important;
  font-weight: 700;
  margin: 4px 0;
}
.article-content a.lnk-btn-ghost:hover {
  background: var(--panel-3);
  border-color: var(--line-2);
}

/* ===== LIGHT BLUE & WHITE THEME ===== */
body.theme-light-blue {
  --bg: #f0f4f8;
  --bg-2: #e1ebf4;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --panel-3: #f1f5f9;
  --line: #cbd5e1;
  --line-2: #94a3b8;
  --txt: #0f172a;
  --txt-2: #334155;
  --muted: #64748b;
  --brand: #0284c7;
  --brand-2: #0369a1;
  --brand-ink: #ffffff;
  --accent: #ef4444;
  --gold: #f59e0b;
  --blue: #0ea5e9;
  --green: #10b981;
  background-image:
    radial-gradient(1100px 520px at 100% -8%, rgba(2,132,199,0.08), transparent 60%),
    radial-gradient(900px 480px at -8% 4%, rgba(14,165,233,0.06), transparent 55%);
}

body.theme-light-blue .hdr {
  background: rgba(240, 244, 248, 0.82);
  border-bottom: 1px solid var(--line);
}

body.theme-light-blue .strip {
  background: #cbd5e1;
  color: #0f172a;
  border-bottom: 1px solid var(--line);
}
body.theme-light-blue .strip-live {
  color: #0f172a;
}
body.theme-light-blue .strip a {
  color: #334155;
}
body.theme-light-blue .strip a:hover {
  color: var(--brand);
}

body.theme-light-blue .ticker {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
body.theme-light-blue .ticker-track a {
  color: #334155;
}
body.theme-light-blue .ticker-track a:hover {
  color: #0f172a;
}

body.theme-light-blue .ftr {
  background: #cbd5e1;
  border-top: 1px solid var(--line);
}
body.theme-light-blue .ftr-col p {
  color: #334155;
}
body.theme-light-blue .ftr-col a {
  color: #334155;
}
body.theme-light-blue .ftr-col a:hover {
  color: var(--brand);
}
body.theme-light-blue .socials a {
  background: #ffffff;
  border-color: var(--line);
  color: #334155;
}
body.theme-light-blue .socials a:hover {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}
body.theme-light-blue .ftr-copy {
  border-top: 1px solid var(--line);
  background: #cbd5e1;
  color: #334155;
}

body.theme-light-blue .bottomnav {
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid var(--line);
}

body.theme-light-blue ::selection {
  background: rgba(2, 132, 199, 0.2);
  color: #0f172a;
}
body.theme-light-blue ::-webkit-scrollbar-track {
  background: var(--bg-2);
}
body.theme-light-blue ::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border: 2px solid var(--bg-2);
}

body.theme-light-blue .chip {
  background: var(--panel);
  border-color: var(--line);
}
body.theme-light-blue .chip:hover {
  border-color: var(--line-2);
  color: var(--txt);
}
body.theme-light-blue .chip.active {
  background: rgba(2, 132, 199, 0.12);
  color: var(--brand);
  border-color: rgba(2, 132, 199, 0.4);
}
body.theme-light-blue .btn-ghost {
  background: var(--panel-2);
  border-color: var(--line);
  color: var(--txt-2);
}
body.theme-light-blue .btn-ghost:hover {
  background: var(--panel-3);
  border-color: var(--line-2);
  color: var(--txt);
}
body.theme-light-blue .search {
  background: var(--panel);
  border-color: var(--line);
}
body.theme-light-blue .search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}
body.theme-light-blue .panel {
  background: var(--panel);
  border-color: var(--line);
}
body.theme-light-blue .admin-nav-item:hover {
  background: var(--bg-2);
}
body.theme-light-blue .admin-nav-item.active {
  background: rgba(2, 132, 199, 0.12);
  color: var(--brand) !important;
}
body.theme-light-blue input, body.theme-light-blue select, body.theme-light-blue textarea {
  border-color: var(--line) !important;
}
body.theme-light-blue input:focus, body.theme-light-blue select:focus, body.theme-light-blue textarea:focus {
  border-color: var(--brand) !important;
}
body.theme-light-blue .rich-editor-toolbar {
  background: var(--bg-2) !important;
  border-color: var(--line) !important;
}
body.theme-light-blue #richEditor {
  background: #ffffff !important;
  border-color: var(--line) !important;
}

/* ===================================================================
   Phase 1 Additional Overhauls
   =================================================================== */

/* --- 3-Column Layout Grid --- */
@media (min-width: 1100px) {
  .layout-3col {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 24px;
    align-items: start;
  }
}
@media (max-width: 1099px) and (min-width: 768px) {
  .layout-3col {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
  }
  .layout-3col > aside.left-sidebar {
    grid-column: span 2;
  }
}
@media (max-width: 767px) {
  .layout-3col {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .layout-3col > .middle-content {
    order: 1;
  }
  .layout-3col > .right-sidebar {
    order: 2;
  }
  .layout-3col > .left-sidebar {
    order: 3;
  }
}

/* --- Mobile Bottom Nav Custom Bar --- */
.bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 100%;
  max-width: 768px;
  height: 66px;
  background: rgba(20, 26, 36, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-2);
  display: none;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 10px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  border-radius: 20px 20px 0 0;
}
body.theme-light-blue .bottomnav {
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.08);
}
.bottomnav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--txt-2);
  font-size: 11px;
  font-weight: 700;
  flex: 1;
  transition: 0.2s;
  text-decoration: none !important;
}
.bottomnav a:hover, .bottomnav a.active {
  color: var(--brand);
}
.bottomnav a .ic {
  width: 20px;
  height: 20px;
}
.bottomnav-plus-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--brand-ink) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  transform: translateY(-18px);
  transition: 0.25s var(--ease);
  z-index: 1001;
}
.bottomnav-plus-btn:hover {
  transform: translateY(-22px) scale(1.08);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
}

/* Adjust main container to avoid footer overlaps */
@media (max-width: 920px) {
  body {
    padding-bottom: 90px;
  }
  .bottomnav {
    display: flex;
  }
}

/* --- Scrollable slider carousel --- */
.custom-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-lg);
  margin-bottom: 30px;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}
body.theme-light-blue .custom-slider-container {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}
.custom-slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.custom-slider-track::-webkit-scrollbar {
  display: none;
}
.custom-slider-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 380px;
  position: relative;
  scroll-snap-align: start;
}
.custom-slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.custom-slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 14, 20, 0.95) 0%, rgba(11, 14, 20, 0.4) 60%, transparent 100%);
}
body.theme-light-blue .custom-slider-overlay {
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.3) 60%, transparent 100%);
}
.custom-slider-content {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 30px 40px;
  color: #ffffff;
  direction: rtl;
  text-align: right;
}
.custom-slider-content h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.5;
}
.custom-slider-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Football score widget --- */
.match-board {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 24px;
  margin-bottom: 30px;
}
body.theme-light-blue .match-board {
  border-color: var(--line);
}
.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.match-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: 0.2s;
}
.match-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.match-header {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  text-align: center;
}
.match-team img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.match-team span {
  font-size: 13px;
  font-weight: 700;
  color: var(--txt);
}
.match-score {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
  background: var(--panel);
  padding: 6px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.match-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-align: center;
  margin: 0 auto;
  width: fit-content;
}
.match-status-badge.live {
  background: rgba(239, 68, 68, 0.12);
  color: var(--accent);
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.match-status-badge.upcoming {
  background: rgba(111, 125, 146, 0.12);
  color: var(--muted);
  border: 1px solid rgba(111, 125, 146, 0.2);
}
.match-status-badge.ended {
  background: rgba(34, 200, 140, 0.12);
  color: var(--green);
  border: 1px solid rgba(34, 200, 140, 0.2);
}

/* --- Author public profiles & metrics tags --- */
.author-card {
  display: flex;
  gap: 20px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  margin-top: 34px;
  align-items: center;
}
.author-card-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand);
}
.author-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.author-card-info h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--txt);
  margin: 0;
}
.author-card-info p {
  font-size: 13px;
  color: var(--txt-2);
  line-height: 1.6;
  margin: 0;
}
.author-card-socials {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.author-card-socials a {
  color: var(--muted);
  transition: 0.2s;
  display: inline-flex;
}
.author-card-socials a:hover {
  color: var(--brand);
}
.author-card-stats {
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 18px;
  min-width: 90px;
}
.author-card-stats .num {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.2;
}
.author-card-stats .lbl {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
@media (max-width: 600px) {
  .author-card {
    flex-direction: column;
    text-align: center;
  }
  .author-card-socials {
    justify-content: center;
  }
  .author-card-stats {
    width: 100%;
  }
}

/* --- Dynamic comments & likes --- */
.comment-item {
  border-bottom: 1px dotted var(--line-2);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.comment-user {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--txt);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.comment-date {
  font-size: 11px;
  color: var(--muted);
}
.comment-content {
  font-size: 14px;
  color: var(--txt-2);
  line-height: 1.7;
}
.comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.comment-like-btn {
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: 0.2s;
}
.comment-like-btn:hover, .comment-like-btn.liked {
  color: var(--accent);
}
.post-actions-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.post-action-metric {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--txt-2);
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}
.post-action-metric:hover, .post-action-metric.liked {
  color: var(--accent);
}

/* ===== Responsive Utilities & Spacing Fixes ===== */
@media (max-width: 920px) {
  body {
    padding-bottom: 0px !important;
  }
  .ftr-copy {
    padding-bottom: 86px !important;
  }
}

@media (max-width: 767px) {
  .grid-2-mobile {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .hide-mobile {
    display: none !important;
  }
  .admin-badge-text {
    display: none !important;
  }
  .admin-page-title {
    font-size: 14px !important;
  }
}


