body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); min-height: 100vh; background: linear-gradient(180deg, var(--bg) 0%, var(--ink) 100%) fixed; }

/* hero */
.hero { position: relative; overflow: hidden; padding: calc(20px + env(safe-area-inset-top)) 16px 18px; border-bottom: 1px solid var(--line); background: radial-gradient(120% 140% at 100% 0%, #0f2f86 0%, #081631 55%, var(--bg) 100%); }
.hero::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(120deg, transparent 0 18px, #ffffff05 18px 19px); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold-line); }
.hero-in { position: relative; display: grid; gap: 6px; }
.hero .top { display: flex; align-items: center; justify-content: space-between; }
.hero .tag { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 14px 0 9px; background: var(--gold-grad); color: var(--gold-ink); font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.hero .tag svg { width: 16px; height: 16px; stroke-width: 2; }
.hero h1 { margin: 10px 0 0; font-family: var(--display); font-weight: 900; font-size: 36px; line-height: .95; text-transform: uppercase; letter-spacing: .01em; animation: wipeIn .7s var(--ease) both; }
.hero p { margin: 0; font-size: 12.5px; letter-spacing: .04em; color: var(--muted); }
.mine { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.mine span { font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; white-space: nowrap; }
.mine select { flex: 1; min-width: 0; padding: 9px 10px; border-radius: 4px; border: 1px solid var(--line2); background: #050e22cc; }

.view { padding: 16px; display: grid; gap: 12px; animation: fadeIn .3s var(--ease); }
.view h2 { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 15px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 10px 0 0; }
.view h2::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line2), transparent); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); border: 1px dashed var(--line2); border-radius: 4px; font-size: 14px; }

/* kartu skor live */
.lc { position: relative; background: linear-gradient(180deg, #0b1d48, #081739); border: 1px solid var(--line); overflow: hidden; animation: wipeIn .5s var(--ease) both; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.lc::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gold-line); }
.lc.mine { border-color: var(--gold); }
.lc-head { display: flex; align-items: stretch; gap: 8px; background: #050f2a; font-size: 11px; color: var(--muted); min-height: 28px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.lc-head .court { display: flex; align-items: center; padding: 0 14px 0 10px; background: var(--gold-grad); color: var(--gold-ink); font-family: var(--display); font-size: 14px; font-weight: 800; letter-spacing: .08em; clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%); }
.lc-head .rd { display: flex; align-items: center; gap: 6px; }
.lc-head .sit { margin-left: auto; display: flex; align-items: center; padding-right: 14px; }
.lc-head .sit .chip { font-size: 9.5px; padding: 2px 6px; }
.lr { display: grid; grid-template-columns: 4px 12px minmax(0, 1fr) auto auto auto; gap: 9px; align-items: center; padding-right: 10px; min-height: 54px; position: relative; }
.lr + .lr { border-top: 1px solid #12285e; }
.lr .side { align-self: stretch; }
.lr.a .side { background: var(--a); }
.lr.b .side { background: var(--b); }
.lr .serve-ball { font-size: 13px; }
.lr .nm { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.05; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .01em; }
.lr .pl { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr .sets { display: flex; gap: 8px; font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--dim); font-variant-numeric: tabular-nums; }
.lr .sets .w { color: var(--text); }
.lr .gm, .lr .pt { overflow: hidden; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; }
.lr .gm { font-size: 20px; width: 30px; height: 32px; background: #10275a; border: 1px solid var(--line2); }
.lr .pt { font-size: 22px; min-width: 42px; height: 32px; background: var(--gold-grad); color: var(--gold-ink); }
.lc.tb .lr .pt { background: linear-gradient(180deg, #8fb0ff, #2a63ff 60%, #1b44c4); color: #fff; }
.lr.win .nm { color: var(--gold-hi); }
.lr.scored::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, #dfb24a40 50%, transparent 80%) no-repeat; background-size: 50% 100%; animation: sweep 1s var(--ease) both; pointer-events: none; }

.next-card { position: relative; padding: 14px 16px; background: linear-gradient(90deg, #2b2410, #0b1d48 70%); border: 1px solid #6b5420; animation: wipeIn .5s var(--ease) both; }
.next-card .k { font-size: 10.5px; color: var(--gold); letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.next-card .t { font-family: var(--display); font-weight: 800; font-size: 20px; text-transform: uppercase; margin-top: 4px; line-height: 1.05; }
.next-card .t .v { color: var(--gold); margin: 0 6px; }
.next-card .s { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* podium mobile */
.pod-card { padding: 18px 8px 0; background: radial-gradient(100% 80% at 50% 100%, #0f2f86, #081631 70%); border: 1px solid var(--line); overflow: hidden; position: relative; }
.pod-card::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gold-line); }
.pod-card .podium { --h: 150px; }
.pod-card .pd .tn { font-size: 15px; }
.pod-card .pd.p1 .tn { font-size: 19px; }
.pod-card .pd .pl { font-size: 10.5px; }
.pod-card .pd .medal { width: 34px; height: 34px; }
.pod-card .pd .plinth .rk { font-size: 46px; }
.pod-card .pd .who { padding: 0 4px 10px; gap: 4px; }
.pod-card .podium-head { margin-bottom: 16px; }
.pod-card .podium-head .t { font-size: 26px; }
.pod-card .podium-head .k { font-size: 11px; }

/* jadwal */
.si { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: stretch; background: linear-gradient(90deg, #0b1d48, #081739); border: 1px solid var(--line); animation: wipeIn .45s var(--ease) both; }
.si.mine { border-color: var(--gold); }
.si .when { display: grid; place-content: center; text-align: center; gap: 2px; background: #050f2a; border-right: 1px solid var(--line); padding: 8px 4px; }
.si .when b { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--gold); font-variant-numeric: tabular-nums; }
.si .when small { color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.si .mid { padding: 9px 10px; min-width: 0; }
.si .rd { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.si .tm { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si .tm .w { color: var(--gold-hi); font-weight: 700; }
.si .tm .v { color: var(--dim); margin: 0 4px; font-weight: 400; }
.si .res { display: grid; place-items: center; padding: 0 10px; font-family: var(--display); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.filter { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.filter button { border: 1px solid var(--line2); background: transparent; border-radius: 3px; padding: 7px 12px; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; text-transform: uppercase; letter-spacing: .08em; }
.filter button.on { background: var(--gold-grad); color: var(--gold-ink); border-color: transparent; }

/* peserta */
.tc { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: linear-gradient(90deg, #0b1d48, #081739); border: 1px solid var(--line); animation: wipeIn .45s var(--ease) both; }
.tc.mine { border-color: var(--gold); }
.tc .sd { width: 34px; height: 34px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 16px; background: #10275a; border: 1px solid var(--line2); flex: none; color: var(--gold); }
.tc .nm { font-family: var(--display); font-weight: 800; font-size: 17px; text-transform: uppercase; }
.tc .pl { font-size: 12px; color: var(--muted); }

/* navigasi bawah */
.nav { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: #030916f5; backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); z-index: 30; }
.nav button { position: relative; border: 0; background: transparent; display: grid; justify-items: center; gap: 3px; padding: 8px 0 6px; font-size: 10.5px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; transition: color .2s; }
.nav button svg { width: 21px; height: 21px; transition: transform .35s var(--spring); }
.nav button::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav button.on { color: var(--text); }
.nav button.on svg { color: var(--gold); transform: translateY(-1px); }
.nav button.on::before { transform: scaleX(1); }
.nav button.hidden { display: none; }
.nav.four { grid-template-columns: repeat(4, 1fr); }

.bracket-wrap { margin: 0 -16px; padding: 8px 16px 16px; }
.b-round { min-width: 200px; }
.b-team { font-size: 13px; }
.pod-card.still .pd .plinth, .pod-card.still .pd .who, .pod-card.still .podium-head * { animation: none !important; opacity: 1; transform: none; }
