/* MUOnline Website – site tĩnh. Dark fantasy: vàng kim trên nền tối, tiêu đề serif. CSS thuần, không font ngoài. */
:root {
  --bg: #080c13; --bg-2: #0c121c; --panel: #101826; --panel-2: #162132; --line: #c5a36726; --line-strong: #c5a36759;
  --gold: #d9b77b; --gold-bright: #f0d49a; --gold-deep: #9a7640; --paper: #ece5d7; --text: #cfd3da; --muted: #98a2b3;
  --danger: #e59a7a; --ok: #7fd49b; --radius: 6px; --wrap: 1180px;
  --serif: Georgia, 'Times New Roman', 'Noto Serif', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 var(--sans); min-height: 100vh; display: flex; flex-direction: column;
  background-image: radial-gradient(1200px 600px at 80% -10%, #1a2a4033, transparent 70%), radial-gradient(900px 500px at -10% 20%, #3a2a1222, transparent 70%); background-attachment: fixed; }
main { flex: 1; display: block; }
img { max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration-color: #d9b77b66; text-underline-offset: 3px; }
a:hover { color: var(--gold-bright); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--paper); line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
code { font: .92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #ffffff0f; border: 1px solid #ffffff14; border-radius: 4px; padding: .08em .35em; color: var(--gold-bright); overflow-wrap: anywhere; }
pre { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; }
pre code { background: none; border: 0; padding: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #1a1205; padding: 8px 14px; border-radius: 4px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.eyebrow { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.lead { font-size: 1.08rem; color: #dcd6c8; max-width: 760px; }
.meta { font-size: .88rem; color: var(--muted); }
.data-note { font-size: .86rem; color: var(--muted); border-left: 2px solid var(--line-strong); padding-left: 12px; margin-top: 18px; }
.badge { display: inline-block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #1a1205; background: var(--gold); border-radius: 3px; padding: 1px 6px; vertical-align: middle; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #080c13f2; border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.header-row { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; font: .78rem var(--sans); letter-spacing: .18em; text-transform: uppercase; flex-shrink: 0; }
.brand img { width: 72px; height: 36px; object-fit: contain; }
.main-nav { display: flex; gap: 0; flex: 1; flex-wrap: nowrap; min-width: 0; }
.main-nav a, .mobile-nav nav a { color: var(--text); text-decoration: none; font-size: .9rem; padding: 8px 9px; border-radius: 4px; white-space: nowrap; }
.main-nav a:hover, .mobile-nav nav a:hover { color: var(--gold-bright); background: #ffffff0a; }
.main-nav a[aria-current="page"] { color: var(--gold-bright); box-shadow: inset 0 -2px var(--gold); border-radius: 4px 4px 0 0; }
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lang-switch { font-size: .86rem; color: var(--muted); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 5px; align-items: center; border: 1px solid var(--line-strong); border-radius: 6px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { width: 20px; height: 2px; background: var(--gold); }
.mobile-nav nav { position: absolute; right: 0; top: 52px; width: min(300px, 86vw); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px; display: grid; box-shadow: 0 18px 50px #000a; }
.mobile-nav nav a { padding: 12px; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 22px; border-radius: 4px; border: 1px solid #e7cd95; background: linear-gradient(110deg, #96713d, #d4b477 55%, #b28a4a); color: #171005; font: 600 .86rem var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: filter .15s, transform .15s; }
.button:hover { color: #171005; filter: brightness(1.12); transform: translateY(-1px); }
.button-small { padding: 8px 14px; font-size: .74rem; }
.button-large { padding: 15px 30px; font-size: .92rem; }
.button-ghost { background: #080c1399; color: var(--gold-bright); border-color: var(--line-strong); }
.button-ghost:hover { color: var(--gold-bright); background: #162132; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #080c13f2 0%, #080c13c7 42%, #080c1340 75%, #080c1399 100%), linear-gradient(0deg, #080c13 0%, transparent 38%); }
.hero-inner { padding-top: clamp(64px, 11vw, 150px); padding-bottom: clamp(56px, 9vw, 120px); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); max-width: 14ch; letter-spacing: -.02em; text-shadow: 0 3px 40px #000a; }
.hero .lead { max-width: 52ch; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero-status { font-size: .86rem; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; }
.status-dot[data-state="online"] { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.status-dot[data-state="offline"] { background: var(--danger); }
.status-dot[data-state="restart"] { background: var(--gold); }

/* Blocks */
.block { padding: clamp(34px, 5vw, 64px) 0; }
.block + .block { border-top: 1px solid #ffffff08; }
.page-head { padding: clamp(28px, 5vw, 56px) 0 clamp(18px, 3vw, 30px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #121b2a80, transparent); }
.page-head .lead { margin-bottom: 0; }
.breadcrumbs { padding-top: 16px; font-size: .84rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--muted); }
.breadcrumbs li + li::before { content: '›'; margin: 0 8px; color: var(--gold-deep); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.jump a, .chips a { display: inline-block; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 13px; font-size: .86rem; text-decoration: none; background: #ffffff05; }
.jump a:hover, .chips a:hover { background: #d9b77b1a; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li:not(:has(a)) { border: 1px solid #ffffff1a; border-radius: 999px; padding: 4px 13px; font-size: .86rem; color: var(--muted); }
.more { margin-top: 18px; }
.stats-band { padding: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.stat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.stat-list a { display: block; text-align: center; padding: 22px 6px; text-decoration: none; color: var(--muted); font-size: .82rem; letter-spacing: .06em; }
.stat-list a:hover { background: #ffffff08; }
.stat-list strong { display: block; font: 400 1.9rem var(--serif); color: var(--gold-bright); }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.features li { background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-top: 2px solid var(--gold-deep); border-radius: var(--radius); padding: 20px; }
.features h3 { font-size: 1.12rem; margin-bottom: .4em; }
.features h3 a { color: var(--paper); text-decoration: none; }
.features h3 a:hover { color: var(--gold-bright); }
.features p { margin: 0; font-size: .94rem; color: var(--text); }
.class-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.class-grid a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); text-decoration: none; height: 100%; }
.class-grid a:hover { border-color: var(--gold); background: var(--panel-2); }
.class-grid strong { font: 400 1.05rem var(--serif); color: var(--paper); }
.class-grid span:last-child { font-size: .76rem; color: var(--muted); }
.class-mark { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-bright); font: 400 1.15rem var(--serif); background: radial-gradient(circle at 30% 25%, #d9b77b33, transparent 70%); }
.shots { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.shots a { display: block; position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.shots img { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; transition: transform .3s; }
.shots a:hover img { transform: scale(1.04); }
.shots span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; background: linear-gradient(0deg, #080c13f0, transparent); color: var(--paper); font: 400 1.05rem var(--serif); }
.shot { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 896px; }
.shot img { display: block; width: 100%; }
.cta { text-align: center; background: radial-gradient(700px 260px at 50% 0%, #d9b77b1f, transparent 70%); }
.cta p { color: var(--muted); }

/* Cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { display: flex; gap: 14px; align-items: center; height: 100%; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .15s, background .15s; }
.card:hover { border-color: var(--gold); background: var(--panel-2); }
.card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card strong { font: 400 1.05rem var(--serif); color: var(--paper); }
.card span span { font-size: .86rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cards-compact { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.cards-icons .card { min-height: 84px; }
.cards-icons .item-icon { max-height: 52px; width: auto; flex-shrink: 0; }
.link-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 22px; }
.link-list li { padding: 5px 0; border-bottom: 1px solid #ffffff0a; }
.link-list span { color: var(--muted); font-size: .84rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 1.1em; background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #ffffff0d; }
thead th { font: 600 .74rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); background: #0b111b; white-space: nowrap; position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #ffffff06; }
.table-filter { margin: 0 0 12px; }
.table-filter label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); }
.table-filter input { flex: 1; min-width: 200px; max-width: 360px; padding: 10px 12px; background: #080e16; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--paper); font: inherit; }
.item-cell { display: flex; align-items: center; gap: 10px; }
.item-icon { image-rendering: auto; flex-shrink: 0; }
.item-icon-small { width: auto; height: auto; max-width: 34px; max-height: 44px; }
.item-icon-large { max-width: 128px; max-height: 256px; width: auto; filter: drop-shadow(0 6px 18px #000a); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 28px; margin: 0 0 1.2em; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #ffffff0d; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; text-align: right; color: var(--paper); }
.facts-wide { grid-template-columns: 1fr; max-width: 820px; }
.facts-wide > div { justify-content: flex-start; }
.facts-wide dt { flex: 0 0 170px; }
.facts-wide dd { text-align: left; }
.entity { display: grid; grid-template-columns: 180px 1fr; gap: 30px; align-items: start; }
.entity-figure { margin: 0; display: grid; place-items: center; min-height: 180px; padding: 20px; background: radial-gradient(circle at 50% 40%, #d9b77b1f, transparent 70%), var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.entity > .entity-main:only-child { grid-column: 1 / -1; }

/* Article */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; padding-top: 30px; padding-bottom: 20px; }
.article-layout:has(.toc) { grid-template-columns: 240px minmax(0, 1fr); }
.toc { position: sticky; top: 86px; align-self: start; font-size: .9rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--panel); max-height: calc(100vh - 110px); overflow: auto; }
.toc h2 { font: 600 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.1em; }
.toc li { margin: 5px 0; }
.toc a { text-decoration: none; color: var(--text); }
.toc a:hover { color: var(--gold-bright); }
.prose { max-width: 780px; min-width: 0; }
.prose h2 { margin-top: 1.7em; padding-top: .3em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin: .3em 0; }
.prose strong { color: var(--paper); }
.note { border: 1px solid var(--line-strong); border-left: 3px solid var(--gold); background: #d9b77b0f; border-radius: var(--radius); padding: 14px 18px; margin: 0 0 1.2em; }
.note p:last-child { margin: 0; }
.note-warn { border-left-color: var(--danger); background: #e59a7a12; }
.sources { margin-top: 2.2em; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.sources summary { cursor: pointer; color: var(--gold); }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font: 400 1.05rem var(--serif); color: var(--paper); }
.faq details p { padding: 0 18px 16px; margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.timeline article { border: 1px solid var(--line); border-left: 3px solid var(--gold-deep); border-radius: var(--radius); background: var(--panel); padding: 18px 20px; }
.timeline h2, .timeline h3 { font-size: 1.2rem; margin-bottom: .2em; }
.timeline h2 a, .timeline h3 a { text-decoration: none; color: var(--paper); }
.timeline h2 a:hover, .timeline h3 a:hover { color: var(--gold-bright); }
.timeline ul { margin: 8px 0 0; font-size: .94rem; }

/* Live widgets */
.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.tab { font: inherit; font-size: .9rem; padding: 9px 18px; background: var(--panel); color: var(--text); border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer; }
.tab[aria-pressed="true"] { background: #d9b77b24; color: var(--gold-bright); border-color: var(--gold); }
.live-fallback { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 16px 18px; color: var(--text); }
.status-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 22px 24px; max-width: 720px; }
.status-line { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
[hidden] { display: none !important; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #060a10; margin-top: 30px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-top: 44px; padding-bottom: 26px; }
.footer-brand img { width: 120px; height: 60px; object-fit: contain; }
.footer-brand p { color: var(--muted); max-width: 34ch; }
.site-footer h2 { font: 600 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 7px 0; }
.site-footer nav a { color: var(--text); text-decoration: none; }
.site-footer nav a:hover { color: var(--gold-bright); }
.footer-legal { border-top: 1px solid #ffffff0a; padding-top: 16px; padding-bottom: 26px; color: #7f8998; font-size: .8rem; }

/* Responsive */
@media (max-width: 1260px) { .brand span { display: none; } }
@media (max-width: 1080px) {
  .main-nav, .lang-switch { display: none; }
  .mobile-nav { display: block; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 860px) {
  .article-layout:has(.toc) { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-list { grid-template-columns: repeat(3, 1fr); }
  .entity { grid-template-columns: 1fr; }
  .entity-figure { min-height: 0; justify-self: start; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .brand span { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .facts > div { flex-direction: column; gap: 2px; }
  .facts dd { text-align: left; }
  th, td { padding: 9px 10px; }
  .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
@media print { .site-header, .site-footer, .cta, .toc { display: none; } body { background: #fff; color: #000; } }

.top-band h2 { margin-top: 0; }
.top-players { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 18px; }
.top-players .tr { display: grid; grid-template-columns: 40px 1fr; gap: 0 10px; align-items: center; padding: 7px 2px; border-bottom: 1px solid #ffffff12; min-width: 0; }
.top-players .bd { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; font: 700 15px/1 Georgia, serif; color: #cfe6fa; border: 1px solid #6f8aa6; border-radius: 5px; background: linear-gradient(#24364a, #142030); }
.top-players .bd svg { width: 100%; height: 100%; display: block; }
.top-players .r1 .bd, .top-players .r2 .bd, .top-players .r3 .bd { border: 0; background: none; }
.top-players b { font-weight: 600; color: #eef3f8; }
.top-players .r1 b { color: #ffd970; } .top-players .r2 b { color: #e4edf6; } .top-players .r3 b { color: #f0b47e; }
.top-players small { color: var(--muted); font-size: .86rem; }
.top-players small em { font-style: normal; color: #9fd4ff; font-weight: 600; }
.top-players b, .top-players small { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.25; min-width: 0; }
.top-players .flag { height: .95em; width: 1.27em; vertical-align: -.1em; margin-right: .4em; border-radius: 2px; box-shadow: 0 0 0 1px #0006; }
.top-players .top-fallback, .top-players .top-empty { grid-column: 1 / -1; color: var(--muted); }
