.player-link { display: block; }
.ranking-money strong { display: block; color: #52635a; font: inherit; }
.ranking-gap { display: block; margin-top: 4px; color: #9aa7a0; font: 8px "DM Mono", monospace; white-space: nowrap; }
.ranking-money, .ranking-money strong, .ranking-money .ranking-gap { text-align: right; }
.ranking-row { cursor: pointer; }
.ranking-row:hover td { background: #f7faf7; }
.mobile-match-card { grid-template-columns: 45px minmax(0,1fr) 14px; gap: 7px; padding: 11px 9px; }
.mobile-match-card .mobile-match-time { text-align: center; }
.mobile-match-players { display: grid; grid-template-columns: minmax(0,1fr) 43px minmax(0,1fr); grid-template-rows: 23px auto; align-items: center; column-gap: 5px; }
.mobile-match-side { display: grid; grid-template-columns: 23px minmax(0, 1fr); grid-template-rows: 23px auto; align-items: center; gap: 0 5px; min-width: 0; }
.mobile-match-side.away { grid-column: 3; grid-template-columns: minmax(0, 1fr) 23px; text-align: right; }
.mobile-match-side .avatar { grid-column: 1; grid-row: 1; width: 23px; height: 23px; flex: 0 0 auto; }
.mobile-match-side > span { grid-column: 2; grid-row: 1 / span 2; min-width: 0; display: grid; grid-template-rows: 23px auto; align-items: center; }
.mobile-match-side.away .avatar { grid-column: 2; }
.mobile-match-side.away > span { grid-column: 1; }
.mobile-match-side { grid-row: 1 / span 2; align-self: stretch; }
.mobile-match-side strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.mobile-match-side strong { line-height: 23px; }
.mobile-match-side small { display: block; margin-top: 0; color: var(--muted); font: 8px "DM Mono", monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-match-vs { display: flex; grid-row: 1; align-self: center; justify-content: center; align-items: center; gap: 2px; color: var(--green); font: 11px "DM Mono", monospace; text-align: center; }
.mobile-match-vs .status-pill { font-size: 7px; padding: 3px 2px; }
.mobile-match-players > small { grid-column: 1 / -1; margin-top: 5px; }
.mobile-match-players > small { color: var(--green); }
.mobile-match-datetime { display: block; margin-top: 3px; color: var(--muted); font: 9px "DM Mono", monospace; }
.mobile-match-arrow { color: #b4beb8; font-size: 17px; font-style: normal; text-align: right; }
.announcement-list-item { grid-template-columns: 82px minmax(0,1fr); gap: 11px; padding: 12px; }
.announcement-list-image { width: 82px; height: 82px; }
.announcement-list-item h2 { font-size: 14px; }
.admin-ops-grid { grid-template-columns: 1fr; gap: 12px; }
.admin-user-form, .admin-announcement-form { grid-template-columns: 1fr 1fr; padding: 12px 14px; }
.admin-settings-form { grid-template-columns: 1fr; padding: 14px; }
.admin-settings-note, .admin-settings-test, .admin-settings-actions { grid-column: 1; }
.admin-settings-check { padding-top: 0; }
.admin-settings-test { display: block; }
.admin-settings-test .btn, .admin-settings-actions .btn { width: 100%; justify-content: center; margin-top: 8px; }
.admin-user-form input:first-child, .admin-announcement-form input:first-child { grid-column: 1 / -1; }
.admin-user-form .btn, .admin-announcement-form .btn { grid-column: 1 / -1; justify-content: center; }
.admin-operation-table { padding: 0 14px; overflow-x: auto; }
.admin-operation-table .table { min-width: 430px; }
.admin-user-action-panel { align-items: stretch; flex-direction: column; gap: 13px; padding: 14px; }
.admin-user-action-controls { align-items: stretch; justify-content: stretch; }
.admin-user-action-controls label { flex: 1 1 100%; }
.admin-user-action-controls label select, .admin-user-action-controls label input, .admin-user-action-controls .btn { width: 100%; justify-content: center; }
.me-profile { align-items: flex-start; }
.me-profile-meta { display: grid; gap: 5px; }
.me-profile-account .btn { width: 100%; justify-content: center; }
.me-logout { margin-top: 4px; }
.me-logout .btn { width: 100%; justify-content: center; color: var(--red); border-color: #f0d8d1; }
.auth-page { display: block; margin: 0; }
.auth-intro { padding: 6px 0 22px; }
.auth-intro h1 { font-size: 26px; }
.auth-panel { padding: 17px 14px; }
.auth-social > div { flex-direction: column; }
.legal-page { padding: 20px 16px; }
.legal-page h1 { font-size: 21px; }
.announcement-card { padding: 25px 18px 19px; }
.follow-button { flex: 0 0 auto; border: 1px solid var(--green); color: var(--green); background: white; border-radius: 5px; padding: 8px 11px; font-size: 11px; }
.follow-button.following { background: var(--green-soft); border-color: var(--green-soft); }
.player-poster { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 680px; height: calc(100svh - 138px); max-height: 900px; overflow: hidden; margin: -40px -42px 0; padding: 38px 54px 57px; color: #fff; background: #111916 var(--player-poster) center 24% / cover no-repeat; }
.player-poster-back { position: absolute; top: 24px; left: 22px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 9px 0 5px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: rgba(255,255,255,.88); background: rgba(8,16,14,.28); backdrop-filter: blur(10px); font: 10px "Noto Sans SC", sans-serif; }
.player-poster-back b { font: 22px/1 "DM Sans", sans-serif; font-weight: 400; }
.player-detail-mode .player-poster-topline { top: 61px; left: auto; right: 54px; justify-content: flex-end; }
.player-poster::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(180deg, rgba(8,16,14,.12) 0%, rgba(8,16,14,.06) 30%, rgba(8,16,14,.48) 57%, rgba(8,16,14,.94) 100%), linear-gradient(90deg, rgba(8,16,14,.38), transparent 74%); }
.player-poster-topline { position: absolute; top: 35px; left: 54px; right: 54px; display: flex; justify-content: space-between; color: rgba(255,255,255,.78); font: 10px "DM Mono", monospace; letter-spacing: .16em; }
.poster-country { display: inline-flex; align-items: center; gap: 7px; }
.poster-country b { font: inherit; font-weight: 500; }
.country-flag { display: inline-flex; align-items: center; justify-content: center; font: 17px/1 "Apple Color Emoji", "Segoe UI Emoji", sans-serif; letter-spacing: 0; }
.ranking-country-flag { margin-left: 4px; font-size: 15px; vertical-align: middle; }
.poster-follow { position: absolute; top: 25px; right: 52px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0 9px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: rgba(255,255,255,.88); background: rgba(8,16,14,.28); backdrop-filter: blur(10px); font: 10px "Noto Sans SC", sans-serif; }
.poster-follow.following { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.14); }
.player-poster-copy { position: relative; z-index: 1; width: min(100%, 760px); }
.poster-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; color: #e4d0a0; font: 10px "DM Mono", monospace; letter-spacing: .15em; }
.poster-kicker i { width: 28px; height: 1px; background: #c9ae72; }
.player-poster h1 { max-width: 780px; margin: 0; color: #f3dfae; background: linear-gradient(115deg, #fff9e9 0%, #e9d39f 38%, #fffdf5 58%, #c7a969 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; -webkit-text-stroke: .35px rgba(255,248,226,.4); font: italic 700 72px/1.04 "Noto Serif SC", "Songti SC", Georgia, serif; text-transform: uppercase; overflow-wrap: anywhere; filter: drop-shadow(0 4px 18px rgba(0,0,0,.34)); }
.poster-nickname { margin: 13px 0 0; color: #e9d5aa; font: italic 17px/1.5 "Noto Serif SC", "Songti SC", serif; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.poster-rule { width: 56px; height: 1px; margin: 23px 0 17px; background: #c9ae72; }
.poster-honors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: min(100%, 620px); }
.poster-honor { min-width: 0; display: grid; gap: 4px; }
.poster-honor strong { color: #f3d99e; font: 500 25px/1.1 "DM Mono", monospace; }
.poster-honor span { color: rgba(255,255,255,.78); font-size: 10px; }
.poster-triple-crown { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); align-items: center; gap: 13px; max-width: 500px; margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(233,213,170,.38); }
.poster-triple-heading { grid-column: 1 / -1; color: rgba(255,255,255,.7); font-size: 10px; white-space: nowrap; }
.poster-triple-title { display: grid; gap: 3px; padding: 6px 8px; border: 1px solid rgba(191,228,214,.25); border-radius: 5px; background: rgba(191,228,214,.07); }
.poster-triple-title strong { color: #f3d99e; font: 500 19px/1.1 "DM Mono", monospace; }
.poster-triple-title span { color: rgba(255,255,255,.76); font-size: 9px; white-space: nowrap; }
.poster-triple-title.grand-slam { border-color: rgba(243,217,158,.58); background: rgba(243,217,158,.13); }
.poster-triple-title.grand-slam strong { color: #fff4c7; }
.poster-triple-title.grand-slam span { color: #f3d99e; }
.poster-triple-title:not(.grand-slam) strong { color: #bfe4d6; }
.poster-scroll { position: absolute; bottom: 24px; left: 54px; display: flex; align-items: center; gap: 9px; padding: 0; border: 0; background: transparent; color: rgba(255,255,255,.68); font: 9px "DM Mono", monospace; letter-spacing: .12em; cursor: pointer; }
.poster-scroll span { width: 22px; height: 1px; background: #c9ae72; }
.player-details { display: grid; gap: 13px; padding-top: 25px; }
.player-details .panel { overflow: hidden; }
.player-career-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; padding: 5px 0 24px; }
.player-career-strip span { display: flex; justify-content: space-between; gap: 8px; padding: 13px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; }
.player-career-strip b { color: var(--ink); text-align: right; }
.player-extra-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.player-extra-stats span { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding: 11px 12px; background: white; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 10px; min-width: 0; }
.player-extra-stats b { color: var(--ink); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.player-stats-primary, .player-stats-secondary { gap: 8px; }
.player-stats-primary .stat-card, .player-stats-secondary .stat-card { padding: 11px 12px; }
.player-stats-primary .stat-card strong, .player-stats-secondary .stat-card strong { font-size: 20px; margin: 6px 0 3px; }
.player-stats-primary .stat-card span, .player-stats-secondary .stat-card span { font-size: 9px; }
.player-stats-primary .stat-card .bar, .player-stats-secondary .stat-card .bar { margin-top: 8px; }
.player-upcoming-list { padding-top: 8px; padding-bottom: 8px; }
.player-upcoming-list .mobile-match-card:last-child { margin-bottom: 0; }
.form-legend { display: flex; gap: 6px; font-size: 10px; }
.legend-win, .legend-loss { padding: 3px 5px; border-radius: 3px; font-weight: 700; }
.legend-win { color: #24833d; background: #e6f5e7; }
.legend-loss { color: #b44747; background: #fbe8e8; }
.form-result-list, .h2h-list { padding-top: 5px; padding-bottom: 5px; }
.form-result { display: grid; grid-template-columns: 30px minmax(0, 1fr) 72px; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid #f0f2ef; }
.form-result:first-child, .h2h-row:first-child { border-top: 0; }
.form-result-badge { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.form-result.win .form-result-badge { color: #24833d; background: #e6f5e7; }
.form-result.loss .form-result-badge { color: #b44747; background: #fbe8e8; }
.form-result.draw .form-result-badge { color: #9a761d; background: #fff4d5; }
.form-result-main, .form-result-score { min-width: 0; }
.form-result-main strong, .form-result-main small, .form-result-score b, .form-result-score small { display: block; }
.form-result-main strong { color: var(--ink); font-size: 12px; overflow-wrap: anywhere; }
.form-result-main small { color: var(--muted); font-size: 9px; line-height: 1.5; margin-top: 4px; overflow-wrap: anywhere; }
.form-result-score { text-align: right; }
.form-result-score b { font: 600 13px "DM Mono", monospace; }
.form-result.win .form-result-score b { color: #24833d; }
.form-result.loss .form-result-score b { color: #b44747; }
.form-result-score small { color: var(--muted); font-size: 8px; margin-top: 4px; }
.h2h-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 38px; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid #f0f2ef; }
.h2h-player { display: flex; align-items: center; gap: 9px; min-width: 0; }
.h2h-player .avatar { width: 34px; height: 34px; flex: 0 0 auto; }
.h2h-player strong, .h2h-player small { display: block; }
.h2h-player strong { font-size: 11px; overflow-wrap: anywhere; }
.h2h-player small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.h2h-record { display: flex; align-items: center; gap: 4px; white-space: nowrap; font: 11px "DM Mono", monospace; }
.h2h-record b { font-weight: 600; }
.h2h-record i { color: var(--muted); font-style: normal; }
.h2h-record small { color: var(--muted); font: 9px "Noto Sans SC", sans-serif; margin-left: 3px; }
.h2h-win { color: #24833d; }
.h2h-loss { color: #b44747; }
.h2h-rate { color: var(--green); font: 600 11px "DM Mono", monospace; text-align: right; }
.mobile-home-hero { display: flex; justify-content: space-between; align-items: center; background: var(--green); color: white; border-radius: 10px; padding: 21px 19px; margin-bottom: 12px; }
.mobile-home-hero .eyebrow { color: var(--lime); margin-bottom: 7px; }
.mobile-home-hero h2 { font-size: 22px; margin: 0; }
.mobile-home-hero p { color: #b9d7cb; font-size: 11px; margin: 8px 0 0; }
.round-action { width: 37px; height: 37px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; display: grid; place-items: center; color: var(--lime); font-size: 19px; }
.mobile-home-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 20px; }
.mobile-home-stats div { background: white; border: 1px solid var(--line); border-radius: 7px; padding: 13px 10px; }
.mobile-home-stats strong { display: block; font: 500 18px "DM Mono", monospace; color: var(--green); }
.mobile-home-stats span { display: block; color: var(--muted); font-size: 9px; margin-top: 6px; }
.mobile-match-section { margin: 0 0 21px; }
.mobile-section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 0 1px 9px; }
.mobile-section-title h2 { font-size: 15px; margin: 0; }
.mobile-section-title span { color: var(--muted); font: 10px "DM Mono", monospace; }
.mobile-match-card { display: grid; grid-template-columns: 45px minmax(0,1fr) 14px; gap: 7px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 7px; padding: 11px 9px; margin-bottom: 7px; }
.mobile-match-time { color: var(--green); font: 11px "DM Mono", monospace; }
.mobile-match-time b { color: #45a650; font-size: 10px; }
.mobile-match-time small { display: block; color: var(--muted); font: 9px "Noto Sans SC", sans-serif; margin-top: 5px; }
.mobile-match-players { min-width: 0; }
.mobile-player-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mobile-player-line + .mobile-player-line { margin-top: 4px; }
.mobile-player-line .avatar { width: 22px; height: 22px; flex: 0 0 auto; }
.mobile-match-players strong { display: block; min-width: 0; font-size: 12px; overflow-wrap: anywhere; line-height: 1.35; }
.mobile-match-players small { display: block; color: var(--muted); font-size: 9px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 5px; }
.mobile-match-result { display: flex; align-items: center; justify-content: flex-end; gap: 3px; color: var(--green); font: 12px "DM Mono", monospace; }
.mobile-match-result .status-pill { font-size: 8px; padding: 4px 3px; }
.mobile-match-result i { color: #b4beb8; font-size: 17px; font-style: normal; margin-left: 2px; }
.match-center-list { padding-top: 8px; padding-bottom: 8px; }
.match-center-list .mobile-match-card:last-child { margin-bottom: 0; }
.tournament-countdown { color: var(--green); font: 600 11px "DM Mono", monospace; margin-top: 11px; }
.season-calendar-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; padding: 12px 14px; background: white; border: 1px solid var(--line); border-radius: 7px; }
.season-calendar-toolbar label { color: var(--muted); font-size: 11px; }
.season-calendar-toolbar .select { min-width: 145px; }
.season-calendar-toolbar > span { margin-left: auto; color: var(--muted); font: 10px "DM Mono", monospace; }
.season-calendar-group { margin-bottom: 18px; }
.season-calendar-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 0 1px 12px; }
.season-calendar-heading .eyebrow { margin-bottom: 5px; }
.season-calendar-heading h2 { margin: 0; font-size: 18px; }
.season-calendar-heading .minor { color: var(--muted); font: 10px "DM Mono", monospace; }
.mobile-empty { background: white; border: 1px dashed #dce4de; border-radius: 7px; color: var(--muted); font-size: 11px; text-align: center; line-height: 1.7; padding: 19px 10px; }
.mobile-all-link { display: flex; justify-content: space-between; color: var(--green); border-top: 1px solid var(--line); padding: 16px 1px; font-size: 12px; }
.mobile-all-link span { font-size: 17px; }
.mobile-match-detail-hero { background: var(--green); color: white; border-radius: 10px; padding: 20px 16px 17px; margin-bottom: 14px; }
.match-detail-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mobile-match-detail-hero .eyebrow { color: var(--lime); overflow-wrap: anywhere; }
.mobile-match-detail-hero h2 { font-size: 19px; margin: 7px 0; }
.mobile-match-detail-hero p { color: #b9d7cb; font-size: 10px; margin: 0; }
.detail-score { display: grid; grid-template-columns: minmax(0,1fr) 70px minmax(0,1fr); grid-template-rows: 39px auto; align-items: center; gap: 0 7px; margin-top: 23px; text-align: center; }
.detail-score div { min-width: 0; }
.detail-player { display: flex; grid-row: 1 / span 2; align-self: stretch; align-items: center; justify-content: center; gap: 7px; text-align: left; }
.detail-player > span { min-width: 0; display: grid; grid-template-rows: 39px auto; align-items: center; }
.detail-score .avatar { display: block; width: 39px; height: 39px; margin: 0 auto 7px; }
.detail-player .avatar { margin: 0; }
.detail-player .player-avatar-link { margin: 0; }
.detail-score .player-avatar-link { margin-bottom: 0; }
.detail-score .player-avatar-link .avatar { margin-bottom: 0; }
.detail-score .placeholder-avatar { display: grid; place-items: center; font-size: 14px; line-height: 1; }
.mobile-match-detail-hero + .panel { margin-bottom: 13px; }
.mobile-match-detail-hero + .panel + .upcoming-match-panel { margin-top: 13px; }
.match-history-panel { margin-bottom: 13px; }
.match-history-panel + .upcoming-match-panel { margin-top: 0; }
.detail-score strong { display: block; font-size: 11px; overflow-wrap: anywhere; }
.detail-player strong { line-height: 39px; }
.detail-score small { display: block; margin-top: 4px; color: #a9cbc0; font: 8px "DM Mono", monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-score > b { grid-row: 1; align-self: center; font: 500 19px "DM Mono", monospace; }
.detail-score > b span { color: #a9cbc0; }
.winner-note { text-align: center; color: var(--lime); font-size: 10px; margin-top: 15px; }
.h2h-summary { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 10px; text-align: center; }
.h2h-summary div { display: grid; gap: 4px; min-width: 0; }
.h2h-summary b { color: var(--green); font: 500 23px "DM Mono", monospace; }
.h2h-summary span, .h2h-summary > strong { color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2h-summary > strong { font: 10px "DM Mono", monospace; }
.h2h-draw-note { margin: 13px 0 9px; color: var(--muted); font-size: 10px; text-align: center; }
.match-history-list { margin-top: 14px; }
.match-history-list .mobile-match-card:last-child { margin-bottom: 0; }
.frame-list { padding-top: 7px; padding-bottom: 7px; }
.frame-row { display: grid; grid-template-columns: 1fr 22px 10px 22px 1fr; align-items: center; gap: 4px; padding: 12px 0; border-bottom: 1px solid #f0f2ef; font: 11px "DM Mono", monospace; }
.frame-row:last-child { border-bottom: 0; }
.frame-row span { color: var(--muted); font: 10px "Noto Sans SC", sans-serif; }
.frame-row b { text-align: center; color: var(--green); }
.frame-row i { color: #aab4ae; font-style: normal; text-align: center; }
.frame-row small { color: var(--gold); font: 9px "Noto Sans SC", sans-serif; text-align: right; }
.me-profile { display: flex; align-items: center; gap: 12px; background: var(--green); color: white; border-radius: 10px; padding: 10px; margin-bottom: 20px; }
.me-avatar { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; display: grid; place-items: center; color: var(--lime); background: transparent; padding: 0; cursor: pointer; font-size: 22px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.me-profile strong { font-size: 16px; }
.me-profile p { color: #b9d7cb; font-size: 10px; margin: 6px 0 0; }
.me-section { margin-bottom: 22px; }
.followed-list, .settings-section { background: white; border: 1px solid var(--line); border-radius: 7px; padding: 0 13px; }
.followed-player { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid #f0f2ef; cursor: pointer; }
.followed-player:last-child { border-bottom: 0; }
.followed-player > a { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.followed-player .avatar { width: 32px; height: 32px; }
.followed-player strong, .followed-player small { display: block; }
.followed-player strong { font-size: 11px; }
.followed-player small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.followed-player .profile-country-flag, .player-card .profile-country-flag { font-size: 14px; line-height: 1; vertical-align: middle; }
.followed-player button { border: 0; background: #f2f5f2; color: var(--muted); border-radius: 50%; width: 24px; height: 24px; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; border-bottom: 1px solid #f0f2ef; position: relative; }
.setting-row:last-child { border-bottom: 0; }
.setting-row span { min-width: 0; }
.setting-row b, .setting-row small { display: block; }
.setting-row b { font-size: 11px; }
.setting-row small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.setting-row input { position: absolute; opacity: 0; }
.toggle { width: 34px; height: 20px; background: #dbe2dc; border-radius: 20px; position: relative; flex: 0 0 auto; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: white; border-radius: 50%; transition: .18s; }
.setting-row input:checked + .toggle { background: var(--green); }
.setting-row input:checked + .toggle::after { transform: translateX(14px); }
.me-menu { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 15px 1px; font-size: 12px; }
.me-menu:last-child { border-bottom: 0; }
.me-menu span { color: var(--green); font-size: 16px; }
.me-menu i { margin-left: auto; color: var(--muted); font-size: 18px; font-style: normal; }
.local-note { text-align: center; color: var(--muted); font-size: 9px; line-height: 1.6; }
.admin-login-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(13, 23, 20, .58); }
.admin-login-card { width: min(100%, 340px); background: white; border-radius: 10px; padding: 24px 20px 20px; position: relative; box-shadow: 0 18px 60px rgba(13, 23, 20, .24); }
.admin-login-card h2 { margin: 7px 0 8px; font-size: 20px; }
.admin-login-card p { color: var(--muted); font-size: 11px; margin: 0 0 17px; }
.admin-login-card input { width: 100%; border: 1px solid var(--line); border-radius: 5px; padding: 11px 12px; outline: none; margin-bottom: 12px; font-size: 11px; }
.admin-login-card input:focus { border-color: var(--green); }
.admin-login-card .btn { width: 100%; justify-content: center; }
.admin-login-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; color: var(--muted); font-size: 23px; line-height: 1; }
.admin-login-error { min-height: 16px; color: var(--red); font-size: 10px; margin-top: 9px; }
.admin-data-panel { margin-top: 16px; }
.admin-data-toolbar { display: flex; gap: 9px; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.admin-data-toolbar .select { flex: 0 0 130px; }
.admin-search { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 5px; padding: 9px 11px; outline: none; font-size: 11px; }
.admin-search:focus { border-color: var(--green); }
.admin-data-table td small { display: block; color: var(--muted); font-size: 9px; margin-top: 4px; }
.admin-data-table td code { color: var(--muted); font: 9px "DM Mono", monospace; }
.admin-editor-card { width: min(100%, 720px); max-height: min(90vh, 760px); overflow: auto; background: white; border-radius: 10px; padding: 24px 20px 20px; position: relative; box-shadow: 0 18px 60px rgba(13, 23, 20, .24); }
.admin-editor-card h2 { margin: 7px 0 4px; font-size: 19px; overflow-wrap: anywhere; }
.editor-id { color: var(--muted); font: 9px "DM Mono", monospace; overflow-wrap: anywhere; margin: 0 0 14px; }
.admin-editor-card textarea { display: block; width: 100%; min-height: 370px; resize: vertical; border: 1px solid var(--line); border-radius: 5px; padding: 12px; outline: none; color: #30433a; background: #f7faf7; font: 11px/1.6 "DM Mono", monospace; }
.admin-editor-card textarea:focus { border-color: var(--green); }
.editor-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

.mobile-match-players { display: block; min-width: 0; }
.mobile-match-main { display: grid; grid-template-columns: minmax(0, 1fr) 43px minmax(0, 1fr); grid-template-rows: 23px auto; align-items: start; column-gap: 5px; min-width: 0; }
.mobile-match-side { display: grid; grid-row: 1 / span 2; grid-template-columns: 23px minmax(0, 1fr); grid-template-rows: 23px auto; align-items: start; gap: 0 5px; min-width: 0; }
.mobile-match-side.home { grid-column: 1; }
.mobile-match-side > span { grid-column: 2; grid-row: 1 / span 2; min-width: 0; display: grid; grid-template-rows: 23px auto; align-items: start; }
.mobile-match-side .avatar { grid-column: 1; grid-row: 1; align-self: start; }
.mobile-match-side.away { grid-column: 3; grid-template-columns: minmax(0, 1fr) 23px; text-align: right; }
.mobile-match-side.away > span { grid-column: 1; }
.mobile-match-side.away .avatar { grid-column: 2; }
.mobile-match-vs { display: flex; grid-column: 2; grid-row: 1; align-self: start; height: 23px; min-width: 0; justify-content: center; align-items: center; gap: 2px; }
.mobile-match-meta { display: block; margin-top: 12px; padding-top: 6px; border-top: 1px solid #f0f2ef; color: var(--green); font-size: 9px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-match-datetime { display: block; margin: 3px 0 0; color: var(--muted); font: 9px "DM Mono", monospace; }
.mobile-match-side small { display: block; margin-top: 0; color: var(--muted); font: 8px/1.1 "DM Mono", monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-match-side > span { align-self: center; grid-template-rows: 18px auto; }
.mobile-match-side strong { line-height: 18px; }
.mobile-match-side > .mobile-player-main { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 5px; height: 23px; min-width: 0; }
.mobile-player-main .avatar { grid-column: auto; grid-row: auto; align-self: center; }
.mobile-player-main strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 23px; }
.mobile-match-side.away .mobile-player-main { flex-direction: row-reverse; text-align: right; }
.mobile-match-side > small { grid-column: 1 / -1; grid-row: 2; margin-top: 0; color: var(--muted); font: 8px/1.1 "DM Mono", monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-match-main { display: grid; grid-template-columns: 23px minmax(0, 1fr) 23px; grid-template-rows: auto; align-items: start; column-gap: 5px; min-width: 0; }
.mobile-match-avatar { width: 23px; height: 23px; display: flex; align-items: center; justify-content: center; }
.mobile-match-avatar.home { grid-column: 1; }
.mobile-match-avatar.away { grid-column: 3; }
.mobile-match-avatar .avatar { width: 23px; height: 23px; }
.mobile-match-center { grid-column: 2; min-width: 0; padding-bottom: 6px; }
.mobile-match-name-row { display: grid; grid-template-columns: minmax(0, 1fr) 43px minmax(0, 1fr); grid-template-rows: 23px auto; align-items: start; min-width: 0; }
.mobile-match-name { display: grid; grid-row: 1 / span 2; grid-template-rows: 23px auto; min-width: 0; }
.mobile-match-name.home { grid-column: 1; text-align: left; }
.mobile-match-name.away { grid-column: 3; text-align: right; }
.mobile-match-name strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; line-height: 23px; }
.mobile-match-name small { display: block; margin: 0; color: var(--muted); font: 8px/1.1 "DM Mono", monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .mobile-app-page .page-heading { height: 0; margin: 0; }
  .mobile-app-page .page-heading > * { display: none; }
  .mobile-app-page .page-wrap { padding-top: 14px; }
  .mobile-titleless-page .page-heading { display: none; }
  .ranking-data-panel .data-table-wrap { overflow: visible; }
  .ranking-data-panel .full-table { display: block; }
  .ranking-data-panel .full-table thead { display: none; }
  .ranking-data-panel .full-table tbody, .ranking-data-panel .full-table tr { display: block; }
  .ranking-data-panel .full-table tr { display: grid; grid-template-columns: 28px minmax(0,1fr) auto auto; align-items: center; gap: 7px; padding: 10px 0; }
  .ranking-data-panel .full-table td { display: block; padding: 0; border-top: 0; min-width: 0; }
  .ranking-data-panel .full-table td:nth-child(5), .ranking-data-panel .full-table td:nth-child(6) { display: none; }
  .ranking-data-panel .full-table .player-cell { min-width: 0; }
  .ranking-data-panel .full-table .player-cell span { min-width: 0; overflow-wrap: anywhere; }
  .ranking-gap { font-size: 8px; white-space: nowrap; }
  .mobile-nav { height: calc(63px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
  .admin-data-toolbar { display: grid; grid-template-columns: 1fr auto; padding: 12px 14px; }
  .admin-data-toolbar .select { width: auto; }
  .admin-search { grid-column: 1 / -1; width: 100%; }
  .admin-data-table td:nth-child(3) { display: none; }
  .admin-data-table th:nth-child(3) { display: none; }
  .admin-editor-card { max-height: 88vh; padding: 21px 15px 15px; }
  .admin-editor-card textarea { min-height: 300px; }
  .legal-consent {
    display: grid !important;
    grid-template-columns: 14px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    grid-auto-flow: initial;
    align-items: center;
    gap: 8px !important;
    width: 100%;
    min-height: 44px;
    padding: 5px 0;
    font-size: 10px;
    line-height: 1.6;
  }
  .legal-consent input {
    width: 12px;
    height: 12px;
    margin: 0;
    padding: 0;
    border: 0;
    justify-self: start;
  }
  .legal-consent span {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .legal-link {
    display: inline;
    line-height: inherit;
    white-space: normal;
  }
  .admin-login-card .legal-consent {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 5px !important;
    min-height: 28px;
    padding: 2px 0;
    font-size: 8px;
    line-height: 1.4;
    white-space: nowrap;
  }
  .admin-login-card .legal-consent span { white-space: nowrap; }
  .player-poster { min-height: min(610px, calc(100svh - 139px)); height: calc(100svh - 139px); max-height: 820px; margin: -14px -13px 0; padding: 30px 22px 66px; background-position: 56% 20%; }
  .player-poster::before { background: linear-gradient(180deg, rgba(8,16,14,.14) 0%, rgba(8,16,14,.06) 31%, rgba(8,16,14,.44) 54%, rgba(8,16,14,.96) 100%), linear-gradient(90deg, rgba(8,16,14,.22), transparent 100%); }
  .player-detail-mode .player-poster-topline { top: 57px; left: auto; right: 20px; font-size: 8px; letter-spacing: .12em; }
  .player-poster-back { top: 19px; left: 16px; }
  .poster-follow { top: 19px; right: 20px; min-height: 30px; padding: 0 9px; }
  .poster-kicker { margin-bottom: 12px; font-size: 8px; }
  .player-poster h1 { max-width: 100%; font-size: 46px; line-height: 1.08; }
  .poster-nickname { margin-top: 8px; font-size: 14px; }
  .poster-rule { margin: 17px 0 14px; }
  .poster-honors { gap: 8px; width: 100%; max-width: 100%; }
  .poster-honor { min-width: 0; }
  .poster-honor strong { font-size: 17px; }
  .poster-honor span { font-size: 8px; white-space: nowrap; }
  .poster-triple-crown { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; max-width: 340px; margin-top: 13px; padding-top: 9px; }
  .poster-triple-heading { font-size: 9px; }
  .poster-triple-title strong { font-size: 18px; }
  .poster-triple-title span { font-size: 8px; }
  .poster-scroll { left: 22px; bottom: 25px; }
  .player-details { gap: 11px; padding-top: 17px; }
  .player-career-strip { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
  .player-career-strip span { padding: 11px 9px; font-size: 9px; }
  .form-result { grid-template-columns: 28px minmax(0, 1fr) 66px; gap: 8px; }
  .form-result-main strong { font-size: 11px; }
  .h2h-row { grid-template-columns: minmax(0, 1fr) auto 34px; gap: 7px; }
  .h2h-record { font-size: 10px; }
}

@media (max-width: 760px) {
  .player-detail-mode .mobile-nav { display: none; }
  .player-detail-mode .player-poster { min-height: 100svh; height: 100svh; max-height: none; margin: 0; }
  .player-detail-mode .player-poster-slide { padding: 30px 22px 66px; }
  .player-detail-mode .player-biography-slide { justify-content: flex-end; padding: 74px 24px 86px; }
  .player-biography-slide h2 { margin: 10px 0 15px; font-size: 32px; }
  .player-biography-slide p { font-size: 13px; line-height: 1.95; letter-spacing: .015em; }
  .player-biography-slide blockquote { margin-top: 18px; font-size: 13px; line-height: 1.8; }
  .player-detail-mode .player-details { max-width: none; margin: 0; padding: 17px 13px 42px; }
  .admin-mobile-nav { display: none; }
  .admin-mode .mobile-nav#mobile-nav { display: none; }
  .admin-mode .admin-mobile-nav { display: flex; }
  .mobile-match-card { grid-template-columns: 76px minmax(0, 1fr) 13px; gap: 9px; padding: 12px 10px; }
  .mobile-match-time { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding-right: 9px; border-right: 1px solid var(--line); }
  .mobile-match-time b { color: var(--green); font-size: 11px; line-height: 1.2; }
  .mobile-match-time small { margin-top: 0; line-height: 1.35; }
  .mobile-match-players { display: grid; grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr); grid-template-rows: 23px auto; align-items: center; column-gap: 5px; }
  .mobile-match-side { display: grid; grid-template-columns: 23px minmax(0, 1fr); grid-template-rows: 23px auto; align-items: center; gap: 0 5px; min-width: 0; }
  .mobile-match-side > span { grid-column: 2; grid-row: 1 / span 2; }
  .mobile-match-side .avatar { grid-column: 1; grid-row: 1; align-self: center; }
  .mobile-match-side.away { grid-column: 3; grid-template-columns: minmax(0, 1fr) 23px; text-align: right; }
  .mobile-match-side.away > span { grid-column: 1; }
  .mobile-match-side.away .avatar { grid-column: 2; }
  .mobile-match-side { grid-row: 1 / span 2; align-self: stretch; }
  .mobile-match-side strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
  .mobile-match-vs { grid-row: 1; align-self: center; min-width: 0; }
  .mobile-match-players > small { grid-column: 1 / -1; grid-row: 2; margin-top: 7px; padding-top: 6px; border-top: 1px solid #f0f2ef; }
  .mobile-match-players { display: block; min-width: 0; }
  .mobile-match-main { grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr); grid-template-rows: 23px auto; align-items: start; column-gap: 5px; }
  .mobile-match-side { grid-row: 1 / span 2; align-self: start; }
  .mobile-match-side .avatar { align-self: start; }
  .mobile-match-vs { grid-column: 2; grid-row: 1; align-self: start; height: 23px; }
  .mobile-match-meta { grid-column: auto; grid-row: auto; margin-top: 12px; padding-top: 6px; border-top: 1px solid #f0f2ef; }
  .mobile-match-side > .mobile-player-main { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 5px; height: 23px; min-width: 0; }
  .mobile-player-main .avatar { grid-column: auto; grid-row: auto; align-self: center; }
  .mobile-player-main strong { line-height: 23px; }
  .mobile-match-side.away .mobile-player-main { flex-direction: row-reverse; text-align: right; }
  .mobile-match-side > small { grid-column: 1 / -1; grid-row: 2; margin-top: 0; color: var(--muted); font: 8px/1.1 "DM Mono", monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-match-main { grid-template-columns: 23px minmax(0, 1fr) 23px; column-gap: 5px; }
  .mobile-match-name-row { grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr); }
  .mobile-match-avatar { width: 23px; height: 23px; }
  .mobile-match-avatar .avatar { width: 23px; height: 23px; }
  .schedule-item { grid-template-columns: 68px minmax(0, 1fr) 58px; gap: 8px; }
  .schedule-time { padding-right: 8px; }
  .schedule-time b { font-size: 11px; }
  .schedule-time small { font-size: 8px; }
  .schedule-matchup { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 4px; }
  .match-player { grid-template-columns: 26px minmax(0, 1fr); gap: 4px; }
  .match-player.away { grid-template-columns: minmax(0, 1fr) 26px; }
  .match-player .avatar { width: 26px; height: 26px; }
  .ranking-money strong { font-size: 10px; }
  .ranking-gap { margin-top: 3px; font-size: 7px; }
  .ranking-data-panel .full-table tr { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .ranking-data-panel .full-table td:nth-child(4), .ranking-data-panel .full-table td:nth-child(5) { display: none; }
  .season-calendar-toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; margin-bottom: 15px; }
  .season-calendar-toolbar .select { width: 100%; min-width: 0; }
  .season-calendar-toolbar > span { grid-column: 1 / -1; margin-left: 0; font-size: 9px; }
  .season-calendar-heading h2 { font-size: 16px; }
}

/* Keep the mobile match card layout deterministic after the legacy card rules above. */
.mobile-match-players {
  display: block !important;
  min-width: 0;
}
.mobile-match-main {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) 28px !important;
  grid-template-rows: auto !important;
  align-items: start !important;
  column-gap: 8px !important;
  min-width: 0;
  padding: 0 0 10px;
}
.mobile-match-avatar {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}
.mobile-match-avatar.home { grid-column: 1; }
.mobile-match-avatar.away { grid-column: 3; }
.mobile-match-avatar .avatar { width: 28px; height: 28px; }
.mobile-match-center {
  grid-column: 2;
  min-width: 0;
  padding: 0 0 0;
}
.mobile-match-name-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
  grid-template-rows: 23px auto;
  align-items: start;
  min-width: 0;
}
.mobile-match-name {
  display: grid;
  grid-row: 1 / span 2;
  grid-template-rows: 23px auto;
  min-width: 0;
}
.mobile-match-name.home { grid-column: 1; text-align: left; }
.mobile-match-name.away { grid-column: 3; text-align: right; }
.mobile-match-name strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 23px;
}
.mobile-match-name small {
  display: block;
  margin: 0;
  color: var(--muted);
  font: 8px/1.1 "DM Mono", monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-match-vs {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  height: 23px;
  min-width: 0;
  justify-content: center;
  align-items: center;
  gap: 2px;
}
.mobile-match-players > small.mobile-match-meta {
  display: block;
  grid-column: auto;
  grid-row: auto;
  margin-top: 6px !important;
  padding-top: 9px !important;
  border-top: 1px solid #f0f2ef !important;
  color: var(--green);
  font-size: 9px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-match-card-no-time {
  grid-template-columns: minmax(0, 1fr) 13px !important;
}
.mobile-match-card-no-time .mobile-match-players {
  grid-column: 1;
}
.mobile-match-card-countdown {
  grid-template-columns: minmax(0, 1fr) 14px !important;
}
.mobile-match-card-countdown .mobile-match-players {
  grid-column: 1;
}
.mobile-match-countdown {
  display: inline-block;
  margin-right: 7px;
  color: #45a650;
  font: 600 10px/1.35 "Noto Sans SC", sans-serif;
}
.detail-player > span {
  grid-template-rows: auto auto;
  align-content: center;
}
.detail-player strong {
  line-height: normal !important;
  height: auto;
}
.mobile-match-name small {
  display: flex;
  align-items: center;
  gap: 3px;
}
.mobile-match-name.away small {
  justify-content: flex-end;
}
.mobile-match-name .match-country-flag {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1;
}

@media (max-width: 760px) {
  .mobile-nav a { min-width: 0; flex: 1 1 20%; }
  .status-page { gap: 12px; }
  .status-picker-body { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); padding: 13px 14px 15px; }
  .status-picker-body .select { width: 100%; }
  .status-player-menu { max-height: 240px; }
  .status-selected { display: block; padding: 1px 1px 3px; }
  .status-sample { display: block; margin: 9px 0 0 53px; text-align: left; }
  .status-overview, .status-grid { grid-template-columns: 1fr; gap: 12px; }
  .status-score-body { gap: 17px; padding: 18px 15px 21px; }
  .status-ring { width: 112px; height: 112px; }
  .status-ring::after { inset: 9px; }
  .status-ring strong { font-size: 31px; }
  .status-score-copy b { font-size: 14px; }
  .status-score-copy p { font-size: 10px; }
  .status-mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .status-mini-grid .stat-card { padding: 11px 9px; }
  .status-mini-grid .stat-card strong { font-size: 17px; letter-spacing: -.06em; }
  .status-mini-grid .stat-card span { line-height: 1.4; }
  .status-results { gap: 5px; }
  .status-result { grid-template-columns: 24px minmax(0, 1fr) auto; padding: 9px 8px; gap: 8px; }
  .status-result > b { width: 24px; height: 24px; }
  .status-result-main strong { font-size: 10px; }
  .status-result-score b { font-size: 11px; }
  .status-prediction-body { align-items: flex-start; flex-wrap: wrap; gap: 12px 16px; padding: 15px 14px 17px; }
  .status-prediction-rate { min-width: 68px; }
  .status-prediction-rate strong { font-size: 25px; }
  .status-prediction-match { flex-basis: calc(100% - 84px); }
  .status-prediction-body > .panel-link { margin-left: 84px; }
  .status-radar-wrap { grid-template-columns: 1fr; gap: 3px; }
  .status-radar { max-width: 330px; margin: 0 auto; }
  .status-radar-values { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
}
