*{box-sizing:border-box}
html{scroll-behavior:smooth;color-scheme:dark}
:root{--bg:#061019;--surface:#0b1722;--surface-2:#0e1d2a;--surface-3:#112433;--line:rgba(255,255,255,.10);--line-strong:rgba(255,255,255,.16);--text:#f3f8fb;--muted:#91a5b4;--muted-2:#6f8798;--accent:#72defd;--accent-soft:rgba(114,222,253,.12);--warning:#f6be6c;--danger:#ff7d88;--shadow:0 24px 65px rgba(0,0,0,.24)}
body{margin:0;min-height:100vh;background:linear-gradient(180deg,rgba(3,10,16,.72),rgba(3,10,16,.90) 58%,rgba(3,10,16,.96)),url('/assets/img/otz-cover.webp') center top/cover fixed no-repeat,var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,input,select{font:inherit}button{touch-action:manipulation}a{color:inherit}

.op-topbar{min-height:72px;padding:10px max(18px,calc((100vw - 1440px)/2));display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:22px;border-bottom:1px solid var(--line);background:rgba(7,16,25,.60);backdrop-filter:blur(18px) saturate(135%);-webkit-backdrop-filter:blur(18px) saturate(135%);position:sticky;top:0;z-index:50}
.op-brand{display:flex;align-items:center;gap:11px;color:#fff;text-decoration:none;min-width:0}.op-brand img{width:42px;height:42px;object-fit:contain;flex:0 0 auto}.op-brand span{display:flex;flex-direction:column;min-width:0}.op-brand strong{font-size:13px;letter-spacing:.17em}.op-brand small{color:#8298a8;margin-top:2px;max-width:235px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}
.op-main-nav{justify-self:center;display:flex;align-items:center;gap:4px;padding:5px;border:1px solid var(--line);background:rgba(255,255,255,.025);border-radius:14px}.op-main-nav a{padding:8px 11px;border-radius:9px;text-decoration:none;font-size:12px;font-weight:800;color:#9fb1be;transition:.16s ease}.op-main-nav a:hover{background:rgba(255,255,255,.06);color:#fff}
.op-top-actions{display:flex;align-items:center;gap:10px}.live-dot{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:900;letter-spacing:.13em;color:#bceffd}.live-dot i{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 5px rgba(114,222,253,.08)}.system-link{color:#c0ced8;text-decoration:none;font-size:12px;font-weight:800;padding:9px 12px;border:1px solid var(--line-strong);border-radius:11px;background:rgba(255,255,255,.025);transition:.16s ease}.system-link:hover{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.2)}

.op-shell{width:min(1480px,100%);margin:auto;padding:22px 20px 58px}.op-alert{padding:13px 15px;border-radius:13px;margin-bottom:16px;font-weight:750;font-size:13px;box-shadow:0 10px 28px rgba(0,0,0,.12)}.op-alert.success{background:rgba(114,222,253,.08);border:1px solid rgba(114,222,253,.20);color:#cceffc}.op-alert.error{background:rgba(255,90,105,.10);border:1px solid rgba(255,90,105,.22);color:#ffc1c6}
.eyebrow,.start-mark{color:var(--accent);font-size:10px;font-weight:950;letter-spacing:.17em;text-transform:uppercase}

.start-screen{min-height:calc(100vh - 160px);display:grid;place-items:center;align-content:center;text-align:center;max-width:720px;margin:auto}.start-screen:before{content:"";width:82px;height:82px;margin-bottom:20px;background:url('/assets/img/otz-logo.webp') center/contain no-repeat;filter:drop-shadow(0 18px 28px rgba(0,0,0,.28))}.start-screen h1{font-size:clamp(40px,7vw,72px);letter-spacing:-.055em;margin:10px 0 12px;line-height:.98}.start-screen p{color:var(--muted);font-size:16px;line-height:1.65;margin:0 0 26px;max-width:610px}.start-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;width:min(570px,100%);padding:9px;background:rgba(255,255,255,.025);border:1px solid var(--line);border-radius:17px}.start-form input,.add-player-form input,.saved-player-tools input,.edit-grid select{background:#0b1823;border:1px solid var(--line-strong);color:var(--text);border-radius:11px;outline:none;transition:border-color .15s,box-shadow .15s}.start-form input:focus,.add-player-form input:focus,.saved-player-tools input:focus,.edit-grid select:focus{border-color:rgba(114,222,253,.45);box-shadow:0 0 0 3px rgba(114,222,253,.08)}.start-form input{height:48px;padding:0 14px}

.btn{border:0;border-radius:11px;min-height:42px;padding:0 15px;font-weight:850;cursor:pointer;transition:.16s transform,.16s background,.16s border-color,.16s opacity;white-space:nowrap}.btn:hover{transform:translateY(-1px)}.btn:active{transform:translateY(0)}.btn.primary{background:#eff9fd;color:#071019}.btn.primary:hover{background:#fff}.btn.big{min-height:48px;padding:0 20px}.btn.ghost{background:#101f2b;color:#cbd9e2;border:1px solid var(--line)}.btn.ghost:hover{background:#142735;border-color:var(--line-strong)}.btn.win{width:100%;margin-top:18px;background:rgba(114,222,253,.09);color:#d0f3fd;border:1px solid rgba(114,222,253,.20)}.btn.win:hover{background:rgba(114,222,253,.14)}.btn.danger{background:rgba(255,87,101,.09);color:#ffb8be;border:1px solid rgba(255,86,101,.19)}.btn.danger:hover{background:rgba(255,87,101,.14)}.btn.small{min-height:36px;font-size:11px}.btn.tiny{min-height:32px;font-size:10px;padding:0 10px}

.op-hero{display:flex;justify-content:space-between;gap:30px;align-items:center;margin:0 0 14px;padding:6px 2px}.hero-copy{min-width:0}.op-hero h1{font-size:clamp(29px,3.4vw,44px);letter-spacing:-.045em;line-height:1.02;margin:6px 0 5px}.op-hero p{color:var(--muted);margin:0;font-size:13px}.ranking-note{display:inline-flex;align-items:center;gap:5px;margin-top:12px;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.025);border:1px solid var(--line);color:#8197a8;font-size:11px}.ranking-note strong{color:#b9c8d2}.hero-stats{display:flex;gap:9px;flex:0 0 auto}.hero-stats div{min-width:112px;padding:14px 15px;background:linear-gradient(180deg,#0d1a25,#0a151f);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 28px rgba(0,0,0,.12)}.hero-stats strong{font-size:25px;display:block;line-height:1}.hero-stats span{display:block;margin-top:6px;font-size:9px;color:#7f95a5;text-transform:uppercase;font-weight:900;letter-spacing:.09em}.op-mobile-nav{display:none}

.op-grid{display:grid;grid-template-columns:1fr;gap:16px}.card{scroll-margin-top:94px;background:linear-gradient(180deg,rgba(13,27,39,.72),rgba(9,20,29,.78));border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.next-card{position:relative;overflow:hidden;background:linear-gradient(90deg,rgba(4,14,22,.90),rgba(5,18,28,.74)),url('/assets/img/otz-cover.webp') center 48%/cover no-repeat;border-color:rgba(114,222,253,.18);box-shadow:0 30px 80px rgba(0,0,0,.36)}.next-card:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.025),transparent 26%,rgba(2,8,13,.16));pointer-events:none}.next-card>*{position:relative;z-index:1}.next-title-line,.queue-title-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.next-title-line h2,.queue-title-line h3{margin:4px 0 0}.featured-badge,.queue-live-pill{display:inline-flex;align-items:center;min-height:24px;padding:0 9px;border-radius:999px;border:1px solid rgba(114,222,253,.28);background:rgba(114,222,253,.10);color:#c7f3ff;font-size:8px;font-weight:950;letter-spacing:.1em}.queue-live-pill{border-color:rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#d7e3ea}.next-card,.players-card,.standings-card,.history-card{padding:19px}.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}.card-head h2{margin:4px 0 0;font-size:20px;letter-spacing:-.025em}.card-head p{margin:6px 0 0;color:#718899;font-size:11px;line-height:1.45;max-width:620px}.count-pill{min-width:33px;height:33px;padding:0 9px;border-radius:10px;display:grid;place-items:center;background:#142633;border:1px solid var(--line);font-weight:900;color:#d9e6ee}

.versus-board{display:grid;grid-template-columns:1fr 54px 1fr;gap:16px;align-items:stretch;background:linear-gradient(90deg,rgba(8,20,31,.80),rgba(7,17,27,.58),rgba(8,20,31,.80));border:1px solid rgba(255,255,255,.10);border-radius:20px;padding:18px;backdrop-filter:blur(12px);box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}.team{border-radius:18px;padding:22px;background:linear-gradient(180deg,rgba(12,27,40,.80),rgba(8,20,30,.86));border:1px solid rgba(255,255,255,.10);min-width:0;display:flex;flex-direction:column;box-shadow:0 18px 40px rgba(0,0,0,.18)}.team-label{display:block;color:#7790a2;font-size:9px;font-weight:950;letter-spacing:.16em;margin-bottom:14px}.match-player{display:flex;align-items:center;gap:11px;min-width:0}.match-player strong{font-size:clamp(17px,1.8vw,23px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.025em}.match-avatar{width:60px;height:60px;border-radius:17px;object-fit:cover;flex:0 0 auto;border:1px solid rgba(255,255,255,.12);background:#132b3b;box-shadow:0 12px 24px rgba(0,0,0,.18)}.match-avatar.fallback{display:grid;place-items:center;color:#8fe6ff;font-size:16px;font-weight:950}.team b{display:block;color:#496478;margin:9px 0 9px 22px;font-size:13px}.team form{margin-top:auto}.vs{align-self:center;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#132735;border:1px solid var(--line-strong);font-size:10px;font-weight:1000;color:#8fa6b6;box-shadow:0 10px 24px rgba(0,0,0,.18)}
.empty-next{text-align:center;padding:44px 20px;background:#08141d;border-radius:14px;border:1px dashed var(--line-strong)}.empty-next strong{font-size:20px;display:block}.empty-next span{display:block;color:#849aab;margin:7px 0 18px;font-size:12px}.edit-match{margin-top:12px;background:#0a1620;border-radius:13px;border:1px solid var(--line);overflow:hidden}.edit-match summary{cursor:pointer;padding:13px 15px;font-size:12px;font-weight:850;color:#a8bac6;list-style:none}.edit-match summary::-webkit-details-marker{display:none}.edit-match summary:after{content:"Edit";float:right;color:#6eddfd;font-size:10px;letter-spacing:.06em}.edit-match[open] summary{border-bottom:1px solid var(--line)}.edit-grid{padding:14px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.edit-grid label{display:grid;gap:6px;color:#7f94a5;font-size:10px;font-weight:850}.edit-grid select{height:42px;padding:0 10px}.edit-grid .btn{grid-column:1/-1}

.queue-preview{position:relative;overflow:hidden;margin-top:16px;padding:18px;border-radius:18px;background:linear-gradient(90deg,rgba(4,14,22,.90),rgba(5,17,26,.66)),url('/assets/img/otz-cover.webp') center 60%/cover no-repeat;border:1px solid rgba(114,222,253,.16);box-shadow:0 20px 50px rgba(0,0,0,.24)}.queue-preview:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.02),transparent 36%,rgba(0,0,0,.18));pointer-events:none}.queue-preview>*{position:relative;z-index:1}.queue-preview-head h3{margin:4px 0 0;font-size:18px;letter-spacing:-.02em}.queue-preview-head p{margin:6px 0 0;color:#7d92a2;font-size:11px;line-height:1.45}.queue-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:14px}.queue-card{position:relative;display:grid;justify-items:center;text-align:center;gap:9px;padding:16px 12px 14px;border-radius:18px;background:linear-gradient(180deg,rgba(16,33,47,.84),rgba(8,21,31,.90));border:1px solid rgba(255,255,255,.10);box-shadow:0 18px 34px rgba(0,0,0,.22);backdrop-filter:blur(10px)}.queue-card.queue-waiting{border-color:rgba(246,190,108,.18)}.queue-card.queue-up_next{border-color:rgba(114,222,253,.34);box-shadow:0 20px 42px rgba(0,0,0,.26),inset 0 0 0 1px rgba(114,222,253,.10)}.queue-card.queue-current_match{opacity:.72;border-color:rgba(255,255,255,.12)}.queue-rank{position:absolute;top:10px;left:10px;min-width:42px;height:24px;padding:0 8px;border-radius:999px;background:rgba(255,255,255,.06);display:grid;place-items:center;font-size:10px;font-weight:900;color:#ced9df}.queue-photo{width:82px;height:82px;border-radius:22px;object-fit:cover;border:1px solid rgba(255,255,255,.12);box-shadow:0 14px 30px rgba(0,0,0,.28)}.queue-fallback{display:grid;place-items:center;background:#153040;color:#85e6ff;font-weight:950;font-size:24px}.queue-meta{display:grid;gap:4px;min-width:0}.queue-meta strong{font-size:15px;letter-spacing:-.02em;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.queue-meta span{font-size:11px;color:#88a0b0}.queue-empty{padding:16px 8px 4px}

/* Roster is deliberately NOT sticky. It stays in the normal page flow and never covers standings/results. */
.players-card{align-self:start;position:static;top:auto;background:linear-gradient(180deg,rgba(10,24,35,.82),rgba(7,18,27,.88));}.enhanced-add{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:end;margin-bottom:13px;padding:11px;border:1px solid var(--line);background:#091720;border-radius:13px}.add-name-field{display:grid;gap:6px;min-width:0}.add-name-field label{font-size:9px;text-transform:uppercase;letter-spacing:.1em;color:#71899a;font-weight:900}.add-player-form input[type="text"],.add-player-form input:not([type]){min-width:0;height:43px;padding:0 12px}.photo-picker{height:43px;display:flex;align-items:center;justify-content:center;padding:0 13px;border-radius:11px;border:1px solid var(--line-strong);background:#101f2b;color:#c7d6df;font-size:11px;font-weight:850;cursor:pointer;white-space:nowrap}.photo-picker:hover{background:#142735}.photo-picker input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.saved-players{margin:0 0 14px;border:1px solid var(--line);border-radius:13px;background:#09151f;overflow:hidden}.saved-players summary{display:flex;justify-content:space-between;gap:10px;align-items:center;cursor:pointer;list-style:none;padding:12px 13px;font-size:12px;font-weight:900;color:#b8c8d2}.saved-players summary::-webkit-details-marker{display:none}.saved-players summary small{font-size:9px;color:#6f8798;font-weight:800}.saved-players[open] summary{border-bottom:1px solid var(--line)}.saved-player-tools{display:flex;align-items:center;gap:8px;padding:10px 10px 7px}.saved-player-tools input{width:100%;height:39px;padding:0 11px;font-size:11px}.saved-player-tools span{flex:0 0 auto;color:#70889a;font-size:9px;font-weight:850}.saved-player-list{display:grid;gap:6px;padding:4px 10px 10px}.saved-player-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:9px;background:rgba(12,25,35,.76);border:1px solid rgba(255,255,255,.06);padding:8px;border-radius:11px}.saved-player-info{min-width:0}.saved-player-title{display:flex;align-items:center;gap:6px;min-width:0}.saved-player-title strong{font-size:12px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.saved-player-info small{display:block;margin-top:4px;color:#6f8798;font-size:9px}.saved-state{font-size:9px;color:#a9bac6;font-weight:850;padding:0 8px;white-space:nowrap}
.saved-row-actions{display:flex;align-items:center;gap:6px;justify-self:end;flex-wrap:wrap;justify-content:flex-end}
.saved-row-actions form{margin:0}
.status-badge{display:inline-flex;align-items:center;justify-content:center;min-height:21px;padding:0 8px;border:1px solid var(--line);border-radius:999px;font-size:7px;font-weight:950;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}.status-next_match{color:#bfefff;border-color:rgba(114,222,253,.28);background:rgba(114,222,253,.14)}.status-up-next{color:#e6faff;border-color:rgba(114,222,253,.42);background:rgba(114,222,253,.18);box-shadow:0 0 18px rgba(114,222,253,.10)}.status-waiting{color:#ffe6b7;border-color:rgba(246,190,108,.26);background:rgba(246,190,108,.12)}.status-available{color:#d7e2e8;background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12)}.status-left{color:#869aa9;background:#111d26;opacity:.8}
.roster-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 1px 9px}.roster-heading>div{display:grid;gap:2px}.roster-heading strong{font-size:12px}.roster-heading span{font-size:9px;color:#718899}.roster-heading b{font-size:11px;color:#9eb1bd}.player-list{display:grid;gap:6px;max-height:none;overflow:visible;padding-right:0}.player-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px;background:rgba(12,25,35,.78);border:1px solid rgba(255,255,255,.05);padding:10px;border-radius:13px}.player-row.player-waiting{box-shadow:inset 0 0 0 1px rgba(246,190,108,.08)}.player-row.player-next{box-shadow:inset 0 0 0 1px rgba(114,222,253,.11)}.roster-player-name{min-width:0;display:grid;gap:3px}.roster-player-name strong{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.roster-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.roster-meta small{color:#88a0b0;font-size:10px}.avatar{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#163143;color:#79e1ff;font-weight:900;font-size:13px;object-fit:cover;flex:0 0 auto}.player-photo{border:1px solid rgba(255,255,255,.12);box-shadow:0 10px 20px rgba(0,0,0,.18)}.player-actions{display:flex;align-items:center;gap:2px}.player-actions form{margin:0}.icon-btn{width:31px;height:31px;border:0;border-radius:9px;background:transparent;color:#718899;cursor:pointer;font-size:19px;line-height:1;display:grid;place-items:center}.icon-btn:hover{background:rgba(255,255,255,.05);color:#d9e6ee}.icon-btn.photo-icon{font-size:17px;color:#8ca5b5;cursor:pointer}.quick-photo-form input[type="file"]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.left-players{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}.left-players summary{color:#72899a;font-size:11px;cursor:pointer;font-weight:800}.left-row{display:flex;justify-content:space-between;align-items:center;padding:8px 2px;color:#7f94a4;font-size:12px}.text-btn{border:0;background:transparent;color:#73dfff;font-weight:850;cursor:pointer;font-size:11px}

.standings-card{grid-column:1/-1}.standings-wrap{overflow:auto;border:1px solid rgba(255,255,255,.045);border-radius:12px}.standings{width:100%;border-collapse:collapse;min-width:660px}.standings th{text-align:left;color:#708698;font-size:9px;text-transform:uppercase;letter-spacing:.11em;padding:10px 11px;background:#0a1721;border-bottom:1px solid var(--line)}.standings td{padding:11px;border-bottom:1px solid rgba(255,255,255,.045);font-size:12px}.standings tbody tr:last-child td{border-bottom:0}.standings tbody tr:hover{background:rgba(255,255,255,.018)}.standings td.metric{font-weight:900;font-size:16px}.standings td.wins{color:#c7edf8}.rank{width:28px;height:28px;border-radius:8px;background:#142632;display:grid;place-items:center;font-weight:900;font-size:11px}.rank-1{background:#eff9fd;color:#081018}.rank-2{background:#c2d2dc;color:#081018}.rank-3{background:#b98964;color:#100b07}.is-left{opacity:.48}.left-tag{font-size:7px;margin-left:7px;background:#25343e;color:#a9b7c0;border-radius:5px;padding:3px 5px;vertical-align:middle}.standing-player{display:flex;align-items:center;gap:8px}.mini-photo{width:29px;height:29px;border-radius:8px;object-fit:cover;border:1px solid rgba(255,255,255,.08)}

.history-card{grid-column:1/-1}.match-history{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.history-match{background:#0a1721;border:1px solid rgba(255,255,255,.05);border-radius:13px;padding:12px}.history-meta{display:flex;justify-content:space-between;color:#667f91;font-size:9px;font-weight:850;margin-bottom:9px}.history-teams{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center}.history-teams div{padding:10px;border-radius:9px;background:#0d1d28;min-width:0;border:1px solid transparent}.history-teams div.winner{border-color:rgba(114,222,253,.20);background:rgba(114,222,253,.055)}.history-teams span{display:block;font-size:7px;color:#70899a;font-weight:950;letter-spacing:.09em;margin-bottom:4px}.history-teams .winner span{color:#9fe9fb}.history-teams strong{font-size:11px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-teams>b{font-size:8px;color:#536c7d}.history-match form{margin-top:9px}.empty-row{color:#718899;padding:18px 8px;text-align:center;font-size:12px}

.session-footer{display:flex;justify-content:space-between;gap:18px;align-items:center;color:#758b9b;font-size:11px;margin-top:16px;padding:14px 2px}.session-footer>div{display:grid;gap:3px}.session-footer strong{color:#a9bac6;font-size:11px}.session-footer span{max-width:760px;line-height:1.5}

@media(max-width:1080px){.op-main-nav{display:none}.op-mobile-nav{display:flex;gap:7px;overflow:auto;margin:-2px 0 16px;padding-bottom:2px}.op-mobile-nav a{flex:0 0 auto;text-decoration:none;font-size:11px;font-weight:850;color:#9fb2bf;padding:9px 11px;border-radius:10px;border:1px solid var(--line);background:#0c1923}.op-topbar{grid-template-columns:1fr auto}.op-grid{grid-template-columns:1fr}.hero-stats div{min-width:100px}.enhanced-add{grid-template-columns:1fr 1fr}.add-name-field{grid-column:1/-1}.enhanced-add .btn{width:100%}}
@media(max-width:900px){.op-grid{grid-template-columns:1fr}.standings-card,.history-card{grid-column:auto}.players-card{position:static}.op-hero{align-items:flex-start;flex-direction:column;gap:16px}.hero-stats{width:100%}.hero-stats div{flex:1;min-width:0}.match-history{grid-template-columns:1fr}}
@media(max-width:640px){.op-topbar{min-height:64px;padding:9px 12px;gap:10px}.op-brand img{width:38px;height:38px}.op-brand strong{font-size:11px}.op-brand small{max-width:130px;font-size:10px}.live-dot{display:none}.system-link{padding:8px 9px;font-size:10px}.op-shell{padding:17px 11px 38px}.op-hero{margin:0 0 14px}.op-hero h1{font-size:32px}.ranking-note{display:block;line-height:1.45}.hero-stats{gap:6px}.hero-stats div{padding:12px 10px;border-radius:12px}.hero-stats strong{font-size:22px}.hero-stats span{font-size:7px}.op-mobile-nav{margin-bottom:13px}.next-card,.players-card,.standings-card,.history-card{padding:13px;border-radius:15px}.card-head{margin-bottom:13px}.card-head h2{font-size:18px}.card-head p{font-size:10px}.versus-board{grid-template-columns:1fr;padding:10px}.vs{margin:auto;width:38px;height:38px}.team{padding:15px}.match-player strong{font-size:19px}.match-avatar{width:42px;height:42px}.edit-grid{grid-template-columns:1fr}.enhanced-add{grid-template-columns:1fr}.add-name-field{grid-column:auto}.photo-picker,.enhanced-add .btn{width:100%}.saved-player-tools{align-items:stretch;flex-direction:column}.saved-player-tools span{padding-left:2px}.saved-player-row{grid-template-columns:38px minmax(0,1fr)}.saved-row-actions{grid-column:2;justify-self:start}.roster-player-name{align-items:flex-start;flex-direction:column;gap:3px}.history-teams{grid-template-columns:1fr}.history-teams>b{text-align:center}.session-footer{align-items:stretch;flex-direction:column;padding:12px 1px}.session-footer .btn{width:100%}.start-form{grid-template-columns:1fr}.start-form input{height:48px}.start-screen{min-height:calc(100vh - 130px)}.start-screen h1{font-size:42px}.start-screen p{font-size:14px}.queue-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:400px){.op-brand small{display:none}.hero-stats span{letter-spacing:.04em}.op-mobile-nav a{padding:8px 9px}.match-player strong{font-size:18px}.player-row{grid-template-columns:36px minmax(0,1fr) auto}.avatar{width:36px;height:36px}.status-badge{font-size:6px;padding:0 5px}.queue-strip{grid-template-columns:1fr}}

@media(max-width:1180px){.queue-strip{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:820px){.queue-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.versus-board{grid-template-columns:1fr}.vs{margin:auto}}

@media(max-width:400px){.queue-strip{grid-template-columns:1fr}}

/* ===== v3.3.5 UI refresh: cleaner TPP-racing-inspired pickleball look ===== */
:root{
  --page-max:1360px;
  --panel:rgba(7,17,26,.86);
  --panel-2:rgba(10,22,33,.92);
  --soft:rgba(255,255,255,.06);
  --soft-2:rgba(255,255,255,.10);
}
body{
  background:
    linear-gradient(180deg,rgba(4,10,16,.58),rgba(4,10,16,.90) 42%,rgba(4,10,16,.97)),
    url('/assets/img/otz-cover.webp') center top/cover fixed no-repeat,
    var(--bg);
}
.op-topbar{
  background:rgba(7,16,25,.78);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.op-shell{width:min(var(--page-max),100%);padding:24px 20px 64px}
.op-hero{
  margin:0 0 18px;
  padding:18px 20px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;
  background:
    linear-gradient(90deg,rgba(5,15,24,.88),rgba(5,15,24,.62)),
    url('/assets/img/otz-cover.webp') center center/cover no-repeat;
  box-shadow:0 18px 45px rgba(0,0,0,.22);
}
.hero-stats div{
  background:rgba(8,20,30,.88);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
}
.card{
  border-radius:22px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg,rgba(8,18,28,.90),rgba(8,18,28,.95));
  box-shadow:0 20px 50px rgba(0,0,0,.22);
}
.next-card{
  padding:22px;
  overflow:hidden;
  background:
    linear-gradient(180deg,rgba(4,12,19,.78),rgba(4,12,19,.92)),
    radial-gradient(circle at top right,rgba(114,222,253,.12),transparent 32%),
    url('/assets/img/otz-cover.webp') center center/cover no-repeat;
  border-color:rgba(255,255,255,.08);
}
.next-card:before{display:none}
.card-head{margin-bottom:18px;align-items:center}
.card-head p{font-size:12px;color:#9aafbd;max-width:760px}
.next-title-line h2,.queue-title-line h3,.card-head h2{
  font-size:26px;
  letter-spacing:-.03em;
}
.featured-badge,.queue-live-pill{
  min-height:28px;
  padding:0 11px;
  font-size:9px;
  border-color:rgba(114,222,253,.24);
  background:rgba(114,222,253,.12);
}
.versus-board{
  grid-template-columns:1fr 68px 1fr;
  gap:18px;
  padding:22px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(7,18,28,.76);
}
.team{
  padding:24px;
  border-radius:20px;
  background:linear-gradient(180deg,rgba(12,26,38,.94),rgba(8,19,28,.96));
  border:1px solid rgba(255,255,255,.09);
}
.match-player{gap:14px}
.match-avatar{width:72px;height:72px;border-radius:20px}
.match-player strong{font-size:24px}
.team-label{font-size:10px;color:#8ca5b6}
.team b{margin:10px 0 10px 28px;color:#5d7787}
.vs{
  width:60px;height:60px;font-size:13px;
  background:rgba(15,34,47,.96);
  border:1px solid rgba(255,255,255,.10);
}
.btn.win{
  min-height:48px;
  border-radius:14px;
  margin-top:20px;
  font-size:13px;
  background:#eff9fd;
  color:#071019;
  border:0;
}
.btn.win:hover{background:#fff}
.edit-match{
  margin-top:14px;
  background:rgba(9,19,28,.88);
  border:1px solid rgba(255,255,255,.07);
  border-radius:16px;
}
.edit-match summary{padding:15px 16px;color:#d7e2e8}
.edit-grid{padding:16px}
.edit-grid select,.start-form input,.add-player-form input,.saved-player-tools input{
  background:rgba(5,15,23,.92);
}
.queue-preview{
  margin-top:16px;
  padding:18px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg,rgba(8,20,30,.90),rgba(8,20,30,.96)),
    url('/assets/img/otz-cover.webp') center center/cover no-repeat;
}
.queue-preview-head{margin-bottom:14px}
.queue-preview-head p{margin:8px 0 0;color:#a9bcc8;font-size:12px}
.queue-strip{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}
.queue-card{
  justify-items:start;
  text-align:left;
  min-height:220px;
  gap:10px;
  padding:16px;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(10,23,34,.96),rgba(7,16,24,.96));
  border:1px solid rgba(255,255,255,.08);
}
.queue-card.queue-up_next{
  border-color:rgba(114,222,253,.28);
  box-shadow:0 0 0 1px rgba(114,222,253,.08),0 14px 30px rgba(0,0,0,.18);
}
.queue-card.queue-waiting{
  border-color:rgba(255,255,255,.07);
}
.queue-card.queue-current_match{
  border-color:rgba(114,222,253,.18);
  background:linear-gradient(180deg,rgba(13,29,42,.96),rgba(8,20,30,.96));
}
.queue-rank{
  position:static;
  min-width:auto;
  height:auto;
  padding:0;
  background:none;
  color:#8fb3c7;
  font-size:11px;
  letter-spacing:.08em;
}
.queue-photo{width:88px;height:88px;border-radius:22px}
.queue-fallback{font-size:28px}
.queue-meta strong{font-size:18px}
.queue-meta span{font-size:12px;color:#9ab0be}
.players-card,.standings-card,.history-card{padding:20px}
.saved-players,.player-row,.saved-player-row,.history-match,.standings-wrap,.start-form{
  border-radius:16px;
}
.player-row,.saved-player-row{
  background:rgba(10,21,31,.92);
  border:1px solid rgba(255,255,255,.06);
}
.player-row.player-waiting{
  box-shadow:inset 0 0 0 1px rgba(246,190,108,.12);
}
.player-row.player-next{
  box-shadow:inset 0 0 0 1px rgba(114,222,253,.14);
}
.roster-player-name strong,.saved-player-title strong{font-size:14px}
.status-badge{
  min-height:24px;
  padding:0 10px;
  font-size:8px;
}
.standings-wrap,.history-match,.saved-players,.queue-preview,.edit-match,.start-form{
  box-shadow:0 14px 32px rgba(0,0,0,.16);
}
.standings th{background:rgba(7,18,27,.96)}
.standings td{font-size:13px}
.history-match{background:rgba(10,21,31,.94)}
.session-footer{
  margin-top:18px;
  padding:16px 4px 0;
}
@media(max-width:1280px){
  .queue-strip{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:1080px){
  .queue-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
  .op-hero{padding:16px}
  .versus-board{grid-template-columns:1fr;gap:12px}
  .vs{margin:auto}
  .queue-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .op-shell{padding:16px 12px 36px}
  .next-card,.players-card,.standings-card,.history-card{padding:14px}
  .card-head h2,.next-title-line h2,.queue-title-line h3{font-size:22px}
  .versus-board{padding:14px}
  .team{padding:16px}
  .match-avatar{width:56px;height:56px;border-radius:16px}
  .match-player strong{font-size:20px}
  .queue-card{min-height:190px;padding:14px}
  .queue-photo{width:72px;height:72px;border-radius:18px}
}
@media(max-width:480px){
  .queue-strip{grid-template-columns:1fr}
  .hero-stats{width:100%;display:grid;grid-template-columns:repeat(3,1fr)}
  .hero-stats div{min-width:0;padding:12px 10px}
}

/* ===== v3.3.6 clean two-column dashboard ===== */
body{
  background:
    radial-gradient(circle at 12% 0%,rgba(52,157,196,.12),transparent 30%),
    radial-gradient(circle at 88% 8%,rgba(255,255,255,.04),transparent 24%),
    linear-gradient(180deg,#071018 0%,#08141d 42%,#071019 100%);
  background-attachment:fixed;
}
.op-topbar{background:rgba(7,16,25,.94);backdrop-filter:blur(16px)}
.op-shell{width:min(1380px,100%);padding:22px 20px 56px}
.op-hero{
  background:linear-gradient(135deg,rgba(12,27,39,.96),rgba(8,19,29,.96));
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  box-shadow:0 16px 40px rgba(0,0,0,.18);
}
.op-controlbar{
  display:grid;
  grid-template-columns:auto minmax(520px,1fr);
  gap:14px;
  align-items:stretch;
  margin:0 0 16px;
}
.op-tabs{
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px;
  border-radius:14px;
  background:rgba(10,22,32,.92);
  border:1px solid rgba(255,255,255,.08);
}
.op-tab{
  min-height:42px;
  border:0;
  border-radius:10px;
  padding:0 15px;
  background:transparent;
  color:#8fa4b3;
  font-weight:850;
  cursor:pointer;
}
.op-tab span{margin-left:6px;opacity:.8}
.op-tab.is-active{
  background:#eff9fd;
  color:#071019;
}
.quick-add-player{
  display:grid;
  grid-template-columns:minmax(240px,1fr) auto auto;
  gap:8px;
  align-items:end;
  padding:8px;
  border-radius:14px;
  background:rgba(10,22,32,.92);
  border:1px solid rgba(255,255,255,.08);
}
.quick-add-name{display:grid;gap:4px}
.quick-add-name>span{
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#7890a1;
}
.quick-add-name input{
  width:100%;
  height:42px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:10px;
  background:#08141d;
  color:#f3f8fb;
  outline:none;
  padding:0 12px;
}
.quick-add-name input:focus{border-color:rgba(114,222,253,.36)}
.quick-add-photo{
  min-height:42px;
  padding:0 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.10);
  border-radius:10px;
  background:#0d1d28;
  color:#b8c8d2;
  font-size:11px;
  font-weight:850;
  cursor:pointer;
}
.quick-add-photo input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.quick-add-player .btn{min-height:42px}

.op-grid{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(360px,.85fr);
  grid-template-areas:
    "next standings"
    "next history";
  gap:16px;
  align-items:start;
}
.next-card{grid-area:next}
.standings-card{grid-area:standings}
.history-card{grid-area:history}
.players-card{grid-column:1/-1}
.op-grid[data-active-tab="dashboard"] .players-panel{display:none}
.op-grid[data-active-tab="players"] .dashboard-panel{display:none}
.op-grid[data-active-tab="players"]{
  grid-template-columns:1fr;
  grid-template-areas:none;
}
.op-grid[data-active-tab="players"] .players-panel{display:block;grid-column:1/-1}

.card,.next-card,.queue-preview{
  background:linear-gradient(180deg,rgba(10,22,32,.96),rgba(8,18,27,.98));
  border:1px solid rgba(255,255,255,.07);
  box-shadow:0 16px 38px rgba(0,0,0,.18);
}
.next-card{padding:18px}
.next-card:before{display:none}
.card-head{margin-bottom:14px}
.card-head h2,.next-title-line h2,.queue-title-line h3{font-size:22px}
.card-head p,.queue-preview-head p{font-size:11px;line-height:1.45;color:#8197a6}
.versus-board{
  grid-template-columns:1fr 50px 1fr;
  gap:12px;
  padding:14px;
  border-radius:16px;
  background:#08151f;
  border:1px solid rgba(255,255,255,.07);
}
.team{
  padding:16px;
  border-radius:14px;
  background:#0d1e2a;
  border:1px solid rgba(255,255,255,.06);
  box-shadow:none;
}
.match-avatar{width:54px;height:54px;border-radius:14px}
.match-player strong{font-size:19px}
.vs{width:44px;height:44px}
.btn.win{min-height:42px;margin-top:14px;font-size:11px}
.edit-match{margin-top:10px;border-radius:12px;box-shadow:none}

.queue-preview{
  margin-top:12px;
  padding:14px;
  border-radius:15px;
  background:linear-gradient(180deg,#0a1b27,#081620);
  box-shadow:none;
}
.queue-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}
.queue-card{
  min-height:auto;
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  grid-template-rows:auto auto;
  justify-items:stretch;
  align-items:center;
  text-align:left;
  gap:5px 9px;
  padding:10px;
  border-radius:12px;
  background:#0d1d28;
  border:1px solid rgba(255,255,255,.06);
}
.queue-rank{
  position:absolute;
  top:7px;
  left:7px;
  z-index:2;
  min-width:28px;
  height:19px;
  padding:0 5px;
  border-radius:999px;
  background:rgba(4,12,18,.82);
  font-size:8px;
  color:#c7d5dd;
}
.queue-photo{grid-row:1/3;width:48px;height:48px;border-radius:12px}
.queue-meta{grid-column:2;gap:1px}
.queue-meta strong{font-size:12px}
.queue-meta span{font-size:9px}
.queue-card .status-badge{grid-column:2;justify-self:start;min-height:18px;font-size:6px;padding:0 6px}

.players-hint{
  margin:0 0 12px;
  padding:11px 13px;
  border-radius:11px;
  background:#0a1721;
  border:1px solid rgba(255,255,255,.06);
  color:#8ea4b3;
  font-size:11px;
}
.players-card{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);
  gap:14px;
}
.players-card>.card-head,.players-card>.players-hint{grid-column:1/-1}
.players-card>.saved-players{grid-column:1}
.players-card>.roster-heading,.players-card>.player-list,.players-card>.left-players{grid-column:2}
.roster-heading{margin-top:0}
.saved-players{margin:0}
.player-list{gap:7px}
.player-row,.saved-player-row{padding:9px;border-radius:11px}
.avatar{width:40px;height:40px;border-radius:10px}
.status-badge{min-height:20px;font-size:7px}

.standings-card,.history-card{padding:16px}
.standings{min-width:0}
.standings th:nth-child(6),.standings td:nth-child(6){display:none}
.standings th,.standings td{padding:9px 8px}
.standings td.metric{font-size:14px}
.history-card .match-history{grid-template-columns:1fr}
.history-match{padding:10px}
.history-teams{gap:5px}
.history-teams div{padding:8px}
.history-teams strong{font-size:10px}

@media(max-width:1100px){
  .op-controlbar{grid-template-columns:1fr}
  .op-tabs{justify-self:start}
  .op-grid{grid-template-columns:1fr;grid-template-areas:"next" "standings" "history"}
  .players-card{grid-template-columns:1fr}
  .players-card>.saved-players,.players-card>.roster-heading,.players-card>.player-list,.players-card>.left-players{grid-column:1}
  .queue-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .op-shell{padding:14px 10px 34px}
  .op-hero{padding:14px}
  .quick-add-player{grid-template-columns:1fr auto}
  .quick-add-name{grid-column:1/-1}
  .quick-add-photo,.quick-add-player .btn{width:100%}
  .op-tabs{width:100%}
  .op-tab{flex:1}
  .versus-board{grid-template-columns:1fr}
  .vs{margin:auto}
  .queue-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .standings-wrap{overflow:auto}
  .standings{min-width:560px}
}
@media(max-width:460px){
  .queue-strip{grid-template-columns:1fr}
  .quick-add-player{grid-template-columns:1fr}
  .quick-add-name{grid-column:auto}
}

/* ===== v3.3.7 Mockup-inspired UI ===== */
:root{
  --blue:#1ea0ff;
  --blue-2:#0d6cf3;
  --green:#12c766;
  --yellow:#f7cd45;
  --red:#ff5e73;
  --panel:#0b1724;
  --panel-2:#0d1b2a;
  --line-soft:rgba(255,255,255,.08);
}
body{
  background:radial-gradient(circle at top left,rgba(25,122,255,.12),transparent 18%),radial-gradient(circle at top right,rgba(0,194,133,.08),transparent 16%),linear-gradient(180deg,#07111c,#08131f 60%,#08131f);
}
.op-topbar{
  background:rgba(6,15,24,.96);
  border-bottom:1px solid rgba(255,255,255,.06);
  box-shadow:0 10px 30px rgba(0,0,0,.22);
}
.op-brand strong{font-size:16px;letter-spacing:.04em}
.op-brand small{font-size:12px;color:#7da0ba}
.op-main-nav{padding:6px;border-radius:16px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06)}
.op-main-nav a{font-size:13px;padding:10px 14px;border-radius:11px;font-weight:800}
.op-main-nav a:hover{background:rgba(30,160,255,.12)}
.system-link{background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.08)}
.op-shell{width:min(1480px,100%);padding:22px 18px 60px}
.op-alert{border-radius:16px}
.op-hero{
  padding:16px 18px;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(11,23,36,.95),rgba(10,20,31,.95));
  border:1px solid rgba(255,255,255,.06);
}
.op-hero h1{font-size:32px}
.hero-stats div{background:#0b1825;border:1px solid rgba(255,255,255,.07);border-radius:16px}
.hero-stats strong{font-size:26px}
.ranking-note{border-radius:12px;border-color:rgba(255,255,255,.08);background:rgba(255,255,255,.03);color:#95aabc}
.op-controlbar{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:14px;
  align-items:center;
  margin:16px 0;
}
.op-tabs{
  display:flex;gap:8px;padding:6px;background:#0a1623;border:1px solid rgba(255,255,255,.06);border-radius:16px;
}
.op-tab{min-height:44px;padding:0 16px;border-radius:12px;font-size:13px}
.op-tab.is-active{background:linear-gradient(180deg,var(--blue),var(--blue-2));color:#fff;box-shadow:0 8px 18px rgba(13,108,243,.25)}
.quick-add-player{
  display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:10px;align-items:end;
  padding:10px;border-radius:18px;background:#0a1623;border:1px solid rgba(255,255,255,.06);
}
.quick-add-name input,.quick-add-photo{height:44px;border-radius:12px}
.quick-add-name input{background:#09131d;border:1px solid rgba(255,255,255,.08)}
.quick-add-photo{background:#0d1f30;border:1px solid rgba(255,255,255,.08);color:#d8e7ef}
.quick-add-player .btn{min-height:44px;border-radius:12px}
.btn.primary{background:linear-gradient(180deg,var(--blue),var(--blue-2));color:#fff}
.btn.primary:hover{background:linear-gradient(180deg,#31adff,#1d78f5)}
.btn.ghost{background:#13202f;border:1px solid rgba(255,255,255,.08);color:#d7e5ec}
.btn.danger{background:rgba(255,94,115,.10);border:1px solid rgba(255,94,115,.18);color:#ffb0ba}
.op-grid{gap:18px}
.card,.next-card,.queue-preview,.saved-players,.players-hint,.history-match,.standings-wrap{
  background:linear-gradient(180deg,#0b1724,#0a1521);
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 16px 36px rgba(0,0,0,.18);
}
.next-card,.standings-card,.history-card,.players-card{padding:18px;border-radius:20px}
.card-head h2,.next-title-line h2,.queue-title-line h3{font-size:30px;line-height:1.05;color:#f4f8fb}
.card-head p,.queue-preview-head p{font-size:12px;color:#8ea7b8}
.featured-badge,.queue-live-pill,.match-pill{
  display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border-radius:999px;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;
}
.featured-badge{background:rgba(30,160,255,.15);color:#d8f1ff;border:1px solid rgba(30,160,255,.28)}
.match-pill{background:rgba(255,255,255,.05);color:#d4e3eb;border:1px solid rgba(255,255,255,.08)}
.queue-live-pill{background:rgba(255,255,255,.05);color:#d4e3eb;border:1px solid rgba(255,255,255,.08)}
.next-title-line,.queue-title-line{gap:12px}
.versus-board{grid-template-columns:1fr 64px 1fr;gap:18px;padding:16px;border-radius:18px;background:#08131d;border:1px solid rgba(255,255,255,.06)}
.team{padding:16px 16px 14px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:#0d1c2a}
.team.team-a{box-shadow:inset 0 0 0 2px rgba(30,160,255,.18)}
.team.team-b{box-shadow:inset 0 0 0 2px rgba(255,94,115,.16)}
.team.team-a .team-label{display:inline-flex;align-self:flex-start;padding:5px 10px;border-radius:999px;background:linear-gradient(180deg,#2d9fff,#0e76f4);color:#fff;font-size:10px}
.team.team-b .team-label{display:inline-flex;align-self:flex-start;padding:5px 10px;border-radius:999px;background:linear-gradient(180deg,#ff6c80,#ff4e68);color:#fff;font-size:10px}
.match-player{gap:12px}
.match-avatar{width:70px;height:70px;border-radius:18px;box-shadow:0 10px 24px rgba(0,0,0,.18)}
.match-player strong{font-size:26px}
.team b{font-size:18px;color:#556f82;margin:8px 0 8px 32px}
.vs{width:56px;height:56px;background:#0f1d2a;border:1px solid rgba(255,255,255,.08);font-size:18px;color:#ecf5fb}
.btn.win{min-height:48px;margin-top:16px;border-radius:14px;font-size:14px;font-weight:900}
.btn.win.win-team1{background:linear-gradient(180deg,#16cf66,#10b857);border:0;color:#fff}
.btn.win.win-team2{background:linear-gradient(180deg,#ffd957,#f3c432);border:0;color:#111a21}
.edit-match{border-radius:16px;background:#091622;border:1px solid rgba(255,255,255,.06)}
.edit-match summary{padding:14px 16px;font-size:13px;color:#d9e6ee}
.edit-grid{padding:16px}
.edit-grid select{height:44px;border-radius:12px;background:#09131d;border:1px solid rgba(255,255,255,.08)}
.queue-preview{margin-top:14px;padding:16px;border-radius:18px}
.queue-strip{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.queue-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:12px;border-radius:16px;background:#0d1a28;border:1px solid rgba(255,255,255,.08)}
.queue-card.queue-up_next{box-shadow:inset 0 0 0 1px rgba(247,205,69,.28)}
.queue-card.queue-current_match{box-shadow:inset 0 0 0 1px rgba(30,160,255,.24)}
.queue-rank{position:absolute;top:8px;left:8px;min-width:34px;height:22px;border-radius:999px;background:#0a121b;color:#dce8ee;padding:0 7px;display:grid;place-items:center;font-size:9px;font-weight:900}
.queue-photo{width:72px;height:72px;border-radius:18px}
.queue-meta{padding-top:8px}
.queue-meta strong{font-size:15px}
.queue-meta span{font-size:11px;color:#88a2b4}
.queue-card .status-badge{justify-self:auto;min-height:22px;padding:0 9px;font-size:8px}
.status-badge.status-up-next{background:rgba(247,205,69,.16);border:1px solid rgba(247,205,69,.25);color:#ffe8a2}
.status-badge.status-waiting{background:rgba(30,160,255,.10);border:1px solid rgba(30,160,255,.18);color:#bfe2ff}
.status-badge.status-next_match{background:rgba(24,199,102,.15);border:1px solid rgba(24,199,102,.22);color:#c9ffde}
.status-badge.status-left{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);color:#abbecb}
.players-hint{font-size:12px;padding:12px 14px;border-radius:14px}
.players-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.saved-players{border-radius:18px;overflow:hidden}
.saved-players summary{padding:14px 16px;font-size:14px}
.saved-player-tools{padding:12px 14px 8px}
.saved-player-tools input{height:42px;border-radius:12px;background:#09131d;border:1px solid rgba(255,255,255,.08)}
.saved-player-list{grid-template-columns:repeat(3,minmax(0,1fr));padding:8px 14px 14px;gap:12px}
.saved-player-row{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:12px;border-radius:16px;background:#0d1a28;border:1px solid rgba(255,255,255,.08)}
.saved-player-row .avatar{width:68px;height:68px;border-radius:18px}
.saved-player-info,.saved-player-title{width:100%;display:block}
.saved-player-title strong{display:block;font-size:16px;margin-bottom:6px}
.saved-player-info small{font-size:10px;line-height:1.45}
.saved-row-actions{width:100%;justify-content:space-between;gap:8px}
.saved-row-actions .btn{flex:1}
.roster-heading strong{font-size:18px}
.player-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.player-row{grid-template-columns:52px minmax(0,1fr) auto;padding:12px;border-radius:16px;background:#0d1a28}
.player-row .avatar{width:52px;height:52px;border-radius:14px}
.roster-player-name strong{font-size:15px}
.standings-wrap{border-radius:16px;overflow:hidden}
.standings{min-width:100%}
.standings th{background:#0d1c2a;font-size:10px;padding:12px 10px;color:#7fa0b7}
.standings td{padding:11px 10px;font-size:13px}
.standings td.metric{font-size:17px;font-weight:900}
.rank{width:30px;height:30px;border-radius:10px}
.rank-1{background:#f3c432;color:#111a21}
.rank-2{background:#2d9fff;color:#fff}
.rank-3{background:#15c968;color:#fff}
.history-card .match-history{gap:10px}
.history-match{border-radius:16px;padding:12px;background:#0d1a28}
.history-meta{font-size:10px}
.history-teams div{border-radius:12px;background:#122132;padding:10px}
.history-teams div.winner{border-color:rgba(24,199,102,.25);background:rgba(24,199,102,.10)}
.session-footer{padding-top:16px}
@media(max-width:1200px){
  .saved-player-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .queue-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:980px){
  .op-controlbar{grid-template-columns:1fr}
  .quick-add-player{grid-template-columns:minmax(0,1fr) auto auto}
  .players-card{grid-template-columns:1fr}
  .player-list{grid-template-columns:1fr}
}
@media(max-width:760px){
  .op-shell{padding:14px 10px 34px}
  .op-hero h1{font-size:26px}
  .card-head h2,.next-title-line h2,.queue-title-line h3{font-size:22px}
  .quick-add-player{grid-template-columns:1fr}
  .quick-add-name,.quick-add-photo,.quick-add-player .btn{grid-column:auto;width:100%}
  .queue-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .saved-player-list{grid-template-columns:1fr}
  .versus-board{grid-template-columns:1fr}
  .vs{margin:auto}
  .match-player strong{font-size:20px}
}
@media(max-width:460px){
  .queue-strip{grid-template-columns:1fr}
  .hero-stats{display:grid;grid-template-columns:repeat(3,1fr);width:100%}
  .hero-stats div{min-width:0}
}

/* ===== v3.3.8 clearer Team 1 / Team 2 and glass background ===== */
body{
  background:
    radial-gradient(circle at top left,rgba(30,160,255,.10),transparent 20%),
    radial-gradient(circle at top right,rgba(0,210,120,.07),transparent 16%),
    linear-gradient(180deg,rgba(6,15,24,.82),rgba(7,16,26,.92)),
    url('/assets/img/otz-cover.webp') center top/cover fixed no-repeat;
}

.op-hero,
.op-controlbar,
.card,
.next-card,
.queue-preview,
.saved-players,
.players-hint,
.history-match,
.standings-wrap,
.quick-add-player,
.op-tabs{
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.op-hero{
  background:linear-gradient(180deg,rgba(10,23,37,.78),rgba(8,20,32,.82));
}

.quick-add-player,
.op-tabs,
.card,
.queue-preview,
.saved-players,
.standings-wrap,
.history-match{
  background:linear-gradient(180deg,rgba(10,23,36,.72),rgba(8,19,30,.78));
}

.next-card{
  background:linear-gradient(180deg,rgba(8,20,32,.76),rgba(7,18,29,.82));
}

.versus-board{
  background:linear-gradient(180deg,rgba(6,15,24,.66),rgba(6,15,24,.78));
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.team{
  position:relative;
  overflow:hidden;
  padding-top:52px;
  background:linear-gradient(180deg,rgba(13,28,42,.68),rgba(10,24,37,.84));
  border:1px solid rgba(255,255,255,.08);
}

.team::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:42px;
  opacity:.98;
}

.team.team-a::before{
  background:linear-gradient(180deg,#2ea5ff,#0f77f4);
}

.team.team-b::before{
  background:linear-gradient(180deg,#ff6d81,#f04c66);
}

.team-label{
  position:absolute;
  top:11px;
  left:16px;
  z-index:2;
  margin:0;
  padding:0;
  background:transparent !important;
  color:#ffffff !important;
  font-size:13px !important;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  box-shadow:none !important;
}

.team.team-a,
.team.team-b{
  box-shadow:none;
}

.match-player{
  padding:10px 0;
}

.match-player + b + .match-player,
.team b + .match-player{
  border-top:1px solid rgba(255,255,255,.07);
  margin-top:4px;
  padding-top:14px;
}

.team b{
  margin:0 0 0 84px;
  font-size:15px;
  color:rgba(255,255,255,.38);
}

.match-avatar{
  border:2px solid rgba(255,255,255,.10);
}

.match-player strong{
  display:block;
}

.team.team-a .match-player strong{color:#edf7ff}
.team.team-b .match-player strong{color:#fff2f4}

.btn.win.win-team1,
.btn.win.win-team2{
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

.queue-card,
.saved-player-row,
.player-row,
.history-teams div{
  background:linear-gradient(180deg,rgba(12,27,41,.72),rgba(10,23,35,.82));
}

@media(max-width:760px){
  .team{padding-top:48px}
  .team-label{left:14px;top:12px;font-size:12px !important}
}

/* ===== v3.3.9 prepared next match + result pagination + WEBP/default photo UI ===== */
.default-avatar{object-fit:cover;background:#102334}

.prepared-match{
  margin-top:14px;
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.07);
  background:linear-gradient(180deg,rgba(9,22,34,.72),rgba(8,19,30,.80));
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.prepared-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.prepared-head h3{margin:4px 0 0;font-size:22px;letter-spacing:-.03em}
.prepared-head p{margin:6px 0 0;color:#8ea5b5;font-size:11px;line-height:1.45}
.prepared-badge{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;background:rgba(24,199,102,.14);border:1px solid rgba(24,199,102,.22);color:#caffdd;font-size:9px;font-weight:900;letter-spacing:.08em}
.prepared-versus{display:grid;grid-template-columns:1fr 48px 1fr;gap:12px;align-items:stretch}
.prepared-team{position:relative;overflow:hidden;padding:48px 14px 14px;border-radius:16px;background:rgba(10,24,37,.85);border:1px solid rgba(255,255,255,.07)}
.prepared-team:before{content:"";position:absolute;left:0;right:0;top:0;height:38px}
.prepared-team-a:before{background:linear-gradient(180deg,#2ea5ff,#0f77f4)}
.prepared-team-b:before{background:linear-gradient(180deg,#ff6d81,#f04c66)}
.prepared-team-label{position:absolute;top:10px;left:14px;z-index:2;color:#fff;font-size:11px;font-weight:900;letter-spacing:.08em}
.prepared-player{display:flex;align-items:center;gap:10px;padding:8px 0}
.prepared-player+.prepared-player{border-top:1px solid rgba(255,255,255,.06)}
.prepared-player img{width:52px;height:52px;border-radius:14px;object-fit:cover;border:1px solid rgba(255,255,255,.10)}
.prepared-player strong{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px}
.prepared-vs{align-self:center;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#0f1e2b;border:1px solid rgba(255,255,255,.08);font-size:11px;font-weight:900;color:#edf5fa}

.results-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.06);color:#839aaa;font-size:10px}
.pager-buttons{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.pager-btn{min-height:32px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;text-decoration:none;background:#102131;border:1px solid rgba(255,255,255,.07);color:#c9d9e3;font-size:10px;font-weight:850}
.pager-btn:hover{background:#14293b}
.pager-btn.is-current{background:linear-gradient(180deg,#2ea5ff,#0f77f4);border-color:transparent;color:#fff}

.saved-photo-form{margin:0}
.photo-edit-btn{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.photo-edit-btn input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}

@media(max-width:760px){
  .prepared-versus{grid-template-columns:1fr}
  .prepared-vs{margin:auto}
  .results-pagination{align-items:flex-start;flex-direction:column}
  .pager-buttons{justify-content:flex-start}
}

/* ===== v3.3.10 Players live search + current standing cards ===== */
.players-hint{
  display:flex;
  flex-direction:column;
  gap:3px;
  background:linear-gradient(180deg,rgba(12,28,42,.72),rgba(9,22,34,.78));
}
.players-hint strong{font-size:13px;color:#eef7fb}
.players-hint span{font-size:11px;color:#8fa6b6;line-height:1.45}

.live-search-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.player-search-box{position:relative;min-width:0}
.player-search-box input{width:100%;padding:0 42px 0 36px !important}
.search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#6f91a8;font-size:18px;pointer-events:none}
.clear-search{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:28px;height:28px;border:0;border-radius:8px;background:rgba(255,255,255,.06);color:#a9becb;cursor:pointer;font-size:18px;line-height:1}
.clear-search:hover{background:rgba(255,255,255,.10);color:#fff}

.recent-standing-block{width:100%;padding:10px;border-radius:13px;background:rgba(7,17,26,.55);border:1px solid rgba(255,255,255,.06)}
.recent-standing-label{display:block;margin-bottom:8px;color:#7895a9;font-size:9px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.recent-standing-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.recent-standing-grid>div{min-width:0;padding:8px 6px;border-radius:10px;background:rgba(255,255,255,.035);text-align:center}
.recent-standing-grid b{display:block;color:#f3f9fc;font-size:15px;line-height:1.1}
.recent-standing-grid small{display:block;margin-top:4px;color:#7690a2;font-size:8px;text-transform:uppercase;letter-spacing:.06em}
.no-current-standing{padding:9px 10px;border-radius:10px;background:rgba(255,255,255,.025);color:#7f96a7;font-size:10px;text-align:center}

.saved-player-row[hidden]{display:none !important}
.saved-player-row{transition:border-color .15s ease,background .15s ease}
.saved-player-row:hover{border-color:rgba(30,160,255,.18);background:linear-gradient(180deg,rgba(14,31,47,.80),rgba(11,25,39,.86))}
.saved-player-title{display:flex !important;align-items:flex-start;justify-content:space-between;gap:8px}
.saved-player-title strong{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:0 !important}
.saved-player-info small{display:block;margin-top:7px}

@media(max-width:760px){
  .live-search-tools{grid-template-columns:1fr}
  .saved-player-tools>span{padding-left:2px}
  .recent-standing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ===== v3.3.11 global ranking + player stats ===== */
.overall-ranking-panel{
  grid-column:1/-1;
  border:1px solid rgba(255,255,255,.07);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(10,23,36,.78),rgba(8,19,30,.84));
  overflow:hidden;
}
.overall-ranking-head{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:16px 18px;border-bottom:1px solid rgba(255,255,255,.06);
}
.overall-ranking-head h3{margin:4px 0 0;font-size:22px;letter-spacing:-.02em}
.overall-ranking-head p{margin:5px 0 0;color:#8199aa;font-size:11px}
.global-pill{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:0 11px;border-radius:999px;background:rgba(30,160,255,.12);border:1px solid rgba(30,160,255,.22);color:#c7e9ff;font-size:9px;font-weight:950;letter-spacing:.1em}
.overall-ranking-list{display:grid}
.overall-rank-row{
  display:grid;grid-template-columns:52px 46px minmax(0,1fr) 76px 76px 86px;align-items:center;gap:10px;
  padding:11px 16px;border-bottom:1px solid rgba(255,255,255,.05)
}
.overall-rank-row:last-child{border-bottom:0}
.overall-rank-number{font-size:14px;font-weight:950;color:#dce9ef}
.overall-rank-photo{width:42px;height:42px;border-radius:12px;object-fit:cover;border:1px solid rgba(255,255,255,.10)}
.overall-rank-name{min-width:0;display:grid;gap:3px}
.overall-rank-name strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.overall-rank-name small{font-size:9px;color:#7891a2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.overall-rank-stat{display:grid;justify-items:end;gap:2px}
.overall-rank-stat b{font-size:15px}
.overall-rank-stat span{font-size:8px;text-transform:uppercase;letter-spacing:.07em;color:#6f8798;font-weight:850}
.player-origin{margin-top:3px!important;color:#7792a4!important}
.player-stats-stack{display:grid;gap:8px;width:100%}
.overall-player-stats{padding:9px 10px;border-radius:12px;background:rgba(30,160,255,.045);border:1px solid rgba(30,160,255,.10)}
.recent-standing-block{padding:9px 10px;border-radius:12px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.06)}
.saved-player-row{align-items:stretch}
.saved-player-info{min-height:74px}

@media(max-width:900px){
  .overall-rank-row{grid-template-columns:44px 42px minmax(0,1fr) 62px 62px}
  .overall-rank-stat:last-child{display:none}
}
@media(max-width:640px){
  .overall-ranking-head{align-items:flex-start}
  .overall-rank-row{grid-template-columns:38px 40px minmax(0,1fr) 58px;padding:10px}
  .overall-rank-stat:nth-last-child(-n+2){display:none}
  .overall-rank-photo{width:38px;height:38px;border-radius:10px}
}

/* ===== v3.3.12 Players tab compact international layout ===== */
.op-grid[data-active-tab="players"] .players-panel{
  display:grid;
}

.players-card{
  grid-template-columns:minmax(0,1.55fr) minmax(340px,.85fr) !important;
  grid-template-areas:
    "head head"
    "hint hint"
    "directory ranking"
    "directory roster-head"
    "directory roster"
    "directory left";
  align-items:start;
  gap:14px !important;
  padding:18px !important;
}
.players-card>.card-head{grid-area:head;margin-bottom:0 !important}
.players-card>.players-hint{grid-area:hint;margin:0 !important}
.players-card>.saved-players{grid-area:directory;margin:0 !important}
.players-card>.overall-ranking-panel{grid-area:ranking;margin:0 !important}
.players-card>.roster-heading{grid-area:roster-head;margin:0 !important;padding:4px 2px 0 !important}
.players-card>.player-list{grid-area:roster}
.players-card>.left-players{grid-area:left}

.players-hint{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:10px 12px !important;
  border-radius:12px !important;
  background:rgba(255,255,255,.025) !important;
  border:1px solid rgba(255,255,255,.055) !important;
  box-shadow:none !important;
}
.players-hint strong{font-size:12px;color:#dbe7ee;white-space:nowrap}
.players-hint span{font-size:10px;color:#7f98a9;line-height:1.4}

.saved-players{
  border-radius:16px !important;
  background:rgba(9,20,31,.70) !important;
  border:1px solid rgba(255,255,255,.06) !important;
  box-shadow:none !important;
}
.saved-players summary{
  padding:12px 14px !important;
  min-height:48px;
  font-size:13px !important;
}
.saved-players summary small{font-size:9px !important}
.saved-player-tools.live-search-tools{
  grid-template-columns:minmax(0,1fr) auto !important;
  padding:10px 12px !important;
  border-bottom:1px solid rgba(255,255,255,.045);
}
.player-search-box{height:42px;border-radius:12px !important;background:#08131d !important}
.player-search-box input{font-size:12px !important}
.saved-player-tools>span{font-size:9px !important;color:#7790a1 !important;white-space:nowrap}

.saved-player-list{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:7px !important;
  padding:10px 12px 12px !important;
}
.saved-player-row{
  display:grid !important;
  grid-template-columns:46px minmax(150px,1.1fr) minmax(280px,1fr) auto !important;
  align-items:center !important;
  gap:10px !important;
  min-height:72px !important;
  padding:9px 10px !important;
  border-radius:12px !important;
  background:rgba(12,27,41,.64) !important;
  border:1px solid rgba(255,255,255,.055) !important;
}
.saved-player-row:hover{
  background:rgba(14,31,47,.78) !important;
  border-color:rgba(30,160,255,.15) !important;
}
.saved-player-row .avatar{
  width:46px !important;
  height:46px !important;
  border-radius:12px !important;
}
.saved-player-info{
  min-height:0 !important;
  min-width:0;
}
.saved-player-title{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:7px !important;
}
.saved-player-title strong{
  font-size:13px !important;
  margin:0 !important;
  max-width:180px;
}
.saved-player-info>small{
  display:block;
  margin-top:3px !important;
  font-size:8.5px !important;
  line-height:1.35 !important;
  color:#7992a4 !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.player-origin{margin-top:1px !important;color:#657f91 !important}

.player-stats-stack{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:6px !important;
  min-width:0;
}
.recent-standing-block,.overall-player-stats{
  padding:7px 8px !important;
  border-radius:10px !important;
  background:rgba(255,255,255,.025) !important;
  border:1px solid rgba(255,255,255,.05) !important;
}
.overall-player-stats{
  background:rgba(30,160,255,.035) !important;
  border-color:rgba(30,160,255,.08) !important;
}
.recent-standing-label{
  display:block;
  margin-bottom:5px !important;
  font-size:7px !important;
  line-height:1;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#6f8a9c !important;
  font-weight:900;
}
.recent-standing-grid{
  display:grid !important;
  grid-template-columns:repeat(4,1fr) !important;
  gap:4px !important;
}
.recent-standing-grid>div{
  min-width:0;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  text-align:left !important;
}
.recent-standing-grid b{font-size:11px !important;line-height:1;color:#e8f1f6}
.recent-standing-grid small{font-size:6.5px !important;color:#627b8c !important;margin-top:2px !important}
.no-current-standing{
  min-height:25px;
  display:flex;
  align-items:center;
  padding:0 !important;
  background:transparent !important;
  font-size:8px !important;
  color:#708a9c !important;
  text-align:left !important;
}

.saved-row-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:5px !important;
  flex-wrap:nowrap !important;
  width:auto !important;
}
.saved-row-actions form{margin:0 !important}
.saved-row-actions .btn,.saved-row-actions .photo-edit-btn{
  min-height:30px !important;
  padding:0 8px !important;
  border-radius:8px !important;
  font-size:8px !important;
}
.saved-state{font-size:8px !important;padding:0 4px !important}

.overall-ranking-panel{
  border-radius:16px !important;
  background:rgba(9,20,31,.70) !important;
  border:1px solid rgba(255,255,255,.06) !important;
  overflow:hidden;
  box-shadow:none !important;
}
.overall-ranking-panel>summary{list-style:none;cursor:pointer}
.overall-ranking-panel>summary::-webkit-details-marker{display:none}
.overall-ranking-head{
  min-height:66px;
  padding:11px 12px !important;
  margin:0 !important;
  align-items:center !important;
}
.overall-ranking-head h3{font-size:16px !important;margin:3px 0 0 !important}
.overall-ranking-head p{font-size:9px !important;margin:3px 0 0 !important;line-height:1.35}
.overall-summary-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.global-pill{min-height:22px !important;padding:0 7px !important;font-size:7px !important}
.expand-label{font-size:8px;color:#8fa7b6;font-weight:800;white-space:nowrap}
.overall-ranking-panel[open] .expand-label::after{content:" · Hide"}
.overall-ranking-list{border-top:1px solid rgba(255,255,255,.05)}
.overall-rank-row{
  grid-template-columns:35px 36px minmax(0,1fr) 42px 42px 54px !important;
  gap:7px !important;
  min-height:52px !important;
  padding:7px 10px !important;
}
.overall-rank-number{font-size:11px !important}
.overall-rank-photo{width:36px !important;height:36px !important;border-radius:10px !important}
.overall-rank-name strong{font-size:11px !important}
.overall-rank-name small{font-size:7px !important;margin-top:2px !important}
.overall-rank-stat b{font-size:11px !important}
.overall-rank-stat span{font-size:6px !important}

.roster-heading{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  min-height:34px;
}
.roster-heading strong{font-size:14px !important}
.roster-heading span{font-size:8px !important}
.player-list{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:6px !important;
}
.player-row{
  grid-template-columns:40px minmax(0,1fr) auto !important;
  min-height:58px;
  padding:8px 9px !important;
  border-radius:12px !important;
  background:rgba(12,27,41,.64) !important;
}
.player-row .avatar{width:40px !important;height:40px !important;border-radius:10px !important}
.roster-player-name strong{font-size:12px !important}
.roster-meta{gap:5px !important}
.roster-meta small{font-size:7.5px !important}
.player-actions{gap:1px !important}
.icon-btn{width:29px !important;height:29px !important;border-radius:8px !important}
.left-players{margin-top:0 !important;padding-top:8px !important}

@media(max-width:1180px){
  .players-card{
    grid-template-columns:1fr !important;
    grid-template-areas:
      "head"
      "hint"
      "directory"
      "roster-head"
      "roster"
      "ranking"
      "left";
  }
  .saved-player-row{
    grid-template-columns:46px minmax(150px,1fr) minmax(260px,1fr) auto !important;
  }
}

@media(max-width:820px){
  .players-card{padding:13px !important;gap:10px !important}
  .players-hint{align-items:flex-start;flex-direction:column;gap:3px}
  .saved-player-tools.live-search-tools{grid-template-columns:1fr !important}
  .saved-player-row{
    grid-template-columns:44px minmax(0,1fr) !important;
    gap:8px !important;
  }
  .saved-player-row .avatar{width:44px !important;height:44px !important}
  .player-stats-stack,.saved-row-actions{grid-column:1/-1 !important}
  .player-stats-stack{grid-template-columns:1fr 1fr !important}
  .saved-row-actions{justify-content:flex-start !important;flex-wrap:wrap !important}
  .saved-player-info>small{white-space:normal}
}

@media(max-width:520px){
  .player-stats-stack{grid-template-columns:1fr !important}
  .recent-standing-grid{grid-template-columns:repeat(4,1fr) !important}
  .overall-rank-row{grid-template-columns:30px 34px minmax(0,1fr) 40px 48px !important}
  .overall-rank-row .overall-rank-stat:nth-of-type(2){display:none}
  .overall-rank-photo{width:34px !important;height:34px !important}
}

/* ===== v3.3.13 players compact glass + visible top10 global ===== */
.players-card{
  grid-template-columns:minmax(0,1.45fr) minmax(360px,.9fr) !important;
  grid-template-areas:
    "head head"
    "hint hint"
    "directory ranking"
    "directory roster";
  align-items:start;
}
.players-card>.card-head{grid-area:head}
.players-card>.players-hint{grid-area:hint}
.players-card>.saved-players{grid-area:directory}
.players-card>.overall-ranking-panel{grid-area:ranking;margin:0 !important}
.players-card>.roster-heading,
.players-card>.player-list,
.players-card>.left-players{grid-column:2}
.players-card>.roster-heading{margin-top:0}
.players-card>.left-players{margin-top:10px}
.players-hint{display:flex;justify-content:space-between;align-items:center;gap:12px}
.players-hint strong{font-size:13px;color:#eef5f9}
.players-hint span{font-size:11px;color:#8ba2b2}

.overall-ranking-panel{
  display:grid;
  gap:0;
  border-radius:20px;
  overflow:hidden;
  background:linear-gradient(180deg,rgba(12,26,40,.72),rgba(9,20,31,.82)) !important;
  border:1px solid rgba(255,255,255,.07);
  box-shadow:0 18px 40px rgba(0,0,0,.18);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.overall-ranking-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:16px 16px 14px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.overall-ranking-head h3{margin:4px 0 0 !important;font-size:22px !important;letter-spacing:-.02em}
.overall-ranking-head p{margin:6px 0 0 !important;font-size:11px !important;color:#8ea4b4 !important;line-height:1.4}
.global-pill{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:28px;padding:0 12px;border-radius:999px;
  background:linear-gradient(180deg,rgba(30,160,255,.20),rgba(18,113,231,.18));
  border:1px solid rgba(30,160,255,.22);color:#d9f2ff;font-size:9px;font-weight:900;letter-spacing:.08em;
}
.overall-ranking-list{display:grid;padding:6px 10px 12px;gap:8px}
.overall-rank-row{
  display:grid;
  grid-template-columns:38px 42px minmax(0,1fr) 56px 56px 62px !important;
  align-items:center;
  gap:10px;
  padding:10px 8px;
  border:1px solid rgba(255,255,255,.05);
  border-radius:14px;
  background:linear-gradient(180deg,rgba(13,27,41,.60),rgba(10,23,35,.78));
}
.overall-rank-number{
  width:32px;height:32px;border-radius:10px;display:grid;place-items:center;
  background:rgba(255,255,255,.05);font-size:12px !important;
}
.overall-rank-row:nth-child(1) .overall-rank-number{background:#f3c432;color:#101820}
.overall-rank-row:nth-child(2) .overall-rank-number{background:#2d9fff;color:#fff}
.overall-rank-row:nth-child(3) .overall-rank-number{background:#15c968;color:#fff}
.overall-rank-photo{width:42px !important;height:42px !important;border-radius:12px !important}
.overall-rank-name strong{font-size:12px !important}
.overall-rank-name small{font-size:8px !important;line-height:1.35;white-space:normal !important}
.overall-rank-stat{justify-items:center !important}
.overall-rank-stat b{font-size:12px !important}
.overall-rank-stat span{font-size:7px !important}

.saved-players,
.overall-ranking-panel,
.player-row,
.saved-player-row,
.history-match,
.prepared-match,
.versus-board,
.team,
.queue-preview,
.standings-wrap{
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.saved-player-list{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:10px !important;
}
.saved-player-row{
  position:relative;
  gap:8px;
  padding:12px;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(12,26,40,.60),rgba(10,22,33,.78)) !important;
}
.saved-player-row .avatar{width:58px !important;height:58px !important;border-radius:16px !important}
.saved-player-title{display:flex !important;align-items:center;justify-content:space-between;gap:8px}
.saved-player-title strong{font-size:15px !important;margin:0 !important}
.player-stats-stack{display:grid;gap:8px;width:100%}
.recent-standing-block,
.overall-player-stats{
  padding:9px 10px;
  border-radius:14px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.05);
}
.recent-standing-label{display:block;font-size:9px;font-weight:900;letter-spacing:.08em;color:#8ea4b4;text-transform:uppercase;margin-bottom:7px}
.recent-standing-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.recent-standing-grid div{padding:7px 6px;border-radius:12px;background:rgba(255,255,255,.04);text-align:center}
.recent-standing-grid b{display:block;font-size:13px}
.recent-standing-grid small{font-size:8px;color:#89a0b1}
.no-current-standing{padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.04);font-size:10px;color:#91a6b5}
.saved-row-actions{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:8px}
.saved-row-actions .btn,
.saved-row-actions .saved-state,
.photo-edit-btn{justify-content:center;min-height:34px;border-radius:10px}
.saved-state{display:flex;align-items:center;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03)}
.player-origin{display:block;margin-top:3px}

.roster-heading{padding:2px 2px 6px}
.player-list{display:grid;grid-template-columns:1fr !important;gap:10px}
.player-row{
  position:relative;overflow:hidden;
  grid-template-columns:56px minmax(0,1fr) auto;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(12,26,40,.60),rgba(10,22,33,.78)) !important;
}
.player-row::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#2ea5ff;opacity:.9}
.player-row.player-next::before{background:#15c968}
.player-row .avatar{width:56px;height:56px;border-radius:16px}
.roster-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap}

.match-player{display:block !important}
.match-player-visual{
  position:relative;
  display:grid;
  grid-template-columns:56px minmax(0,1fr);
  align-items:end;
  gap:10px;
  min-height:94px;
  padding:10px;
  border-radius:16px;
  overflow:hidden;
  background:
    linear-gradient(180deg,rgba(6,15,24,.05),rgba(6,15,24,.78)),
    var(--player-bg) center/cover no-repeat;
  border:1px solid rgba(255,255,255,.08);
}
.match-player-visual::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.12),rgba(4,12,18,.38) 42%,rgba(4,12,18,.80));
}
.match-player-top,.match-avatar,.match-player-meta,.match-player-bar{position:relative;z-index:1}
.match-player-top{grid-column:1/-1;display:flex;justify-content:flex-end;align-items:center;margin-bottom:2px}
.match-player-status{display:inline-flex;align-items:center;min-height:22px;padding:0 9px;border-radius:999px;background:rgba(255,255,255,.14);backdrop-filter:blur(10px);font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#fff}
.match-avatar{width:56px;height:56px;border-radius:16px;border:2px solid rgba(255,255,255,.16)}
.match-player-meta{display:grid;gap:2px;min-width:0;align-self:end}
.match-player-meta strong{font-size:19px !important;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.26)}
.match-player-meta span{font-size:10px;color:#d7e5ee;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.match-player-bar{grid-column:1/-1;display:block;height:6px;border-radius:999px;background:rgba(255,255,255,.14);overflow:hidden;margin-top:4px}
.team.team-a .match-player-bar::after,
.team.team-b .match-player-bar::after{content:"";display:block;height:100%;width:72%;border-radius:999px}
.team.team-a .match-player-bar::after{background:linear-gradient(90deg,#4ec2ff,#1b84ff)}
.team.team-b .match-player-bar::after{background:linear-gradient(90deg,#ff7d8f,#ff5470)}
.team b{margin:8px 0 8px 78px !important}

.prepared-match{margin-top:14px;padding:14px;border-radius:18px;background:linear-gradient(180deg,rgba(12,26,40,.60),rgba(10,22,33,.78));border:1px solid rgba(255,255,255,.07)}
.prepared-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}
.prepared-head h3{margin:4px 0 0;font-size:22px;letter-spacing:-.02em}
.prepared-head p{margin:5px 0 0;font-size:11px;color:#8ea4b4}
.prepared-versus{display:grid;grid-template-columns:1fr 48px 1fr;gap:12px;align-items:stretch}
.prepared-team{padding:14px;border-radius:16px;background:rgba(8,18,28,.46);border:1px solid rgba(255,255,255,.06)}
.prepared-team-label{display:inline-flex;min-height:26px;padding:0 10px;border-radius:999px;font-size:9px;font-weight:900;letter-spacing:.08em;align-items:center}
.prepared-team-a .prepared-team-label{background:linear-gradient(180deg,#2d9fff,#0e76f4);color:#fff}
.prepared-team-b .prepared-team-label{background:linear-gradient(180deg,#ff6c80,#ff4e68);color:#fff}
.prepared-player-card{
  position:relative;display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:end;
  padding:10px;margin-top:10px;border-radius:14px;overflow:hidden;
  background:linear-gradient(180deg,rgba(5,13,20,.12),rgba(5,13,20,.74)),var(--player-bg) center/cover no-repeat;
  border:1px solid rgba(255,255,255,.07);
}
.prepared-player-card::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.06),rgba(4,12,18,.72))}
.prepared-player-card img,.prepared-player-meta,.prepared-player-bar{position:relative;z-index:1}
.prepared-player-card img{width:44px;height:44px;border-radius:12px;border:2px solid rgba(255,255,255,.15)}
.prepared-player-meta{display:grid;gap:2px}
.prepared-player-meta strong{font-size:14px;color:#fff}
.prepared-player-meta span{font-size:9px;color:#dce7ee;text-transform:uppercase;letter-spacing:.06em;font-weight:800}
.prepared-player-bar{grid-column:1/-1;display:block;height:5px;border-radius:999px;background:rgba(255,255,255,.15);overflow:hidden;margin-top:2px}
.prepared-team-a .prepared-player-bar::after,.prepared-team-b .prepared-player-bar::after{content:"";display:block;height:100%;width:68%}
.prepared-team-a .prepared-player-bar::after{background:linear-gradient(90deg,#4ec2ff,#1b84ff)}
.prepared-team-b .prepared-player-bar::after{background:linear-gradient(90deg,#ff7d8f,#ff5470)}
.prepared-vs{display:grid;place-items:center;font-weight:900;color:#e7f4fb;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);border-radius:14px}

@media(max-width:1180px){
  .players-card{grid-template-columns:1fr !important;grid-template-areas:"head" "hint" "ranking" "directory" "roster" !important}
  .players-card>.roster-heading,.players-card>.player-list,.players-card>.left-players{grid-column:1}
  .overall-rank-row{grid-template-columns:34px 40px minmax(0,1fr) 52px 52px 58px !important}
}
@media(max-width:760px){
  .saved-player-list{grid-template-columns:1fr !important}
  .saved-row-actions{grid-template-columns:1fr 1fr}
  .overall-rank-row{grid-template-columns:32px 38px minmax(0,1fr) 48px 54px !important}
  .overall-rank-row .overall-rank-stat:nth-of-type(2){display:none}
  .prepared-versus{grid-template-columns:1fr}
  .prepared-vs{min-height:42px}
}

/* ===== v3.3.14 editable up next + stronger player background stats ===== */
.match-player{
  display:block !important;
}
.match-player-visual{
  position:relative;
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:12px;
  align-items:end;
  min-height:150px;
  padding:12px;
  border-radius:18px;
  overflow:hidden;
  background:
    linear-gradient(90deg,rgba(5,12,18,.15),rgba(5,12,18,.70) 44%,rgba(5,12,18,.92)),
    var(--player-bg) center center/cover no-repeat !important;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.match-player-visual::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(5,12,18,.12),rgba(5,12,18,.58) 40%,rgba(5,12,18,.88));
}
.match-player-top,.match-avatar,.match-player-meta,.match-player-stats{position:relative;z-index:1}
.match-player-top{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:2px;
}
.match-player-status,
.match-player-rank{
  display:inline-flex;align-items:center;min-height:24px;padding:0 10px;border-radius:999px;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.10);backdrop-filter:blur(12px);
  font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#fff;
}
.match-player-rank{background:rgba(0,0,0,.20)}
.match-avatar{width:64px !important;height:64px !important;border-radius:18px !important;border:2px solid rgba(255,255,255,.18)}
.match-player-meta{align-self:end;display:grid;gap:3px;min-width:0}
.match-player-meta strong{font-size:21px !important;color:#fff;text-shadow:0 2px 4px rgba(0,0,0,.28)}
.match-player-meta span{font-size:10px;color:#d4e5ef;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.match-player-stats{
  grid-column:1/-1;
  display:grid;
  gap:7px;
  margin-top:6px;
}
.match-stat-row{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px}
.match-stat-row span{font-size:10px;color:#edf6fb;font-weight:800;white-space:nowrap}
.match-stat-track{display:block;position:relative;height:7px;border-radius:999px;background:rgba(255,255,255,.14);overflow:hidden}
.match-stat-fill{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#4ec2ff,#177fff)}
.team.team-a .match-stat-fill.strong{background:linear-gradient(90deg,#7dd7ff,#3ea3ff)}
.team.team-b .match-stat-fill{background:linear-gradient(90deg,#ff9aa8,#ff5e73)}
.team.team-b .match-stat-fill.strong{background:linear-gradient(90deg,#ffd27c,#ffc247)}
.match-stat-fill.alt{opacity:.82}

.team b{margin:8px 0 8px 84px !important}
.prepared-match{margin-top:16px;padding:16px;border-radius:20px}
.prepared-edit{margin-top:14px}
.prepared-edit-grid{grid-template-columns:1fr 1fr !important}
.prepared-edit-grid .btn{grid-column:1/-1}
.prepared-player-card{
  min-height:138px;
}
.prepared-player-card .match-player-status,
.prepared-player-card .match-player-rank{min-height:22px;font-size:7px}
.prepared-player-card .match-avatar{width:52px !important;height:52px !important;border-radius:14px !important}
.prepared-player-card .match-player-meta strong{font-size:17px !important}
.prepared-player-card .match-player-meta span{font-size:9px}
.prepared-player-card .match-stat-row span{font-size:9px}
.prepared-player-card .match-stat-track{height:6px}
.prepared-team .match-player-visual{min-height:138px}

.edit-match summary{
  font-weight:800;
}
.edit-match summary::after{
  content:"";
}

@media(max-width:980px){
  .prepared-edit-grid{grid-template-columns:1fr !important}
}
@media(max-width:760px){
  .match-player-visual{grid-template-columns:56px minmax(0,1fr);min-height:138px;padding:11px}
  .match-avatar{width:56px !important;height:56px !important}
  .match-player-meta strong{font-size:18px !important}
  .match-player-top{flex-wrap:wrap}
}

/* ===== v3.3.15 text/layout cleanup + stronger glass stats ===== */
.players-card{
  gap:16px !important;
}
.players-hint{
  padding:14px 16px !important;
  line-height:1.5 !important;
}
.players-hint strong{display:block;font-size:14px !important;margin-bottom:2px}
.players-hint span{display:block;font-size:11px !important;color:#9bb0bf !important}

.saved-players summary{
  padding:14px 16px !important;
  font-size:14px !important;
}
.saved-players summary small{font-size:10px !important}
.saved-player-tools{
  padding:12px 16px 10px !important;
  gap:10px !important;
}
.saved-player-list{
  padding:6px 16px 16px !important;
  gap:12px !important;
}
.saved-player-row{
  display:grid !important;
  grid-template-columns:58px minmax(0,1fr) !important;
  grid-template-areas:
    "avatar info"
    "stats stats"
    "actions actions" !important;
  align-items:start !important;
  gap:10px 12px !important;
  padding:14px !important;
  border-radius:18px !important;
  overflow:hidden;
}
.saved-player-row .avatar{
  grid-area:avatar;
  width:58px !important;
  height:58px !important;
  border-radius:16px !important;
}
.saved-player-info{
  grid-area:info;
  width:100%;
  min-width:0;
}
.saved-player-title{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start !important;
  gap:8px !important;
  margin-bottom:6px;
}
.saved-player-title strong{
  font-size:16px !important;
  line-height:1.15 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  word-break:break-word;
}
.saved-player-info small,
.player-origin{
  display:block !important;
  margin-top:4px !important;
  font-size:10px !important;
  line-height:1.45 !important;
  color:#9bb0bf !important;
  white-space:normal !important;
}
.player-stats-stack{
  grid-area:stats;
  display:grid !important;
  grid-template-columns:1fr 1fr;
  gap:10px !important;
}
.recent-standing-block,
.overall-player-stats{
  padding:12px !important;
  border-radius:16px !important;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.035)) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.recent-standing-label{
  font-size:9px !important;
  color:#a9c0cf !important;
  margin-bottom:9px !important;
}
.recent-standing-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:8px !important;
}
.recent-standing-grid > div{
  min-width:0;
  padding:9px 8px !important;
  border-radius:12px !important;
  background:rgba(255,255,255,.045) !important;
  border:1px solid rgba(255,255,255,.05);
}
.recent-standing-grid b{
  font-size:14px !important;
  line-height:1.05 !important;
}
.recent-standing-grid small{
  margin-top:4px !important;
  font-size:8px !important;
  line-height:1.2 !important;
  white-space:normal !important;
}
.no-current-standing{
  padding:11px 12px !important;
  border-radius:12px !important;
  font-size:11px !important;
  line-height:1.4 !important;
}
.saved-row-actions{
  grid-area:actions;
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px !important;
  width:100%;
}
.saved-row-actions form,
.saved-row-actions .saved-state{min-width:0}
.saved-row-actions .btn,
.saved-state,
.photo-edit-btn{
  width:100%;
  min-height:38px !important;
  padding:0 10px !important;
  font-size:10px !important;
  white-space:nowrap;
}
.saved-state{
  justify-content:center !important;
}

.overall-ranking-head{
  padding:16px !important;
  align-items:flex-start !important;
}
.overall-ranking-head h3{
  font-size:20px !important;
  line-height:1.1 !important;
}
.overall-ranking-head p{
  font-size:11px !important;
  line-height:1.45 !important;
}
.overall-rank-row{
  padding:11px 10px !important;
  align-items:center !important;
}
.overall-rank-name strong{line-height:1.15 !important}
.overall-rank-name small{line-height:1.35 !important}

.prepared-head{
  margin-bottom:14px !important;
}
.prepared-head h3{
  font-size:24px !important;
  line-height:1.1 !important;
}
.prepared-team{
  position:relative;
  padding:48px 14px 14px !important;
  border-radius:18px !important;
  background:linear-gradient(180deg,rgba(12,26,40,.72),rgba(9,20,31,.82)) !important;
}
.prepared-team-label{
  position:absolute !important;
  top:14px !important;
  left:14px !important;
  display:inline-flex !important;
  min-height:28px !important;
  padding:0 12px !important;
  border-radius:999px !important;
  font-size:10px !important;
  letter-spacing:.1em !important;
  z-index:2 !important;
  box-shadow:0 8px 18px rgba(0,0,0,.16);
}
.prepared-vs{
  min-height:56px;
  font-size:14px !important;
}

.team{
  padding:54px 16px 16px !important;
}
.team-label{
  top:14px !important;
  left:16px !important;
  font-size:12px !important;
  letter-spacing:.1em !important;
  padding:0 12px !important;
  min-height:28px !important;
  border-radius:999px !important;
  display:inline-flex !important;
  align-items:center !important;
  background:rgba(255,255,255,.10) !important;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.team.team-a .team-label{background:linear-gradient(180deg,#2d9fff,#0e76f4) !important}
.team.team-b .team-label{background:linear-gradient(180deg,#ff6c80,#ff4e68) !important}
.team b{margin:10px 0 10px 86px !important}

.match-player-visual{
  min-height:164px !important;
  background-position:center center !important;
  background-size:cover !important;
  background-repeat:no-repeat !important;
}
.match-player-visual::before{
  background:linear-gradient(180deg,rgba(5,12,18,.08),rgba(5,12,18,.34) 34%,rgba(5,12,18,.74)) !important;
}
.match-player-top{
  margin-bottom:4px !important;
}
.match-player-status,
.match-player-rank{
  min-height:24px !important;
  font-size:8px !important;
}
.match-player-meta{
  gap:4px !important;
}
.match-player-meta strong{
  line-height:1.06 !important;
  word-break:break-word;
}
.match-player-meta span{
  line-height:1.3 !important;
}
.match-player-stats{
  padding:10px 10px 9px !important;
  border-radius:14px !important;
  background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.04)) !important;
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.match-stat-row{
  gap:9px !important;
}
.match-stat-row span{
  min-width:92px;
  font-size:10px !important;
  line-height:1.2 !important;
}
.match-stat-track{
  height:8px !important;
  background:rgba(255,255,255,.16) !important;
}
.match-stat-fill,
.match-stat-fill.alt,
.match-stat-fill.strong{
  box-shadow:0 0 14px rgba(255,255,255,.12);
}
.prepared-team .match-player-visual{
  min-height:150px !important;
}
.prepared-team .match-player-stats{
  padding:8px 9px !important;
}
.prepared-team .match-stat-row span{
  min-width:82px;
  font-size:9px !important;
}

.roster-heading{
  margin-top:0 !important;
  padding:4px 2px 4px !important;
}
.roster-heading strong{font-size:18px !important}
.player-list{
  gap:12px !important;
}
.player-row{
  padding:12px !important;
  border-radius:16px !important;
}
.roster-player-name strong{line-height:1.15 !important}
.roster-meta small{line-height:1.35 !important}

@media(max-width:1180px){
  .player-stats-stack{grid-template-columns:1fr !important}
}
@media(max-width:760px){
  .saved-player-row{
    grid-template-columns:48px minmax(0,1fr) !important;
    padding:12px !important;
  }
  .saved-player-row .avatar{width:48px !important;height:48px !important}
  .saved-player-title{grid-template-columns:1fr !important}
  .saved-row-actions{grid-template-columns:1fr 1fr !important}
  .saved-row-actions form:last-child,
  .saved-row-actions .saved-state{grid-column:1/-1}
  .recent-standing-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .team,.prepared-team{padding:46px 12px 12px !important}
  .team-label,.prepared-team-label{top:12px !important;left:12px !important}
  .match-player-visual{grid-template-columns:56px minmax(0,1fr) !important;min-height:154px !important}
  .match-player-stats{padding:9px !important}
}
@media(max-width:520px){
  .saved-player-row{
    grid-template-areas:
      "avatar info"
      "stats stats"
      "actions actions" !important;
  }
  .saved-row-actions{grid-template-columns:1fr !important}
  .saved-row-actions form,
  .saved-row-actions .saved-state{grid-column:auto !important}
  .players-hint{padding:12px !important}
}

/* ===== v3.3.16 multi-court + 70% visible player backgrounds ===== */
.start-form-courts{
  grid-template-columns:minmax(0,1fr) 180px auto !important;
  align-items:end;
  width:min(760px,100%) !important;
}
.start-field{display:grid;gap:7px;text-align:left}
.start-field label{font-size:9px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;color:#8ba2b2;padding-left:2px}
.start-field select{
  height:48px;
  padding:0 12px;
  border-radius:11px;
  border:1px solid var(--line-strong);
  background:#0b1823;
  color:var(--text);
  outline:none;
}
.start-field select:focus{border-color:rgba(114,222,253,.45);box-shadow:0 0 0 3px rgba(114,222,253,.08)}

.multi-court-head{margin-bottom:14px !important}
.courts-board{
  display:grid;
  gap:16px;
}
.courts-board.courts-multi{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.court-match-panel{
  min-width:0;
  padding:14px;
  border-radius:20px;
  background:linear-gradient(180deg,rgba(9,22,34,.68),rgba(7,18,29,.80));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 18px 38px rgba(0,0,0,.18);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.court-match-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.court-match-header>div{display:flex;align-items:center;gap:10px;min-width:0}
.court-kicker{
  display:inline-flex;align-items:center;min-height:26px;padding:0 9px;border-radius:999px;
  background:rgba(30,160,255,.12);border:1px solid rgba(30,160,255,.18);
  font-size:8px;font-weight:900;letter-spacing:.1em;color:#bfe7ff;
}
.court-match-header strong{font-size:19px;letter-spacing:-.02em}
.court-state{
  display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:0 10px;border-radius:999px;
  font-size:8px;font-weight:900;letter-spacing:.09em;
}
.court-state.is-live{background:rgba(21,201,104,.13);border:1px solid rgba(21,201,104,.22);color:#cbffe0}
.court-state.is-waiting{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);color:#aabcc8}
.court-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.court-empty{
  display:grid;place-items:center;text-align:center;gap:8px;min-height:220px;padding:24px;
  border-radius:16px;border:1px dashed rgba(255,255,255,.10);background:rgba(5,14,22,.36)
}
.court-empty strong{font-size:17px}
.court-empty span{max-width:420px;font-size:11px;line-height:1.5;color:#8fa6b5}
.court-empty form{margin-top:4px}

.courts-multi .court-versus{
  grid-template-columns:1fr !important;
  gap:10px !important;
}
.courts-multi .court-versus>.vs{
  margin:auto;
}
.courts-single .court-versus{grid-template-columns:1fr 64px 1fr !important}
.court-edit-current{margin-top:12px}
.court-prepared{margin-top:14px !important}

/* The player's uploaded photo is deliberately 70% visible in match backgrounds. */
.match-player-visual{
  isolation:isolate;
  background:linear-gradient(180deg,rgba(8,18,28,.90),rgba(7,17,27,.94)) !important;
}
.match-player-visual::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background-image:var(--player-bg);
  background-position:center center;
  background-size:cover;
  background-repeat:no-repeat;
  opacity:.70;
  filter:saturate(1.04) contrast(1.03);
}
.match-player-visual::before{
  z-index:1 !important;
  background:linear-gradient(180deg,rgba(4,10,16,.08),rgba(4,10,16,.24) 36%,rgba(4,10,16,.62) 72%,rgba(4,10,16,.82)) !important;
}
.match-player-top,.match-avatar,.match-player-meta,.match-player-stats{z-index:2 !important}
.match-player-meta strong{text-shadow:0 2px 7px rgba(0,0,0,.78) !important}
.match-player-meta span{text-shadow:0 1px 4px rgba(0,0,0,.72)}
.match-player-stats{
  background:linear-gradient(180deg,rgba(8,17,26,.42),rgba(8,17,26,.58)) !important;
  border-color:rgba(255,255,255,.13) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 8px 20px rgba(0,0,0,.10);
}
.match-stat-track{background:rgba(255,255,255,.20) !important}

.courts-multi .team{
  padding:52px 14px 14px !important;
}
.courts-multi .match-player-visual{
  min-height:152px !important;
}
.courts-multi .match-player-meta strong{font-size:19px !important}
.courts-multi .match-stat-row span{min-width:84px}

.hero-stats{flex-wrap:wrap}
.hero-stats div{min-width:100px}

@media(max-width:1180px){
  .courts-board.courts-multi{grid-template-columns:1fr}
  .courts-multi .court-versus{grid-template-columns:1fr 56px 1fr !important}
  .courts-multi .court-versus>.vs{margin:auto}
}
@media(max-width:820px){
  .start-form-courts{grid-template-columns:1fr !important}
  .start-form-courts .start-field,.start-form-courts .btn{width:100%}
  .courts-single .court-versus,
  .courts-multi .court-versus{grid-template-columns:1fr !important}
  .court-toolbar{align-items:stretch;flex-direction:column}
  .court-toolbar form,.court-toolbar .btn{width:100%}
}
@media(max-width:520px){
  .court-match-panel{padding:11px;border-radius:16px}
  .court-match-header strong{font-size:17px}
  .court-match-header{align-items:flex-start}
  .match-player-visual{min-height:148px !important}
}

/* ===== v3.3.18 one court per row + landscape current/up-next matches ===== */
.courts-board,
.courts-board.courts-multi,
.courts-board.courts-single{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  gap:18px !important;
  width:100%;
}

.court-match-panel{
  width:100%;
  min-width:0;
  padding:18px !important;
  border-radius:22px !important;
}

.court-match-header{
  margin-bottom:14px !important;
}
.court-match-header strong{
  font-size:22px !important;
}
.court-toolbar{
  margin-bottom:14px !important;
}

/* Current match stays horizontal on desktop/tablet. */
.court-versus,
.courts-multi .court-versus,
.courts-single .court-versus{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr) !important;
  gap:16px !important;
  align-items:stretch !important;
}
.court-versus>.vs,
.courts-multi .court-versus>.vs,
.courts-single .court-versus>.vs{
  align-self:center !important;
  justify-self:center !important;
  margin:0 !important;
  width:56px !important;
  height:56px !important;
}

.court-versus .team{
  min-width:0;
  width:100%;
  padding:54px 16px 16px !important;
  border-radius:18px !important;
}
.court-versus .team-label{
  top:14px !important;
  left:16px !important;
  min-height:28px !important;
  padding:0 12px !important;
  font-size:10px !important;
}
.court-versus .match-player{
  width:100%;
  min-width:0;
}
.court-versus .match-player-visual{
  width:100%;
  min-width:0;
  min-height:132px !important;
  grid-template-columns:62px minmax(0,1fr) !important;
  padding:12px !important;
}
.court-versus .match-player-meta strong{
  font-size:20px !important;
  line-height:1.1 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
.court-versus .match-player-meta span{
  white-space:normal !important;
  line-height:1.25 !important;
}
.court-versus .match-player-stats{
  grid-column:1/-1;
  display:grid !important;
  gap:6px !important;
  padding:9px 10px !important;
}
.court-versus .match-stat-row{
  grid-template-columns:94px minmax(0,1fr) !important;
  gap:9px !important;
}
.court-versus .match-stat-row span{
  min-width:0 !important;
  font-size:9px !important;
}
.court-versus .team>b{
  margin:8px 0 8px 78px !important;
}

/* Prepared / Up Next match mirrors Current Match in landscape. */
.court-prepared{
  width:100%;
  margin-top:16px !important;
  padding:16px !important;
  border-radius:20px !important;
}
.court-prepared .prepared-head{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:14px !important;
  margin-bottom:14px !important;
}
.court-prepared .prepared-head h3{
  font-size:23px !important;
  line-height:1.1 !important;
  margin:4px 0 0 !important;
}
.court-prepared .prepared-head p{
  max-width:760px;
  line-height:1.45 !important;
}
.court-prepared .prepared-versus{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr) !important;
  gap:16px !important;
  align-items:stretch !important;
}
.court-prepared .prepared-vs{
  align-self:center !important;
  justify-self:center !important;
  width:56px !important;
  height:56px !important;
  min-height:56px !important;
  border-radius:14px !important;
}
.court-prepared .prepared-team{
  min-width:0;
  width:100%;
  padding:50px 14px 14px !important;
  border-radius:18px !important;
}
.court-prepared .prepared-team-label{
  top:13px !important;
  left:14px !important;
  min-height:28px !important;
  padding:0 12px !important;
  font-size:10px !important;
}
.court-prepared .match-player-visual{
  width:100%;
  min-width:0;
  min-height:124px !important;
  grid-template-columns:56px minmax(0,1fr) !important;
  padding:11px !important;
  margin-top:10px;
}
.court-prepared .match-player-meta strong{
  font-size:18px !important;
  line-height:1.1 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
.court-prepared .match-player-meta span{
  white-space:normal !important;
  line-height:1.25 !important;
}
.court-prepared .match-player-stats{
  grid-column:1/-1;
  padding:8px 9px !important;
  gap:5px !important;
}
.court-prepared .match-stat-row{
  grid-template-columns:86px minmax(0,1fr) !important;
  gap:8px !important;
}
.court-prepared .match-stat-row span{
  min-width:0 !important;
  font-size:8.5px !important;
}

/* Maintain 70% player photo visibility, but keep text readable. */
.court-versus .match-player-visual::after,
.court-prepared .match-player-visual::after{
  opacity:.70 !important;
  background-position:center 28% !important;
}
.court-versus .match-player-visual::before,
.court-prepared .match-player-visual::before{
  background:linear-gradient(180deg,rgba(4,10,16,.04),rgba(4,10,16,.16) 34%,rgba(4,10,16,.54) 70%,rgba(4,10,16,.76)) !important;
}

/* Edit forms also keep a clean landscape two-column layout. */
.court-edit-current .edit-grid,
.court-prepared .prepared-edit-grid{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}
.court-edit-current .edit-grid .btn,
.court-prepared .prepared-edit-grid .btn{
  grid-column:1/-1 !important;
}

@media(max-width:900px){
  .court-versus,
  .courts-multi .court-versus,
  .courts-single .court-versus,
  .court-prepared .prepared-versus{
    grid-template-columns:1fr !important;
  }
  .court-versus>.vs,
  .court-prepared .prepared-vs{
    margin:2px auto !important;
  }
  .court-edit-current .edit-grid,
  .court-prepared .prepared-edit-grid{
    grid-template-columns:1fr !important;
  }
}

@media(max-width:560px){
  .court-match-panel{padding:12px !important;border-radius:17px !important}
  .court-match-header strong{font-size:18px !important}
  .court-versus .team,
  .court-prepared .prepared-team{padding:48px 11px 11px !important}
  .court-versus .match-player-visual,
  .court-prepared .match-player-visual{
    grid-template-columns:52px minmax(0,1fr) !important;
    min-height:126px !important;
  }
  .court-versus .match-player-meta strong,
  .court-prepared .match-player-meta strong{font-size:17px !important}
}

/* ===== v3.3.21 shared operator player permissions / inline edit ===== */
.saved-row-actions{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(96px,1fr)) !important;
  gap:8px !important;
  align-items:start !important;
  width:100% !important;
}
.saved-row-actions form,
.saved-row-actions details{
  min-width:0;
  margin:0;
}
.saved-row-actions .btn,
.saved-row-actions .saved-state,
.player-name-editor>summary{
  width:100%;
  min-height:36px;
  justify-content:center;
  text-align:center;
}
.player-name-editor{
  position:relative;
}
.player-name-editor>summary{
  list-style:none;
  display:flex;
  align-items:center;
  cursor:pointer;
  user-select:none;
}
.player-name-editor>summary::-webkit-details-marker{display:none}
.player-name-editor[open]{
  grid-column:1/-1;
  padding:10px;
  border-radius:12px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.07);
}
.player-name-editor[open]>summary{
  width:auto;
  display:inline-flex;
  min-height:30px;
  padding:0 10px;
  margin-bottom:8px;
}
.player-name-edit-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
}
.player-name-edit-form input{
  min-width:0;
  height:38px;
  padding:0 11px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(5,14,22,.88);
  color:#f4f8fb;
  outline:none;
}
.player-name-edit-form input:focus{
  border-color:rgba(30,160,255,.36);
  box-shadow:0 0 0 3px rgba(30,160,255,.08);
}
.player-name-edit-form .btn{min-width:72px}
.photo-edit-btn{cursor:pointer}

@media(max-width:520px){
  .saved-row-actions{grid-template-columns:1fr 1fr !important}
  .player-name-editor[open]{grid-column:1/-1}
  .player-name-edit-form{grid-template-columns:1fr}
}

/* ===== v3.3.22 immutable player registration + cross-location availability ===== */
.player-registration-form{
  grid-template-columns:minmax(220px,1fr) auto minmax(260px,.9fr) auto !important;
  align-items:end !important;
}
.registration-confirm{
  min-height:44px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:8px 11px;
  border-radius:12px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.07);
  color:#a9bdca;
  font-size:10px;
  line-height:1.3;
  cursor:pointer;
}
.registration-confirm input{
  width:16px;
  height:16px;
  flex:0 0 auto;
  accent-color:#1e9fff;
}
.player-registration-form .quick-add-photo{
  min-width:110px;
}
.player-registration-form .quick-add-photo:has(input:valid){
  border-color:rgba(24,199,102,.25);
}

.status-badge.status-in_other_openplay{
  background:rgba(255,174,71,.12);
  border-color:rgba(255,174,71,.22);
  color:#ffd89f;
}
.player-active-location{
  margin-top:6px !important;
  padding:6px 8px;
  border-radius:9px;
  background:rgba(255,174,71,.08);
  border:1px solid rgba(255,174,71,.12);
  color:#f4c989 !important;
  font-weight:750;
}
.playing-elsewhere-state{
  width:100%;
  min-height:38px !important;
  padding:7px 10px !important;
  border-radius:10px;
  justify-content:center !important;
  text-align:center;
  background:rgba(255,174,71,.08) !important;
  border-color:rgba(255,174,71,.16) !important;
  color:#f4c989 !important;
  white-space:normal !important;
  line-height:1.25;
}
.saved-row-actions{
  grid-template-columns:minmax(0,1fr) auto !important;
}
.saved-row-actions form:first-child .btn{
  min-width:130px;
}
.saved-row-actions .saved-state{
  grid-column:1/-1;
}
.players-hint strong::after{
  content:" · Locked after registration";
  color:#6f8ca1;
  font-size:10px;
  font-weight:750;
}

@media(max-width:1180px){
  .player-registration-form{
    grid-template-columns:minmax(0,1fr) auto auto !important;
  }
  .registration-confirm{
    grid-column:1/-1;
  }
}
@media(max-width:760px){
  .player-registration-form{
    grid-template-columns:1fr !important;
  }
  .registration-confirm,
  .player-registration-form .quick-add-name,
  .player-registration-form .quick-add-photo,
  .player-registration-form .btn{
    grid-column:auto !important;
    width:100%;
  }
  .saved-row-actions{
    grid-template-columns:1fr !important;
  }
  .saved-row-actions form:first-child .btn{min-width:0}
}

/* v3.3.23 public self-registration entry */
.public-registration-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 14px;
  border-radius:16px;
  background:linear-gradient(180deg,rgba(10,24,38,.82),rgba(8,19,30,.88));
  border:1px solid rgba(255,255,255,.07);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.public-registration-cta>div{display:grid;gap:3px;min-width:0}
.public-registration-cta strong{font-size:13px;line-height:1.2;color:#eef7fb}
.public-registration-cta small{font-size:10px;line-height:1.45;color:#819bad;max-width:620px}
.public-registration-cta .btn{flex:0 0 auto;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:42px}
@media(max-width:760px){
  .public-registration-cta{align-items:stretch;flex-direction:column}
  .public-registration-cta .btn{width:100%}
}

/* ===== v3.3.26 player directory pagination + current roster cleanup ===== */
.saved-player-pagination{
  display:grid;
  grid-template-columns:auto minmax(140px,1fr) auto;
  align-items:center;
  gap:10px;
  padding:12px 16px 16px;
  border-top:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg,rgba(255,255,255,.015),rgba(255,255,255,.03));
}
.saved-player-pagination[hidden]{display:none !important}
.directory-page-btn{
  min-height:38px;
  padding:0 13px;
  border-radius:11px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.045);
  color:#d9e7ef;
  font-size:10px;
  font-weight:900;
  cursor:pointer;
  transition:.15s ease;
}
.directory-page-btn:hover:not(:disabled){
  background:rgba(30,160,255,.10);
  border-color:rgba(30,160,255,.22);
}
.directory-page-btn:disabled{
  opacity:.35;
  cursor:not-allowed;
}
.directory-page-status{
  min-width:0;
  display:grid;
  justify-items:center;
  gap:3px;
  text-align:center;
}
.directory-page-status strong{
  font-size:11px;
  line-height:1.15;
  color:#eef7fb;
}
.directory-page-status span{
  font-size:9px;
  line-height:1.2;
  color:#7890a0;
}

/* Keep directory cards compact now that only one page is visible at a time. */
.saved-player-list{
  align-content:start;
}
.saved-player-row[hidden]{display:none !important}

/* Current roster: clean compact cards with aligned text/actions. */
.roster-heading{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  padding:10px 4px 8px !important;
}
.roster-heading>div{
  min-width:0;
  display:grid;
  gap:3px;
}
.roster-heading strong{
  font-size:18px !important;
  line-height:1.1 !important;
}
.roster-heading span{
  font-size:10px !important;
  line-height:1.3 !important;
  color:#7890a0 !important;
}
.roster-heading>b{
  flex:0 0 auto;
  min-width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:rgba(30,160,255,.10);
  border:1px solid rgba(30,160,255,.18);
  color:#dff4ff;
  font-size:13px;
}
.player-list{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:10px !important;
  min-width:0;
}
.player-row{
  position:relative;
  display:grid !important;
  grid-template-columns:56px minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:12px !important;
  min-width:0;
  padding:12px 12px 12px 14px !important;
  border-radius:16px !important;
  overflow:hidden;
  background:linear-gradient(180deg,rgba(16,31,44,.76),rgba(10,23,34,.84)) !important;
  border:1px solid rgba(255,255,255,.07) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.player-row::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:#398eff;
}
.player-row.player-next::before{background:#19ca6c}
.player-row .avatar{
  width:56px !important;
  height:56px !important;
  border-radius:16px !important;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.10);
}
.roster-player-name{
  min-width:0;
  display:grid !important;
  gap:7px !important;
  align-items:start !important;
}
.roster-player-name>strong{
  min-width:0;
  font-size:15px !important;
  line-height:1.15 !important;
  color:#f0f7fb;
  white-space:normal !important;
  overflow-wrap:anywhere;
}
.roster-meta{
  min-width:0;
  display:flex !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:6px 8px !important;
}
.roster-meta .status-badge{
  flex:0 0 auto;
  margin:0 !important;
}
.roster-meta small{
  min-width:0;
  font-size:9px !important;
  line-height:1.3 !important;
  color:#8198a8 !important;
  white-space:normal !important;
}
.player-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:7px !important;
  flex:0 0 auto;
}
.player-actions form{
  margin:0 !important;
}
.player-actions .icon-btn,
.player-actions .photo-icon{
  width:36px !important;
  height:36px !important;
  min-width:36px !important;
  min-height:36px !important;
  border-radius:11px !important;
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
}

@media(max-width:760px){
  .saved-player-pagination{
    grid-template-columns:1fr 1fr;
    padding:11px 12px 13px;
  }
  .directory-page-status{
    grid-column:1/-1;
    grid-row:1;
    padding-bottom:3px;
  }
  .directory-page-btn{width:100%}
  .player-row{
    grid-template-columns:50px minmax(0,1fr) auto !important;
    gap:10px !important;
    padding:11px 10px 11px 13px !important;
  }
  .player-row .avatar{
    width:50px !important;
    height:50px !important;
    border-radius:14px !important;
  }
  .roster-player-name>strong{font-size:14px !important}
}

@media(max-width:480px){
  .player-row{
    grid-template-columns:48px minmax(0,1fr) !important;
    grid-template-areas:
      "avatar name"
      "actions actions" !important;
    align-items:start !important;
  }
  .player-row .avatar{grid-area:avatar}
  .roster-player-name{grid-area:name}
  .player-actions{
    grid-area:actions;
    justify-content:flex-end !important;
    padding-top:2px;
  }
  .player-actions .icon-btn,
  .player-actions .photo-icon{
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
    min-height:34px !important;
  }
}

/* ===== v3.3.29 temporary walk-in player + square profile fill ===== */
.temporary-player-cta{
  display:grid;
  grid-template-columns:minmax(260px,.9fr) minmax(420px,1.1fr);
  align-items:end;
  gap:14px;
  padding:13px 14px;
  border-radius:16px;
  background:linear-gradient(180deg,rgba(10,24,38,.84),rgba(8,19,30,.90));
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.temporary-player-copy{display:grid;gap:3px;min-width:0}
.temporary-player-copy strong{font-size:14px;line-height:1.2;color:#eef7fb}
.temporary-player-copy small{font-size:10px;line-height:1.45;color:#819bad}
.temporary-player-fields{
  display:grid;
  grid-template-columns:minmax(160px,1fr) minmax(130px,.65fr) auto;
  gap:8px;
  align-items:center;
}
.temporary-player-fields>input{
  width:100%;
  min-width:0;
  height:42px;
  padding:0 12px;
  border-radius:11px;
  border:1px solid rgba(255,255,255,.09);
  background:#091722;
  color:#eef7fb;
  outline:none;
  font-size:12px;
}
.temporary-player-fields>input:focus{border-color:rgba(41,169,255,.42);box-shadow:0 0 0 3px rgba(41,169,255,.07)}
.temporary-photo-picker{
  position:relative;
  min-width:0;
  height:42px;
  padding:0 11px;
  border-radius:11px;
  border:1px solid rgba(255,255,255,.09);
  background:#0d2030;
  color:#c9dbe6;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  overflow:hidden;
}
.temporary-photo-picker input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.temporary-photo-picker span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:850}
.temporary-photo-picker.has-photo{border-color:rgba(53,212,138,.30);background:rgba(53,212,138,.08);color:#c8f9dc}
.temporary-player-fields .btn{min-height:42px;white-space:nowrap}

.temporary-badge,
.temporary-inline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(255,190,82,.11);
  border:1px solid rgba(255,190,82,.18);
  color:#ffd99c;
  font-size:8px;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.temporary-badge{min-height:21px;padding:0 7px;flex:0 0 auto}
.temporary-inline{padding:2px 6px;margin-left:5px;vertical-align:middle}
.roster-name-line{display:flex;align-items:center;gap:7px;min-width:0}
.roster-name-line strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Every uploaded player photo fills its profile/match frame cleanly. */
.player-photo,
.avatar,
.match-avatar,
.queue-photo,
.overall-rank-photo,
.mini-photo,
.photo-preview,
.done-photo{
  object-fit:cover !important;
  object-position:center center !important;
}

@media(max-width:980px){
  .temporary-player-cta{grid-template-columns:1fr}
  .temporary-player-fields{grid-template-columns:minmax(0,1fr) minmax(130px,.65fr) auto}
}
@media(max-width:700px){
  .temporary-player-cta{padding:12px;gap:11px}
  .temporary-player-fields{grid-template-columns:1fr}
  .temporary-player-fields>input,
  .temporary-photo-picker,
  .temporary-player-fields .btn{width:100%;min-height:46px;height:46px}
  .temporary-player-copy strong{font-size:13px}
  .temporary-player-copy small{font-size:10px}
}
