/* =========================================================
   HOTWIN88 — Portal Gaming & Esports
   Stylesheet utama (white-hat, original)
   ========================================================= */

:root {
  --bg: #0a0b14;
  --bg-soft: #11131f;
  --bg-card: #161827;
  --line: #232639;
  --text: #e7e9f3;
  --muted: #9aa0bd;
  --brand: #ffc23c;
  --brand-2: #e01f2e;
  --accent: #ff5a1f;
  --good: #ffaa2b;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --container: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.section { padding: 0px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.5px; }
.section-head p { color: var(--muted); max-width: 520px; }
.eyebrow { color: var(--brand); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; font-size: .72rem; display: block; margin-bottom: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; transition: .25s ease;
  font-size: .95rem;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #2a0d00; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(224, 31, 46, .35); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Announcement bar ---------- */
.announce {
  background: linear-gradient(90deg, var(--brand-2), var(--accent));
  color: #fff; font-size: .9rem; font-weight: 600;
}
.announce.hidden { display: none; }
.announce-inner { display: flex; align-items: center; gap: 12px; height: 44px; }
.announce-tag { background: rgba(255, 255, 255, .22); padding: 3px 10px; border-radius: 999px; font-size: .68rem; font-weight: 900; letter-spacing: 1px; }
.announce-inner > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce-inner a { color: #fff; font-weight: 800; text-decoration: underline; white-space: nowrap; }
.announce-close { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; opacity: .85; }
.announce-close:hover { opacity: 1; }
@media (max-width: 640px) { .announce-inner a { display: none; } }

/* ---------- Running text (marquee) ---------- */
.marquee {
  position: relative; overflow: hidden; white-space: nowrap;
background: linear-gradient(90deg, #e01f2e4d, #ff5a1f57, #ffc23c47);  border-top: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 1px solid rgba(0, 0, 0, .2);
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 48px;
  padding: 9px 0;
  animation: marquee-scroll 28s linear infinite;
}
.marquee-track span {
  color: #fff; font-weight: 800; font-size: .82rem; letter-spacing: .04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Header banner ---------- */
.header-banner { padding: 18px 0 0; }
.header-banner-link {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .3s ease, border-color .3s ease;
}
.header-banner-link:hover { transform: translateY(-3px); border-color: var(--brand); }
.header-banner-link img { width: 100%; height: auto; display: block; }
/* kilauan menyapu banner */
.header-banner-link::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-22deg); pointer-events: none;
  animation: header-banner-shine 4s ease-in-out infinite;
}
@keyframes header-banner-shine { 0% { left: -120%; } 55% { left: 160%; } 100% { left: 160%; } }
@media (prefers-reduced-motion: reduce) { .header-banner-link::after { animation: none; display: none; } }

/* ---------- Promo banner ---------- */
.promo-banner { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s ease, border-color .3s ease; }
.promo-banner:hover { transform: translateY(-4px); border-color: var(--brand); }
.promo-banner img { width: 100%; height: auto; display: block; }

/* ---------- Promo CTA banner (bonus) ---------- */
.promo-cta {
  position: relative; overflow: hidden; border-radius: 22px;
  margin: 38px 0;
  border: 1px solid rgba(255, 194, 60, .35);
  background:
    radial-gradient(circle at 15% 15%, rgba(224, 31, 46, .26), transparent 46%),
    radial-gradient(circle at 88% 85%, rgba(255, 90, 31, .24), transparent 46%),
    linear-gradient(135deg, #2a1109, #160a06);
  padding: 38px 44px; gap: 30px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.promo-cta-content, .promo-cta-action { position: relative; z-index: 2; }
.promo-cta-eyebrow { display: inline-block; color: var(--brand); font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.promo-cta-title { font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.1; letter-spacing: -.5px; color: #fff; }
.promo-cta-title span { background: linear-gradient(90deg, var(--brand), var(--good)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.promo-cta-sub { color: #f0d9c4; margin: 12px 0 16px; font-size: 1rem; }
.promo-cta-perks { display: flex; gap: 12px; flex-wrap: wrap; }
.promo-cta-perks span { color: #e7e9f3; font-size: .82rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); padding: 6px 13px; border-radius: 999px; }
.promo-cta-action { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.promo-cta-btn {
  display: inline-block; padding: 16px 34px; border-radius: 14px; font-weight: 900; font-size: 1.05rem;
  color: #2a0d00; background: linear-gradient(135deg, var(--brand), var(--accent)); white-space: nowrap;
  box-shadow: 0 10px 30px rgba(255, 90, 31, .4); transition: transform .2s ease, box-shadow .2s ease;
  animation: promo-btn-pulse 2.2s ease-in-out infinite;
}
.promo-cta-btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 42px rgba(255, 90, 31, .55); }
.promo-cta-login { color: var(--muted); font-size: .85rem; text-decoration: underline; }
.promo-cta-login:hover { color: var(--brand); }
@keyframes promo-btn-pulse { 0%, 100% { box-shadow: 0 10px 30px rgba(255, 90, 31, .4); } 50% { box-shadow: 0 12px 40px rgba(255, 194, 60, .6); } }
/* kilau menyapu */
.promo-cta::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; z-index: 1; pointer-events: none;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .12), transparent);
  transform: skewX(-22deg); animation: promo-shine 4.2s ease-in-out infinite;
}
@keyframes promo-shine { 0% { left: -130%; } 55% { left: 175%; } 100% { left: 175%; } }
@media (max-width: 760px) {
  .promo-cta { padding: 28px 24px; flex-direction: column; align-items: flex-start; }
  .promo-cta-action { align-items: stretch; width: 100%; }
  .promo-cta-btn { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .promo-cta-btn, .promo-cta::after { animation: none; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 11, 20, .72);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: .5px; font-size: 1.25rem; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #2a0d00; font-weight: 900;
  box-shadow: 0 6px 18px rgba(224, 31, 46, .4);
}
.brand b { background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-logo { display: block; height: 38px; width: auto; }
.site-footer .brand-logo { height: 34px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
/* ---------- Animated hamburger ---------- */
.nav-toggle {
  display: none; padding: 0; cursor: pointer;
  width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  align-items: center; justify-content: center;
  transition: border-color .25s ease, background .25s ease, transform .15s ease;
}
.nav-toggle:hover { border-color: var(--brand); background: rgba(255, 194, 60, .08); }
.nav-toggle:active { transform: scale(.92); }
.nav-toggle-box { position: relative; width: 24px; height: 16px; }
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: transform .3s cubic-bezier(.65, .05, .36, 1), opacity .2s ease, width .3s ease;
}
.nav-toggle-bar { top: 50%; transform: translateY(-50%); }
.nav-toggle-bar::before { content: ""; top: -7px; }
.nav-toggle-bar::after  { content: ""; top: 7px; width: 70%; }
.nav-toggle:hover .nav-toggle-bar::after { width: 100%; }
/* Active → morph to X */
.nav-toggle.is-active { border-color: var(--brand); background: rgba(255, 90, 31, .12); }
.nav-toggle.is-active .nav-toggle-bar { background: transparent; }
.nav-toggle.is-active .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-active .nav-toggle-bar::after  { top: 0; width: 100%; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 60vh; display: flex; align-items: center; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(60% 60% at 70% 30%, transparent, rgba(10, 11, 20, .65) 70%, var(--bg) 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.hero-text { max-width: 660px; flex: 1 1 480px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); line-height: 1.05; letter-spacing: -1.5px; margin-bottom: 20px; }
.hero h1 span { background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 540px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
/* Desktop: badge berdiri vertikal di samping teks */
.hero-badges { display: flex; flex-direction: column; gap: 22px; flex: none; }
.hero-badges div { border-left: 3px solid rgba(255, 194, 60, .55); padding-left: 16px; }
.hero-badges div b { display: block; font-size: 2rem; background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-badges div span { color: var(--muted); font-size: .85rem; }

/* ---------- Cards / Articles ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1.4fr 1fr; }

.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s ease, border-color .3s ease; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); border-color: var(--brand); }
.card .thumb { aspect-ratio: 9/9; position: relative; overflow: hidden; }
.card .thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; }
.card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tag { align-self: flex-start; font-size: .7rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.tag.review { background: rgba(255, 194, 60, .14); color: var(--brand); }
.tag.esports { background: rgba(255, 90, 31, .14); color: var(--accent); }
.tag.guide { background: rgba(255, 170, 43, .14); color: var(--good); }
.tag.news { background: rgba(224, 31, 46, .15); color: #ff7a6b; }
.card h3 { font-size: 1.15rem; line-height: 1.3; }
.card:hover h3 { color: var(--brand); }
.card .excerpt { color: var(--muted); font-size: .92rem; }
.card .meta { margin-top: auto; color: var(--muted); font-size: .8rem; display: flex; gap: 12px; align-items: center; }

/* Gradient placeholder thumbnails (no external images needed) */
.g1 { background: linear-gradient(135deg, #e01f2e, #ffc23c); }
.g2 { background: linear-gradient(135deg, #ff5a1f, #e01f2e); }
.g3 { background: linear-gradient(135deg, #ffc23c, #ff5a1f); }
.g4 { background: linear-gradient(135deg, #ffaa2b, #e01f2e); }
.g5 { background: linear-gradient(135deg, #ff7a1f, #ffc23c); }
.g6 { background: linear-gradient(135deg, #c0101e, #ff8a2b); }

/* ---------- Featured (big) ---------- */
.featured { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.featured .big { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; border: 1px solid var(--line); }
.featured .big .overlay { position: relative; z-index: 2; padding: 30px; }
.featured .big::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 9, 16, .92), transparent 70%); }
.featured .big h3 { font-size: 1.7rem; line-height: 1.2; margin: 12px 0; }
.featured .side { display: flex; flex-direction: column; gap: 18px; }
.featured .side .mini { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-card); transition: .25s; }
.featured .side .mini:hover { border-color: var(--brand); transform: translateX(4px); }
.featured .side .mini .num { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; font-weight: 900; }
.featured .side .mini h4 { font-size: .98rem; line-height: 1.35; }
.featured .side .mini span { color: var(--muted); font-size: .78rem; }

/* ---------- Game ratings strip ---------- */
.ratings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rating-card {
  position: relative; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 16px; padding: 28px 22px 22px; text-align: center;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.rating-card:hover { transform: translateY(-6px); border-color: var(--brand); box-shadow: 0 18px 44px rgba(0, 0, 0, .5); }
.rating-card h4 { margin: 4px 0 4px; font-size: 1.02rem; }
.rating-card span { color: var(--muted); font-size: .82rem; }
/* badge peringkat */
.rank-badge { position: absolute; top: 12px; left: 15px; font-size: 1.35rem; line-height: 1; }
.rank-badge.rank-num { font-size: .82rem; font-weight: 800; color: var(--muted); top: 16px; left: 17px; }
/* cincin skor (gauge) — animasi isi via @property */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.score-ring {
  --p: 0; width: 92px; height: 92px; border-radius: 50%; margin: 8px auto 14px;
  display: grid; place-items: center;
  transition: --p 1.5s cubic-bezier(.2, .8, .2, 1);
  background:
    radial-gradient(closest-side, var(--bg-card) 76%, transparent 77%),
    conic-gradient(var(--brand) calc(var(--p) * 1%), var(--line) 0);
}
/* isi cincin saat section masuk layar (stagger mengikuti kartu) */
.ratings.visible .rating-card:nth-child(1) .score-ring { --p: var(--target); transition-delay: .15s; }
.ratings.visible .rating-card:nth-child(2) .score-ring { --p: var(--target); transition-delay: .28s; }
.ratings.visible .rating-card:nth-child(3) .score-ring { --p: var(--target); transition-delay: .41s; }
.ratings.visible .rating-card:nth-child(4) .score-ring { --p: var(--target); transition-delay: .54s; }
.score-num {
  font-size: 1.55rem; font-weight: 900;
  background: linear-gradient(90deg, var(--brand), var(--good));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* juara #1 — menonjol */
.rating-card.rank-1 {
  border-color: rgba(255, 194, 60, .55);
  background: linear-gradient(180deg, rgba(255, 194, 60, .07), var(--bg-card));
  box-shadow: 0 0 0 1px rgba(255, 194, 60, .22), 0 16px 44px rgba(255, 170, 43, .14);
  overflow: hidden;
}
.rating-card.rank-1 .score-ring {
  background:
    radial-gradient(closest-side, #1d1a16 76%, transparent 77%),
    conic-gradient(var(--brand) calc(var(--p) * 1%), var(--line) 0);
}
.rating-card.rank-1::before {
  content: "PILIHAN EDITOR"; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #2a0d00;
  font-size: .56rem; font-weight: 900; letter-spacing: .08em; padding: 3px 11px; border-radius: 999px; white-space: nowrap;
  z-index: 3; animation: rank1-badge-pulse 2.2s ease-in-out infinite;
}

/* ===== Animasi "Game Terbaik Bulan Ini" ===== */
/* kartu muncul bergiliran (stagger) */
@keyframes card-in { from { opacity: 0; transform: translateY(28px) scale(.96); } to { opacity: 1; transform: none; } }
.ratings.visible .rating-card { animation: card-in .6s cubic-bezier(.2, .8, .2, 1) backwards; }
.ratings.visible .rating-card:nth-child(1) { animation-delay: .05s; }
.ratings.visible .rating-card:nth-child(2) { animation-delay: .18s; }
.ratings.visible .rating-card:nth-child(3) { animation-delay: .31s; }
.ratings.visible .rating-card:nth-child(4) { animation-delay: .44s; }

/* medali berdenyut halus */
.rank-badge { animation: medal-bob 2.6s ease-in-out infinite; transform-origin: center; }
.rating-card:nth-child(2) .rank-badge { animation-delay: .3s; }
.rating-card:nth-child(3) .rank-badge { animation-delay: .6s; }
@keyframes medal-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-3px) rotate(4deg); } }

/* juara #1: entrance + glow berdenyut + kilau menyapu */
.ratings.visible .rating-card.rank-1 {
  animation: card-in .6s cubic-bezier(.2, .8, .2, 1) .05s backwards,
             rank1-glow 2.8s ease-in-out .75s infinite;
}
@keyframes rank1-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 194, 60, .22), 0 16px 40px rgba(255, 170, 43, .12); }
  50%      { box-shadow: 0 0 0 1px rgba(255, 194, 60, .5),  0 20px 54px rgba(255, 170, 43, .32); }
}
.rating-card.rank-1::after {
  content: ""; position: absolute; top: 0; left: -140%; width: 60%; height: 100%; z-index: 1; pointer-events: none;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .14), transparent);
  transform: skewX(-22deg); animation: rank1-shine 3.4s ease-in-out infinite;
}
@keyframes rank1-shine { 0% { left: -140%; } 55% { left: 160%; } 100% { left: 160%; } }
@keyframes rank1-badge-pulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.06); } }
.rating-card.rank-1 > * { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .ratings.visible .rating-card,
  .rank-badge,
  .rating-card.rank-1,
  .rating-card.rank-1::after,
  .rating-card.rank-1::before { animation: none; }
  .score-ring { transition: none; }
  .ratings.visible .rating-card .score-ring { --p: var(--target); }
}

/* ---------- Newsletter ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(224, 31, 46, .18), rgba(255, 194, 60, .12));
  border: 1px solid var(--line); border-radius: 22px; padding: 48px; text-align: center;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; }

/* ---------- RTP Live band ---------- */
.rtp-band .eyebrow { margin-bottom: 6px; }
.rtp-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; max-width: 640px; margin: 6px auto 28px; }
.rtp-item { text-align: left; }
.rtp-top { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; margin-bottom: 7px; }
.rtp-top span { color: var(--text); font-weight: 600; }
.rtp-top b { color: var(--good); font-weight: 800; font-size: .95rem; transition: color .35s ease, transform .35s ease; display: inline-block; }
.rtp-top b.up { color: #46d17f; }
.rtp-top b.up::after { content: " \25B2"; font-size: .7em; }
.rtp-top b.down { color: #ff7a6b; }
.rtp-top b.down::after { content: " \25BC"; font-size: .7em; }
.rtp-top b.changed { transform: scale(1.12); }
.rtp-bar { height: 9px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.rtp-bar > span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--good)); transition: width 1.3s cubic-bezier(.2, .8, .2, 1); }
.cta-band.visible .rtp-bar > span { width: var(--w); }
.rtp-list .rtp-item:nth-child(1) .rtp-bar > span { transition-delay: .1s; }
.rtp-list .rtp-item:nth-child(2) .rtp-bar > span { transition-delay: .25s; }
.rtp-list .rtp-item:nth-child(3) .rtp-bar > span { transition-delay: .4s; }
.rtp-list .rtp-item:nth-child(4) .rtp-bar > span { transition-delay: .55s; }
@media (max-width: 560px) { .rtp-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .rtp-bar > span { transition: none; } }

/* ---------- Live Bola ---------- */
.match-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.match-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.match-card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.match-league { font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.match-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.team { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.team img { width: 42px; height: 28px; object-fit: cover; border-radius: 5px; border: 1px solid var(--line); box-shadow: 0 3px 8px rgba(0, 0, 0, .4); }
.team-logo { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); padding: 3px; }
.team-logo--ph { display: grid; place-items: center; font-size: 1.1rem; }
.team span { font-size: .82rem; font-weight: 700; }
.match-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; }
.match-mid b { font-size: 1.15rem; font-weight: 900; letter-spacing: .5px; }
.match-live, .match-soon, .match-ft { font-size: .64rem; font-weight: 800; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.match-live { color: #ff7a6b; background: rgba(224, 31, 46, .15); animation: match-blink 1.3s ease-in-out infinite; }
.match-soon { color: var(--brand); background: rgba(255, 194, 60, .15); }
.match-ft { color: var(--muted); background: rgba(255, 255, 255, .06); }
.match-time { font-size: .74rem; color: var(--muted); text-align: center; border-top: 1px solid var(--line); padding-top: 9px; }
@keyframes match-blink { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (max-width: 860px) { .match-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .match-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .match-live { animation: none; } }
.subscribe { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.subscribe input { flex: 1; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.subscribe input:focus { outline: none; border-color: var(--brand); }

/* ---------- Article page ---------- */
.article-hero { padding: 10px 0 30px; max-width: 800px; }
.breadcrumb { color: var(--muted); font-size: .85rem; margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--brand); }
.article-title { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -1px; max-width: 880px; margin: 0 auto 18px; text-align: center; }
.article-meta { display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.article-meta .tag { align-self: center; }
.article-cover { display: block; max-width: min(100%, 760px); width: auto; height: auto; max-height: 460px; object-fit: contain; border-radius: var(--radius); margin: 28px auto; border: 1px solid var(--line); }
.article-body { max-width: 760px; margin: 0 auto; font-size: 1.08rem; }
.article-body h2 { font-size: 1.6rem; margin: 38px 0 14px; letter-spacing: -.4px; }
.article-body h3 { font-size: 1.25rem; margin: 28px 0 10px; }
.article-body p { color: #cfd3ea; margin-bottom: 18px; }
.article-body ul, .article-body ol { color: #cfd3ea; margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote { border-left: 3px solid var(--brand); padding: 6px 20px; margin: 24px 0; color: var(--muted); font-style: italic; background: var(--bg-soft); border-radius: 0 12px 12px 0; }
.article-body a.inline { color: var(--brand); border-bottom: 1px solid rgba(255, 194, 60, .4); }
.article-body p a, .article-body li a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article-body p a:hover, .article-body li a:hover { color: var(--brand-2); }
.article-backlink { color: #cfd3ea; margin: 30px 0 18px; padding: 14px 18px; background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 0 12px 12px 0; font-size: 1.02rem; }
.article-backlink a { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.article-backlink a:hover { color: var(--brand-2); }
.scorebox { display: flex; align-items: center; gap: 24px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 32px 0; }
.scorebox .big-score { font-size: 3.4rem; font-weight: 900; background: linear-gradient(135deg, var(--brand), var(--good)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.scorebox .verdict h4 { font-size: 1.1rem; margin-bottom: 4px; }
.scorebox .verdict span { color: var(--muted); font-size: .9rem; }

/* ---------- Tombol 3D "Kembali" ---------- */
.article-back { margin-top: 38px; }
.btn-back3d {
  position: relative; display: inline-block; text-decoration: none;
  border-radius: 14px; cursor: pointer;
  font-weight: 800; letter-spacing: .03em; font-size: .98rem; color: #fff;
  transform-style: preserve-3d; transition: transform .14s ease;
}
.btn-back3d-face {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #2a2d3f, #111219);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn-back3d::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  border-radius: 14px; background: #000; transform: translateY(6px);
}
/* kilauan menyapu */
.btn-back3d-face::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-22deg); animation: btn-back3d-shine 3s ease-in-out infinite;
}
.btn-back3d-arrow { font-size: 1.15em; transition: transform .25s ease; }
.btn-back3d:hover { transform: translateY(-2px); }
.btn-back3d:hover .btn-back3d-arrow { transform: translateX(-4px); }
.btn-back3d:active { transform: translateY(5px); }
.btn-back3d:active .btn-back3d-face { box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35); }
@keyframes btn-back3d-shine { 0% { left: -120%; } 55% { left: 170%; } 100% { left: 170%; } }
@media (prefers-reduced-motion: reduce) { .btn-back3d-face::after { animation: none; display: none; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 56px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 36px; }
.footer-grid h5 { font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--muted); font-size: .92rem; }
.footer-grid a:hover { color: var(--brand); }
.footer-about p { color: var(--muted); font-size: .92rem; margin: 14px 0; max-width: 320px; }
.copyright { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: center; text-align: center; gap: 6px 14px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.copyright a { color: var(--brand); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { gap: 0; }
  .hero-badges { flex-direction: row; flex-wrap: wrap; gap: 26px; margin-top: 40px; }
  .hero-badges div { border-left: 0; padding-left: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .featured, .grid-2 { grid-template-columns: 1fr; }
  .ratings { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed; top: 70px; right: 0; left: auto;
    height: calc(100vh - 70px);
    width: min(80vw, 300px);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    background: #11131f;
    border-left: 1px solid var(--line);
    padding: 28px 26px 30px; gap: 22px;
    transform: translateX(105%);
    transition: transform .38s cubic-bezier(.65, .05, .36, 1);
    box-shadow: -24px 0 70px rgba(0, 0, 0, .55);
    z-index: 40;
  }
  .nav-links a { width: 100%; font-size: 1.05rem; }
  .nav-links.open { transform: none; }
  .nav-toggle { display: flex; position: relative; z-index: 70; }
}
@media (max-width: 560px) {
  .grid-3, .ratings, .footer-grid { grid-template-columns: 1fr; }
  .subscribe { flex-direction: column; }
  .scorebox { flex-direction: column; text-align: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
