:root {
    --navy: #061433;
    --navy2: #0b2466;
    --blue: #1747b8;
    --gold: #f2cf7a;
    --gold2: #c9962f;
    --red: #c8102e;
    --text: #eaf0ff;
    --muted: #93a6d6;
    --line: rgba(242, 207, 122, .28);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
    min-height: 100vh;
    background: radial-gradient(ellipse at top, #12317f 0%, var(--navy) 55%) fixed, var(--navy);
    color: var(--text);
    font: 15px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    padding-bottom: env(safe-area-inset-bottom);
}
button, input, textarea { font: inherit; }
.gold { color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

.m-hero { position: relative; height: 0; padding-top: 50%; background: center/cover no-repeat; }
.m-hero-mask { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(6, 20, 51, 0) 55%, var(--navy) 100%); }
.m-title { text-align: center; padding: 0 16px; margin-top: -6px; position: relative; }
.m-title h1 {
    margin: 0; font-size: 18px; line-height: 1.45; letter-spacing: 1px;
    font-family: "STZhongsong", "Songti SC", "SimSun", serif; font-weight: 700;
    background: linear-gradient(180deg, #fff3cf, var(--gold) 45%, var(--gold2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.m-title p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }

.m-main { padding: 14px 14px 8px; max-width: 560px; margin: 0 auto; }
.card {
    background: linear-gradient(160deg, rgba(23, 61, 160, .55), rgba(9, 28, 80, .75));
    border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.card h2 { margin: 6px 0; font-size: 20px; }
.ico-big { font-size: 42px; }

.judge-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 15px; }
.tag { font-size: 12px; padding: 3px 10px; border-radius: 20px; background: rgba(255, 255, 255, .1); color: var(--muted); }
.tag-on { background: var(--red); color: #fff; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .65; } }

.c-card { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.c-no {
    width: 64px; height: 64px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 800; color: #5a3a00;
    background: radial-gradient(circle at 35% 30%, #fff1c2, var(--gold) 45%, var(--gold2));
    box-shadow: 0 0 0 3px rgba(242, 207, 122, .25);
}
.c-no small { font-size: 12px; margin-left: 1px; }
.c-info { flex: 1; min-width: 0; }
.c-name { font-size: 22px; font-weight: 700; color: #fff; }
.c-unit, .c-work { font-size: 13px; color: var(--muted); }
.c-work { color: var(--gold); }
.work-media { position: relative; width: 100%; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 16/9; }
.work-media img, .work-media video { width: 100%; height: 100%; object-fit: contain; display: block; }
.play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%;
    border: 2px solid #fff; background: rgba(0, 0, 0, .45); color: #fff; font-size: 22px; padding-left: 4px;
}

.score-label { font-size: 15px; margin-bottom: 8px; }
.score-input { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 4px 0 12px; }
.score-input input {
    width: 70%; text-align: center; font-size: 52px; font-weight: 800; color: var(--gold);
    background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 12px; padding: 4px 8px; outline: none;
}
.score-input input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 207, 122, .2); }
.score-input span { font-size: 18px; color: var(--muted); }
input[type=range] { width: 100%; accent-color: var(--gold); margin: 4px 0 10px; }
.quick { display: flex; gap: 8px; margin-bottom: 12px; }
.quick button { flex: 1; padding: 9px 0; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--text); font-weight: 600; }
.quick button:active { background: rgba(242, 207, 122, .2); }
textarea {
    width: 100%; resize: none; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25);
    color: var(--text); padding: 10px; margin-bottom: 12px; outline: none;
}

.btn { border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 700; cursor: pointer; }
.btn-gold { background: linear-gradient(180deg, #ffe39a, var(--gold) 40%, var(--gold2)); color: #4a2e00; box-shadow: 0 4px 14px rgba(201, 150, 47, .4); }
.btn-gold:active { transform: translateY(1px); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: var(--text); }
.btn-block { display: block; width: 100%; }
.btn-lg { font-size: 18px; padding: 14px; letter-spacing: 4px; }

.done-card .done-ico { width: 56px; height: 56px; line-height: 56px; margin: 0 auto 6px; border-radius: 50%; background: #1f9d55; font-size: 28px; color: #fff; }
.done-score { font-size: 46px; font-weight: 800; color: var(--gold); line-height: 1.2; }
.done-score small { font-size: 16px; margin-left: 4px; color: var(--muted); }

.rec-head { display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.rec-head span { color: var(--muted); font-weight: 400; font-size: 13px; }
.rec-head i { margin-left: auto; font-style: normal; color: var(--muted); }
.rec-list { margin-top: 10px; }
.rec-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed rgba(255, 255, 255, .1); }
.rec-no { width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; background: rgba(242, 207, 122, .15); color: var(--gold); font-size: 13px; flex: none; }
.rec-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-name small { color: var(--muted); margin-left: 6px; }
.rec-score { font-weight: 700; }

.mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.mask[hidden] { display: none; }
.dialog { width: 100%; max-width: 340px; background: linear-gradient(160deg, #173da0, #0a1d55); border: 1px solid var(--gold); border-radius: 16px; padding: 20px; text-align: center; }
.dialog h3 { margin: 0 0 8px; color: var(--gold); }
.confirm-score { font-size: 40px; font-weight: 800; color: var(--gold); margin-top: 6px; }
.dialog-btns { display: flex; gap: 10px; margin-top: 14px; }
.dialog-btns .btn { flex: 1; }

.toast { position: fixed; left: 50%; top: 40%; transform: translateX(-50%); background: rgba(0, 0, 0, .82); color: #fff; padding: 10px 18px; border-radius: 10px; z-index: 60; max-width: 80%; text-align: center; }
.toast[hidden] { display: none; }

.tech { text-align: center; padding: 14px 0 22px; font-size: 12px; }
.tech a { color: rgba(147, 166, 214, .75); text-decoration: none; }
