:root {
    --red: #E31111; --red-2: #F85E5E;
    --bg: #F5F5F7; --card: #FFFFFF; --ink: #16161A; --muted: #6B6B76; --line: #E6E6EB;
    --gold: #F5B301;
    --r: 16px; --shadow: 0 1px 2px rgba(20,20,30,.06), 0 8px 24px rgba(20,20,30,.06);
    --poster-ratio: 4/5;
}
@media (prefers-color-scheme: dark) {
    :root { --bg: #0F0F12; --card: #18181D; --ink: #F3F3F6; --muted: #9A9AA6; --line: #2A2A31; }
}
* { box-sizing: border-box; margin: 0; }
body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.ic { width: 1.1em; height: 1.1em; vertical-align: -.18em; flex: none; }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top .topbar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; flex-shrink: 0; min-width: 0; }
.brand img.logo { height: 34px; width: auto; flex-shrink: 0; }
.brand span { font-size: 14px; color: var(--muted); font-weight: 500; padding-left: 10px; border-left: 1px solid var(--line); }
.nav { display: none; gap: 4px; background: var(--bg); padding: 4px; border-radius: 99px; border: 1px solid var(--line); }
.nav a { padding: 7px 16px; border-radius: 99px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.nav a:hover { background: var(--card); color: var(--ink); }
.right { display: flex; align-items: center; gap: 10px; min-width: 0; flex-shrink: 1; }
.lang { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 700; color: var(--ink); }
.lang-btn:hover { border-color: var(--red); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 60; }
.lang-menu[hidden] { display: none; }
.lang-menu button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 9px 12px; border-radius: 8px; font-size: 14px; text-align: left; }
.lang-menu button:hover { background: var(--bg); }
.lang-menu button.on { color: var(--red); font-weight: 700; }
@media (min-width: 640px) { .nav { display: flex; } }
@media (max-width: 639px) {
    .brand span { display: none; }
    .wrap { padding: 0 12px; }
    .top .topbar { gap: 8px; }
    .right { gap: 6px; }
    .lang-btn { padding: 8px; gap: 2px; }
    .lang-btn #langCode { display: none; }
    .right .btn-primary { padding: 10px 14px; font-size: 13px; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.btn-primary { background: linear-gradient(180deg, var(--red-2), var(--red)); color: #fff; box-shadow: 0 6px 16px rgba(227,17,17,.28); }
.btn-line { border: 1px solid var(--line); background: var(--card); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.hero { margin: 8px 0 24px; position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: #222; }
.hero .slides { display: flex; transition: transform .6s cubic-bezier(.65,0,.2,1); }
.hero .slide { min-width: 100%; display: block; aspect-ratio: 21/9; }
@media (min-width: 640px) { .hero .slide { aspect-ratio: 4/1; } }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .arrow { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4); color: #fff; align-items: center; justify-content: center; backdrop-filter: blur(6px); z-index: 3; }
.hero .arrow:hover { background: rgba(255,255,255,.32); }
.hero .arrow.l { left: 12px; } .hero .arrow.r { right: 12px; }
@media (min-width: 640px) { .hero .arrow { display: flex; } }
.hero .dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.hero .dots button { width: 7px; height: 7px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.45); }
.hero .dots button.on { background: #fff; width: 18px; border-radius: 99px; }

.hero-default { aspect-ratio: 21/9; display: flex; align-items: center; justify-content: center; text-align: center; padding: 28px 20px; background: linear-gradient(135deg, var(--red) 0%, var(--red-2) 55%, var(--gold) 130%); background-size: cover; background-position: center; position: relative; isolation: isolate; }
@media (min-width: 640px) { .hero-default { aspect-ratio: 4/1; } }
.hero-default::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.22), transparent 45%), radial-gradient(circle at 85% 80%, rgba(0,0,0,.18), transparent 50%); z-index: -1; }
.hero-default.has-bg-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,.55), rgba(0,0,0,.25)); z-index: -1; }
.hero-default-logo { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; margin: 0 auto 12px; box-shadow: 0 8px 20px rgba(0,0,0,.3); background: #fff; }
.hero-default h1 { font-size: 17px; font-weight: 800; color: #fff; margin: 0 0 6px; text-shadow: 0 1px 6px rgba(0,0,0,.25); max-width: 620px; }
@media (min-width: 640px) { .hero-default h1 { font-size: 22px; } }
.hero-default p { font-size: 12.5px; color: rgba(255,255,255,.88); margin: 0; max-width: 520px; }
@media (min-width: 640px) { .hero-default p { font-size: 14px; } }


.sec { margin: 28px 0; }
.sec h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 14px; }
.sec h3 small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; }

