:root{
  --bg:#0b0d10; --card:#111418; --muted:#8b98a7; --text:#e8eef6;
  --brand:#30d158; --brand-2:#4ea8ff; --stroke:#1e232b;
  --shadow:0 8px 24px rgba(0,0,0,.35); --radius:16px;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font:500 16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Helvetica,Arial}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit}

.header{position:sticky;top:0;z-index:40;background:rgba(10,12,15,.7);backdrop-filter:saturate(1.2) blur(8px);border-bottom:1px solid var(--stroke)}
.container{max-width:1120px;margin:0 auto;padding:0 16px}
.nav{display:flex;align-items:center;justify-content:space-between;height:64px}
.brand{display:flex;align-items:center;gap:10px}
.logo-img{width:140px}
.nav-cta{display:flex;align-items:center;gap:10px}
.btn{cursor:pointer;border:1px solid var(--stroke);background:#0e1216;color:var(--text);padding:10px 14px;border-radius:12px;transition:transform .12s ease, background .2s ease, border-color .2s ease}
.btn:hover{background:#121821;border-color:#2a323d}
.btn.primary{background:linear-gradient(135deg,var(--brand-2),#61dfff);border-color:transparent;color:#04121e}
.btn.primary:hover{transform:translateY(-1px)}

.hero{padding:20px 0 8px;text-align:center}
.hero h2{margin:.2rem 0 0;font-size:20px;color:#cdd9e5}
.hero .running{margin:6px 0 0;font-size:14px}
.hero .running .pill{
  position:relative;display:inline-block;padding:8px 16px;
  background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,.08));
  border:1px solid rgba(255,255,255,.40);border-radius:10px;color:#fff;font-weight:600;text-shadow:0 1px 1px rgba(0,0,0,.5);
  box-shadow:0 10px 24px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.25),0 0 0 2px #30d158;
  overflow:hidden;width:100%;backdrop-filter:saturate(1.2) brightness(1.1)
}
.hero .running .pill:hover{box-shadow:0 12px 28px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.28),0 0 0 2px rgba(78,168,255,.55)}
.hero .running .marquee{display:inline-block;white-space:nowrap;animation:marquee 18s linear infinite;padding-left:100%}
@keyframes marquee{0%{transform:translateX(0)}100%{transform:translateX(-100%)}}

.grid{display:grid;grid-template-columns:1fr;gap:16px;margin:18px 0}
@media (min-width:600px){.grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:980px){.grid{grid-template-columns:repeat(3,1fr)}}
.card{background:var(--card);border:1px solid var(--stroke);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column}
.card-media{aspect-ratio:16/10;background:#0a0c0f;overflow:hidden}
.card-media img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.card:hover .card-media img{transform:scale(1.04)}
.card-body{padding:14px}
.meta{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}
.dot{width:6px;height:6px;border-radius:999px;background:var(--brand)}
.title{margin:6px 0 2px;font-size:16px;line-height:1.4;letter-spacing:.2px}
.desc{margin:8px 0 12px;color:#bac6d5;font-size:14px}
.actions{margin-top:auto;display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-top:1px solid var(--stroke)}
.readmore{border:none;background:transparent;color:var(--brand-2);padding:8px 0;cursor:pointer;font-weight:700}

.actions .new-icon{display:inline-block;height:25px;width:auto;vertical-align:middle;margin-right:8px;animation:newBlink 1.1s steps(1,start) infinite}
@media (prefers-reduced-motion:reduce){.actions .new-icon{animation:none}}
@keyframes newBlink{0%{opacity:1}50%{opacity:0}100%{opacity:1}}

.pagination{display:flex;justify-content:center;align-items:center;gap:8px;margin:8px 0 24px}
.page-btn{border:1px solid var(--stroke);background:#0f1317;color:var(--text);padding:8px 12px;border-radius:10px;cursor:pointer}
.page-btn[aria-disabled="true"]{opacity:.5;pointer-events:none}
.page-btn.active{background:linear-gradient(135deg,var(--brand-2),#61dfff);color:#04121e;border-color:transparent}

.modal{position:fixed;inset:0;background:rgba(0,0,0,.55);display:none;align-items:center;justify-content:center;padding:12px;z-index:60}
.modal.open{display:flex}
.dialog{width:100%;max-width:720px;background:#0f1317;border:1px solid var(--stroke);border-radius:18px;box-shadow:var(--shadow);overflow:hidden;max-height:90dvh;display:flex;flex-direction:column}
.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--stroke)}
.dialog-title{font-size:16px;margin:0}
.close{border:none;background:#121821;color:#d6e2f1;border:1px solid var(--stroke);width:36px;height:36px;border-radius:12px;cursor:pointer}
.dialog-body{display:grid;gap:12px;padding:12px;min-height:0;overflow:auto}
@media (min-width:720px){.dialog-body{grid-template-columns:1fr 1.2fr}}
.dialog-body img{border-radius:14px;border:1px solid var(--stroke)}
.dialog-meta{color:var(--muted);font-size:13px;margin-bottom:6px;display:flex;align-items:center;gap:8px}

footer{border-top:1px solid var(--stroke);margin-top:28px;background:#0c0f13}
.footer-wrap{display:grid;gap:16px;padding:20px 16px}
@media (min-width:720px){.footer-wrap{grid-template-columns:2fr 1fr 1fr 1fr}}
.f-brand{display:flex;align-items:center;gap:10px}
.f-links a{display:block;color:#c7d3e3;margin:6px 0;font-size:14px}
.subtext{color:var(--muted);font-size:12px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.replay {
  color: #16a34a;
  font-weight: bold;
  text-decoration: none;
  animation: replayBlink 1.2s ease-in-out infinite;
}

@keyframes replayBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.2; }
}

.replay:hover {
  color: #15803d;
  text-decoration: underline;
}

#modal-replay {
  color: #16a34a;
  font-weight: bold;
  text-decoration: none;
}

#modal-replay:hover {
  color: #15803d;
  text-decoration: underline;
}
