#amc-app{--ink:#111;--muted:#6b7280;--line:#e5e7eb;--bg:#f6f7f9;--accent:#b3131b;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);max-width:1200px;margin:20px auto;background:var(--bg);border-radius:22px;overflow:hidden;box-shadow:0 10px 40px rgba(0,0,0,.08)}
#amc-app *{box-sizing:border-box}.amc-hero{display:flex;align-items:center;gap:22px;padding:26px;background:#111;color:#fff}.amc-hero img{width:92px;height:92px;object-fit:cover;border-radius:16px;background:#fff}.amc-kicker{font-size:11px;letter-spacing:2px;font-weight:800;opacity:.72}.amc-hero h1{margin:4px 0;font-size:30px;color:#fff!important;font-weight:900;letter-spacing:.2px;text-shadow:0 1px 2px rgba(0,0,0,.35)}.amc-hero p{margin:0;color:#d1d5db}
.amc-tabs{display:flex;gap:6px;padding:10px;background:#fff;border-bottom:1px solid var(--line);overflow:auto}.amc-tabs button{border:0;background:transparent;padding:12px 16px;border-radius:10px;font-weight:700;white-space:nowrap;cursor:pointer}.amc-tabs button.active{background:#111;color:#fff}
.amc-tab{display:none;padding:22px}.amc-tab.active{display:block}.amc-cards{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.amc-cards>div,.amc-panel,.player-card,.amc-grid article{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px}.amc-cards b{display:block;font-size:28px}.amc-cards span{color:var(--muted);font-size:13px}.amc-panel{margin-top:16px}.amc-panel h2,.amc-panel h3{margin-top:0}.amc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.player-card{display:flex;gap:14px;align-items:center}.player-card img{width:64px;height:64px;object-fit:cover;border-radius:12px}.player-card h3{margin:0 0 4px}.player-card span,.player-card p{font-size:13px;color:var(--muted);margin:4px 0}.amc-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.amc-section-head h2,.amc-section-head h3{margin:0}.amc-primary{border:0;background:#111;color:#fff;padding:11px 16px;border-radius:10px;font-weight:800;cursor:pointer}.amc-small{border:0;background:#eee;padding:7px 10px;border-radius:8px;cursor:pointer}.amc-empty{padding:40px;text-align:center;background:#fff;border:1px dashed #d1d5db;border-radius:16px;color:var(--muted)}
.amc-table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:16px}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:13px 14px;border-bottom:1px solid var(--line);white-space:nowrap}th{font-size:12px;text-transform:uppercase;color:var(--muted)}
.amc-form{display:flex;flex-direction:column;gap:12px}.amc-form label{font-size:13px;font-weight:700;display:flex;flex-direction:column;gap:6px}.amc-form input,.amc-form select{border:1px solid #d1d5db;border-radius:9px;padding:11px;background:#fff;font:inherit}.grid-form{display:grid;grid-template-columns:repeat(4,1fr);margin-bottom:16px}.score-head{display:flex;justify-content:space-between;align-items:center;background:#111;color:#fff;padding:22px;border-radius:16px}.score-head h2{margin:3px 0}.score-head p{margin:0;color:#bbb}.big-score{font-size:38px;font-weight:900;text-align:right}.big-score small{display:block;font-size:12px;color:#bbb}.run-buttons{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.run-buttons button{padding:15px;border:1px solid var(--line);background:#f8fafc;border-radius:10px;font-weight:900;cursor:pointer}.run-buttons .wicket{grid-column:span 2;background:#b3131b;color:#fff;border-color:#b3131b}.amc-note{margin-top:12px;color:var(--muted);font-size:12px}.ball-list span{display:inline-flex;min-width:34px;height:34px;align-items:center;justify-content:center;border-radius:50%;background:#eee;margin:3px;font-size:12px;font-weight:800}.pill{display:inline-block;padding:4px 8px;background:#eee;border-radius:999px;font-size:11px;font-weight:800}
.amc-modal{position:fixed;inset:0;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;padding:20px;z-index:99999}.amc-modal[hidden]{display:none}.amc-modal-card{position:relative;background:#fff;border-radius:18px;padding:24px;max-width:560px;width:100%;max-height:90vh;overflow:auto}.amc-close{position:absolute;right:12px;top:8px;border:0;background:transparent;font-size:28px;cursor:pointer}
@media(max-width:800px){.amc-hero h1{font-size:22px}.amc-cards{grid-template-columns:repeat(2,1fr)}.amc-grid{grid-template-columns:1fr}.grid-form{grid-template-columns:1fr 1fr}.run-buttons{grid-template-columns:repeat(3,1fr)}.amc-tab{padding:14px}.score-head{align-items:flex-start}.big-score{font-size:30px}}
@media(max-width:480px){.amc-hero{padding:18px}.amc-hero img{width:70px;height:70px}.amc-cards{grid-template-columns:repeat(2,1fr)}.grid-form{grid-template-columns:1fr}.run-buttons button{padding:13px}}

/* V2 premium UI */
#amc-app{background:linear-gradient(145deg,#f7f7f8,#eef0f3)}
.amc-hero{background:linear-gradient(135deg,#0b0b0d 0%,#1b1b1f 55%,#0b0b0d 100%);border-bottom:1px solid #333}
.amc-hero h1{color:#fff!important;font-weight:900;letter-spacing:.2px}
.amc-tabs{position:sticky;top:0;z-index:5;box-shadow:0 4px 18px rgba(0,0,0,.05)}
.amc-panel,.amc-cards>div,.player-card,.amc-grid article{box-shadow:0 8px 25px rgba(15,23,42,.05)}
.premium-player{position:relative;overflow:hidden;min-height:150px}
.premium-player:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#111}
.premium-player img,.avatar{width:78px;height:78px;object-fit:cover;border-radius:18px;background:#111;color:#fff;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:900;flex:none}
.avatar.large{width:110px;height:110px;font-size:38px}
.player-info{flex:1}.jersey-badge{display:inline-block;float:right;background:#111;color:#fff;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:900}
.photo-preview{padding:10px;border:1px dashed #cbd5e1;border-radius:10px;color:#6b7280;font-size:12px}
.profile-hero{display:flex;gap:18px;align-items:center;background:#111;color:#fff;border-radius:14px;padding:18px;margin-bottom:16px}
.profile-hero img{width:110px;height:110px;object-fit:cover;border-radius:18px;background:#fff}
.profile-hero h2{margin:4px 0;font-size:27px}.profile-hero p{margin:0;color:#bbb}
.profile-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.profile-grid>div{padding:14px;border:1px solid #e5e7eb;border-radius:12px;background:#fafafa}
.profile-grid b{display:block;font-size:11px;text-transform:uppercase;color:#6b7280;margin-bottom:4px}.profile-grid span{font-weight:800}
.bio{margin-top:12px;padding:15px;background:#fafafa;border-radius:12px}.bio p{margin:7px 0;color:#4b5563}
@media(max-width:700px){.profile-grid{grid-template-columns:1fr 1fr}.profile-hero img{width:80px;height:80px}.avatar.large{width:80px;height:80px}}
@media(max-width:430px){.profile-grid{grid-template-columns:1fr}}
/* V3 seasons, competitions and club designations */
.designation-box{padding:15px;border:1px solid #e5e7eb;border-radius:14px;background:#fafafa}.designation-box>b{display:block;margin-bottom:10px}.check-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.check-item{display:flex!important;flex-direction:row!important;align-items:center;gap:7px;padding:10px 12px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;cursor:pointer}.check-item input{width:auto!important}.designation-badges{display:flex;flex-wrap:wrap;gap:5px;margin:7px 0}.designation-badges span{display:inline-block;padding:4px 8px;border-radius:999px;background:#111;color:#fff;font-size:10px;font-weight:800}.amc-filter{border:1px solid #d1d5db;border-radius:10px;padding:10px 12px;background:#fff;font:inherit;font-weight:700}.amc-section-head small{font-weight:500;color:#6b7280}.amc-tabs button{font-size:13px}
@media(max-width:800px){.check-grid{grid-template-columns:1fr 1fr}.amc-section-head{flex-wrap:wrap}}
@media(max-width:480px){.check-grid{grid-template-columns:1fr}}
.award-stat{border:1px solid rgba(255,255,255,.10);border-radius:12px;padding:12px;display:flex;justify-content:space-between;gap:16px;background:rgba(255,255,255,.03)}
.award-card{position:relative;overflow:hidden;text-align:center;border:1px solid rgba(255,255,255,.14);box-shadow:0 12px 35px rgba(0,0,0,.18)}
.award-card strong{letter-spacing:.08em;font-size:12px}.award-photo{width:90px;height:90px;object-fit:cover;border-radius:50%;margin-top:12px;border:3px solid rgba(255,255,255,.18)}
.pot-award{margin-top:10px}.amc-small{cursor:pointer}

/* V3.2 player card and expanded statistics */
.premium-player{display:flex!important;align-items:center!important;gap:18px!important;min-width:0!important;padding:18px!important}
.premium-player .player-photo-card{width:104px!important;height:104px!important;min-width:104px!important;max-width:104px!important;object-fit:cover!important;border-radius:18px!important;flex:none!important}
.premium-player .player-info{min-width:0!important;overflow:hidden!important;padding-right:6px}
.premium-player .player-info h3{font-size:21px!important;line-height:1.12!important;letter-spacing:.02em!important;margin:2px 0 6px!important;word-break:normal!important;overflow-wrap:anywhere!important;max-width:100%!important}
.premium-player .player-info>span{font-size:13px!important}
.premium-player .player-info p{font-size:13px!important;margin:7px 0!important}
.premium-player .jersey-badge{float:none!important;margin-left:auto!important;position:absolute!important;right:16px!important;top:14px!important}
.stats-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 10px}.stats-heading h3{margin:0}.stats-heading span{font-size:12px;color:var(--muted);font-weight:800}
.stats-grid{grid-template-columns:repeat(4,1fr)!important}.stats-grid>div{min-height:78px;display:flex;flex-direction:column;justify-content:center}
.profile-details{margin-top:12px}.profile-photo{flex:none}
@media(max-width:900px){.stats-grid{grid-template-columns:repeat(3,1fr)!important}.premium-player .player-photo-card{width:96px!important;height:96px!important;min-width:96px!important;max-width:96px!important}}
@media(max-width:700px){.stats-grid{grid-template-columns:repeat(2,1fr)!important}.premium-player .player-photo-card{width:88px!important;height:88px!important;min-width:88px!important;max-width:88px!important}.premium-player .player-info h3{font-size:19px!important}.profile-hero{gap:14px}.profile-hero h2{font-size:23px}}
@media(max-width:480px){.premium-player{gap:12px!important;padding:14px!important}.premium-player .player-photo-card{width:78px!important;height:78px!important;min-width:78px!important;max-width:78px!important;border-radius:14px!important}.premium-player .player-info h3{font-size:17px!important}.stats-grid{grid-template-columns:1fr 1fr!important}}
/* V3.3 editing tools */
.player-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.current-photo{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #e5e7eb;border-radius:10px;background:#fafafa}.current-photo img{width:54px;height:54px;object-fit:cover;border-radius:10px}.current-photo span{font-size:12px;color:#6b7280}.profile-edit-btn{margin-top:9px;background:#fff!important;color:#111!important}.ball-list{display:flex;flex-direction:column;gap:7px}.ball-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border:1px solid #e5e7eb;border-radius:10px;background:#fafafa}.ball-chip{font-weight:800;font-size:12px}.edit-run-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;margin-bottom:10px}.run-edit-btn{border:1px solid #d1d5db;background:#f8fafc;border-radius:9px;padding:12px;font-weight:900;cursor:pointer}.run-edit-btn.selected{background:#111;color:#fff;border-color:#111}.delete-ball{background:#f3f4f6!important;color:#991b1b!important}@media(max-width:600px){.player-actions .amc-small{flex:1}.edit-run-grid{grid-template-columns:repeat(4,1fr)}}

/* V3.4 player ordering, jersey presentation and profile hierarchy */
.premium-player{position:relative!important}
.player-number{position:absolute;left:14px;top:12px;background:#111;color:#fff;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:900;z-index:2;box-shadow:0 4px 10px rgba(0,0,0,.12)}
.premium-player .player-photo-card{margin-left:18px!important}
.premium-player .jersey-badge{font-size:10px!important;letter-spacing:.04em!important;padding:5px 9px!important}
.profile-hero{position:relative!important;display:flex!important;align-items:center!important;gap:16px!important;padding:20px 58px 20px 20px!important}
.profile-hero h2,.profile-hero .profile-head-info h2{color:#fff!important;font-weight:900!important;text-shadow:0 1px 2px rgba(0,0,0,.45)!important}
.profile-head-info{min-width:0;flex:1}
.profile-head-info p{color:#d0d0d0!important}
.profile-jersey{width:58px;height:58px;border-radius:16px;background:#fff;color:#111;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:950;flex:none;box-shadow:0 6px 18px rgba(0,0,0,.2)}
.profile-details-top{margin-bottom:8px}
.profile-details-top .profile-grid{margin-top:0}
.profile-edit-btn{position:absolute;right:16px;top:16px}
@media(max-width:700px){.profile-hero{padding:16px 48px 16px 14px!important;gap:10px!important}.profile-jersey{width:46px;height:46px;border-radius:12px;font-size:18px}.profile-hero h2{font-size:21px!important}.premium-player .player-photo-card{margin-left:14px!important}.player-number{left:10px;top:10px}}

/* V3.5 live match persistence & resume UX */
.resume-card{text-align:center;padding:8px 4px}.resume-card h2{margin:7px 0 8px}.resume-card p{color:#4b5563}.resume-actions{display:flex;justify-content:center;gap:10px;margin-top:18px;flex-wrap:wrap}.end-live-prompt,.end-match-btn{background:#f3f4f6!important;color:#111!important}.scoring-close-actions{display:flex;gap:8px;flex-wrap:wrap}@media(max-width:600px){.scoring-close-actions{width:100%}.scoring-close-actions button{flex:1}}