.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.ev { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; flex: 1 1 250px; max-width: 320px; }
@media (max-width: 639px) { .ev { max-width: 100%; } }
.ev .cover { position: relative; aspect-ratio: var(--poster-ratio); overflow: hidden; background: var(--line); }
.ev .cover > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ev .cover .pill { position: absolute; right: 12px; top: 12px; background: rgba(255,255,255,.94); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: rgba(29,185,84,.14); color: #12923F; }
.ev .body { padding: 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.ev h4 { font-size: 16px; font-weight: 800; line-height: 1.3; }
.facts { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.facts div { display: flex; align-items: center; gap: 10px; }
.facts .ic { width: 16px; height: 16px; color: var(--red); flex: none; }
.facts b { color: var(--ink); font-weight: 700; }
.stack { display: flex; align-items: center; padding-top: 14px; border-top: 1px dashed var(--line); }
.stack img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--card); margin-left: -8px; background: var(--line); }
.stack img:first-child { margin-left: 0; }
.stack span { white-space: nowrap; margin-left: 10px; font-size: 12.5px; color: var(--muted); }
.ev .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.ev .row .btn { flex: 1 1 110px; padding: 11px 12px; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 12px; border-bottom: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.tabs::-webkit-scrollbar { height: 5px; }
.tabs::-webkit-scrollbar-track { background: transparent; }
.tabs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.tabs::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.tab { padding: 8px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.tab.on { background: var(--ink); color: var(--bg); }
.lb-panel { display: none; }
.lb-panel.on { display: block; }
.lb-loading { padding: 40px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.lb-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 16px 0; }
.lb-head .st { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.lb-head .btn, .ev .row .btn { white-space: normal; text-align: center; max-width: 100%; }
.notice { margin: 12px 16px 0; padding: 12px 14px; border-radius: 12px; background: rgba(245,179,1,.12); border: 1px solid rgba(245,179,1,.4); font-size: 13px; }
.rank-title { text-align: center; font-size: 16px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; padding: 24px 16px 0; }

.podium { display: grid; grid-template-columns: 1fr 1.16fr 1fr; gap: 10px; align-items: end; padding: 64px 14px 10px; max-width: 680px; margin: 0 auto; }
.pod { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 6px 6px 10px; text-align: center; box-shadow: 0 1px 2px rgba(20,20,30,.05), 0 12px 24px -14px rgba(20,20,30,.22); }
.pod.p1 { border-color: rgba(245,179,1,.55); box-shadow: 0 1px 2px rgba(20,20,30,.05), 0 20px 40px -14px rgba(245,179,1,.55); }
.pod .ph { aspect-ratio: 4/5; border-radius: 13px; overflow: hidden; background: var(--line); }
.pod .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pod .medal { position: absolute; left: 14px; top: 14px; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 99px; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; background: rgba(20,20,26,.72); color: #fff; z-index: 2; }
.pod.p1 .medal { background: linear-gradient(180deg, #FFD54A, #F5A300); color: #4a2f00; }
.pod .n { margin-top: 10px; font-weight: 800; font-size: 13.5px; line-height: 1.25; padding: 0 2px; }
.pod .v { margin-top: 2px; font-size: 12px; color: var(--muted); }
.pod .v b { color: var(--ink); font-size: 14px; }
.pod .vbtn { display: flex; margin: 10px 4px 0; }

.list { padding: 6px 14px 16px; display: grid; gap: 8px; }
.li { display: grid; grid-template-columns: 20px 48px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.li .rk { font-weight: 800; color: var(--muted); text-align: center; font-size: 13px; }
.li img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; object-position: top; background: var(--line); }
.li .nm { font-weight: 700; font-size: 14px; line-height: 1.25; }
.li .rg { font-size: 12px; color: var(--muted); }
.li .bw { height: 5px; border-radius: 99px; background: var(--line); margin-top: 8px; overflow: hidden; }
.li .bw i { display: block; height: 100%; background: linear-gradient(90deg, var(--red-2), var(--red)); border-radius: 99px; }
.li .vt { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.li .num { font-weight: 800; font-size: 14px; text-align: right; }
.li .num small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.vbtn { padding: 7px 16px; font-size: 12px; box-shadow: none; }
@media (min-width: 640px) { .li .vt { flex-direction: row; align-items: center; gap: 16px; } }

.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 20px 32px; }
.empty-state .eico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(227,17,17,.08); color: var(--red); }
.empty-state .eico .ic { width: 34px; height: 34px; }
.empty-state b { font-size: 18px; }
.empty-state p { color: var(--muted); font-size: 14px; max-width: 46ch; }
.wait { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 12px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); width: 100%; }
.wait div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); width: 64px; }
.wait img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; filter: grayscale(.6); opacity: .8; border: 2px dashed var(--line); }

.empty-page { color: var(--muted); padding: 40px 0; text-align: center; }

.layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; }
@media (min-width: 1024px) { .layout:not(.single) { grid-template-columns: minmax(0,1fr) 340px; align-items: start; } .side { position: sticky; top: 76px; } }
.side { display: flex; flex-direction: column; gap: 14px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.org { display: flex; align-items: center; gap: 14px; }
.org img { width: 64px; height: 64px; flex: none; object-fit: cover; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.org small { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.org b { font-size: 15px; line-height: 1.3; display: block; }
.box h5 { font-size: 14px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.box h5 .ic { width: 17px; height: 17px; color: var(--red); }
.box ol { padding-left: 18px; font-size: 13.5px; color: var(--muted); display: grid; gap: 5px; }
.box ol b { color: var(--ink); }
.rules { font-size: 12.5px; color: var(--muted); display: grid; gap: 6px; list-style: none; padding: 0; }
.rules li { display: flex; gap: 8px; align-items: flex-start; }
.rules li .ic { color: #12923F; margin-top: 2px; flex: none; }
.share { display: flex; gap: 8px; }
.share input { flex: 1; min-width: 0; font: inherit; font-size: 13px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }

footer { margin: 24px 0 0; padding: 28px 0 40px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
@media (min-width: 900px) { footer { flex-direction: row; justify-content: space-between; text-align: left; } }
.f-brand { color: var(--ink); font-size: 15px; font-weight: 800; }
.f-social { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; }
.f-social a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; font-size: 13px; }
.f-social svg { width: 16px; height: 16px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%,20px); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 99px; font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transition: all .3s; z-index: 99; }
.toast.on { opacity: 1; transform: translate(-50%,0); }
